mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "John Stoffel" <stoffel@lucent.com>
To: Hugh Dickins <hugh@veritas.com>
Cc: John Stoffel <stoffel@lucent.com>, Andrew Morton <akpm@osdl.org>,
	<linux-kernel@vger.kernel.org>
Subject: Re: 2.6.5-rc2-mm1 - swapoff dies with OOM, why?
Date: Mon, 29 Mar 2004 17:02:05 -0500	[thread overview]
Message-ID: <16488.40157.474575.545711@gargle.gargle.HOWL> (raw)
In-Reply-To: <Pine.LNX.4.44.0403291708001.18667-100000@localhost.localdomain>

>>>>> "Hugh" == Hugh Dickins <hugh@veritas.com> writes:

Hugh> On Mon, 29 Mar 2004, John Stoffel wrote:
>> 
>> I'm still wondering why swapoff dies though.  Shouldn't it complete,
>> or at least have some way *to* complete if needed?  I realize, with a
>> memory leak in the filesystem, it's a hard thing to deal with.  

Hugh> If there's not enough freeable memory for what's out on swap,
Hugh> swapoff cannot very well complete.  Either it can hang while
Hugh> other processes get killed by the OOM killer once swapoff has
Hugh> filled memory (as 2.4), until there's enough memory free to take
Hugh> in what's still needed from swap; or the OOM killer can kill it
Hugh> off (as 2.6).  I much prefer the 2.6 behaviour - unlike many
Hugh> processes, swapoff can safely be restarted.  So the admin can
Hugh> then choose what else to kill, or add replacement swap, then try
Hugh> the original swapoff again.

But in this case, there was no way to force the turning off of swap,
since the ext3 bug in 2.6.5-rc2-mm1 had filled the cache, and wasn't
going away.  Is this right?  

I wonder if there's a way to tell swap to 'go away when you can, don't
allow more swap (kill new requests), and generally work on pushing
stuff back to memory, or other swap partitions.'

This doesn't have to be the default, but it would be nice to have a
big hammer to beat on the system at times.

Thanks for the feedback Hugh, I do appreciate it.

John

  reply	other threads:[~2004-03-29 22:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-29  2:38 John Stoffel
2004-03-29  4:12 ` Andrew Morton
2004-03-29 15:02   ` John Stoffel
2004-03-29 16:18     ` Hugh Dickins
2004-03-29 22:02       ` John Stoffel [this message]
2004-03-29 22:34         ` Hugh Dickins
2004-03-29  7:58 ` Felipe Alfaro Solana

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=16488.40157.474575.545711@gargle.gargle.HOWL \
    --to=stoffel@lucent.com \
    --cc=akpm@osdl.org \
    --cc=hugh@veritas.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®