Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp896561pxb; Fri, 22 Apr 2022 13:42:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwS8Em/lOHvPwhBkBTF7BPwy5GjxQKLp23sULogGD9vunI91Qf59Te2l+Y9wTBrQuSqNlr5 X-Received: by 2002:a63:85c3:0:b0:3aa:7a85:2345 with SMTP id u186-20020a6385c3000000b003aa7a852345mr5362710pgd.267.1650660175208; Fri, 22 Apr 2022 13:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650660175; cv=none; d=google.com; s=arc-20160816; b=K+yDkc9P9TZL/GaCALqCaHCy1OzNyeWElcDK5suwLdZ+MuKOQMfm0lLmbKTRaBOYi2 IZ4dLCCjRa96m4qfwgBS4Sev9zqIWgLaAvVtGbs3gCRM0/UrOk2yEU/gs1Vuy1DbAJpq xxEkV9FJ05pNDDU55LJo/GqgRndY3jEoACIkV8AAJezpnlgiFsROfnevaI32j+JsUiK7 6L35Bf+0E+D0oZe3ayGdBDzalIgeJIOcqm9vH8AnpzkV6zKHJ+c7+ARg1/Ocde2CkNhl mwAsjMIiufW+SVQh4Vnw4giAdDXGkq4vrTMV0RO5Y87UszNdtMNkczNSYMbzJ0VBEekV VAcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=flU6CYbGj5HHjHL/rSfoESS0j19ra3SqkJwdnrfGTCE=; b=BvhON4xBhvFP+o9rMDBqiXIRgFWfXCQglhvWpgl8+zc0UfQjaKRVRLour5TAJ+BUVW PlzmdQpqeNBYHs/KSfAu04AzNVy7lC9gOh4zx8VPnxPCvzBwNHK+TnQPiPBIrGE7EdT1 mwwxZf+rExsRIf5aldl4BhBfNDg5yck7AtDPESXM3TNp1epFOLD9ybFIboZDTAaw5JLE fCjzkdxNbaZZhPwf6o87uMbuk4K2hJYOXe6Si9zawBM4iGf9KfA7zcyxgSJeJHo93DNa 05XoEgA6nXcQa2jEmEeCTXKPlmfEV8G6jzVX/zkEkSxWx4gfG6Hti8EmKLkEuxl/R4xp 2ceA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=mhiuMoEG; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t7-20020a17090340c700b00153b2d16499si8198559pld.161.2022.04.22.13.42.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 13:42:55 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=mhiuMoEG; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 715232BFC15; Fri, 22 Apr 2022 12:30:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230463AbiDUW2g (ORCPT + 99 others); Thu, 21 Apr 2022 18:28:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230188AbiDUW2c (ORCPT ); Thu, 21 Apr 2022 18:28:32 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D5BF4A3DD for ; Thu, 21 Apr 2022 15:25:41 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id z99so8269816ede.5 for ; Thu, 21 Apr 2022 15:25:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=flU6CYbGj5HHjHL/rSfoESS0j19ra3SqkJwdnrfGTCE=; b=mhiuMoEGCpN3Zgcfbu33ndnnHh5jgqOCiSxHecLhuWCXZWzmGwn3io2Yb0J9sVXrRu dVuKXpiZLkRNq27Wi97ysToJPLJVCkO2UJj8e9pi1U9+geswfxbQk0PInen+gN1nC/q3 EQH+J+W2EB/3oJQcLHvhzMasWXWbYKCN+xFkYzvLtnIDfwvghacyiAv73I5tHw5J4Xyl kOW8QFEmHY7Y4t2gLJj+WtM3k8FiNHmvtFww+x6GTaRfj9df1KxCR5rFPJeAEUPRYRWa +jbksUqiyU0D5YlCrSSFOKo0uGF9q5mGT13/q67LBrF3I7WvpFCT+oN/ugxSWLTg5R1w OJ3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=flU6CYbGj5HHjHL/rSfoESS0j19ra3SqkJwdnrfGTCE=; b=Y4DdoyWrEQn1MBoVhnAkbeIKLQxgn8zSldanx/vS+ebbBzroFrUhYuQx0VTHHh0tl6 SPVmfK79VLHDAnTI2fDYKe+VWxy0uHtomr0aXGDq0M94ivMs10cjdr5IpRLnWiA6MZNl 8j9btJ3UQEMmBxWNDmgOIGy4pmSt01WCJhMsvMG9TDAjbD+QiMmCB1EPic1B8k8Fxt/v occnZcQwMgHNh7u49bA2RYKGVloUejyRhzgl2IrNuKVej7/BoIkVgW8ViUBn+gx8bF9T yO+SSLQvHWWXfdMRbI+3tw43u/8frisnSvBCrDUiuLDejlBg/m+73KTWMNHnjMRCRwG6 Pt5A== X-Gm-Message-State: AOAM531QNgGffcTSzVtjj1K8NAIseB/KRGBoTQyuA+8Ngz95VLwJFzI3 jiIf5Q6XvimIqco1Kvhj8gYWhidjoUh5/TH4k5XhJg== X-Received: by 2002:a05:6402:4488:b0:425:9335:bbcb with SMTP id er8-20020a056402448800b004259335bbcbmr1799092edb.197.1650579939899; Thu, 21 Apr 2022 15:25:39 -0700 (PDT) MIME-Version: 1.0 References: <20220420235228.2767816-1-tjmercier@google.com> <20220420235228.2767816-2-tjmercier@google.com> In-Reply-To: From: "T.J. Mercier" Date: Thu, 21 Apr 2022 15:25:28 -0700 Message-ID: Subject: Re: [RFC v5 1/6] gpu: rfc: Proposal for a GPU cgroup controller To: Tejun Heo Cc: Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Jonathan Corbet , Hridya Valsaraju , =?UTF-8?Q?Christian_K=C3=B6nig?= , John Stultz , Todd Kjos , Carlos Llamas , Suren Baghdasaryan , Kalesh Singh , Kenny.Ho@amd.com, =?UTF-8?Q?Michal_Koutn=C3=BD?= , Shuah Khan , kernel-team@android.com, dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 21, 2022 at 1:34 PM Tejun Heo wrote: > > Hello, > > On Wed, Apr 20, 2022 at 11:52:19PM +0000, T.J. Mercier wrote: > > From: Hridya Valsaraju > > > > This patch adds a proposal for a new GPU cgroup controller for > > accounting/limiting GPU and GPU-related memory allocations. > > The proposed controller is based on the DRM cgroup controller[1] and > > follows the design of the RDMA cgroup controller. > > > > The new cgroup controller would: > > * Allow setting per-device limits on the total size of buffers > > allocated by device within a cgroup. > > * Expose a per-device/allocator breakdown of the buffers charged to a > > cgroup. > > > > The prototype in the following patches is only for memory accounting > > using the GPU cgroup controller and does not implement limit setting. > > > > [1]: https://lore.kernel.org/amd-gfx/20210126214626.16260-1-brian.welty@intel.com/ > > > > Signed-off-by: Hridya Valsaraju > > Signed-off-by: T.J. Mercier > > Looks straight-forward enough from cgroup side. Are gpu folks generally > happy? David, Daniel, Kenny, what are your thoughts? > > > Documentation/gpu/rfc/gpu-cgroup.rst | 190 +++++++++++++++++++++++++++ > > Can you fold the important part into cgroup-v2.rst and maybe make the rest > code comments if necessary? > Sure thing, thanks. > Thanks. > > -- > tejun