Re: [RFC PATCH 0/5] cgroup support for GPU devices

2019-05-07 Thread Johannes Weiner
On Wed, May 01, 2019 at 10:04:33AM -0400, Brian Welty wrote: > In containerized or virtualized environments, there is desire to have > controls in place for resources that can be consumed by users of a GPU > device. This RFC patch series proposes a framework for integrating > use of existing cgro

Re: [PATCH 09/11] drm, cgroup: Introduce lgpu as DRM cgroup resource

2020-02-20 Thread Johannes Weiner
On Fri, Feb 14, 2020 at 02:17:54PM -0500, Tejun Heo wrote: > Hello, Kenny, Daniel. > > (cc'ing Johannes) > > On Fri, Feb 14, 2020 at 01:51:32PM -0500, Kenny Ho wrote: > > On Fri, Feb 14, 2020 at 1:34 PM Daniel Vetter wrote: > > > > > > I think guidance from Tejun in previos discussions was prett

Re: [PATCH 09/11] drm, cgroup: Introduce lgpu as DRM cgroup resource

2020-02-20 Thread Johannes Weiner
On Fri, Feb 14, 2020 at 03:28:40PM -0500, Kenny Ho wrote: > On Fri, Feb 14, 2020 at 2:17 PM Tejun Heo wrote: > > Also, a rather trivial high level question. Is drm a good controller > > name given that other controller names are like cpu, memory, io? > > There was a discussion about naming early

Re: [PATCH 09/11] drm, cgroup: Introduce lgpu as DRM cgroup resource

2020-02-20 Thread Johannes Weiner
On Wed, Feb 19, 2020 at 11:28:48AM -0500, Kenny Ho wrote: > On Wed, Feb 19, 2020 at 11:18 AM Johannes Weiner wrote: > > > > Yes, I'd go with absolute units when it comes to memory, because it's > > not a renewable resource like CPU and IO, and so we do have cli

Re: [PATCH 25/28] mm: remove vmalloc_user_node_flags

2020-04-14 Thread Johannes Weiner
t; For this to compile for the nommu case add a __vmalloc_node_range stub > > to nommu.c. > > > > Signed-off-by: Christoph Hellwig Acked-by: Johannes Weiner ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

[PATCH] drm/amdgpu: fix deadlock while reading mqd from debugfs

2024-03-08 Thread Johannes Weiner
ablished locking order. Bounce the mqd data through a kernel buffer to get put_user() out of the illegal section. Fixes: 445d85e3c1df ("drm/amdgpu: add debugfs interface for reading MQDs") Cc: sta...@vger.kernel.org [v6.5+] Signed-off-by: Johannes Weiner --- drivers/gpu/dr

Re: [PATCH] drm/amdgpu: fix deadlock while reading mqd from debugfs

2024-03-14 Thread Johannes Weiner
Hello, On Fri, Mar 08, 2024 at 12:32:33PM +0100, Christian König wrote: > Am 07.03.24 um 23:07 schrieb Johannes Weiner: > > Lastly I went with an open loop instead of a memcpy() as I wasn't > > sure if that memory is safe to address a byte at at time. Shashank pointed out t

Re: [PATCH] drm/amdgpu: fix deadlock while reading mqd from debugfs

2024-03-23 Thread Johannes Weiner
On Thu, Mar 14, 2024 at 01:09:57PM -0400, Johannes Weiner wrote: > Hello, > > On Fri, Mar 08, 2024 at 12:32:33PM +0100, Christian König wrote: > > Am 07.03.24 um 23:07 schrieb Johannes Weiner: > > > Lastly I went with an open loop instead of a memcpy() as I wasn't

radeon: screen garbled after page allocator change, was: Re: [patch v2 3/3] mm: page_alloc: fair zone allocator policy

2014-04-24 Thread Johannes Weiner
Hi Thomas, On Wed, Apr 02, 2014 at 04:26:08PM +0200, Thomas Schwinge wrote: > Hi! > > On Fri, 2 Aug 2013 11:37:26 -0400, Johannes Weiner > wrote: > > Each zone that holds userspace pages of one workload must be aged at a > > speed proportional to the zone size. [...

Re: [PATCH 0/7] kernel/cgroups: Add "dev" memory accounting cgroup.

2024-10-29 Thread Johannes Weiner
On Mon, Oct 28, 2024 at 11:05:48AM +0100, Maxime Ripard wrote: > On Thu, Oct 24, 2024 at 07:06:36AM -1000, Tejun Heo wrote: > > Hello, > > > > On Thu, Oct 24, 2024 at 09:20:43AM +0200, Maxime Ripard wrote: > > ... > > > > Yeah, let's not use "dev" name for this. As Waiman pointed out, it > > > >

Re: [rfc] drm/ttm/memcg: simplest initial memcg/ttm integration (v2)

2025-05-07 Thread Johannes Weiner
Hello Dave, On Fri, May 02, 2025 at 01:35:59PM +1000, Dave Airlie wrote: > Hey all, > > This is my second attempt at adding the initial simple memcg/ttm > integration. > > This varies from the first attempt in two major ways: > > 1. Instead of using __GFP_ACCOUNT and direct calling kmem charges

Re: [PATCH] MAINTAINERS: Add entry for DMEM cgroup controller

2025-02-20 Thread Johannes Weiner
all cgroup specific patches. > > Signed-off-by: Maarten Lankhorst > Acked-by: Maxime Ripard > Acked-by: Natalie Vock Acked-by: Johannes Weiner

Re: [rfc] drm/ttm/memcg: simplest initial memcg/ttm integration (v2)

2025-05-13 Thread Johannes Weiner
On Thu, May 08, 2025 at 08:03:49AM +1000, Dave Airlie wrote: > On Thu, 8 May 2025 at 03:52, Johannes Weiner wrote: > > > > Hello Dave, > > > > On Fri, May 02, 2025 at 01:35:59PM +1000, Dave Airlie wrote: > > > Hey all, > > > > > > This is my

Re: [rfc] drm/ttm/memcg: simplest initial memcg/ttm integration (v2)

2025-05-16 Thread Johannes Weiner
On Fri, May 16, 2025 at 05:35:12PM +0200, Christian König wrote: > On 5/16/25 16:53, Johannes Weiner wrote: > > On Fri, May 16, 2025 at 08:53:07AM +0200, Christian König wrote: > >> The cgroup who originally allocated it has no reference to the > >> memory any more a

Re: [rfc] drm/ttm/memcg: simplest initial memcg/ttm integration (v2)

2025-05-16 Thread Johannes Weiner
On Fri, May 16, 2025 at 07:42:08PM +0200, Christian König wrote: > On 5/16/25 18:41, Johannes Weiner wrote: > >>> Listen, none of this is even remotely new. This isn't the first cache > >>> we're tracking, and it's not the first consumer that can outlive t

Re: [rfc] drm/ttm/memcg: simplest initial memcg/ttm integration (v2)

2025-05-16 Thread Johannes Weiner
On Fri, May 16, 2025 at 08:53:07AM +0200, Christian König wrote: > On 5/15/25 18:08, Johannes Weiner wrote: > >> Stop for a second. > >> > >> As far as I can see the shrinker for the TTM pool should *not* be > >> memcg aware. Background is that pages who ente

Re: [rfc] drm/ttm/memcg: simplest initial memcg/ttm integration (v2)

2025-05-16 Thread Johannes Weiner
On Thu, May 15, 2025 at 01:02:07PM +1000, Dave Airlie wrote: > > I have to admit I'm pretty clueless about the gpu driver internals and > > can't really judge how feasible this is. But from a cgroup POV, if you > > want proper memory isolation between groups, it seems to me that's the > > direction

Re: [rfc] drm/ttm/memcg: simplest initial memcg/ttm integration (v2)

2025-05-15 Thread Johannes Weiner
On Thu, May 15, 2025 at 10:55:51AM +0200, Christian König wrote: > On 5/15/25 05:02, Dave Airlie wrote: > >> I have to admit I'm pretty clueless about the gpu driver internals and > >> can't really judge how feasible this is. But from a cgroup POV, if you > >> want proper memory isolation between g

Re: [rfc] drm/ttm/memcg: simplest initial memcg/ttm integration (v2)

2025-05-21 Thread Johannes Weiner
On Wed, May 21, 2025 at 12:23:58PM +1000, Dave Airlie wrote: > > > > So in the GPU case, you'd charge on allocation, free objects into a > > cgroup-specific pool, and shrink using a cgroup-specific LRU > > list. Freed objects can be reused by this cgroup, but nobody else. > > They're reclaimed thro