* question related page frame reclaim on embedded system
@ 2008-12-02 11:33 peter meng
2008-12-02 11:40 ` KOSAKI Motohiro
0 siblings, 1 reply; 6+ messages in thread
From: peter meng @ 2008-12-02 11:33 UTC (permalink / raw)
To: linux-kernel
Hi
1, I have a question related page frame reclaim .
As i understood , under low memory pressure page frame reclaiming will
swap Least Recently Used cache to disk .
So my question is assume no swap space ,how to works ?
Whether the Least Recently Used slab cache , inode cache etc will
be discard since no swap space .
2. BTW ,I have already used my gmail account subscribe the linux kernel mail list .but can not post the question to mail list , i used plain text format .
why ? I have seen many people use account of gmail to post question .
Thanks advanced .
Best Regards .
Peter Meng
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: question related page frame reclaim on embedded system
2008-12-02 11:33 question related page frame reclaim on embedded system peter meng
@ 2008-12-02 11:40 ` KOSAKI Motohiro
2008-12-03 1:30 ` peter meng
0 siblings, 1 reply; 6+ messages in thread
From: KOSAKI Motohiro @ 2008-12-02 11:40 UTC (permalink / raw)
To: mengsanshui; +Cc: kosaki.motohiro, linux-kernel
> 1, I have a question related page frame reclaim .
> As i understood , under low memory pressure page frame reclaiming will
> swap Least Recently Used cache to disk .
> So my question is assume no swap space ,how to works ?
> Whether the Least Recently Used slab cache , inode cache etc will
> be discard since no swap space .
Yes, page cache and slab cache (include inode cache and dentry cache) can be dropped
although no swap.
> 2. BTW ,I have already used my gmail account subscribe the linux kernel mail list .but can not post the question to mail list , i used plain text format .
> why ? I have seen many people use account of gmail to post question .
I don't know.
I can post by gmail.
But, One caution.
gmail web interface is a bit silly. it can't post patch because
it trim tab and space.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: question related page frame reclaim on embedded system
2008-12-02 11:40 ` KOSAKI Motohiro
@ 2008-12-03 1:30 ` peter meng
2008-12-03 1:48 ` KOSAKI Motohiro
0 siblings, 1 reply; 6+ messages in thread
From: peter meng @ 2008-12-03 1:30 UTC (permalink / raw)
To: KOSAKI Motohiro; +Cc: linux-kernel
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 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 ?
Thanks advanced
Best Regards.
Peter Meng
--- On Tue, 12/2/08, KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> wrote:
> From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
> Subject: Re: question related page frame reclaim on embedded system
> To: mengsanshui@yahoo.com.cn
> Cc: kosaki.motohiro@jp.fujitsu.com, linux-kernel@vger.kernel.org
> Date: Tuesday, December 2, 2008, 7:40 PM
> > 1, I have a question related page frame reclaim .
> > As i understood , under low memory pressure page frame
> reclaiming will
> > swap Least Recently Used cache to disk .
> > So my question is assume no swap space ,how to works ?
> > Whether the Least Recently Used slab cache , inode
> cache etc will
> > be discard since no swap space .
>
> Yes, page cache and slab cache (include inode cache and
> dentry cache) can be dropped
> although no swap.
>
>
> > 2. BTW ,I have already used my gmail account subscribe
> the linux kernel mail list .but can not post the question to
> mail list , i used plain text format .
> > why ? I have seen many people use account of gmail to
> post question .
>
> I don't know.
> I can post by gmail.
>
> But, One caution.
> gmail web interface is a bit silly. it can't post patch
> because
> it trim tab and space.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: question related page frame reclaim on embedded system
2008-12-03 1:30 ` peter meng
@ 2008-12-03 1:48 ` KOSAKI Motohiro
2008-12-04 9:56 ` peter meng
0 siblings, 1 reply; 6+ messages in thread
From: KOSAKI Motohiro @ 2008-12-03 1:48 UTC (permalink / raw)
To: mengsanshui; +Cc: kosaki.motohiro, linux-kernel
>
> 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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: question related page frame reclaim on embedded system
2008-12-03 1:48 ` KOSAKI Motohiro
@ 2008-12-04 9:56 ` peter meng
2008-12-04 10:16 ` KOSAKI Motohiro
0 siblings, 1 reply; 6+ messages in thread
From: peter meng @ 2008-12-04 9:56 UTC (permalink / raw)
To: KOSAKI Motohiro; +Cc: linux-kernel
Hi,Kosaki
1. what happens if used IPC share memory ?
As i knew IPC share memory use anonymous mapping ,but not sure my understand is correctly .
Thanks advanced .
Best Regards.
Peter
--- On Wed, 12/3/08, KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> wrote:
> From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
> Subject: Re: question related page frame reclaim on embedded system
> To: mengsanshui@yahoo.com.cn
> Cc: kosaki.motohiro@jp.fujitsu.com, linux-kernel@vger.kernel.org
> Date: Wednesday, December 3, 2008, 9:48 AM
> >
> > 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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: question related page frame reclaim on embedded system
2008-12-04 9:56 ` peter meng
@ 2008-12-04 10:16 ` KOSAKI Motohiro
0 siblings, 0 replies; 6+ messages in thread
From: KOSAKI Motohiro @ 2008-12-04 10:16 UTC (permalink / raw)
To: mengsanshui; +Cc: kosaki.motohiro, linux-kernel
> Hi,Kosaki
>
> 1. what happens if used IPC share memory ?
> As i knew IPC share memory use anonymous mapping ,but not sure my understand is correctly .
Yes.
if you don't free IPC share memory, it remain on the system until reboot.
>
> Thanks advanced .
> Best Regards.
> Peter
>
>
> --- On Wed, 12/3/08, KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> wrote:
>
> > From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
> > Subject: Re: question related page frame reclaim on embedded system
> > To: mengsanshui@yahoo.com.cn
> > Cc: kosaki.motohiro@jp.fujitsu.com, linux-kernel@vger.kernel.org
> > Date: Wednesday, December 3, 2008, 9:48 AM
> > >
> > > 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.
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-12-04 10:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-02 11:33 question related page frame reclaim on embedded system peter meng
2008-12-02 11:40 ` KOSAKI Motohiro
2008-12-03 1:30 ` peter meng
2008-12-03 1:48 ` KOSAKI Motohiro
2008-12-04 9:56 ` peter meng
2008-12-04 10:16 ` KOSAKI Motohiro
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®