Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp815526rdb; Thu, 30 Nov 2023 21:49:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IFgNYsU2iCQ2M7kCa/3zIlYfhpEgQNZnNpUg9E/3RHKBaAxqxySAIleIzQpoKhCP9V9GABH X-Received: by 2002:a05:6808:2e90:b0:3b2:f275:18a8 with SMTP id gt16-20020a0568082e9000b003b2f27518a8mr2509945oib.22.1701409749287; Thu, 30 Nov 2023 21:49:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701409749; cv=none; d=google.com; s=arc-20160816; b=Sg0U/lLyiNhDiNEuMF93bHEEEShYwMxhWO//pFaEx2yVq64NBtHz+i6yLACo7YH62N nMKe1MRqcIRvv7U5a2qJEYewPyvCjRAN20tGwhPSYo5FB1Qqh/kT4IuDDHYxxuS2g2bW Yv7m4NL9DaMNyngXIZBvjSHCApD/QWDkunVe9Jlt2wZUU+qW+EkwCTBNyG36vOYT2OrP F+KAprLzTJYuNm/y2FBMYsVKIFwKj1n0dGT3qex+Mo7hvw2dHE5X2ttHImvY9/qG6tKY GGHVoPS+jnPW/VRct37MZ4X5NVqkzVt441FEhMjAYiP2NVnaqfpmDIUr1UVNK4K6slCY yufg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TZbnJURuf0YnsoB4uScWxuFhK6jg2U0wRIA3IoSThz8=; fh=RG7qgwhWz63M7OqUKSLkAUQSRzsZgFnTnbGfx/YGSsw=; b=fSn7njjIrQmaHe8DJWSeK6cfiO+Oz5Big6sn/umR5/nOXmD0kTb1LxDXdEntYl6bnY jGgT1QwKTfawC2dylsfA8AAkUf1r3TV119lWuCATwT8TbCfNmQeAKvWKnueV4FwOsr0n EZW+P5deEYMJndZhFB7raigYUhO1evmPzB6cLNegC36lHp7dEBRBRTUZltOgfJhCw5Ey Gt3yn57rsrbpNHy1cChi5nao/ydepVAUnM6LlY1VJKy/xX5V1hlFI4vic4NpF41JtUA1 J0C+xOG9IcUKJgythyuLc5UDXKBtMCwL/i418aZfmE/ohjQZFnDEAkCHiEIfSRmB2Pbq kYkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PXnoOuFB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id o26-20020a634e5a000000b005bd2713d3a1si2730285pgl.650.2023.11.30.21.49.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 21:49:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PXnoOuFB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 4A8CC80E0683; Thu, 30 Nov 2023 21:49:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377368AbjLAFsz (ORCPT + 99 others); Fri, 1 Dec 2023 00:48:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232136AbjLAFsx (ORCPT ); Fri, 1 Dec 2023 00:48:53 -0500 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE85C1734; Thu, 30 Nov 2023 21:48:57 -0800 (PST) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1d03bcf27e9so1682745ad.0; Thu, 30 Nov 2023 21:48:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701409737; x=1702014537; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=TZbnJURuf0YnsoB4uScWxuFhK6jg2U0wRIA3IoSThz8=; b=PXnoOuFB3awpRWChL3Jgs+16RjqeshglPwp+iNSuCgPSivP7rslQ8FnXWyu7Gu6p2Q NR3HbyaWJKebGrP9WlQJroqCQ5B0aPJK7LJGgBBnCm3DM5LI7hcwHdBtB+ygIbhWc/+V X7yK1RcFZHTcIfUk3x3PTFsf+13uKK6JZEHwfBedpYmDgAGBbnBNfIWez4MuDCg+/Zmt yeImHzppCKLZ5BJXTPztEUIBFh409w1LN3i3H+R7P7FjHaK9CfqoraGFeEDDlNznKRVO uN4zpgJLx4uhAEhCmJTth7x+MZ96IxsPVcC8cmDIChwsF2oH1nXYFT8yT1v2NK0GrpK/ gfBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701409737; x=1702014537; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=TZbnJURuf0YnsoB4uScWxuFhK6jg2U0wRIA3IoSThz8=; b=ubPdTGZij0I7uw2LfUdaijIfdK0+W+3+tIyrrJb31pC9eVyHKcaF05C27JT4ZP9t8s lAw3yCOMTX/IaqWFVZC4Dsv7uczKtZ4opO+mTDweZNIAlsksZWagY6fzFc87tNCtH8DK +7Be6uVUqcyqQe3zCID+HQbhY8PfTsx4LjrELTUViPxSfUeGNor+FKHJ8YRgDiOR50fQ rUDe/2v+GHHLPBjfJMjDCY2EY5WOUdkK2ip44TtnWQwuAfLXP6bfPpXUE52CfCyQHc4B pZGY7bo2d6AxwWr0PwtzQKBJFuHkGohILsM+CO884YGJZP7r/r7I+yOmE8lTfyppxAgB yLzA== X-Gm-Message-State: AOJu0Yxa0meDDuHWG/jIt+/qBdUWJufvLKE5jTx0OIw3HZiDBTxJQJbZ I4Ji6CUmSUkHKP3c7Pst88Q= X-Received: by 2002:a17:90a:a407:b0:286:5811:2571 with SMTP id y7-20020a17090aa40700b0028658112571mr1018948pjp.0.1701409736984; Thu, 30 Nov 2023 21:48:56 -0800 (PST) Received: from archie.me ([103.131.18.64]) by smtp.gmail.com with ESMTPSA id p7-20020a17090a348700b00280c285f878sm2508465pjb.55.2023.11.30.21.48.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 21:48:55 -0800 (PST) Received: by archie.me (Postfix, from userid 1000) id 0CFE6100823C0; Fri, 1 Dec 2023 12:48:50 +0700 (WIB) Date: Fri, 1 Dec 2023 12:48:50 +0700 From: Bagas Sanjaya To: Josh Don , Tejun Heo , Zefan Li , Johannes Weiner , Jonathan Corbet Cc: Linux CGroups , Linux Documentation , Linux Kernel Mailing List , Attreyee M Subject: Re: [PATCH] cgroup: Fix documentation for cpu.idle Message-ID: References: <20231201005203.309873-1-joshdon@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="CCIfMmdnUlJnGiMR" Content-Disposition: inline In-Reply-To: <20231201005203.309873-1-joshdon@google.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 30 Nov 2023 21:49:07 -0800 (PST) --CCIfMmdnUlJnGiMR Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 30, 2023 at 04:52:03PM -0800, Josh Don wrote: > diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admi= n-guide/cgroup-v2.rst > index 3f85254f3cef..9debf02bcb39 100644 > --- a/Documentation/admin-guide/cgroup-v2.rst > +++ b/Documentation/admin-guide/cgroup-v2.rst > @@ -1093,7 +1093,11 @@ All time durations are in microseconds. > A read-write single value file which exists on non-root > cgroups. The default is "100". > =20 > - The weight in the range [1, 10000]. > + For non idle groups (cpu.idle =3D 0), the weight is in the > + range [1, 10000]. > + > + If the cgroup has been configured to be SCHED_IDLE (cpu.idle =3D 1), > + then the weight will show as a 0. This one LGTM. > =20 > cpu.weight.nice > A read-write single value file which exists on non-root > @@ -1157,6 +1161,16 @@ All time durations are in microseconds. > values similar to the sched_setattr(2). This maximum utilization > value is used to clamp the task specific maximum utilization cla= mp. > =20 > + cpu.idle > + A read-write single value file which exists on non-root cgroups. > + The default is 0. > + > + This is the cgroup analog of the per-task SCHED_IDLE sched policy. "... cgroup analogy to ..." > + Setting this value to a 1 will make the scheduling policy of the > + cgroup SCHED_IDLE. The threads inside the cgroup will retain their > + own relative priorities, but the cgroup itself will be treated as > + very low priority relative to its peers. > + > =20 Thanks. --=20 An old man doll... just what I always wanted! - Clara --CCIfMmdnUlJnGiMR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSSYQ6Cy7oyFNCHrUH2uYlJVVFOowUCZWlzvwAKCRD2uYlJVVFO o/DQAP0bPgK2LiPMvZkW1bC1ur0ZYQb6pysH6EF0VG3CEwC6zwEAxtHE0k2WmUk3 XESJyv4hqDUe0jLIYGDVjuLeDf59JAU= =TNFj -----END PGP SIGNATURE----- --CCIfMmdnUlJnGiMR--