Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7516473pxb; Thu, 18 Feb 2021 12:09:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGK0unI0YO/luJRRREBsRDJl38iru07yG/VqgDvSwpT/sFgryKRdGq0+NKLGk9ehPAzvx9 X-Received: by 2002:a17:906:71db:: with SMTP id i27mr5800314ejk.111.1613678993611; Thu, 18 Feb 2021 12:09:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613678993; cv=none; d=google.com; s=arc-20160816; b=eIxV61gcAKSupGlYfScA8qhK4u4p+Vorv30Xne0eYYxAYUm1gqOA0iGjy6KMaDmA3L RHZFkioXor/LpQz+NYWr0QCYYNPRvHeJlJ8dOmD552rNcikIVBzWvS8fG1I26dU6xh2x LtBKmGkv9YLLIADnY74uVPkes4GkSirQLG1cvKebM+NKtFjHSC529eUsLSfg5QI9+2r9 5BDvYq6AkEBH8Zy28/qm+767mn2PePP8kB3N8NLxaj7zUWlpiDSIIc9PM0M3BGSywwuU K3qibWE0NpSqClqZFU+0LBe0fDl1hlR6f4AfivzHvMC1CVIhpF2JxAsqDndkgYku6int CY+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:sender:dkim-signature; bh=zhEDZA4JbZSAj5/ePKSx+KCgThTXAMSnv6lc/wPfgfs=; b=QsEXHxrssX38ToBi0hLfUQyiqHhr0v7xxHDAz1oDCGGqyNgpnLyEJK9PuikXzGUQ6h NIPib16bzQnNY+OlW6isTPpFdcw1wf0otjHDuVa34/FtoUUXyWJsr84trgVov5xRT4VQ P0JsjNWarAhT/0FVJP+CdfzluzHsqI/mrt4q2XQc5A49QuDIOrWSyPGjSu1+/E3YJLk3 Mrvy6TSa53621o7QqUlI2SMrMa+M9c3AuqZarwoAAnzyq8mDcMiJh1XQ1S5zj2q8zeKl yJ44OV1eNADv7QlBE+UMbsebHVO0VVzwoaJpBChAOb6OE75rrVmPSic34ZFOhMjtLcoI d2ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=QME2l0CH; 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 y16si4680794edq.523.2021.02.18.12.09.27; Thu, 18 Feb 2021 12:09:53 -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=QME2l0CH; 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 S231990AbhBRUGM (ORCPT + 99 others); Thu, 18 Feb 2021 15:06:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232289AbhBRT7W (ORCPT ); Thu, 18 Feb 2021 14:59:22 -0500 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75372C0617A9 for ; Thu, 18 Feb 2021 11:56:18 -0800 (PST) Received: by mail-yb1-xb49.google.com with SMTP id v62so3914191ybb.15 for ; Thu, 18 Feb 2021 11:56:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=zhEDZA4JbZSAj5/ePKSx+KCgThTXAMSnv6lc/wPfgfs=; b=QME2l0CHS+bmS8ezIa3F+1hGntliqb4UvifKWFGGVmp9YGFOfca7qXz9i8ZsYCofh+ EK03WC0fEogRlgwusm44pcfMBH8OdNwALCgg3nfK0N0tJOfpJgAUxPkQIU8L+Q4gG8/z T908c5y4ixfiOlGrrd6mIqKVNKP8e3DD+Bke1tA8smqaO2/JBRHz1VVjI3YtPhRjDldf Vz2jceBvzK/fv98k17OAfxq06E6qx++CgjKm4j2r3bMbpl7Kx/YlXa8nsd54Ny7QnNpK CdvaAtKU6AEcA91VHbO3K2/+LMKEu1mBCBGGUQXPee1G7nMamaiDjeT3mksBSdcn/1Wr 51Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=zhEDZA4JbZSAj5/ePKSx+KCgThTXAMSnv6lc/wPfgfs=; b=jep0Mvp9RfUHMMwetzStpRUXI+eqEwuRgjaH2ZiWTZwFh6tcmwKEokqkRvtoZSOdnY lccuAZFrclNy81w6hjr9I6tZYv41gdM5rhKsE0xfGt6n15Uhkb30F0Pc9E3njYJ+DQj8 QhGSGG9kjtrtnrOhkSy+uG4C95Z2GsDl6V7LjhO1lOfrM+NC2Qt/O09utNfqaYEHYk5+ Yra5KhxfI7ns5mRILxfdj7hT//I2SfI/4epWIj6GOlPT48X2H84Qz4+KX3tS7GvJW8pr kNmAJztn/8yaLyAV096i4RXCj8F6AE0KHng+r+4eEimxX0WxAn4pnJyuRW7kyy34Gibv Uhbg== X-Gm-Message-State: AOAM53075TA7YJGrvJhb5W4NGq1doJBWgvChAHaWPhX2+VskfM0zZHI8 98uZvXkREDQIFuGGcsq71MEjQLRf8TaU Sender: "vipinsh via sendgmr" X-Received: from vipinsh.kir.corp.google.com ([2620:0:1008:10:580f:a4a0:74ce:b3b4]) (user=vipinsh job=sendgmr) by 2002:a25:3104:: with SMTP id x4mr8725771ybx.141.1613678177550; Thu, 18 Feb 2021 11:56:17 -0800 (PST) Date: Thu, 18 Feb 2021 11:55:49 -0800 In-Reply-To: <20210218195549.1696769-1-vipinsh@google.com> Message-Id: <20210218195549.1696769-3-vipinsh@google.com> Mime-Version: 1.0 References: <20210218195549.1696769-1-vipinsh@google.com> X-Mailer: git-send-email 2.30.0.617.g56c4b15f3c-goog Subject: [RFC 2/2] cgroup: sev: Miscellaneous cgroup documentation. From: Vipin Sharma To: 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 Cc: 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, Vipin Sharma Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Documentation of miscellaneous cgroup controller. This new controller is used to track and limit usage of scalar resources. Signed-off-by: Vipin Sharma Reviewed-by: David Rientjes --- Documentation/admin-guide/cgroup-v1/misc.rst | 1 + Documentation/admin-guide/cgroup-v2.rst | 64 +++++++++++++++++++- 2 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 Documentation/admin-guide/cgroup-v1/misc.rst diff --git a/Documentation/admin-guide/cgroup-v1/misc.rst b/Documentation/admin-guide/cgroup-v1/misc.rst new file mode 100644 index 000000000000..8e9e9311daeb --- /dev/null +++ b/Documentation/admin-guide/cgroup-v1/misc.rst @@ -0,0 +1 @@ +/Documentation/admin-guide/cgroup-v2.rst diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst index 1de8695c264b..1a41a3623b9b 100644 --- a/Documentation/admin-guide/cgroup-v2.rst +++ b/Documentation/admin-guide/cgroup-v2.rst @@ -63,8 +63,11 @@ v1 is available under :ref:`Documentation/admin-guide/cgroup-v1/index.rst misc.max + + Limit can be set to max by:: + # echo sev max > misc.max + + Limits can be set more than the capacity value in the misc.capacity + file. + +Migration and Ownership +~~~~~~~~~~~~~~~~~~~~~~~ + +A miscellaneous scalar resource is charged to the cgroup in which it is used +first, and stays charged to that cgroup until that resource is freed. Migrating +a process to a different cgroup do not move the charge to the destination +cgroup where the process has moved. + +Others ---- perf_event -- 2.30.0.617.g56c4b15f3c-goog