From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
To: mengsanshui@yahoo.com.cn
Cc: kosaki.motohiro@jp.fujitsu.com, linux-kernel@vger.kernel.org
Subject: Re: question related page frame reclaim on embedded system
Date: Wed, 3 Dec 2008 10:48:18 +0900 (JST) [thread overview]
Message-ID: <20081203103641.1D32.KOSAKI.MOTOHIRO@jp.fujitsu.com> (raw)
In-Reply-To: <816384.38683.qm@web15703.mail.cnb.yahoo.com>
>
> Hi,Kosaki
>
> Thank you very much .
> I have another question about share memory . Assume a process create a share memory ,
> seems the page that the process used can not be discard or swap out
No. Linux can swap out COW shared memory too. see swap cache related code.
Also, Linux can discard non-dirty and file mapped shared page.
but, yes.
Linux can't discart dirty or anonymous mapped page.
> when they are no longer used by any process or no swap space .
>
> 1.whether the maped page of the share memory is persistent in system until
> system restart ? if not how page frame reclaiming process it ?
No.
Linux manage page reference count.
forrk increment it. exit decrement it.
So, when process exiting, Linux can discard non used page immediately.
IOW, reclaim provide "page discard/swap although page is still used" mechanism.
next prev parent reply other threads:[~2008-12-03 1:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-02 11:33 peter meng
2008-12-02 11:40 ` KOSAKI Motohiro
2008-12-03 1:30 ` peter meng
2008-12-03 1:48 ` KOSAKI Motohiro [this message]
2008-12-04 9:56 ` peter meng
2008-12-04 10:16 ` KOSAKI Motohiro
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=20081203103641.1D32.KOSAKI.MOTOHIRO@jp.fujitsu.com \
--to=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mengsanshui@yahoo.com.cn \
/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
all inboxes | Powered by JetHome®