Re: [PATCH] memcg: drain obj stock on cpu hotplug teardown
From: Shakeel Butt
Date: Tue Mar 11 2025 - 13:43:59 EST
On Tue, Mar 11, 2025 at 04:28:15PM +0000, Roman Gushchin wrote:
[...]
> >
> > Anyways I wanted a simple fix for the backports and in parallel I am
> > working on cleaning up all the stock functions as I plan to add multi
> > memcg support.
>
> Really curious to see patches/more details here, I have some ideas here
> as well (nothing materialized yet though).
>
My eventual goal is to add support for multi memcg stock to solve the
charging cost of incoming networking traffic in multi-tenant
environment. In the cleanups my plan is to reduce the number of irq
disable operations in the most common paths and explore if for task
context we can do without any irq disabling operation (possibly by
separate stocks for in_task and !in_task contexts).