Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 want to test that a process properly kills itself and restarts when it can't allocate needed memory. One idea I had was to start other memory-consuming processes and hope that OOM killer kills the process being tested, but:

1) this isn't quite the same;

2) it may kill other processes instead;

3) since this is an embedded system, I don't have any programs available except for the system under test and BusyBox.

Is there a more direct way to ensure that Linux won't allocate memory to a process?

share|improve this question
up vote 2 down vote accepted
ulimit -v amount_of_memory
share|improve this answer

Your Answer


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.