human-friendly ulimit values?

2024-02-21 Thread Christian Convey
When setting memory-size limits via "ulimits", users have to manually
convert from their intuitive units.

E.g., for limiting virtual memory to 8 gigabytes, the invocation is "ulimit
-v 8388608", rather than something like "ulimit -v 8gb".

If I were to submit a patch for this, is there any chance of it getting
accepted?


Re: human-friendly ulimit values?

2024-02-21 Thread Christian Convey
On Wed, Feb 21, 2024 at 12:17 PM Andreas Schwab  wrote:
...

> Or ulimit -v $((8*1024*1024))
>

Good point.  If a user remembers that "-v" implicitly works in 1024-byte
units, that's a good shortcut.