Re: [PATCH v2 10/12] mm: Iterate only over charged shrinkers during memcg shrink_slab()

2018-04-22 Thread Vladimir Davydov
On Tue, Apr 17, 2018 at 09:54:34PM +0300, Kirill Tkhai wrote: > Using the preparations made in previous patches, in case of memcg > shrink, we may avoid shrinkers, which are not set in memcg's shrinkers > bitmap. To do that, we separate iterations over memcg-aware and > !memcg-aware shrinkers, and

Re: [PATCH v2 10/12] mm: Iterate only over charged shrinkers during memcg shrink_slab()

2018-04-22 Thread Vladimir Davydov
On Tue, Apr 17, 2018 at 09:54:34PM +0300, Kirill Tkhai wrote: > Using the preparations made in previous patches, in case of memcg > shrink, we may avoid shrinkers, which are not set in memcg's shrinkers > bitmap. To do that, we separate iterations over memcg-aware and > !memcg-aware shrinkers, and

[PATCH v2 10/12] mm: Iterate only over charged shrinkers during memcg shrink_slab()

2018-04-17 Thread Kirill Tkhai
Using the preparations made in previous patches, in case of memcg shrink, we may avoid shrinkers, which are not set in memcg's shrinkers bitmap. To do that, we separate iterations over memcg-aware and !memcg-aware shrinkers, and memcg-aware shrinkers are chosen via for_each_set_bit() from the

[PATCH v2 10/12] mm: Iterate only over charged shrinkers during memcg shrink_slab()

2018-04-17 Thread Kirill Tkhai
Using the preparations made in previous patches, in case of memcg shrink, we may avoid shrinkers, which are not set in memcg's shrinkers bitmap. To do that, we separate iterations over memcg-aware and !memcg-aware shrinkers, and memcg-aware shrinkers are chosen via for_each_set_bit() from the