linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Richard Jerrell <jerrell@missioncriticallinux.com>
To: Marcelo Tosatti <marcelo@conectiva.com.br>
Cc: Szabolcs Szakacsits <szaka@f-secure.com>, linux-mm@kvack.org
Subject: Re: [PATCH] Reclaim orphaned swap pages
Date: Wed, 4 Apr 2001 10:29:02 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.21.0104041025050.12558-100000@jerrell.lowell.mclinux.com> (raw)
In-Reply-To: <Pine.LNX.4.21.0104031910450.7175-100000@freak.distro.conectiva>

> But you should not count _all_ swapcache pages as freeable. 

I see what you mean now.  But still, swapcache pages are freeable.  If it
is still in the swapcache, then we still have space reserved on disk for
it.  If your page is being referenced by pte's, then eventually the
swapper will replace those pte's with a reference to the swap cell.  Then,
the swap cache page will be written to disk and reclaimed.  The pages are
not immediately freeable without any additional work, but they are there
because the page is able to be swapped out.  If you are trying to say we
can't count them because we don't know how much work it would take to free
that particular page, then why do we include buffermem pages in the total
of available memory.  We can't be guaranteed that those pages are
freeable, because block_flushpage might just leave them sitting around as
anonymous.  So, basically, I include the swap cache pages in the total
amount of free memory because they are taking up twice as much space as
they should be: one page on disk and one page in memory.

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-04 14:29 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
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 [this message]
  -- 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.0104041025050.12558-100000@jerrell.lowell.mclinux.com \
    --to=jerrell@missioncriticallinux.com \
    --cc=linux-mm@kvack.org \
    --cc=marcelo@conectiva.com.br \
    --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