[torquedev] [PATCH] Change pbs_mom to set RLIMIT_AS instead of
RLIMIT_DATA for mem/pmem limits.
ake.sandgren at hpc2n.umu.se
Sat Jan 10 05:39:45 MST 2009
On Sat, 2009-01-10 at 23:00 +1100, Chris Samuel wrote:
> Hi folks,
> Attached are two patches (one against trunk, one against
> branches/2.3-fixes) to change pbs_mom to set RLIMIT_AS rather
> than RLIMIT_DATA for mem and pmem memory limits.
I think this is a bad idea.
vmem and pvmem can be mapped to RLIMIT_AS but mem and pmem can't.
If you set RLIMIT_AS for (p)mem then there is no way to use (p)vmem any
pmem is the memory usage, pvmem is the virtual memory usage. RLIMIT_AS
is virtual memory limit.
(p)mem limits must (currently) be enforced, if at all, by pbs_mom
through checking of actual usage.
Hopefully the kernel developers will someday make it possible to use
RLIMIT_RSS which is a much better mapping of (p)mem.
But at the moment RLIMIT_RSS is not used in the linux kernel.
Ake Sandgren, HPC2N, Umea University, S-90187 Umea, Sweden
Internet: ake at hpc2n.umu.se Phone: +46 90 7866134 Fax: +46 90 7866126
Mobile: +46 70 7716134 WWW: http://www.hpc2n.umu.se
More information about the torquedev