Re: [PATCH v3] mm: slowly shrink slabs with a relatively small number of objects

2018-09-07 Thread Michal Hocko
[Please make sure to CC Vladimir when modifying memcg kmem reclaim] On Wed 05-09-18 16:07:59, Roman Gushchin wrote: > Commit 9092c71bb724 ("mm: use sc->priority for slab shrink targets") > changed the way how the target slab pressure is calculated and > made it priority-based: > > delta = fre

[PATCH v3] mm: slowly shrink slabs with a relatively small number of objects

2018-09-05 Thread Roman Gushchin
Commit 9092c71bb724 ("mm: use sc->priority for slab shrink targets") changed the way how the target slab pressure is calculated and made it priority-based: delta = freeable >> priority; delta *= 4; do_div(delta, shrinker->seeks); The problem is that on a default priority (which is 12)