On 2/21/24 11:43 AM, Christian Convey wrote:
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?

I'd look at it, but I have to ask: is the only reason to do this to avoid
the ulimit blocksize scaling factor? `ulimit -a' will tell you the scaling
factor, but there isn't a way to get it programmatically. Otherwise, you
can always use $(( 1024 * 1024 * 8 )).

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to