Re: [Devel] [PATCH vz9 v3] mm: per memory cgroup page cache limit

2023-01-24 Thread Alexander Atanasov
On 24.01.23 10:21, nb wrote: @@ -2260,9 +2263,16 @@ static bool consume_stock(struct mem_cgroup *memcg, unsigned int nr_pages)   local_lock_irqsave(&memcg_stock.stock_lock, flags);   stock = this_cpu_ptr(&memcg_stock); -    if (memcg == stock->cached && stock->nr_pages >= nr_pages) { -

Re: [Devel] [PATCH vz9 v3] mm: per memory cgroup page cache limit

2023-01-24 Thread nb
On 20.01.23 г. 14:39 ч., Alexander Atanasov wrote: From: Andrey Ryabinin Forward port feature: mm: per memory cgroup page cache limit. The original implementation consisted of these commits: commit 758d52e33a67 ("configs: Enable CONFIG_PAGE_EXTENSION") commit 741beaa93c89 ("mm: introduce pag