qemu-e2k/include
Fiona Ebner 03e471c41d qemu_init: increase NOFILE soft limit on POSIX
In many configurations, e.g. multiple vNICs with multiple queues or
with many Ceph OSDs, the default soft limit of 1024 is not enough.
QEMU is supposed to work fine with file descriptors >= 1024 and does
not use select() on POSIX. Bump the soft limit to the allowed hard
limit to avoid issues with the aforementioned configurations.

Of course the limit could be raised from the outside, but the man page
of systemd.exec states about 'LimitNOFILE=':

> Don't use.
> [...]
> Typically applications should increase their soft limit to the hard
> limit on their own, if they are OK with working with file
> descriptors above 1023,

If the soft limit is already the same as the hard limit, avoid the
superfluous setrlimit call. This can avoid a warning with a strict
seccomp filter blocking setrlimit if NOFILE was already raised before
executing QEMU.

Buglink: https://bugzilla.proxmox.com/show_bug.cgi?id=4507
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2024-02-09 12:47:58 +00:00
..
authz
block stream: Allow users to request only format driver names in backing file format 2024-01-26 11:16:58 +01:00
chardev chardev: use bool for fe_is_open 2024-01-12 13:23:48 +00:00
crypto
disas
exec include/exec: Change cpu_mmu_index argument to CPUState 2024-02-03 16:46:10 +10:00
fpu
gdbstub
hw oslib-posix: initialize backend memory objects in parallel 2024-02-06 08:15:22 +01:00
io Rename "QEMU global mutex" to "BQL" in comments and docs 2024-01-08 10:45:43 -05:00
libdecnumber
migration Replace "iothread lock" with "BQL" in comments 2024-01-08 10:45:43 -05:00
monitor
net net: make nb_nics and nd_table[] static in net/net.c 2024-02-02 16:23:48 +00:00
qapi qapi: Fix dangling references to docs/devel/qapi-code-gen.txt 2024-01-26 07:04:53 +01:00
qemu oslib-posix: initialize backend memory objects in parallel 2024-02-06 08:15:22 +01:00
qom qom: Add object_property_set_default_list() 2023-11-10 18:19:14 +01:00
scsi
semihosting
standard-headers linux-headers: Synchronize linux headers from linux v6.7.0-rc8 2024-01-11 19:14:00 +08:00
sysemu qemu_init: increase NOFILE soft limit on POSIX 2024-02-09 12:47:58 +00:00
tcg accel/tcg: Move perf and debuginfo support to tcg/ 2024-01-29 21:04:10 +10:00
ui include: Clean up includes 2024-01-30 21:20:20 +03:00
user
elf.h
glib-compat.h
qemu-io.h
qemu-main.h