From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80D53D13588 for ; Mon, 28 Oct 2024 10:05:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 054E86B007B; Mon, 28 Oct 2024 06:05:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 005466B0083; Mon, 28 Oct 2024 06:05:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E0F7D6B0085; Mon, 28 Oct 2024 06:05:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id C66776B007B for ; Mon, 28 Oct 2024 06:05:54 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id F3B9D1A1D91 for ; Mon, 28 Oct 2024 10:05:13 +0000 (UTC) X-FDA: 82722578274.20.E8E01F3 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf16.hostedemail.com (Postfix) with ESMTP id CC645180022 for ; Mon, 28 Oct 2024 10:05:29 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=aaOhBppD; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf16.hostedemail.com: domain of mripard@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=mripard@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1730109836; a=rsa-sha256; cv=none; b=bQkHv9rcUDAOTzEIzi4JiSVLmTm34tVD4r4OE00JddmW4dXwxHMsgZ4o9rvBxy4g5EBptL Kfb6HmbFWmRRBfs974XTrX3ZW7AUxXlhxdhqoxoAX/XzmOO8mzmyLx59G8zoolCyjUkG5U xIX7yibQp9VEOcGmSS5APKOrWEaGeXE= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=aaOhBppD; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf16.hostedemail.com: domain of mripard@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=mripard@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1730109836; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Z2fr1jJxkc2nUFejeQVSYNaVA/Ey1sprE8dbblumJVU=; b=XKI9hMRxC5RtfjKHxt7KLVDDjDJPNANA4RP1RKLoJyT4Ny3/IvDR2BQAN6s93weknk0Shh jmuWJ4yzBdOGPgxPmHE+U+Hm61HOyglCpJQI7lh76+tIlQs6wP0UBZATvIkhd3yl1DRHAd UcfLc8qD3azg0KsgVucXOTxrrHv7qQI= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id B5CAC5C5A2A; Mon, 28 Oct 2024 10:05:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E927C4CEC3; Mon, 28 Oct 2024 10:05:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1730109951; bh=Z2fr1jJxkc2nUFejeQVSYNaVA/Ey1sprE8dbblumJVU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aaOhBppDvy01NoN85ZBGyg7R9bgjbbNHd4ZXHKnG8ehSDkfnYt/1UXzrme1sAUxnq 3FHCpVXmGmvwdkzsimAutjlw3P9mE+f7JnSxV79dEFVlx11rDEq7Ebvc7uPMxMsTRH tUhZ3zPo9VmkJm2zP4zG4iAH2AcMlK39dZJsf5ca0QSzF95x/8bq2N9/Won3Xgwuhd mcKIjNcLmvlMW4Ygz4UmhUNChHC4wPut7umYjDwvWG3cVNHVEK9Dkl7K27NLFd4bT0 zYBzKutajMYcOLdqhT7mYVLgTAjKDE0aLjJefVlsHMa6Q0bpPvwJDhDUWfqC6BbTOg gUkurUyWh/9TQ== Date: Mon, 28 Oct 2024 11:05:48 +0100 From: Maxime Ripard To: Tejun Heo Cc: Maarten Lankhorst , intel-xe@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Zefan Li , Johannes Weiner , Andrew Morton , Friedrich Vock , cgroups@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 0/7] kernel/cgroups: Add "dev" memory accounting cgroup. Message-ID: <20241028-meaty-mega-nuthatch-3d74b1@houat> References: <20241023075302.27194-1-maarten.lankhorst@linux.intel.com> <20241024-beautiful-spaniel-of-youth-f75b61@houat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha384; protocol="application/pgp-signature"; boundary="t7lydr677wzslm3o" Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: CC645180022 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: xm1e5ke1i897uzq1rrk3afzt9ztdznor X-HE-Tag: 1730109929-271332 X-HE-Meta: U2FsdGVkX19aQMektMwtrwsB4THe7fRUT3mM2tFdxx0DI3G3UkaUTaMMdbuu761soxA8K1sKTvGnbQ9nQIUtDmSSOV7z4bRAUgXOsdhxopFM4v8ja2ErUNsVavvszKcac3UuvndQ07dF6hlJKP+jQPm1HTyi1+ZCJpxIiC62znpwPypg0hdnMxskp7psw+CZpH+MCmXzFSO945XPUj18xIhh4odrcNt8EGIiTk/6gqxxHz/FAUNuIaZIjySUvvjvOD8nG2mNmzUs6+vVK6/D5haxnk6sWs98Up+ixx52U6zE9IstlHbK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4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: --t7lydr677wzslm3o Content-Type: text/plain; protected-headers=v1; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH 0/7] kernel/cgroups: Add "dev" memory accounting cgroup. MIME-Version: 1.0 On Thu, Oct 24, 2024 at 07:06:36AM -1000, Tejun Heo wrote: > Hello, >=20 > 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 co= nflicts > > > with the devices controller from cgroup1. While cgroup1 is mostly > > > deprecated, the same features are provided through BPF in systemd usi= ng the > > > same terminologies, so this is going to be really confusing. > >=20 > > Yeah, I agree. We switched to dev because we want to support more than > > just DRM, but all DMA-able memory. We have patches to support for v4l2 > > and dma-buf heaps, so using the name DRM didn't feel great either. > >=20 > > Do you have a better name in mind? "device memory"? "dma memory"? >=20 > Maybe just dma (I think the term isn't used heavily anymore, so the word = is > kinda open)? But, hopefully, others have better ideas. >=20 > > > What happened with Tvrtko's weighted implementation? I've seen many p= roposed > > > patchsets in this area but as far as I could see none could establish > > > consensus among GPU crowd and that's one of the reasons why nothing e= ver > > > landed. Is the aim of this patchset establishing such consensus? > >=20 > > Yeah, we have a consensus by now I think. Valve, Intel, Google, and Red > > Hat have been involved in that series and we all agree on the implement= ation. >=20 > That's great to hear. >=20 > > Tvrtko aims at a different feature set though: this one is about memory > > allocation limits, Tvrtko's about scheduling. > >=20 > > Scheduling doesn't make much sense for things outside of DRM (and even > > for a fraction of all DRM devices), and it's pretty much orthogonal. So > > i guess you can expect another series from Tvrtko, but I don't think > > they should be considered equivalent or dependent on each other. >=20 > Yeah, I get that this is about memory and that is about processing capaci= ty, > so the plan is going for separate controllers for each? Or would it be > better to present both under the same controller interface? Even if they'= re > going to be separate controllers, we at least want to be aligned on how > devices and their configurations are presented in the two controllers. It's still up in the air, I think. My personal opinion is that there's only DRM (and accel) devices that really care about scheduling constraints anyway, so it wouldn't (have to) be as generic as this one. And if we would call it dma, then the naming becomes a bit weird since DMA doesn't have much to do with scheduling. But I guess it's just another instance of the "naming is hard" problem :) Maxime --t7lydr677wzslm3o Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iJUEABMJAB0WIQTkHFbLp4ejekA/qfgnX84Zoj2+dgUCZx9h9gAKCRAnX84Zoj2+ dlU+AYCxActcJs1M7HcXNvi88y4oVEf4bnodKMwcVHc/s5JEvI4cja+MhosCF+3b uptlsFIBgKwWkcuonwZQCL1tmx5YQCFFg4+etI8Oz58IK+o0xVJKfuYCyXvSKQzs 7Ws0CK5uUQ== =O7zl -----END PGP SIGNATURE----- --t7lydr677wzslm3o--