[clug] nice.... but for memory?

Peter Barker pbarker at barker.dropbear.id.au
Wed Jan 21 06:18:29 GMT 2004


On Wed, 21 Jan 2004, Andrew wrote:

>          Is it possible to limit the amount of memory a program (and its
> child processes) are allowed to use? (is there a wrapper that can be used?)

ulimit will allow you set various process limits.

But note that this is not very similar to "nice"; if something hits the
limit, it is almost certainly toast, rather than just being slowed-down.

>          Andrew.

Yours,
-- 
Peter Barker                          |   N    _--_|\ /---- Barham, Vic
Programmer,Sysadmin,Geek              | W + E /     /\
pbarker at barker.dropbear.id.au         |   S   \_,--?_*<-- Canberra
You need a bigger hammer.             |             v    [35S, 149E]
"They'll need a whole new Orwellian pseudo-crime-name for that... I
 suggest "digital molestation of kittens". -  Jeremi (14640) from Slashdot



More information about the linux mailing list