Re:Debian switches to 64-bit time for everything
by 9dev on Monday July 28, 2025 @09:06AM
(#44710489)
So why can't the limit for shell args be the amount of memory before the OOM killer is triggered as well?
[ Parent
| on HN ]
Re:Debian switches to 64-bit time for everything
by jart on Monday July 28, 2025 @10:02AM
(#44710974)
It can. Just set RLIMIT_STACK to something huge. Distros set it at 8mb by default. Take it up with them if you want the default to change for everyone.
Re:Debian switches to 64-bit time for everything
by amelius on Monday July 28, 2025 @12:45PM
(#44712619)
I mean we wouldn't even need to have this discussion if the limit was at the memory limit.
Imagine having this discussion for every array in a modern system ...
Re:Debian switches to 64-bit time for everything
by 9dev on Monday July 28, 2025 @04:24PM
(#44715160)
I think I, and the parent commenter, are just pointing out how arbitrary the limit is. It can't hurt to question stuff like this every once in a while.
Re:Debian switches to 64-bit time for everything
by jart on Monday July 28, 2025 @09:12PM
(#44717829)
There's always a limit. People only complain when it actually limits them. Most open source people have never needed to glob tens of thousands of files. If you want to feel better, POSIX says the minimum permissible ARG_MAX is 4096, and with Windows ARG_MAX is only 32767 characters.