Re: [PATCH RFC 00/12] dma: Enable dmem cgroup tracking

2025-04-07 Thread T.J. Mercier
On Mon, Apr 7, 2025 at 4:46 AM Christian König wrote: > > Am 05.04.25 um 03:57 schrieb T.J. Mercier: > > On Fri, Apr 4, 2025 at 1:47 AM Christian König > > wrote: > >> Hi Maxime, > >> > >> Am 03.04.25 um 17:47 schrieb Maxime Ripard: > >>> On Thu, Apr 03, 2025 at 09:39:52AM +0200, Christian König

Re: [PATCH RFC 00/12] dma: Enable dmem cgroup tracking

2025-04-07 Thread Christian König
Am 05.04.25 um 03:57 schrieb T.J. Mercier: > On Fri, Apr 4, 2025 at 1:47 AM Christian König > wrote: >> Hi Maxime, >> >> Am 03.04.25 um 17:47 schrieb Maxime Ripard: >>> On Thu, Apr 03, 2025 at 09:39:52AM +0200, Christian König wrote: > For the UMA GPU case where there is no device memory or e

Re: [PATCH RFC 00/12] dma: Enable dmem cgroup tracking

2025-04-05 Thread Dave Airlie
On Tue, 1 Apr 2025 at 21:03, Christian König wrote: > > Am 31.03.25 um 22:43 schrieb Dave Airlie: > > On Tue, 11 Mar 2025 at 00:26, Maxime Ripard wrote: > >> Hi, > >> > >> On Mon, Mar 10, 2025 at 03:16:53PM +0100, Christian König wrote: > >>> [Adding Ben since we are currently in the middle of a

Re: [PATCH RFC 00/12] dma: Enable dmem cgroup tracking

2025-04-05 Thread Maxime Ripard
On Thu, Apr 03, 2025 at 09:39:52AM +0200, Christian König wrote: > > For the UMA GPU case where there is no device memory or eviction > > problem, perhaps a configurable option to just say account memory in > > memcg for all allocations done by this process, and state yes you can > > work around it

Re: [PATCH RFC 00/12] dma: Enable dmem cgroup tracking

2025-04-04 Thread T.J. Mercier
On Fri, Apr 4, 2025 at 1:47 AM Christian König wrote: > > Hi Maxime, > > Am 03.04.25 um 17:47 schrieb Maxime Ripard: > > On Thu, Apr 03, 2025 at 09:39:52AM +0200, Christian König wrote: > >>> For the UMA GPU case where there is no device memory or eviction > >>> problem, perhaps a configurable opt

Re: [PATCH RFC 00/12] dma: Enable dmem cgroup tracking

2025-04-04 Thread Christian König
Hi Maxime, Am 03.04.25 um 17:47 schrieb Maxime Ripard: > On Thu, Apr 03, 2025 at 09:39:52AM +0200, Christian König wrote: >>> For the UMA GPU case where there is no device memory or eviction >>> problem, perhaps a configurable option to just say account memory in >>> memcg for all allocations done

Re: [PATCH RFC 00/12] dma: Enable dmem cgroup tracking

2025-04-03 Thread Simona Vetter
On Mon, Mar 10, 2025 at 01:06:06PM +0100, Maxime Ripard wrote: > Hi, > > Here's preliminary work to enable dmem tracking for heavy users of DMA > allocations on behalf of userspace: v4l2, DRM, and dma-buf heaps. > > It's not really meant for inclusion at the moment, because I really > don't like

Re: [PATCH RFC 00/12] dma: Enable dmem cgroup tracking

2025-04-03 Thread Christian König
Am 03.04.25 um 08:07 schrieb Dave Airlie: > On Tue, 1 Apr 2025 at 21:03, Christian König wrote: >> Am 31.03.25 um 22:43 schrieb Dave Airlie: >>> On Tue, 11 Mar 2025 at 00:26, Maxime Ripard wrote: Hi, On Mon, Mar 10, 2025 at 03:16:53PM +0100, Christian König wrote: > [Adding Ben

Re: [PATCH RFC 00/12] dma: Enable dmem cgroup tracking

2025-04-01 Thread Christian König
Am 31.03.25 um 22:43 schrieb Dave Airlie: > On Tue, 11 Mar 2025 at 00:26, Maxime Ripard wrote: >> Hi, >> >> On Mon, Mar 10, 2025 at 03:16:53PM +0100, Christian König wrote: >>> [Adding Ben since we are currently in the middle of a discussion >>> regarding exactly that problem] >>> >>> Just for my

Re: [PATCH RFC 00/12] dma: Enable dmem cgroup tracking

2025-03-31 Thread Dave Airlie
On Tue, 11 Mar 2025 at 00:26, Maxime Ripard wrote: > > Hi, > > On Mon, Mar 10, 2025 at 03:16:53PM +0100, Christian König wrote: > > [Adding Ben since we are currently in the middle of a discussion > > regarding exactly that problem] > > > > Just for my understanding before I deep dive into the cod

Re: [PATCH RFC 00/12] dma: Enable dmem cgroup tracking

2025-03-11 Thread Maxime Ripard
Hi, On Mon, Mar 10, 2025 at 03:16:53PM +0100, Christian König wrote: > [Adding Ben since we are currently in the middle of a discussion > regarding exactly that problem] > > Just for my understanding before I deep dive into the code: This uses > a separate dmem cgroup and does not account against

Re: [PATCH RFC 00/12] dma: Enable dmem cgroup tracking

2025-03-11 Thread Christian König
[Adding Ben since we are currently in the middle of a discussion regarding exactly that problem] Just for my understanding before I deep dive into the code: This uses a separate dmem cgroup and does not account against memcg, don't it? Thanks, Christian. Am 10.03.25 um 13:06 schrieb Maxime Rip

Re: [PATCH RFC 00/12] dma: Enable dmem cgroup tracking

2025-03-11 Thread Maxime Ripard
On Mon, Mar 10, 2025 at 01:06:06PM +0100, Maxime Ripard wrote: > Here's preliminary work to enable dmem tracking for heavy users of DMA > allocations on behalf of userspace: v4l2, DRM, and dma-buf heaps. > > It's not really meant for inclusion at the moment, because I really > don't like it that m

[PATCH RFC 00/12] dma: Enable dmem cgroup tracking

2025-03-10 Thread Maxime Ripard
Hi, Here's preliminary work to enable dmem tracking for heavy users of DMA allocations on behalf of userspace: v4l2, DRM, and dma-buf heaps. It's not really meant for inclusion at the moment, because I really don't like it that much, and would like to discuss solutions on how to make it nicer. I