ovs-ctl: Raise the limit on the number of open file descriptors.
authorAlex Wang <alexw@nicira.com>
Tue, 20 May 2014 21:16:54 +0000 (14:16 -0700)
committerAlex Wang <alexw@nicira.com>
Tue, 20 May 2014 23:01:04 +0000 (16:01 -0700)
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@nicira.com>
utilities/ovs-ctl.in

index 2f39519..f765553 100755 (executable)
@@ -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