[Gllug] Forcing CPU and Mem limits on a process

Tethys tet at createservices.com
Fri Feb 11 17:25:05 UTC 2005


Joel Bernstein writes:

>If you call malloc() and there isn't enough available memory, malloc() will 
>return ENOMEM.

Only if /proc/sys/vm/overcommit_memory contains the value 1. Otherwise,
it may succeed, even when there isn't memory available. If that's the
case, you'll get an error when you actually try and use the memory, not
when it's allocated in the first place. I'm not sure how that would tie
in with resource limits specified with ulimit...

Tet
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list