Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3902366pxf; Tue, 16 Mar 2021 00:07:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+B1GzyQJY3dxIjGMJ1b1SsKxgFQHqPpMAPayt4Iomd8WI6TYvx96xwGRQCrMhcWqu7Lp5 X-Received: by 2002:a17:906:495a:: with SMTP id f26mr27363853ejt.271.1615878420719; Tue, 16 Mar 2021 00:07:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615878420; cv=none; d=google.com; s=arc-20160816; b=IzND/QVz90fjDwqPCKkSMLTgEfqotCqOxR3hZMZzEdB9Xca4RDpSNQPhHeJqJzm6R4 Co9Qb8y5OE+hQYv/rg+5QUTkcri298aCX4tsqd98esrw17+DHRpnWYAO3XAdAiyZAEgp t04tQXffzPG4NDvhYVpyjtzYqRhA/j6gHMIzkoDHC8Pb3xsYw1x7+1r/gh4m8bdzGpwJ 6CmZgh2vMPmuLjKsGMuw/bOTaXd4sjiQclkMI1TMCwJcSB3SFb3aovM8rEbFsGVlDA3O xQKfS6Ariw99xn4poUapEvZFhdK5EoVW+BsjEU5lMrXLCmzYRjuIZwWUz6EFLuFGvmWB oSkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:ironport-sdr:ironport-sdr; bh=o9paTsPmwH01orUs8FZz8qgecmU66p4/URYvaot3r4Q=; b=eO/ZXqK8ASL8HoxgEkBpw5eEDRgr42XZoxf+PY5oPt7CiYBhCUPyLRJTJUe325DDAK xPaTLZ3JjlmyYpnB0eiyD566Oyj77jwFBL7Wwy4MDS2KpAceRg2TEOexR5FmzJWivrIp 53pafSo+1/zfEaYYOie7CbqbLkyJzlnmlqY1myw012dJ2mUlCQWprhYe/TnuK3y71p2P SVkmp+bxuN4B5uU81+u4t8QGXQIqxDWGzrNVfmA7de14H2OdusW5JvFnZrFBKWivQaXo +vrFGowuOeLIEftGALxkhMsEFqGiVDjzISK1fmUX3KsP/DcxzSu0P4IuaXpxM1BKe6No Yh8Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w18si12300182ejy.196.2021.03.16.00.06.37; Tue, 16 Mar 2021 00:07:00 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231238AbhCPB2P (ORCPT + 99 others); Mon, 15 Mar 2021 21:28:15 -0400 Received: from mga09.intel.com ([134.134.136.24]:38036 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229467AbhCPB2J (ORCPT ); Mon, 15 Mar 2021 21:28:09 -0400 IronPort-SDR: pMIkg6+eyF5UoBXZyTIqqVq3ag9NE890TM2PhBfgKi9F92rlYeZJ6no4TwjgeeecLhgLgJtFOg 71Kh1wzRszrQ== X-IronPort-AV: E=McAfee;i="6000,8403,9924"; a="189273244" X-IronPort-AV: E=Sophos;i="5.81,251,1610438400"; d="scan'208";a="189273244" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2021 18:28:09 -0700 IronPort-SDR: BbfDahb851UEsqIlHonZF+pw536xdmk6SIHATK0iFLJXSSUnSL/tkYVdroBa1309upxmGE5BK4 fLMGVZCZqjyQ== X-IronPort-AV: E=Sophos;i="5.81,251,1610438400"; d="scan'208";a="412036602" Received: from jacob-builder.jf.intel.com (HELO jacob-builder) ([10.7.199.155]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2021 18:28:09 -0700 Date: Mon, 15 Mar 2021 18:30:30 -0700 From: Jacob Pan To: Tejun Heo Cc: Vipin Sharma , mkoutny@suse.com, rdunlap@infradead.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, "Tian, Kevin" , "Liu, Yi L" , "Raj, Ashok" , Alex Williamson , Jason Gunthorpe , Jacob Pan , "jean-philippe@linaro.org" , jacob.jun.pan@intel.com Subject: Re: [RFC v2 2/2] cgroup: sev: Miscellaneous cgroup documentation. Message-ID: <20210315183030.5b15aea3@jacob-builder> In-Reply-To: References: <20210312125821.22d9bfca@jacob-builder> <20210312145904.4071a9d6@jacob-builder> <20210313085701.1fd16a39@jacob-builder> <20210315151155.383a7e6e@jacob-builder> <20210315164012.4adeabe8@jacob-builder> Organization: OTC X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tejun, On Mon, 15 Mar 2021 19:54:36 -0400, Tejun Heo wrote: > Hello, > > On Mon, Mar 15, 2021 at 04:40:12PM -0700, Jacob Pan wrote: > > 2. then we want to move/migrate Process1 to cg_B. so we need uncharge > > 10 of cg_A, charge 10 of cg_B > > So, what I don't get is why this migration is necessary. This isn't > supported as a usage pattern and no one, at least in terms of wide-spread > usage, does this. Why is this a requirement for your use case? > I don't know if this is required. I thought utilities such as cgclassify need to be supported. " cgclassify - move running task(s) to given cgroups " If no such use case, I am fine with dropping the migration support. Just enforce limit on allocations. > Thanks. > Thanks, Jacob