[torqueusers] Memory resource limits and rlimits on Linux
"Mgr. Šimon Tóth"
SimonT at mail.muni.cz
Mon Oct 18 09:54:18 MDT 2010
>>> b) In mom_set_limits(), various rlimits are set based on
>>> Torque resources:
>>> line 1352 and onwards:
>>> The mem and/or pmem resource causes the system limit RLIMIT_DATA
>>> to be set. Linux 2.6 IGNORES RLIMIT_DATA. Try it. I used the attached
>>> glom.c program, adding in appropriate setrlimit() calls. glom takes
>>> one integer argument, the amount of MiB to allocate.
>> Oh, if this is true, then this is definitely something the we all need
>> to look into.
>> I will try to allocate some time and test it myself and then report back.
>> Just to make sure, if mem/pmem/vmem/pvmem limits would be enforced
>> correctly (maybe not using rlimit but cgroups, or something else), would
>> that solve the issue for you?
> Yes, that would. I appreciate your taking time to look at it.
What I found is that RLIMIT_DATA doesn't apply to mmap (I have no idea
if it is a bug, or if it is intended).
One solution might be using cgroups.
I will post a new thread about this into the dev mailing list.
Mgr. Šimon Tóth
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3366 bytes
Desc: S/MIME Cryptographic Signature
Url : http://www.supercluster.org/pipermail/torqueusers/attachments/20101018/f0291d79/attachment.bin
More information about the torqueusers