]> Git Repo - linux.git/commit
mm/page_owner: record timestamp and pid
authorLiam Mark <[email protected]>
Tue, 15 Dec 2020 03:04:49 +0000 (19:04 -0800)
committerLinus Torvalds <[email protected]>
Tue, 15 Dec 2020 20:13:38 +0000 (12:13 -0800)
commit9cc7e96aa846f9086431d6c2d33ff9ab42d72b2d
treeb88db2429adcfd9bb35b32c396a2e32ec2545e33
parent7fb7ab6d618a4dc7ea3f3eafc92388a35b4f8894
mm/page_owner: record timestamp and pid

Collect the time for each allocation recorded in page owner so that
allocation "surges" can be measured.

Record the pid for each allocation recorded in page owner so that the
source of allocation "surges" can be better identified.

The above is very useful when doing memory analysis.  On a crash for
example, we can get this information from kdump (or ramdump) and parse it
to figure out memory allocation problems.

Please note that on x86_64 this increases the size of struct page_owner
from 16 bytes to 32.

Vlastimil: it's not a functionality intended for production, so unless
somebody says they need to enable page_owner for debugging and this
increase prevents them from fitting into available memory, let's not
complicate things with making this optional.

[[email protected]: v3]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Liam Mark <[email protected]>
Signed-off-by: Georgi Djakov <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Acked-by: Joonsoo Kim <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Documentation/vm/page_owner.rst
mm/page_owner.c
This page took 0.053317 seconds and 4 git commands to generate.