Re:Too Many Open Files
by quotemstr on Friday June 06, 2025 @01:05PM
(#44202894)
Then account for _kernel memory used_ by file descriptors and account it like any other ulimit. Don't impose a cap on file descriptors in particular. These caps distort program design throughout the ecosystem
[ Parent
| on HN ]
It's not just memory, it's cleanup that the Kernel must perform when the process terminates.
So? Doesn't matter. Account for the thing you want to control directly. Don't put caps on bad proxies for the thing you want to control.
Re:Too Many Open Files
by tedunangst on Friday June 06, 2025 @03:56PM
(#44204396)
Don't leak things with limits.