Messages in this thread | | | Date | Thu, 10 Nov 2022 15:42:43 +0100 | From | Michal Koutný <> | Subject | Re: [PATCH] mm/memcontrol.c: drains percpu charge caches in memory.reclaim |
| |
Hello Jialin.
On Thu, Nov 10, 2022 at 02:53:16PM +0800, Lu Jialin <lujialin4@huawei.com> wrote: > When user use memory.reclaim to reclaim memory, after drain percpu lru > caches, drain percpu charge caches for given memcg stock in the hope > of introducing more evictable pages.
Do you have any data on materialization of this hope?
IIUC, the stock is useful for batched accounting to page_counter but it doesn't represent real pages. I.e. your change may reduce the page_counter value but it would not release any pages. Or have I missed a way how it helps with the reclaim?
Thanks, Michal [unhandled content-type:application/pgp-signature] | |