Christopher Samuel <[email protected]> writes:

> In my Torque installs we (both here at VLSCI and in my previous job at
> VPAC) patch pbs_mom to set RLIMIT_AS rather than RLIMIT_DATA and that
> works very nicely on both sites as codes will have malloc() fail and
> can handle that gracefully rather than get brutally slayed by pbs_mom.
>
> Would a similar patch be of interest here too?

With the recent changes in glibc in how virtual memory is allocated for
threaded applications, limiting virtual memory usage for threaded
applications is IMO not a good idea.  (One example: our slurcltd has
allocated 16.1 GiB virtual memory, but is only using 104 MiB resident.)

I would suggest looking at cgroups for limiting memory usage.

-- 
Regards,
Bjørn-Helge Mevik, dr. scient,
Department for Research Computing, University of Oslo

Reply via email to