aboutsummaryrefslogtreecommitdiffstats
path: root/docs/misc/xl-network-configuration.markdown
diff options
context:
space:
mode:
authorMathieu Gagne <mgagne@iweb.com>2012-04-24 17:09:22 +0100
committerMathieu Gagne <mgagne@iweb.com>2012-04-24 17:09:22 +0100
commitdeaed905dac4f87a08d35c0358fcf7657d817ad5 (patch)
tree0df710361097354badd55ea1e9e650475e5ea390 /docs/misc/xl-network-configuration.markdown
parent9684ac597a610155a19a7a33038cb874b4d8de23 (diff)
downloadxen-deaed905dac4f87a08d35c0358fcf7657d817ad5.tar.gz
xen-deaed905dac4f87a08d35c0358fcf7657d817ad5.tar.bz2
xen-deaed905dac4f87a08d35c0358fcf7657d817ad5.zip
xl: add support for vif rate limiting
The `rate` keyword specifies the rate at which the outgoing traffic will be limited to. The default if this keyword is not specified is unlimited. The `rate` keyword supports an optional replenishment interval parameter for specifying the granularity of credit replenishment. It determines the frequency at which the vif transmission credit is replenished. The default interval is 50ms. For example: 'rate=10Mb/s' 'rate=250KB/s' 'rate=1MB/s@20ms' Signed-off-by: Mathieu Gagne <mgagne@iweb.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'docs/misc/xl-network-configuration.markdown')
-rw-r--r--docs/misc/xl-network-configuration.markdown29
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/misc/xl-network-configuration.markdown b/docs/misc/xl-network-configuration.markdown
index bafcd6d6de..e2a5bc60c5 100644
--- a/docs/misc/xl-network-configuration.markdown
+++ b/docs/misc/xl-network-configuration.markdown
@@ -122,5 +122,34 @@ Specifies the backend domain which this device should attach to. This
defaults to domain 0. Specifying another domain requires setting up a
driver domain which is outside the scope of this document.
+### rate
+
+Specifies the rate at which the outgoing traffic will be limited to.
+The default if this keyword is not specified is unlimited.
+
+The rate may be specified as "<RATE>/s" or optionally "<RATE>/s@<INTERVAL>".
+
+ * `RATE` is in bytes and can accept suffixes:
+ * GB, MB, KB, B for bytes.
+ * Gb, Mb, Kb, b for bits.
+ * `INTERVAL` is in microseconds and can accept suffixes: ms, us, s.
+ It determines the frequency at which the vif transmission credit
+ is replenished. The default is 50ms.
+
+Vif rate limiting is credit-based. It means that for "1MB/s@20ms", the
+available credit will be equivalent of the traffic you would have done
+at "1MB/s" during 20ms. This will results in a credit of 20,000 bytes
+replenished every 20,000 us.
+
+For example:
+
+ 'rate=10Mb/s' -- meaning up to 10 megabits every second
+ 'rate=250KB/s' -- meaning up to 250 kilobytes every second
+ 'rate=1MB/s@20ms' -- meaning 20,000 bytes in every 20 millisecond period
+
+NOTE: The actual underlying limits of rate limiting are dependent
+on the underlying netback implementation.
+
+
[oui]: http://en.wikipedia.org/wiki/Organizationally_Unique_Identifier
[net]: http://wiki.xen.org/wiki/HostConfiguration/Networking