]> www.infradead.org Git - users/dwmw2/linux.git/commit
mm/ksm: add pages scanned metric
authorStefan Roesch <shr@devkernel.io>
Fri, 11 Aug 2023 19:36:55 +0000 (12:36 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 21 Aug 2023 20:38:02 +0000 (13:38 -0700)
commitb348b5fe2b5f14ac8bb64fe271d7a027db8cc674
treecf5763397ef785757026521d9014225da3b483a8
parent0790e1e2b1b71ba357e89e779451efe79dff28e6
mm/ksm: add pages scanned metric

ksm currently maintains several statistics, which let you determine how
successful KSM is at sharing pages.  However it does not contain a metric
to determine how much work it does.

This commit adds the pages scanned metric.  This allows the administrator
to determine how many pages have been scanned over a period of time.

Link: https://lkml.kernel.org/r/20230811193655.2518943-1-shr@devkernel.io
Signed-off-by: Stefan Roesch <shr@devkernel.io>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Rik van Riel <riel@surriel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/admin-guide/mm/ksm.rst
mm/ksm.c