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 4D203CE8E99 for ; Thu, 24 Oct 2024 17:06:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D87006B00A4; Thu, 24 Oct 2024 13:06:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D36726B00A5; Thu, 24 Oct 2024 13:06:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BFF756B00A7; Thu, 24 Oct 2024 13:06:40 -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 A0E0B6B00A4 for ; Thu, 24 Oct 2024 13:06:40 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 5F1ABC1387 for ; Thu, 24 Oct 2024 17:06:20 +0000 (UTC) X-FDA: 82709124750.28.66A22A3 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf09.hostedemail.com (Postfix) with ESMTP id 896CF14002D for ; Thu, 24 Oct 2024 17:06:25 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=H67NQSuT; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf09.hostedemail.com: domain of tj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=tj@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1729789546; a=rsa-sha256; cv=none; b=bfqOqJqufGU3wRBPq/YrZsAwtDiW5QLufI43IXolXYTQhhueTY/cJlH/cMx+EF2T2YUkKS YtMkh3aUDrj1LK/7g9ZpN0P5k/jI0yObWbKyqpYCqmn9nRvuJvaaUzlFKTUPW1waY1YO1Y M26eFfU+gBwIm78ii0k0e13qubtZuFE= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=H67NQSuT; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf09.hostedemail.com: domain of tj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=tj@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1729789546; 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=gBiEkm0+vz3Ug2faq4CK8Q0oKXIBU5o9d7nTtluesvg=; b=Lg35JLX/oHke9Ozj0KLerGl/ceiowqKHC7ecaDDqw1H7FEL6Sa7Q2Yz7D3nKA+fVkVAIuT Y0yyl609LRIsCqsnMsEo2YrVwM/DnrsWg197yz7gUFDlKddrdHiTg7jqLU4bClUp0usdMT QkSUE/HLaJXMvMIizJnN8d8w47yUj1A= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 27B915C55A9; Thu, 24 Oct 2024 17:06:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58187C4CEC7; Thu, 24 Oct 2024 17:06:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1729789597; bh=+U29CBBz+qyrBtOdbE4svz7p2WVJRzBvoR7WRuDzFdY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=H67NQSuT2jRkzudyo8hcBaXGPRd16RtbucKKIBDbfx8FkTwAr4zIhYlZeE6WCQ/kL pOKgojXUIUeRkXcF/JFapYxnKLfLT7nZKbkLAKrxpqPscdWWU/vZjnV9zgg6XNOwgL wzbEkT0znzv5FxmEY4Ik7sEPxZyKemenvHZVbJw9VzPtVg/PgDCFm0JQgIUZq58Or+ 5DfzEOvuXqappQSjGsEuZ0aK5qCv0QOW0YM94EAZUdRdzXgVozd7QdkrIs0W5Sk+Nu qXaSipjzcAFgRXjcGCCgHoU/+HUqUJSQmpfcF9fFh3O20JLZ5Ja/v/FZVntFobZCnF OY5WfqO8VubRg== Date: Thu, 24 Oct 2024 07:06:36 -1000 From: Tejun Heo To: Maxime Ripard 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: References: <20241023075302.27194-1-maarten.lankhorst@linux.intel.com> <20241024-beautiful-spaniel-of-youth-f75b61@houat> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241024-beautiful-spaniel-of-youth-f75b61@houat> X-Rspam-User: X-Rspamd-Queue-Id: 896CF14002D X-Rspamd-Server: rspam01 X-Stat-Signature: 7ypbj7tg994efao6zu818rmpk69sezuw X-HE-Tag: 1729789585-191227 X-HE-Meta: U2FsdGVkX18xgW0J47Yv6RxC13K9nDhbJvKbgu26YgeiSz3uNk10DjXAFW4NzZUuhnY4R1Ucrp0hxkySZEkJXLh68UuO+3esYo18F077yqt5su0+7iRdROW3OkOVM82owJBZzLJnnVzVnThxkL5UCHbRDSvNzaDfi2KKebn95z1O5g6FcxDJPkM0UuucAaZl10jDsk76PT9WAzhe+FDVT9xhqyztgH6y5G/YAh2vVbTYyMbLv7AqdWuDsENshkqC0BXH32aHiBQdBV/AYN/YnTHFozvj0UR3bT/FATexK5pzGTvXy7gcjhpnJs1ucgApiU/qS4VJJObZlVi5DzomitTNszTfLgQjsY2swvGVPL1NPB1hQCwCNtg3SsY2A2cb6rz+XsOlWxfGn1aFc4eZOvi7PD/EaEVfX5E0SLa8V0kyoeBxQ+Yii2SdpOLB74tTiN12ElJeDaHZ9QoX+DiljiGeB98hX6A+ZgrhOegYJakTBWM3Nr+Ba/vFqjA3nRExqXL5IL7Dxi+5lgKBZyOd5TFOYZM89SyBqE4KxkmClA0LbI0Nn//agGRL5AiUoWpkS0wlH22GiBr/Wsi04te1r4lOu2SWUUeBdLGp5HCKVqi3+Kn/3hhgd3egyvTaXZNFS/PLbQUymwXdbH1FXk5KOQE2hzo23wd98IrO03xDcnvHeDeK8Hjsu8nuZybRb/4AhZC33hx2zhDnYcdKAtwMbHs3k1S3VL/HgurvOCzK0paSF2D7oxD1MmrBVcCnTLHoET7zobe6lizRvBfk1B0hRNbaiisf7qb1fhUMPvyCJON/tAdstGa4KrDIQz8mdOsjiZ//M2pEEAtNoB7QbUfscCRCEkQNELmXtCk6K6ndafiC8ADlFtpv5LjoZYImgpin5lwL1HugNKD98/S0W0ovQS4pdOKy0FdjXfWyHlVt6SLKzfnAbSDvOk1i8Zmrc/e4d+2YNfDgGM0WC3d6rYm oEesdjcz b4XvcxErZMxdT36R7zVut/XvrQO8jAu5m5CJOo7saxTj4wAgnjKxCAjAp4zAR4j97SblzoZXPvAMuFeEW5qMdEcni6j+Cag7rwSUbebt/ADhhkJrtXgw+y+ZgHDzYWfZDyYgAL2W6ZunKC5D3X9PutpganExxlkESriN3riAHKqStYB68i9xmndPB4N1dMBNvDbh/EYVAQPiNzCA1kZ9V2eCEuQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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 conflicts > > with the devices controller from cgroup1. While cgroup1 is mostly > > deprecated, the same features are provided through BPF in systemd using the > > same terminologies, so this is going to be really confusing. > > 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. > > Do you have a better name in mind? "device memory"? "dma memory"? Maybe just dma (I think the term isn't used heavily anymore, so the word is kinda open)? But, hopefully, others have better ideas. > > What happened with Tvrtko's weighted implementation? I've seen many proposed > > 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 ever > > landed. Is the aim of this patchset establishing such consensus? > > 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 implementation. That's great to hear. > Tvrtko aims at a different feature set though: this one is about memory > allocation limits, Tvrtko's about scheduling. > > 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. Yeah, I get that this is about memory and that is about processing capacity, 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. Thanks. -- tejun