tools: adding support for idle page tracking to tool
Subsystems (2)
PATCH 1/1 tools: adding support for idle page tracking to tool
Adding a new flag which will use the kernels's idle page tracking to mark pages idle. As the tool already prints the idle flag if set, subsequent runs will show which pages have been accessed since last run.
Signed-off-by Christian Hansen <[email protected]>
--- .../admin-guide/mm/idle_page_tracking.rst | 5 +++ tools/vm/page-types.c | 47 +++++++++++++++++++++- 2 files changed, 51 insertions(+), 1 deletion(-)
Documentation/admin-guide/mm/idle_page_tracking.rst +5 -0
@@ -65,6 +65,11 @@ workload one should: are not reclaimable, he or she can filter them out using ``/proc/kpageflags``. +The page-types tool in the tools/vm directory can be used to assist in this. +If the tool is run initially with the appropriate option, it will mark all the +queried pages as idle. Subsequent runs of the tool can then show which pages have +their idle flag cleared in the interim. + See :ref:`Documentation/admin-guide/mm/pagemap.rst <pagemap>` for more information about ``/proc/pid/pagemap``, ``/proc/kpageflags``, and ``/proc/kpagecgroup``.
tools/vm/page-types.c +46 -1
118 lines not on this page · raw message
Signature · 1 line
2.10.3.dirty