dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* drm/ttm: port ttm pools to NUMA aware lru_list
@ 2025-06-05  6:08 Dave Airlie
  0 siblings, 0 replies; 3+ messages in thread
From: Dave Airlie @ 2025-06-05  6:08 UTC (permalink / raw)
  To: dri-devel; +Cc: Christian Koenig, Matthew Brost

This is a bit of a tangent before continuing the tangent that is memcg aware pools.

The pools code is already NUMA aware, but it rolls it's own numa awareness, and
in order to move towards memcg awareness, I think a first step is porting the pool
code to lru_list and making the current shrinker NUMA aware. Once this is done
then the next step should be to make the pools/shrinker memcg aware.

I've done light testing of this on a single node rx7900xt and a 4 node MI300A,
and it seems to operate the way I'd expect, but just wanted to get some feedback on
the idea and if anyone can spot any big problems with the strategy.

Thanks,
Dave.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* drm/ttm: port ttm pools to NUMA aware lru_list
@ 2025-06-05  6:19 Dave Airlie
  2025-06-05  8:34 ` Christian König
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Airlie @ 2025-06-05  6:19 UTC (permalink / raw)
  To: dri-devel; +Cc: Christian Koenig, Matthew Brost

(RH email ate this the first time).

This is a bit of a tangent before continuing the tangent that is memcg aware pools.

The pools code is already NUMA aware, but it rolls it's own numa awareness, and
in order to move towards memcg awareness, I think a first step is porting the pool
code to lru_list and making the current shrinker NUMA aware. Once this is done
then the next step should be to make the pools/shrinker memcg aware.

I've done light testing of this on a single node rx7900xt and a 4 node MI300A,
and it seems to operate the way I'd expect, but just wanted to get some feedback on
the idea and if anyone can spot any big problems with the strategy.

Thanks,
Dave.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: drm/ttm: port ttm pools to NUMA aware lru_list
  2025-06-05  6:19 Dave Airlie
@ 2025-06-05  8:34 ` Christian König
  0 siblings, 0 replies; 3+ messages in thread
From: Christian König @ 2025-06-05  8:34 UTC (permalink / raw)
  To: Dave Airlie, dri-devel; +Cc: Matthew Brost

On 6/5/25 08:19, Dave Airlie wrote:
> (RH email ate this the first time).
> 
> This is a bit of a tangent before continuing the tangent that is memcg aware pools.
> 
> The pools code is already NUMA aware, but it rolls it's own numa awareness, and
> in order to move towards memcg awareness, I think a first step is porting the pool
> code to lru_list and making the current shrinker NUMA aware. Once this is done
> then the next step should be to make the pools/shrinker memcg aware.
> 
> I've done light testing of this on a single node rx7900xt and a 4 node MI300A,
> and it seems to operate the way I'd expect, but just wanted to get some feedback on
> the idea and if anyone can spot any big problems with the strategy.

Since the list_lru_add requires the RCU look I think we can also nuke the spinlock protection since the LRU is self protected, isn't it?

Except for that and a few style nit picks it looks absolutely sane to me.

Regards,
Christian.

> 
> Thanks,
> Dave.
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-06-05  8:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-05  6:08 drm/ttm: port ttm pools to NUMA aware lru_list Dave Airlie
  -- strict thread matches above, loose matches on Subject: below --
2025-06-05  6:19 Dave Airlie
2025-06-05  8:34 ` Christian König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).