You are not logged in.
Is it possible to set ram limits on individual programs/processes?
Specifically, can you limit the about of ram gunzip uses whenever it is run?
dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)
Offline
Yes; see man setrlimit and ulimit description in man bash. But your gunzip will die after encountering the limit - is it desired effect?
Offline
That helps some, but the true desired effect is to do something similar to virtualizing memory -- I want to be able to say "process x is allowed to work within 512mb of memory," for example.
Thanks for the pointer on setrlimit... It does kill the process if it hits the hard limit? The man page sounds almost like it does what I want, but I guess not.
Last edited by mrbug (2008-09-29 00:25:57)
dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)
Offline