From 0ada3a84d59cfccc923f931b54153701687d310a Mon Sep 17 00:00:00 2001 From: Alex Wang Date: Tue, 20 May 2014 14:16:54 -0700 Subject: [PATCH] ovs-ctl: Raise the limit on the number of open file descriptors. 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 --- 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 2f39519af..f76555325 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 -- 2.20.1