linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Mel Gorman <mel@csn.ul.ie>
To: "Raghu R. Arur" <rra2002@aria.ncl.cs.columbia.edu>
Cc: kernelnewbies@nl.linux.org, linux-mm@kvack.org
Subject: Re: removing clean mapped pages
Date: Wed, 13 Aug 2003 15:07:31 +0100 (IST)	[thread overview]
Message-ID: <Pine.LNX.4.53.0308131504470.12612@skynet> (raw)
In-Reply-To: <Pine.LNX.4.53.0308131143440.4904@skynet>

On Wed, 13 Aug 2003, Mel Gorman wrote:

> Freed in try_to_swap_out() . There is no need to do anything with a clean
> page, so it is just dropped from the page tables and page_cache_release()
> is called. When the reference reaches 0, the page is reclaimed
>

Bah, this is wrong, shouldn't be let near e-mail in the morning. The
freeing of a file-mapped page is actually two-stage.

try_to_swap_out() will unmap the file-backed page from a process page
table. Once there are no processes mapping the page, the only user in
page->count will be the page cache. It stays in the page cache until it is
reclaimed later by shrink_cache().

-- 
Mel Gorman
http://www.csn.ul.ie/~mel
--
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-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

      reply	other threads:[~2003-08-13 14:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-12 19:31 Raghu R. Arur
2003-08-12 19:42 ` Raghu R. Arur
2003-08-13 10:46   ` Mel Gorman
2003-08-13 14:07     ` Mel Gorman [this message]

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.53.0308131504470.12612@skynet \
    --to=mel@csn.ul.ie \
    --cc=kernelnewbies@nl.linux.org \
    --cc=linux-mm@kvack.org \
    --cc=rra2002@aria.ncl.cs.columbia.edu \
    /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