[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.0910291206480.27732@chino.kir.corp.google.com>
Date: Thu, 29 Oct 2009 12:10:48 -0700 (PDT)
From: David Rientjes <rientjes@...gle.com>
To: Juan Miscaro <jmiscaro@...il.com>
cc: linux-kernel@...r.kernel.org
Subject: Re: How to immunize a process from the OOM Killer
On Thu, 29 Oct 2009, Juan Miscaro wrote:
> Hi, I'm running 2.6.24 on Ubuntu.
>
> I've got a OOM Killer gone wild. I have plenty of free memory (over
> 40 GB) and lots of processes are being murdered. Anyway, I would like
> to first prevent a few processes from being killed in the hopes of
> buying me time (users can work) to discover why the killer is being
> invoked in the first place.
>
> I've read in a few places [1] that in order to immunize a process you
> need to modify the value of /proc/PID/oom_adj. Thing is, such files
> cannot be edited directly. How do I achieve my goal?
>
You need to do it as the superuser:
$ sudo su
# echo -17 > /proc/pid/oom_adj
or
sudo sh -c "echo -17 > /proc/pid/oom_adj"
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists