Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running several programs on my computer and under normal circumstances my RAM (2GB) and CPU power is sufficient. However it occurs that a single program suddenly turns the system permanently completely unresponsive (no alt+f1, no reisub) and I need to do a hard shut-down and loose data. I want to be secured against such a situation.

Preferably the system would be able to keep itself alive so that the user has control to close programs at any time (I remember in Ubuntu 9.10, the kernel killed processes that require too much RAM).

How can I set it up to allow no program to require more than ~75% of memory?

I tried ulimit -v 1500000 but it seemed not to help (maybe not persistent?) and I lost data again.

share|improve this question
Do you not have a swap? Sounds like you don't and you're hitting a hard limit on memory and things are just exploding. – Oli Aug 22 '13 at 13:35
I have equal amount of swap, but the issue happens so fast that I often can't notice it and find/close the program before it's too late. That's why I'm looking for/expecting safeguards on system level. – Freddi Schiller Aug 22 '13 at 15:32

Your Answer


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

Browse other questions tagged or ask your own question.