[PATCH 13/17] ttm/pool: enable memcg tracking and shrinker.

David Airlie airlied at redhat.com
Mon Jun 30 21:23:37 UTC 2025


On Mon, Jun 30, 2025 at 8:23 PM Christian König
<christian.koenig at amd.com> wrote:
>
> On 30.06.25 06:49, Dave Airlie wrote:
> > From: Dave Airlie <airlied at redhat.com>
> >
> > This enables all the backend code to use the list lru in memcg mode,
> > and set the shrinker to be memcg aware.
> >
> > It adds the loop case for when pooled pages end up being reparented
> > to a higher memcg group, that newer memcg can search for them there
> > and take them back.
>
> Again, this makes no sense at all and will break existing use cases.
>

This is the use case you raised as needing to work before:

Allocate a bunch of uncached pages to a child cgroup, destroying the
cgroup makes those uncached pages belong to the parent cgroup.
Create another child cgroup, and when it allocates uncached pages they
come from the parent cgroup first.

What existing use case will this break?

Dave.



More information about the dri-devel mailing list