From: Harry Yoo <harry.yoo@oracle.com>
To: Vlastimil Babka <vbabka@suse.cz>,
Christoph Lameter <cl@linux.com>,
David Rientjes <rientjes@google.com>,
linux-mm@kvack.org
Cc: Harry Yoo <harry.yoo@oracle.com>
Subject: [RFC v1 0/2] slabinfo: sheaves statistics support
Date: Mon, 7 Apr 2025 13:18:08 +0900 [thread overview]
Message-ID: <20250407041810.13861-1-harry.yoo@oracle.com> (raw)
With this series, `slabinfo -r` now prints sheaves statistics (if enabled).
Written on top of slub-percpu-sheaves-v4r0 [1] branch.
Q1: Vlastimil, do you want to integrate this into the sheaves series or do
you want me to send it as a follow-up series after sheaves land mainline?
Q2: 'sheaf_swap' does not fit into the table because SLUB swaps sheaves both
at alloc and free. Probably split the counter?
[1] https://git.kernel.org/pub/scm/linux/kernel/git/vbabka/linux.git/log/?h=slub-percpu-sheaves-v4r0
$ sudo ./slabinfo -r maple_node
Slabcache: maple_node Aliases: 0 Order : 1 Objects: 8268
[... snip ...]
Slab Perf Counter Alloc Free %Al %Fr
----------------------------------------------
Fastpath 258760 5109 93 3
Slowpath 18205 126605 6 96
Page Alloc 903 520 0 0
Add partial 0 14600 0 11
Remove partial 3472 420 1 0
Cpu partial list 12235 16577 4 12
RemoteObj/SlabFrozen 0 5969 0 4
Total 276965 131714
Slab Sheaves Counter Alloc Free %Al %Fr %Fa
-------------------------------------------------------
Served from sheaves 1805673 580161 86 93 N/A
Sheaves refill 236384 N/A 13 N/A N/A
Sheaves alloc 3872 3794 0 0 N/A
Free to RCU sheaves N/A 1255815 N/A 68 0
Main sheaf flush N/A 0 N/A 0 N/A
Other sheaves flush N/A 265600 N/A 14 N/A
Slab Deactivation Occurrences %
-------------------------------------------
Slab full 0 0%
Slab empty 100 0%
Moved to head of partial list 0 0%
Moved to tail of partial list 0 0%
Deactivation bypass 16588 99%
Refilled from foreign frees 1595 9%
Node mismatch 0 0%
Harry Yoo (2):
mm/slab: add sheaves_enabled read-only sysfs file
tools/mm/slabinfo: add support for sheaves stats
mm/slub.c | 10 ++++++++
tools/mm/slabinfo.c | 62 +++++++++++++++++++++++++++++++++++++++++++--
2 files changed, 70 insertions(+), 2 deletions(-)
--
2.43.0
next reply other threads:[~2025-04-07 4:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-07 4:18 Harry Yoo [this message]
2025-04-07 4:18 ` [RFC v1 1/2] mm/slab: add sheaves_enabled read-only sysfs file Harry Yoo
2025-04-09 2:45 ` David Rientjes
2025-04-10 22:32 ` Harry Yoo
2025-04-23 14:24 ` Vlastimil Babka
2025-04-07 4:18 ` [RFC v1 2/2] tools/mm/slabinfo: add support for sheaves stats Harry Yoo
2025-04-07 4:37 ` [RFC v1 0/2] slabinfo: sheaves statistics support Harry Yoo
2025-04-23 14:28 ` Vlastimil Babka
2025-04-25 8:16 ` Harry Yoo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250407041810.13861-1-harry.yoo@oracle.com \
--to=harry.yoo@oracle.com \
--cc=cl@linux.com \
--cc=linux-mm@kvack.org \
--cc=rientjes@google.com \
--cc=vbabka@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox