XenServer: Increase ulimit on open file descriptors in init script
authorJustin Pettit <jpettit@nicira.com>
Mon, 10 Aug 2009 22:34:13 +0000 (15:34 -0700)
committerJustin Pettit <jpettit@nicira.com>
Mon, 10 Aug 2009 22:34:13 +0000 (15:34 -0700)
Open vSwitch allows up to 256 datapaths to be created.  Each one
requires a few file descriptors.  By default, XenServer limits each
process to 1024 file descriptors, which causes us to run out with roughly
140 datapaths.  This change raises the limit to 4096, so we've got
additional wiggle room.

Feature #1820

xenserver/etc_init.d_vswitch

index 90b0777..462c2a6 100755 (executable)
@@ -253,6 +253,11 @@ function start {
     fi
 
     insert_modules_if_required
+
+    # Increase the limit on the number of open file descriptors since
+    # ovs-vswitchd needs a few per bridge
+    ulimit -n 4096
+
     start_vswitchd
     start_brcompatd
     reload_vswitchd  # ensures ovs-vswitchd has fully read config file.