Skip to contentSkip to conversation

mm, slab: Extend slab/shrink to shrink all memcg caches

PATCH Superseded Waiman Long 1 participant 2 messages Jul 18, 2019 Memory management

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover mm, slab: Extend slab/shrink to shrink all memcg caches

v2:
- Just extend the shrink sysfs file to shrink all memcg caches without adding new semantics.
- Add a patch to report the time of the shrink operation.

This patchset enables the slab/shrink sysfs file to shrink all the memcg caches that are associated with the given root cache. The time of the shrink operation can now be read from the shrink file.

Waiman Long (2):
mm, slab: Extend slab/shrink to shrink all memcg caches mm, slab: Show last shrink time in us when slab/shrink is read

 Documentation/ABI/testing/sysfs-kernel-slab | 14 +++++---
 include/linux/slub_def.h                    |  1 +
 mm/slab.h                                   |  1 +
 mm/slab_common.c                            | 37 +++++++++++++++++++++
 mm/slub.c                                   | 14 +++++---
 5 files changed, 59 insertions(+), 8 deletions(-)
Signature · 1 line
2.18.1
#1 lore raw
Quoted 13 lines · Waiman Long

v2:
- Just extend the shrink sysfs file to shrink all memcg caches without adding new semantics.
- Add a patch to report the time of the shrink operation.

This patchset enables the slab/shrink sysfs file to shrink all the memcg caches that are associated with the given root cache. The time of the shrink operation can now be read from the shrink file.

Waiman Long (2):
mm, slab: Extend slab/shrink to shrink all memcg caches mm, slab: Show last shrink time in us when slab/shrink is read

Quoted 7 lines
 Documentation/ABI/testing/sysfs-kernel-slab | 14 +++++---
 include/linux/slub_def.h                    |  1 +
 mm/slab.h                                   |  1 +
 mm/slab_common.c                            | 37 +++++++++++++++++++++
 mm/slub.c                                   | 14 +++++---
 5 files changed, 59 insertions(+), 8 deletions(-)

Sorry, it is a mistake. Please ignore it.

-Longman