Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp127175pxb; Wed, 24 Feb 2021 20:49:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwF3r0Tw1tg95+6wiIadXXKhZqF/LArzq+b9qFEZn9wo1zByMCSf3h6o84kx5W7TXVDb7/B X-Received: by 2002:a17:906:a090:: with SMTP id q16mr946104ejy.236.1614228551289; Wed, 24 Feb 2021 20:49:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614228551; cv=none; d=google.com; s=arc-20160816; b=SPp26mIbidEU8wXkXgXSCUKCpH28RNSGY6nn+ilzs6tXKx01OeOyRtl28LL4gImKUH VKoxrdClmHfDUUV+bzhQeqsaGye47ZNROvM7cD0Er7Jyo7bXd0IRDdcXn84OSjYu0Dlp kvWzl7GLsyd+MrrnGb8wX9aq3dGkjllNiPy41cAKhcal0FfEsfQs34nAdTG3seqU9KVi EU3GSdSqurxLoaA33AH4+hpWXPqDQ4zVtkjxsSY4xZrQxnnqY0h+FSB+85xdMW8ssWSX cI+zKKmdaEks2LgNsHyc/7tSgmEIUQK13Q0P0ALK1dyOAdchu2lY1UdM3T7+1cYX543Z xIuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dwsRL0iFuNLsIwlduzLk8A4HpuT+349o+yzvI+GvJGg=; b=XlsrScMx8R+IvNLMviWP5pW82UNdH9c+VzRtVeCnzjrDfpdFHgpAkP+OCgv/ewneYW GHVIpt+FuZrTx/zapf4zqkFPoidNXFgGrbuRUM88abyhcPNG6oWul317GdjPIiQMwKxK TmpwDXX9wKXwNBIv4cB3daShDO/MooAmpeUF0Kx+o4+hPPNJn3HvXQ1xQdjSASCA6mL2 iHBefKYahcsB0tcu+vSjLPSs+TMCVPI9uUzvTaA4XdfQlwbN2m3AGOAk4aUmu1aaEE4q LZHvO1mG6r5csHJkpTPX8PMcD+IncC92fFRWa2dv8je8JnxnRZlPDCCt9XLS3kekl3AM nNJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=FNfLLnAZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp8si2461886ejc.367.2021.02.24.20.48.45; Wed, 24 Feb 2021 20:49:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=FNfLLnAZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234646AbhBYAHf (ORCPT + 99 others); Wed, 24 Feb 2021 19:07:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234854AbhBYAHd (ORCPT ); Wed, 24 Feb 2021 19:07:33 -0500 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE329C061786 for ; Wed, 24 Feb 2021 16:06:52 -0800 (PST) Received: by mail-pg1-x52b.google.com with SMTP id t25so2618331pga.2 for ; Wed, 24 Feb 2021 16:06:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=dwsRL0iFuNLsIwlduzLk8A4HpuT+349o+yzvI+GvJGg=; b=FNfLLnAZf2wdLfsTREG5f4CUE90hhdj+9efnR0CcEASFvTBlIxbq2WH8aD66ed0cWP u9dRyt1Oj6/lfDKABYmqQbAGmMmI/X9cRN3qMQgoex1+4N5PBvszos8ZfcL7YE+BQnHc Dh/Dnaa1VnZhDlc8qYhgJFZnCdUpC03FVrogZi77qKJApoq49AGkV+XAN8eOJPhW6uyf Df3zBYK1751kzdlFraymh+st+EgK1j7iViJWlOfxzrePopY3x+EOvXWqZvKzf6XfjChS CLcqOiLshfzlIREJlcF+0l01oRXxU2HSvPTaQejPlLR4yh+2oehsS7SPhi7bE20wq4ax IcIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=dwsRL0iFuNLsIwlduzLk8A4HpuT+349o+yzvI+GvJGg=; b=OVj4RepJqpgzn/FQaGccegdtedI5pfDd9S+jm1eUYf9O8UhtLiSgNoZLq4Lsq4dL9p AK3bRSUKbuV3YPXbCoGZm3MATrm/31bupCFowc5FejpXljOSl9zA8eQpoNscTkcHapz8 eiyxsy4AQ14y6u4lcbB8TcS0LUyBImex2yk9mUftUl6f0M8oX0wKjrU98cIlfGPP5uLT OGDUVK27Bic3uEBv2cgruZnOG4Hs6bgG1hwq7LY0BlC47mksmvZmUmDds846KpB6jFyT 8qVuq7hzzj+/z1edF7kR9Djc5M5lpKF/+Cf242zRtNBr7YAA0DGaZ32I3gw9WDdWRnR1 iEPA== X-Gm-Message-State: AOAM530DrwEYekmQ2EJ4Xs2vNeAljVNvSogqpjr28jHn3ZA0tb+IvNsZ 9wXtmPrmsnMm037kJ9mmeyE/DA== X-Received: by 2002:a63:f202:: with SMTP id v2mr450469pgh.24.1614211610972; Wed, 24 Feb 2021 16:06:50 -0800 (PST) Received: from google.com ([2620:0:1008:10:94bf:1b67:285c:b7ce]) by smtp.gmail.com with ESMTPSA id i7sm3977728pjs.1.2021.02.24.16.06.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Feb 2021 16:06:50 -0800 (PST) Date: Wed, 24 Feb 2021 16:06:44 -0800 From: Vipin Sharma To: Michal =?iso-8859-1?Q?Koutn=FD?= Cc: tj@kernel.org, thomas.lendacky@amd.com, brijesh.singh@amd.com, jon.grimm@amd.com, eric.vantassell@amd.com, pbonzini@redhat.com, hannes@cmpxchg.org, frankja@linux.ibm.com, borntraeger@de.ibm.com, corbet@lwn.net, seanjc@google.com, vkuznets@redhat.com, wanpengli@tencent.com, jmattson@google.com, joro@8bytes.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, gingell@google.com, rientjes@google.com, dionnaglaze@google.com, kvm@vger.kernel.org, x86@kernel.org, cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC 0/2] cgroup: New misc cgroup controller Message-ID: References: <20210218195549.1696769-1-vipinsh@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 23, 2021 at 07:24:33PM +0100, Michal Koutn? wrote: > Hello. > > On Thu, Feb 18, 2021 at 11:55:47AM -0800, Vipin Sharma wrote: > > This patch is creating a new misc cgroup controller for allocation and > > tracking of resources which are not abstract like other cgroup > > controllers. > Please don't refer to this as "allocation" anywhere, that has a specific > meaning (see Resource Distribution Models in > Documentation/admin-gruide/cgroup-v2.rst). Yeah, it should be "Limits". I will update the text. > > > This controller was initially proposed as encryption_id but after > > the feedbacks, it is now changed to misc cgroup. > > https://lore.kernel.org/lkml/20210108012846.4134815-2-vipinsh@google.com/ > Interesting generalization. I wonder what else could fit under this as > well. (It resembles pids controller on the cover.) > > > Please provide any feedback for this RFC or if it is good for > > merging then I can send a patch for merging. > A new controller is added exposed with v1 attributes. I'm not convinced > it is desirable to change the frozen v1 controllers' API? (And therefore > promote it as well.) This is a very trivial controller. I believe once it becomes public it can be helpful down the line to the v1 users, who cannot use v2 yet, for some simple resource accounting, like us, we have the need for ASIDs accounting in v1 until we move to v2. If the community has strong objection then I can remove v1 support. > > Beware, bikeshedding. The name is very non-descriptive, potentially > suggesting catch-all semantics. It'd deserve a further thought. My idea > would be limit(s) or counter controller. Limit and counter are kind of suggesting the underlying technique for accounting instead of a generic name to denote resource types managed by this controller. One can argue that if top level names are similar to Resource Destribution Model then may be it makes sense to combine resources with similar accounting technique under one controller. I am looking at misc as a controller which is for resources not having proper home in other controllers or not big enough to deserve their own controller. I agree with you coming up with a name which check all boxes of requirements won't be possible. We have discussed name sev cgroup, kvm cgroup, encryption_id cgroup before reaching to an agreement on misc cgroup. I am open to other names if they are better suited for this controller and makes more sense. Thanks Vipin