From: Justin Pettit Date: Mon, 10 Aug 2009 22:34:13 +0000 (-0700) Subject: XenServer: Increase ulimit on open file descriptors in init script X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63920cb960ffe2c494f73982f6ea073a4dc3460d;p=openvswitch XenServer: Increase ulimit on open file descriptors in init script 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 --- diff --git a/xenserver/etc_init.d_vswitch b/xenserver/etc_init.d_vswitch index 90b07773..462c2a6f 100755 --- a/xenserver/etc_init.d_vswitch +++ b/xenserver/etc_init.d_vswitch @@ -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.