On Fri, Jun 15, 2018 at 05:26:04PM +0300, Ivan Zahariev wrote:
The standard RLIMIT_NPROC does not suffer from such accountingThey seem equivalent but serve a bit different purposes. RLIMIT_NPROC
discrepancies at any time.
is primarily about limiting what the user can do and doesn't guarantee
that that actually matches resource (pid here) consumption.
Is it really technically not possible to make "pids.current" doIt is of course possible but at a cost. The cost (getting rid of lazy
accounting properly like RLIMIT_NPROC does? We were hoping to
replace RLIMIT_NPROC with the "pids" controller.
release optimizations) is just not justifiable for most cases.