Tell me more ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I want to limit the memory and cpu a process can use, because it is overloading my PC.

I open a terminal, run ulimit -v 4192000, run the process, open another terminal and run cpulimit -p pid_of_the_process -l 50.

Well... first the cpu limit isn't working, it reaches peaks of 90% or even 100% on random cores (I have four). And second, when the terminal where I launched the process reaches the 4 GB of memory, the process gets killed instead of keep running with 4 GB.

share|improve this question
2  
The RAM behavior is expected. What do you expect the program to do when it needs more RAM but it's not available? I would use nice for the CPU limiting. – jordanm Feb 24 at 18:51

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.