On Wed, Jun 21, 2023 at 14:32:27 +0100, Daniel P. Berrangé wrote:
Historically the max files limit for processes has always been 1024,
because going beyond this is incompatible with the select() function.
None the less most apps these days will use poll() so should not be
limited in this way.
Since systemd >= 240, the hard limit will be 500k, while the soft
limit remains at 1k. Applications which don't use select() should
raise their soft limit to match the hard limit during their startup.
This function provides a convenient helper to do this limit raising.
Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
---
src/libvirt_private.syms | 1 +
src/util/virprocess.c | 34 ++++++++++++++++++++++++++++++++++
src/util/virprocess.h | 1 +
3 files changed, 36 insertions(+)
Reviewed-by: Peter Krempa <pkrempa(a)redhat.com>