[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: human-friendly ulimit values?
From: |
Chet Ramey |
Subject: |
Re: human-friendly ulimit values? |
Date: |
Thu, 29 Feb 2024 10:05:45 -0500 |
User-agent: |
Mozilla Thunderbird |
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 chet@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature