linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Richard Jerrell <jerrell@missioncriticallinux.com>
To: Szabolcs Szakacsits <szaka@f-secure.com>
Cc: linux-mm@kvack.org
Subject: Re: [PATCH] Reclaim orphaned swap pages
Date: Mon, 2 Apr 2001 14:40:14 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.21.0104021430160.12558-100000@jerrell.lowell.mclinux.com> (raw)
In-Reply-To: <Pine.LNX.4.30.0104021952000.406-100000@fs131-224.f-secure.com>

> Actually if vm_enough_memory fails that prevents oom, apps get ENOMEM
> instead of killed by oom_kill later. Moreover vm_enough_memory is long
> different and apparently it's just overestimating free pages that makes
> people unhappy with the resulted higher oom_kill/ENOMEM rate. If you

That's not really what I'm getting at.  Currently if you run a memory
intensive application, quit after it's pages are on an lru, and try to
restart, you won't be able to get the memory.  This is because pages which
are sitting around in the swap cache are not counted as free, and they
should be, because they are freeable.  So the patch isn't to prevent the
oom killer from terminating your processes, it's to prevent the temporary
memory leak from making your system think it is low on memory when it
really isn't.  When vm_enough_memory says you can get the amount you
request, when you fault on those pages you can trigger the swapper,
launder, and reclaimer.  That will free up the pages bound to the swap
cache that no one cares about and you will get your memory.  If you don't
modify vm_enough_memory, you aren't going to get those pages back until
you happen to trigger the swapping code again.

Rich

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

  reply	other threads:[~2001-04-02 18:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-02 18:17 Szabolcs Szakacsits
2001-04-02 18:40 ` Richard Jerrell [this message]
2001-04-02 18:40   ` Szabolcs Szakacsits
2001-04-03  0:19   ` Marcelo Tosatti
2001-04-03 13:27     ` Richard Jerrell
2001-04-03 22:11       ` Marcelo Tosatti
2001-04-04 14:29         ` Richard Jerrell
  -- strict thread matches above, loose matches on Subject: below --
2001-04-02 15:17 Richard Jerrell
2001-03-31 22:46 Bulent Abali
2001-03-28 22:59 Stephen Tweedie
2001-03-30 19:59 ` Patrick O'Rourke
2001-03-30 22:16 ` Rik van Riel
2001-04-04 21:59   ` Stephen Tweedie

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=Pine.LNX.4.21.0104021430160.12558-100000@jerrell.lowell.mclinux.com \
    --to=jerrell@missioncriticallinux.com \
    --cc=linux-mm@kvack.org \
    --cc=szaka@f-secure.com \
    /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