From: "Stephen C. Tweedie" <sct@redhat.com>
To: pnilesh@in.ibm.com
Cc: "Stephen C. Tweedie" <sct@redhat.com>, linux-mm@kvack.org
Subject: Re: how text page of executable are shared ?
Date: Wed, 29 Mar 2000 14:49:45 +0100 [thread overview]
Message-ID: <20000329144945.B21920@redhat.com> (raw)
In-Reply-To: <CA2568B1.002BB512.00@d73mta05.au.ibm.com>; from pnilesh@in.ibm.com on Wed, Mar 29, 2000 at 01:16:37PM +0530
Hi,
On Wed, Mar 29, 2000 at 01:16:37PM +0530, pnilesh@in.ibm.com wrote:
>
> So when no process is pointing to a page in page cache the count will be
> one.
> But what is the difference if we have this to zero any way it is not being
> refernced by any process.
> Or can we have a page cache entry with page count as zero ?
Pages are returned to the system free list as soon as the count reaches
zero. The swapper does not do that, though: swapped pages are always
entered into the page cache through the swap cache mechanism, and are
finally freed from there.
> Also all the pages which are present in the memory for any process will
> also be part of the page hash queue and if they belong to a file then they
> will also be on the inode queue.
No, anonymous data pages are not usually in the page cache at all. They
only ever lie in the page cache if there is swapping going on (the VM
effectively treats swapping as a forced mmap() of a page of swap).
--Stephen
--
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/
next prev parent reply other threads:[~2000-03-29 13:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-29 7:46 pnilesh
2000-03-29 13:49 ` Stephen C. Tweedie [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-03-28 3:51 pnilesh
2000-03-28 13:22 ` Stephen C. Tweedie
2000-03-28 15:58 ` Mark Hahn
2000-03-28 18:10 ` Andrea Arcangeli
2000-03-29 1:01 ` Stephen C. Tweedie
2000-03-29 1:59 ` Kanoj Sarcar
2000-03-29 5:21 ` Andrew Morton
2000-03-29 13:45 ` Stephen C. 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=20000329144945.B21920@redhat.com \
--to=sct@redhat.com \
--cc=linux-mm@kvack.org \
--cc=pnilesh@in.ibm.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