Re: [Devel] [PATCH rh7 v2] mm/memcg: fix cache growth above cache.limit_in_bytes

2020-07-30 Thread Denis V. Lunev
On 7/30/20 6:57 PM, Evgenii Shatokhin wrote: > On 30.07.2020 17:00, Denis V. Lunev wrote: >> On 7/30/20 4:58 PM, Andrey Ryabinin wrote: >>> Exceeding cache above cache.limit_in_bytes schedules high_work_func() >>> which tries to reclaim 32 pages. If cache generated fast enough or >>> it allows >>>

Re: [Devel] [PATCH rh7 v2] mm/memcg: fix cache growth above cache.limit_in_bytes

2020-07-30 Thread Evgenii Shatokhin
On 30.07.2020 17:00, Denis V. Lunev wrote: On 7/30/20 4:58 PM, Andrey Ryabinin wrote: Exceeding cache above cache.limit_in_bytes schedules high_work_func() which tries to reclaim 32 pages. If cache generated fast enough or it allows cgroup to steadily grow above cache.limit_in_bytes because we

Re: [Devel] [PATCH rh7 v2] mm/memcg: fix cache growth above cache.limit_in_bytes

2020-07-30 Thread Denis V. Lunev
On 7/30/20 4:58 PM, Andrey Ryabinin wrote: > Exceeding cache above cache.limit_in_bytes schedules high_work_func() > which tries to reclaim 32 pages. If cache generated fast enough or it allows > cgroup to steadily grow above cache.limit_in_bytes because we don't reclaim > enough. Try to reclaim

[Devel] [PATCH rh7 v2] mm/memcg: fix cache growth above cache.limit_in_bytes

2020-07-30 Thread Andrey Ryabinin
Exceeding cache above cache.limit_in_bytes schedules high_work_func() which tries to reclaim 32 pages. If cache generated fast enough or it allows cgroup to steadily grow above cache.limit_in_bytes because we don't reclaim enough. Try to reclaim exceeded amount of cache instead.