public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* tmpfs and the OOM killer
@ 2007-04-11  5:23 Pedro
  2007-04-11 19:48 ` Willy Tarreau
  0 siblings, 1 reply; 17+ messages in thread
From: Pedro @ 2007-04-11  5:23 UTC (permalink / raw)
  To: linux-kernel

  After suffering some days from a not|mis configured tmpfs,

  As the OOM killer is not Posix,

  Better than to kill processes would be to resize tmpfs, to use tmpfs empty 
space.

  I'm using kernel 2.6.20.4. If someone ask I'll send a test application.

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: tmpfs and the OOM killer
@ 2007-04-12  5:04 Al Boldi
  2007-04-12  5:39 ` Pedro
  0 siblings, 1 reply; 17+ messages in thread
From: Al Boldi @ 2007-04-12  5:04 UTC (permalink / raw)
  To: linux-kernel

Pedro wrote:
> On Wednesday 11 April 2007 16:48, Willy Tarreau wrote:
> > On Wed, Apr 11, 2007 at 02:23:31AM -0300, Pedro wrote:
> > >
> > >   As the OOM killer is not Posix,
> >
> > If you cannot control your application's memory usage, you'll have to
> > finely tune the overcommit_ratio.
>
>   2) How should an application be written to not be killed by OOM?


Try this:

# echo -17 > /proc/<pid>/oom_adj

Or this:

# echo 2 > /proc/sys/vm/overcommit_memory
# echo 95 > /proc/sys/vm/overcommit_ratio

Or this:

# ulimit -v [max vm]


Thanks, and good luck with the OOM killer!


--
Al


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2007-04-12 21:09 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-11  5:23 tmpfs and the OOM killer Pedro
2007-04-11 19:48 ` Willy Tarreau
2007-04-11 21:05   ` Mouawad, Tony
2007-04-11 22:27   ` Pedro
2007-04-11 22:39     ` Alan Cox
2007-04-12  5:19       ` Pedro
2007-04-12  9:42         ` Alan Cox
2007-04-12 15:08           ` Pedro
2007-04-12 11:25         ` Theodore Tso
2007-04-12 14:35           ` Pedro
2007-04-12 20:31             ` Willy Tarreau
2007-04-12 20:56               ` Mouawad, Tony
2007-04-12 21:09                 ` Willy Tarreau
2007-04-12  8:13   ` Jan Engelhardt
2007-04-12  8:19     ` Willy Tarreau
  -- strict thread matches above, loose matches on Subject: below --
2007-04-12  5:04 Al Boldi
2007-04-12  5:39 ` Pedro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox