aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShenghong Han <[email protected]>2022-03-24 18:08:56 -0700
committerLinus Torvalds <[email protected]>2022-03-24 19:06:44 -0700
commit57f2b54a937987847e666aaf56d207aa457adee6 (patch)
tree591ca00a536c66b21cc35061f1014596ccca4bfa
parent41ed64347b5db8f6c9359d4f87f768db1a83bd79 (diff)
Documentation/vm/page_owner.rst: update the documentation
Update the documentation of ``page_owner``. [[email protected]: small grammatical tweaks] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Shenghong Han <[email protected]> Cc: Jonathan Corbet <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: Georgi Djakov <[email protected]> Cc: Liam Mark <[email protected]> Cc: Tang Bin <[email protected]> Cc: Zhang Shengju <[email protected]> Cc: Zhenliang Wei <[email protected]> Cc: Xiaoming Ni <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--Documentation/vm/page_owner.rst23
1 files changed, 21 insertions, 2 deletions
diff --git a/Documentation/vm/page_owner.rst b/Documentation/vm/page_owner.rst
index 905555e3e483..6420097a1f7d 100644
--- a/Documentation/vm/page_owner.rst
+++ b/Documentation/vm/page_owner.rst
@@ -97,7 +97,7 @@ Usage
The ``page_owner_sort`` tool ignores ``PFN`` rows, puts the remaining rows
in buf, uses regexp to extract the page order value, counts the times
- and pages of buf, and finally sorts them according to the times.
+ and pages of buf, and finally sorts them according to the parameter(s).
See the result about who allocated each page
in the ``sorted_page_owner.txt``. General output::
@@ -107,4 +107,23 @@ Usage
// Detailed stack
By default, ``page_owner_sort`` is sorted according to the times of buf.
- If you want to sort by the pages nums of buf, use the ``-m`` parameter.
+ If you want to sort by the page nums of buf, use the ``-m`` parameter.
+ The detailed parameters are:
+
+ fundamental function:
+
+ Sort:
+ -a Sort by memory allocation time.
+ -m Sort by total memory.
+ -p Sort by pid.
+ -r Sort by memory release time.
+ -s Sort by stack trace.
+ -t Sort by times (default).
+
+ additional function:
+
+ Cull:
+ -c Cull by comparing stacktrace instead of total block.
+
+ Filter:
+ -f Filter out the information of blocks whose memory has not been released.