Re: [PATCH v2 1/2] mm, slab: Extend slab/shrink to shrink all memcg caches

2019-07-19 Thread Waiman Long
On 7/19/19 2:20 AM, Michal Hocko wrote: > On Wed 17-07-19 16:24:12, Waiman Long wrote: >> Currently, a value of '1" is written to /sys/kernel/slab//shrink >> file to shrink the slab by flushing out all the per-cpu slabs and free >> slabs in partial lists. This can be useful to squeeze out a bit mor

Re: [PATCH v2 1/2] mm, slab: Extend slab/shrink to shrink all memcg caches

2019-07-18 Thread Michal Hocko
On Wed 17-07-19 16:24:12, Waiman Long wrote: > Currently, a value of '1" is written to /sys/kernel/slab//shrink > file to shrink the slab by flushing out all the per-cpu slabs and free > slabs in partial lists. This can be useful to squeeze out a bit more memory > under extreme condition as well as

Re: [PATCH v2 1/2] mm, slab: Extend slab/shrink to shrink all memcg caches

2019-07-18 Thread Roman Gushchin
On Thu, Jul 18, 2019 at 11:38:11AM +, Christopher Lameter wrote: > On Wed, 17 Jul 2019, Waiman Long wrote: > > > Currently, a value of '1" is written to /sys/kernel/slab//shrink > > file to shrink the slab by flushing out all the per-cpu slabs and free > > slabs in partial lists. This can be u

Re: [PATCH v2 1/2] mm, slab: Extend slab/shrink to shrink all memcg caches

2019-07-18 Thread Christopher Lameter
On Wed, 17 Jul 2019, Waiman Long wrote: > Currently, a value of '1" is written to /sys/kernel/slab//shrink > file to shrink the slab by flushing out all the per-cpu slabs and free > slabs in partial lists. This can be useful to squeeze out a bit more memory > under extreme condition as well as mak

[PATCH v2 1/2] mm, slab: Extend slab/shrink to shrink all memcg caches

2019-07-17 Thread Waiman Long
Currently, a value of '1" is written to /sys/kernel/slab//shrink file to shrink the slab by flushing out all the per-cpu slabs and free slabs in partial lists. This can be useful to squeeze out a bit more memory under extreme condition as well as making the active object counts in /proc/slabinfo mo