ovs-ctl.in: increase the limit of fd
authorCong Wang <xiyou.wangcong@gmail.com>
Wed, 14 Nov 2012 12:58:18 +0000 (20:58 +0800)
committerBen Pfaff <blp@nicira.com>
Thu, 15 Nov 2012 16:10:55 +0000 (08:10 -0800)
We can't create more than 248 bridges with the current limit 5000,
so increase it to 6000 so that at least 256+ bridges could be created.

Cc: Ben Pfaff <blp@nicira.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
utilities/ovs-ctl.in

index 9ce4973..3a432b5 100755 (executable)
@@ -244,7 +244,7 @@ start_forwarding () {
         # Increase the limit on the number of open file descriptors.
         # ovs-vswitchd needs 16 per datapath, plus a few extra, so this
         # should allow for 256 (or more) bridges.
-        ulimit -n 5000
+        ulimit -n 6000
 
            # Start ovs-vswitchd.
            set ovs-vswitchd unix:"$DB_SOCK"