]> xenbits.xensource.com Git - xen.git/commit
tools/xenconsoled: Increase file descriptor limit
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 2 Mar 2015 15:04:37 +0000 (15:04 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 12 Aug 2015 10:58:40 +0000 (11:58 +0100)
commit9d6754dc2dc488f1a5877955836fa46b4ee119bb
tree55cdfdf72d13ec737c5590be8b92541fa5e9cfba
parent04f8006b66fd9f351467ad0e9c77a0a14741c6e4
tools/xenconsoled: Increase file descriptor limit

XenServer's VM density testing uncovered a regression when moving from
sysvinit to systemd where the file descriptor limit dropped from 4096 to
1024. (XenServer had previously inserted a ulimit statement into its
initscripts.)

One solution is to use LimitNOFILE=4096 in xenconsoled.service to match the
lost ulimit, but that is only a stopgap solution.

As Xenconsoled genuinely needs a large number of file descriptors if a large
number of domains are running, attempt to increase the limit.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
(cherry picked from commit 588df84c0d702e835e526ecef3af6c5444857558)
(cherry picked from commit 9d5b2b01024d18b2135c1b0deebb8bfbf5dced5f)
(cherry picked from commit a490f8df8c989483624ebd6befb63377be55722b)
tools/console/daemon/main.c