My LinuxSampler set-up was having odd crashes lately. Took a while to figure to they were caused by the OOM killer killing the process. (Granted, not weird if you only have 256MB of RAM…)
Quite annoying, I do not want that process to die (nor the “jackd” process).
After having stumbled upon this page about the OOM killer, I wrote this little script, which I run just after jackd and linuxsampler have set-up (as root of course).
It’ll write the value -17 (OOM_DISABLE) to /proc/<pid>/oom_adj for selected process-names and this ought to prevent the OOM killer from ever targeting that process.
Haven’t seen it crashing on me since — but of course, your mileage may very…

on
February 19th 2010 at 9:17 am in
no comments 








