Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1275643lqb; Thu, 18 Apr 2024 05:36:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWvJoejgKwoHEv9kEqz99549jlp4vxYmsbLY473bxE0YSlhOYb6AJT47+SUtYBLTqvPHOjib4c98M6OiVbnzVClfRdqPPbfa2wlJTu9cg== X-Google-Smtp-Source: AGHT+IFdRd+ClHmXA8hZmgF+V8434mJLttiABCMhjPMjeeEfC/W0ZUBmlTP7Fls712hidBpc3uEM X-Received: by 2002:ad4:5cc2:0:b0:6a0:4735:ba67 with SMTP id iu2-20020ad45cc2000000b006a04735ba67mr3980058qvb.27.1713443818250; Thu, 18 Apr 2024 05:36:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713443818; cv=pass; d=google.com; s=arc-20160816; b=f90bPlI4/XpbnEl4vDuUAkxBCc3c2IDo3sr7TVC6fwAkN3WVbYjYzDbNip5+7yR0AU SMyUn/8KkXCWxkOW2x3VACa7MNWfUOdv0MmhNy7AKCWMPYSuW01Jr0TWdNTbgCZW8LEu YJNX38HeF9zOK9ucnhRQOB+FV7hp6MUmMSp57XJbsgKPYwWNzDdqOcqXKHYDODuV3f0S +R6h8Cptgkp0D1lY+T+9LpNLaIKUHuaNtzRy3DPOipkJC5tok0zPydrgcKVcByJud47k A4OURDP+JQ9F+AL8ot3jWknQFbTSvexF4YKxwe4WqF5l17k3DohRlezCIslDOt3ok73t QY+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=jjXsNCKTS0bM2B8ySiV5SP7D5wiRk4SOjxpZ/00dNAU=; fh=hBlXzB0kbEE7P94UAguOnL/xmpqChcoJHfuJzRhv4rU=; b=00eXKNyLsvTTsLTjUPGHmT2nNKNrdLCqk21WgLw5X9rfbxQO/KANWZ1sQ8LRe6iaxg 1dfyEViJRWobGsXTdTKGgHXoCu4jVg+W0xF2STsGRfYOmdhz08fxIpkSWeCAWuvOuK4H 0NK0gM87zxOQ7f+LVcQ3dtPuXlQ5c0/8Z6Cc7b4cXeHt6KKOCJtEfvwuYsS0NKYu3+tt qvR1XNZaueSv5unql1D6PJUsLiMVwehxszw0lkDODu+uOoz8diACttc/ug3t6ttqxZj5 7YVzdagfjbUFHg/8gXpBEpIyYaDm5uHQR1/2cCxMTCXubzl5pMrDBfeJfpb7WsLb5VMo eGxw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-150069-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150069-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id gy13-20020a056214242d00b00696a6bb9229si1344270qvb.179.2024.04.18.05.36.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 05:36:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150069-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-150069-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150069-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 009A61C215F8 for ; Thu, 18 Apr 2024 12:36:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 119302C861; Thu, 18 Apr 2024 12:36:50 +0000 (UTC) Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EB4C11DA26; Thu, 18 Apr 2024 12:36:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713443809; cv=none; b=u61AClSL4I8nd7Z0gzPpNL5fEmAmvA1ugTDnRI1jKDHwMbtxmaijmuZExxbZh3j9aS4Fj7+MZsdd41St95nqgsBSZgTcDRh6yVtz5TJ1rrJ0RyTgzbv17lNgvUcCQ01DRixOjM1W/0u41nynn/+TRemuoULu6PCz4C5lwUpML94= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713443809; c=relaxed/simple; bh=3YUauoGbeJ5ZxfusdnLISD6V1rVbaD0VMA4lUVm8NDU=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=PRbuY3HpWwtH+w2Ira+Iw8pFVrs9Sy9LB8PsVWVH6P1wKuZ+6OXfay8Wf99m1Wn9wVj0FGPgGNRLzzZcNJNqLIRDvB54JJNYNxAHfNj/6HECFlRctscU9GXzkbQ9pu6dKB9Szgj2t7/MOFGB+DqADkeAIOjkkvQV2a0dFGiJ4RA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.189 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.48]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4VKxzT4Q43zNnwl; Thu, 18 Apr 2024 20:34:13 +0800 (CST) Received: from dggpeml500023.china.huawei.com (unknown [7.185.36.114]) by mail.maildlp.com (Postfix) with ESMTPS id 8908418006B; Thu, 18 Apr 2024 20:36:38 +0800 (CST) Received: from hulk-vt.huawei.com (10.67.174.26) by dggpeml500023.china.huawei.com (7.185.36.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 18 Apr 2024 20:36:38 +0800 From: Xiu Jianfeng To: , , , CC: , , Subject: [PATCH -next] docs, cgroup: add entries for pids to cgroup-v2.rst Date: Thu, 18 Apr 2024 12:30:12 +0000 Message-ID: <20240418123012.916411-1-xiujianfeng@huawei.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpeml500023.china.huawei.com (7.185.36.114) This patch add two entries (pids.peak and pids.events) for pids controller, and also update pids.current because it's on non-root. Signed-off-by: Xiu Jianfeng --- Documentation/admin-guide/cgroup-v2.rst | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst index d8b00f0ea96d..6f6fe744452e 100644 --- a/Documentation/admin-guide/cgroup-v2.rst +++ b/Documentation/admin-guide/cgroup-v2.rst @@ -2188,11 +2188,25 @@ PID Interface Files Hard limit of number of processes. pids.current - A read-only single value file which exists on all cgroups. + A read-only single value file which exists on non-root cgroups. The number of processes currently in the cgroup and its descendants. + pids.peak + A read-only single value file which exists on non-root cgroups. + + The maximum value that the number of processes in the cgroup and its + descendants has ever reached. + + pids.events + A read-only flat-keyed file which exists on non-root cgroups. The + following entries are defined. Unless specified otherwise, a value + change in this file generates a file modified event. + + max + Number of times fork failed because limit was hit. + Organisational operations are not blocked by cgroup policies, so it is possible to have pids.current > pids.max. This can be done by either setting the limit to be smaller than pids.current, or attaching enough -- 2.34.1