Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

What i need from my computer, now that it's summer at least, should never use a lot of resources - when applications do so it's because of some kind of bug or memory leak.

Is there any way to automatically kill any application that uses, for example, more than 15% of the CPU or more than 450 mbs of RAM?

I would like to use this trick, if it's possible, at either 11.04 or 11.10.

share|improve this question
2  
Honestly, this just sounds like a bad idea. –  user606723 Jul 23 '11 at 3:01
    
Why? It is dangerous, most probably, but not a bad idea if one uses it correctly. It's definitely better than having a strange leak on one of chrome's pages cause the fans of the notebook to start attacking my ears without showing mercy :D –  Chriskin Jul 23 '11 at 3:18
    
I agree: bad idea. The fans going crazy is far more better option than killing random processes. What if you kill X? Or worse... kill something that is writing to disc? Would fixing the memory leak or the bug not be a lot saner? >:) –  Rinzwind Jul 23 '11 at 13:13
    
Ok there, any way to do this for certain apps only? chrome/compiz/unity for example? As for "fixing the bug" , i like testing the latest releases of each application - from the time i report a memory leak to the time it is fixed and my application updated , my head will probably explode. –  Chriskin Jul 23 '11 at 17:03

1 Answer 1

up vote 0 down vote accepted

If I were worried about high cpu usage I would do what supercomputer admins do and use cpulimit also stay away from the main offenders, continually updating websites,flash and coverting or watching video and things should stay fairly stable.

Hope this helps.

share|improve this answer
    
I would prefer it if they were killed (unity and compiz restart when they are killed and chrome processes only take their tab down with them) but it seems (from the comments above) that doing something like that is somehow "not cool". Anyway, this idea can become an alternative that is probably worth the compromise, thanks. –  Chriskin Jul 23 '11 at 22:19

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.