[systemd-devel] MemoryLimit and MemorySoftLimit

Manuel Amador rudd-o at rudd-o.com
Mon Mar 26 03:05:50 PDT 2012


Yes, getrlimit.

yes, rlimit_as


On Monday, March 26, 2012 11:50:11 Albert Strasheim wrote:
> Hello
> 
> On Mon, Mar 26, 2012 at 11:44 AM, Manuel Amador <rudd-o at rudd-o.com> wrote:
> > memorylimit and memorysoftlimit can be determined using the ulimit system
> > call.
> 
> Do you mean getrlimit? man 2 ulimit on F16 says it's not implemented.
> If it's getrlimit, is it RLIMIT_AS?
> 
> > you cannot detect when you've hit the soft limit other than by getting a
> > NULL on malloc.
> 
> Thanks. I guess I could just duplicate this info with an environment
> variable or parameter passed to the process.
> 
> Regards
> 
> Albert
-- 
    Manuel Amador (Rudd-O)
    http://rudd-o.com/


More information about the systemd-devel mailing list