[ovs-dev] [PATCH] ovs-ctl: Raise the limit on the number of open file descriptors.
Alex Wang
alexw at nicira.com
Tue May 20 21:24:53 UTC 2014
Since the removal of dispatcher thread, OVS creates 'n-handler-threads'
file descriptors for each bridge port. To allow more bridge ports
be supported, this commit raises the limit on the number of open file
descriptors from 7500 to 65535.
Bug #1254038.
Signed-off-by: Alex Wang <alexw at nicira.com>
---
utilities/ovs-ctl.in | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/utilities/ovs-ctl.in b/utilities/ovs-ctl.in
index 2f39519..f765553 100755
--- a/utilities/ovs-ctl.in
+++ b/utilities/ovs-ctl.in
@@ -225,9 +225,9 @@ start_forwarding () {
else
# Increase the limit on the number of open file descriptors.
# On Linux, ovs-vswitchd needs about three file descriptors
- # per bridge and one file descriptor per bridge port, so this
- # allows a very large number of bridges and ports.
- MAXFD=7500
+ # per bridge and "n-handler-threads" file descriptors per bridge
+ # port, so this allows a very large number of bridges and ports.
+ MAXFD=65535
if [ $(ulimit -n) -lt $MAXFD ]; then
ulimit -n $MAXFD
fi
--
1.7.9.5
More information about the dev
mailing list