Skip to content

tools/vm/slabinfo: Add fragmentation output

Tobin C. Harding linux-mm lkml netdev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tools/vm/slabinfo: Order command line optionstools/vm/slabinfo.c+35 -350 replies
2/4tools/vm/slabinfo: Add partial slab listing to -Xtools/vm/slabinfo.c+28 -130 replies
3/4tools/vm/slabinfo: Add option to sort by partial slabstools/vm/slabinfo.c+7 -20 replies
4/4tools/vm/slabinfo: Add sorting info to help menutools/vm/slabinfo.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] tools/vm/slabinfo: Add fragmentation output

Hi,

During recent discussion on LKML over SLAB vs SLUB it was suggested by Jesper that it would be nice to have a tool to view the current fragmentation of the slab allocators. CC list for this set is taken from that thread.

For SLUB we have all the information for this already exposed by the kernel and also we have a userspace tool for displaying this info:

tools/vm/slabinfo.c

Extend slabinfo to improve the fragmentation information by enabling sorting of caches by number of partial slabs.

Also add cache list sorted in this manner to the output of slabinfo -X.

thanks,
Tobin.

Tobin C. Harding (4):
tools/vm/slabinfo: Order command line options tools/vm/slabinfo: Add partial slab listing to -X tools/vm/slabinfo: Add option to sort by partial slabs tools/vm/slabinfo: Add sorting info to help menu

 tools/vm/slabinfo.c | 118 ++++++++++++++++++++++++++------------------
 1 file changed, 70 insertions(+), 48 deletions(-)
Signature · 1 line
2.21.0