* What does the PG_swapbacked of page flags actually mean?
@ 2013-02-20 10:43 common An
2013-02-20 10:44 ` common An
2013-02-21 2:25 ` common An
0 siblings, 2 replies; 3+ messages in thread
From: common An @ 2013-02-20 10:43 UTC (permalink / raw)
To: linux-kernel, linux-mm, linaro-kernel
[-- Attachment #1: Type: text/plain, Size: 443 bytes --]
PG_swapbacked is a bit for page->flags.
In kernel code, its comment is "page is backed by RAM/swap". But I couldn't
understand it.
1. Does the RAM mean DRAM? How page is backed by RAM?
2. When the page is page-out to swap file, the bit PG_swapbacked will be
set to demonstrate this page is backed by swap. Is it right?
3. In general, when will call SetPageSwapBacked() to set the bit?
Could anybody kindly explain for me?
Thanks very much.
[-- Attachment #2: Type: text/html, Size: 577 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* What does the PG_swapbacked of page flags actually mean?
2013-02-20 10:43 What does the PG_swapbacked of page flags actually mean? common An
@ 2013-02-20 10:44 ` common An
2013-02-21 2:25 ` common An
1 sibling, 0 replies; 3+ messages in thread
From: common An @ 2013-02-20 10:44 UTC (permalink / raw)
To: linux-kernel, linux-mm
PG_swapbacked is a bit for page->flags.
In kernel code, its comment is "page is backed by RAM/swap". But I couldn't
understand it.
1. Does the RAM mean DRAM? How page is backed by RAM?
2. When the page is page-out to swap file, the bit PG_swapbacked will be set
to demonstrate this page is backed by swap. Is it right?
3. In general, when will call SetPageSwapBacked() to set the bit?
Could anybody kindly explain for me?
Thanks very much.
--
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:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: What does the PG_swapbacked of page flags actually mean?
2013-02-20 10:43 What does the PG_swapbacked of page flags actually mean? common An
2013-02-20 10:44 ` common An
@ 2013-02-21 2:25 ` common An
1 sibling, 0 replies; 3+ messages in thread
From: common An @ 2013-02-21 2:25 UTC (permalink / raw)
To: linux-kernel, linux-mm, linaro-kernel, riel
On Wed, Feb 20, 2013 at 6:43 PM, common An <xx.kernel@gmail.com> wrote:
> PG_swapbacked is a bit for page->flags.
>
> In kernel code, its comment is "page is backed by RAM/swap". But I couldn't
> understand it.
> 1. Does the RAM mean DRAM? How page is backed by RAM?
> 2. When the page is page-out to swap file, the bit PG_swapbacked will be set
> to demonstrate this page is backed by swap. Is it right?
> 3. In general, when will call SetPageSwapBacked() to set the bit?
>From : http://www.gossamer-threads.com/lists/linux/kernel/840692#840692
Every anonymous, tmpfs or shared memory segment page is potentially
swap backed. That is the whole point of the PG_swapbacked flag.
A page from a filesystem like ext3 or NFS cannot suddenly turn into
a swap backed page. This page "nature" is not changed during the
lifetime of a page.
But, I am still a little confusing.
>
> Could anybody kindly explain for me?
>
> Thanks very much.
--
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:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-02-21 2:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-20 10:43 What does the PG_swapbacked of page flags actually mean? common An
2013-02-20 10:44 ` common An
2013-02-21 2:25 ` common An
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox