summaryrefslogtreecommitdiff
path: root/FAQ.md
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2015-01-12 19:41:09 -0800
committerBen Pfaff <blp@nicira.com>2015-01-13 15:40:23 -0800
commited5c51108ce7f809da953a74fd07d5c30b271972 (patch)
tree55ba11b2ca876f3eb004fc4ab70cf70ef6f4da40 /FAQ.md
parent88cc95c1c66078dd81d18a32a90c45736d6e52f5 (diff)
downloadopenvswitch-ed5c51108ce7f809da953a74fd07d5c30b271972.tar.gz
FAQ: Explain how to quickly add many ports.
This comes up from time to time. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Thomas Graf <tgraf@noironetworks.com>
Diffstat (limited to 'FAQ.md')
-rw-r--r--FAQ.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/FAQ.md b/FAQ.md
index 9e95d076c..02fe2d3fd 100644
--- a/FAQ.md
+++ b/FAQ.md
@@ -750,6 +750,26 @@ A: It's an expected behaviour.
ovs-vsctl add-port br0 p1 -- \
set interface p1 type=internal
+### Q: I want to add thousands of ports to an Open vSwitch bridge, but
+ it takes too long (minutes or hours) to do it with ovs-vsctl. How
+ can I do it faster?
+
+A: If you add them one at a time with ovs-vsctl, it can take a long
+ time to add thousands of ports to an Open vSwitch bridge. This is
+ because every invocation of ovs-vsctl first reads the current
+ configuration from OVSDB. As the number of ports grows, this
+ starts to take an appreciable amount of time, and when it is
+ repeated thousands of times the total time becomes significant.
+
+ The solution is to add the ports in one invocation of ovs-vsctl (or
+ a small number of them). For example, using bash:
+
+ ovs-vsctl add-br br0
+ cmds=; for i in {1..5000}; do cmds+=" -- add-port br0 p$i"; done
+ ovs-vsctl $cmds
+
+ takes seconds, not minutes or hours, in the OVS sandbox environment.
+
Quality of Service (QoS)
------------------------