]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtiofsd: add --rlimit-nofile=NUM option
authorStefan Hajnoczi <stefanha@redhat.com>
Fri, 1 May 2020 14:06:43 +0000 (15:06 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 25 Aug 2020 01:18:23 +0000 (20:18 -0500)
commita637ea0c5298af9e10f5cfe659dc9093d4d7bc9c
tree2d11f0c878d5ae1fed47c31e1ece0ab5bf50ed37
parent73a01bc9b0351b45ba06c327d5c54025a9aaa0b7
virtiofsd: add --rlimit-nofile=NUM option

Make it possible to specify the RLIMIT_NOFILE on the command-line.
Users running multiple virtiofsd processes should allocate a certain
number to each process so that the system-wide limit can never be
exhausted.

When this option is set to 0 the rlimit is left at its current value.
This is useful when a management tool wants to configure the rlimit
itself.

The default behavior remains unchanged: try to set the limit to
1,000,000 file descriptors if the current rlimit is lower.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20200501140644.220940-2-stefanha@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
(cherry picked from commit 6dbb716877728ce4eb51619885ef6ef4ada9565f)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
tools/virtiofsd/fuse_lowlevel.h
tools/virtiofsd/helper.c
tools/virtiofsd/passthrough_ll.c