Hi,
PSA: as of systemd/256~rc3-3 the open file descriptors hard limit is
bumped early at boot from 1048576 to the max value that the kernel
allows, which on amd64 is currently 1073741816.
(I meant to send this last week but it fell off the wagon and
languished in the draft folder, sorry!)
This allows modern applications to use as many file descriptors as they
want, since they are an extremely cheap resource nowadays, and it's
more important than ever given that, for example, process tracking is
switching over to PID FDs for security reasons. Please note that the
soft limit still is 1024, as that's what legacy syscalls like select()
can handle.
The last time this was tried some packages were still not ready, so it
was patched out to let them be fixed. Enough time has passed now, and
it's time to let any unknown leftover just break and be fixed. In all
known cases, the buggy pattern was to manually iterate over the hard
limit and close every FD one by one, which is completely unnecessary
since kernel 5.9 (bullseye/oldstable) since the close_range() syscall
is available, that can do it in one fell swoop. Any packages still
doing the iteration manually need to switch to close_range, which is
very simple to use and documented at:
https://man7.org/linux/man-pages/man2/close_range.2.html
Please enjoy your extra file descriptors responsibly.
--
Kind regards,
Luca Boccassi
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEErCSqx93EIPGOymuRKGv37813JB4FAmZhkZYACgkQKGv37813 JB6hQg//ekLirEM33bJ/Xhh+FJJoEO8kRmK6e+RnPhC+a13HshGPUJXpBU3G/RPU ZdhZDorJb/Vqiac8RG0HipIdQHw4vBrjiWPfwQUF82wprIDvVfgF+RKvWvOuVJ2l ejqHPIRJWMo50HYpTGauYAfbYiIMHMJR3lRRdWx+Pg5nsJwjbU5x5JBaQYfPrC6w pajtX6xF62x/0VtI4I3JhQA81w6lF+wdD+rXl30BA5XbvXrEx3n4Y29YWe6kPK5g SJYOGVTSG4Y2FiCp6EeKBeXpQJlP5PdQCCvlp55DH8ON3rUQbj5PZqBCuD2VF+kk XS/u4uBgf/yraE/JllG2dFgZABCd3Q6OeJpOqUUq3uhjqoAlpG5ZNyb4joipET3Z ZacoWtuSQI8QzMd24fjAHrli4TxcpW3vbM09q62k2AWX8ouE8Qq7fdNL8I4A9KDJ YSpggM6SeBVylEN3AYly1ecFaVViwsMYSILEnGvKMlQih8qSDFVtG6KWLtZMpMqM AUidIw1m/YZ6Txbv/jYJjqI2mrd27a1zv8uzyLJv/p1YZFddMj6YewxBYqbXzu3c vPbtaGZ/6phJRGgWmqEWTh7ZJhdQydvqtdhq84hwl4JGeaIFg0iDbec3bhKsC34Y qLiuf8sUnYCLy8zG48v5Yq8nh63b/H71HnPHxhyVsXnQNAsCuvc=
=Vt9o
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)