All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrea Arcangeli <andrea@suse.de>
To: Chris Friesen <cfriesen@nortel.com>
Cc: Helge Hafting <helge.hafting@aitel.hist.no>,
	John Sigler <linux.kernel@free.fr>,
	linux-kernel@vger.kernel.org
Subject: Re: Runaway process and oom-killer
Date: Wed, 13 Jun 2007 17:26:00 +0200	[thread overview]
Message-ID: <20070613152600.GH7443@v2.random> (raw)
In-Reply-To: <467008E9.7070902@nortel.com>

On Wed, Jun 13, 2007 at 09:10:33AM -0600, Chris Friesen wrote:
> Helge Hafting wrote:
> 
> >My guess:
> >Something needs memory but finds there is none to be had
> >oom-killer is invoked and targets myapp.
> >myapp takes some time to die. Particularly, the memory it uses
> >isn't freed up instantly.
> 
> Has anyone considered actually bumping up the priority of the task being 
> killed so that it gets to run and free up its resources in a timely manner?
> 
> We've done some experimenting with actually putting it in SCHED_RR and 
> it seems to help (in the case of other busy SCHED_RR tasks on the 
> system).  Admittedly we have an older kernel, so behaviour may be 
> different now.

Replacing the timeslice boost with sched-rr would probably be an ok
cleanup, but I'm unsure if it risks to break the other RT tasks
(especially when folks misuse a soft-RT design to do hard-RT work,
with userland drivers running with RT privilege mapping iommu
regions).

Most cpus goes idle as soon as the oom killer is entered so it
probably doesn't make much difference anyway. I didn't remove the
timeslice hack just because there wasn't any compelling reason to
remove it but it's probably not making much difference.

  reply	other threads:[~2007-06-13 15:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-13  8:49 Runaway process and oom-killer John Sigler
2007-06-13  9:08 ` Andrea Arcangeli
2007-06-13  9:20   ` John Sigler
2007-06-13 13:29     ` Helge Hafting
2007-06-13 15:10       ` Chris Friesen
2007-06-13 15:26         ` Andrea Arcangeli [this message]
2007-06-14 10:01         ` John Sigler
2007-06-14  9:43       ` John Sigler
2007-06-14 12:56         ` Helge Hafting

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070613152600.GH7443@v2.random \
    --to=andrea@suse.de \
    --cc=cfriesen@nortel.com \
    --cc=helge.hafting@aitel.hist.no \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux.kernel@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.