News for hackers. Stuff that matters.
Re:Too Many Open Files by nritchie on Friday June 06, 2025 @05:51PM (#44205358)
Seems like a good idea but I do wonder what the cost is as the overhead of allocate the extra resource space (whatever it is) would be added to every Go application.
Re:Too Many Open Files by database64128 on Saturday June 07, 2025 @04:55AM (#44208384)
Raising the soft limit to the hard limit is also recommended by the author of systemd: https://0pointer.net/blog/file-descriptor-limits.html

I doubt the kernel would actually allocate the resource space upfront. Like SO_SNDBUF and SO_RCVBUF, it's probably only allocated when it's actually needed.

Re:Too Many Open Files by saagarjha on Saturday June 07, 2025 @06:41AM (#44208764)
It's just a limit, you pay the cost when you open the file descriptor