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-Tag: v0.90.5~39 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=63920cb960ffe2c494f73982f6ea073a4dc3460d;p=sliver-openvswitch.git 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 90b077731..462c2a6f9 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.