Thread (57 messages) 57 messages, 7 authors, 2015-07-31

Re: [PATCH -mm v9 7/8] proc: export idle flag via kpageflags

From: Andrew Morton <akpm@linux-foundation.org>
Date: 2015-07-21 23:35:06
Also in: cgroups, linux-mm, lkml

On Sun, 19 Jul 2015 15:31:16 +0300 Vladimir Davydov [off-list ref] wrote:
As noted by Minchan, a benefit of reading idle flag from
/proc/kpageflags is that one can easily filter dirty and/or unevictable
pages while estimating the size of unused memory.

Note that idle flag read from /proc/kpageflags may be stale in case the
page was accessed via a PTE, because it would be too costly to iterate
over all page mappings on each /proc/kpageflags read to provide an
up-to-date value. To make sure the flag is up-to-date one has to read
/proc/kpageidle first.
Is there any value in teaching the regular old page scanner to update
these flags?  If it's doing an rmap scan anyway...

--
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>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help