Skip to content

refine and rename slub sysfs

Wei Yang linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6mm/slub: add total_objects_partial sysfsmm/slub.c+7 -01 reply
2/6mm/slub: not include cpu_partial data in cpu_slabs sysfsmm/slub.c+0 -130 replies
3/6mm/slub: add cpu_slabs_[total_]objects sysfsmm/slub.c+14 -00 replies
4/6mm/slub: rename ALL slabs sysfsmm/slub.c+6 -60 replies
5/6mm/slub: rename partial_slabs sysfsmm/slub.c+9 -90 replies
6/6mm/slub: rename cpu_partial_slab sysfsmm/slub.c+3 -30 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchChristoph Lameter
1/6A-b
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] refine and rename slub sysfs

This patch serial could be divided into two parts.

First three patches refine and adds slab sysfs.
Second three patches rename slab sysfs.

1. Refine slab sysfs

There are four level slabs:

CPU
CPU_PARTIAL
PARTIAL
FULL

And in sysfs, it use show_slab_objects() and cpu_partial_slabs_show() to reflect the statistics.

In patch 2, it splits some function in show_slab_objects() which makes sure only cpu_partial_slabs_show() covers statistics for CPU_PARTIAL slabs.

After doing so, it would be more clear that show_slab_objects() has totally 9 statistic combinations for three level of slabs. Each slab has three cases statistic.

slabs
objects
total_objects

And when we look at current implementation, some of them are missing. So patch 2 & 3 add them up.

2. Rename sysfs

The slab statistics in sysfs are

slabs
objects
total_objects
cpu_slabs
partial
partial_objects
cpu_partial_slabs

which is a little bit hard for users to understand. The second three patches rename sysfs file in this pattern.

    xxx_slabs[[_total]_objects]

Finally it looks Like

slabs
slabs_objects
slabs_total_objects
cpu_slabs
cpu_slabs_objects
cpu_slabs_total_objects
partial_slabs
partial_slabs_objects
partial_slabs_total_objects
cpu_partial_slabs

Wei Yang (6):
mm/slub: add total_objects_partial sysfs mm/slub: not include cpu_partial data in cpu_slabs sysfs mm/slub: add cpu_slabs_[total_]objects sysfs mm/slub: rename ALL slabs sysfs
mm/slub: rename partial_slabs sysfs
mm/slub: rename cpu_partial_slab sysfs

 mm/slub.c | 64 +++++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 36 insertions(+), 28 deletions(-)
Signature · 7 lines
2.11.0

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>