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: linux-mm@kvack.org
Subject: Re: do_wp_page
Date: Thu, 31 Jul 2003 11:35:49 +0100 (IST)	[thread overview]
Message-ID: <Pine.LNX.4.53.0307311131040.5476@skynet> (raw)
In-Reply-To: <Pine.GSO.4.51.0307301514240.8932@aria.ncl.cs.columbia.edu>

On Wed, 30 Jul 2003, Raghu R. Arur wrote:

>   In do_wp_page of 2.4.19 why is the rss value of  address space
> incremented only when the old_page ( the page on which the process faults
> due to write protection) is a reserved page.

The page been faulted is a copy-on-write page so it's shared between more
than one process. If the process had 10 pages present before the fault,
it'll still will have 10 pages after the fault so the rss is not updated.

If the PageReserved() is true, it's the system wide ZERO_PAGE (PG_reserved
is set at boot time) and as far as I know, the system wide zero page is
the only one that can be mapped into a process with that bit set. If you
look at do_no_page(), you'll see that the zero page is not accounted for
in the RSS. If a COW takes place on the zero page, the process will be
using one more page than it was previously so rss++.

-- 
Mel Gorman
--
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-07-31 10:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-30 19:14 do_wp_page Raghu R. Arur
2003-07-31 10:35 ` Mel Gorman [this message]
2003-07-31 10:43   ` do_wp_page Mel Gorman

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.0307311131040.5476@skynet \
    --to=mel@csn.ul.ie \
    --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