Received: by 2002:a05:6359:322:b0:b3:69d0:12d8 with SMTP id ef34csp313665rwb; Wed, 10 Aug 2022 08:40:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR5ZoZjcG7gHNedfAHS2XD7E94rRmxfs2of4zuzF9yXxrHnPV3Hpay6hy2u4NbwSK5VZJ3Im X-Received: by 2002:a05:6a00:2181:b0:51b:560b:dd30 with SMTP id h1-20020a056a00218100b0051b560bdd30mr28185649pfi.44.1660146039103; Wed, 10 Aug 2022 08:40:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660146039; cv=none; d=google.com; s=arc-20160816; b=TOMZMOPrG4tAuYMOyDMOWs3GmXOqBftexfOo8gdWIJveXtzb4exFB0Hq/ovblaan83 VWNZvG3wtcpPPKAenakDuDEfWrr+ZojJa9zW4m9g7VWZa7KLBA7VgM0N52R/SehRXI2h yBc2OJKM3vMUh9u09QXFUB5Lf6MP6FIWYta3md/KMilYd6hn7qgQ1w0a3Ce5PSDjoE7Z BgBXeuPiTELoC0lawEiOd+tjbhcXo3wvMaCZ8EcDwhjKnLErtqvSIlZREEJQtvXL+yle TnE/24GkHDh0u21RdIx2WWWmbFYH2hzdVCnH2wJvanOnhXhK6LigvmigfPTx+rbOuf5l g9tA== 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=XKSHwFSFM1Cfz7cdR5obhEJYaVPc+IY05aklvSLeQmw=; b=zoOKrQZiNkml8vSQioxD0EqJSrxUrqgxefpuHYT5dFNtdQqeIxsCPGQ7qs2osS8yGD v03CGV0xZ4KmjcTCJCdQnxtp61tQ9NiLAQOaTa6ZTtTcCuZyoOa/6YnrYMpoMFIvEnBF uBnZjacG4MZ1N/3NTXttrA0Du48wNWRRy8ByFx+1K+i7stTx5WNwLYaiFhp1p0TZJSZJ EXI0nX1FBZ5w0EenXhJ2YddwP8sQaxr0SB2AXow7FZnexrv8BzMzssZ6uMUr3h+7Cjwq la8AnX1IuPXqW24LPA7iex5zO4eo2mTNPQlC4UXC0DOrTZmSw7CJ1/xzqB+pTeOqvvnZ 2xiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=e25AVASd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y6-20020a17090a8b0600b001f2bdbbf65fsi2081643pjn.148.2022.08.10.08.40.11; Wed, 10 Aug 2022 08:40:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=e25AVASd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233290AbiHJPZW (ORCPT + 99 others); Wed, 10 Aug 2022 11:25:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233439AbiHJPZL (ORCPT ); Wed, 10 Aug 2022 11:25:11 -0400 Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B35D978237 for ; Wed, 10 Aug 2022 08:25:09 -0700 (PDT) Received: by mail-qt1-x832.google.com with SMTP id y18so1324503qtv.5 for ; Wed, 10 Aug 2022 08:25:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20210112.gappssmtp.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=XKSHwFSFM1Cfz7cdR5obhEJYaVPc+IY05aklvSLeQmw=; b=e25AVASdPskhVxulzpOYgaM3vGiYCxw8t0zkJEcYGUk7Fx/Mq8TE82UTUMm1fMJjVJ +eQqkzIQtuQ3Xt94VFmavIu2BAbiC/+oGnTH5+DCvd3jY+Tqabjep1pmpm/SXb8nex/A /j6SqUkQQs2pAQbRfRMOyQOcuQgo77JpaJjLIvmv7AVsaBadJL1snWWmn0oQ7Z9bDpLN K9GiCya8kI8O2Ly2d26O96W/pja52lx6vvKnqSoq5WH1mypXZrvJnWZ9g3p3L8ZdIPTU YYXBaxvP1uUq0TSvFpBrEt3YPzMVQjZZ5RhrUlBB9wTSOKi3mTgDWCYXz8j3nkwzOy+f g1JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=XKSHwFSFM1Cfz7cdR5obhEJYaVPc+IY05aklvSLeQmw=; b=JEkSbTjoynBWDDPnURudw4P20l5KS48mK8TdhKM7toa+WbMg/dBc6wPuc/wI4nJAH0 uDjAeefwyttsB0DgawuHTHqD9RR1rv0zLWo0NiimN0IJTObAtW5cS9IdFiD2bgJpSGyq puz8SmKbYC7KRNXu7qwGEeG7i8wLztEN5UF6Yra+bZTe6HsVkfv1v7xqW/yM2AnmhKgJ V0S+t27syBjN5T73OM1oV/TjqH7FAwEF7nLvwLixOQedDGa4YUnYzzyf0A7HOQMLEieC uj67h3lQR/URVoxLT0COItpfrDk2PrsOvvXVs2KxyiABKEdoVo4kXD9yXWF2zpTle92a T76g== X-Gm-Message-State: ACgBeo1dCdcrwnkM/lkp3KjIDIB7u20y9IFP4lGPqXo2kdAeQDJc7aCL ZvIpSbqE1FQ0RqwQXx89h2koowCzcqXRXMZq X-Received: by 2002:a05:622a:1c4:b0:342:f653:bdb with SMTP id t4-20020a05622a01c400b00342f6530bdbmr14334728qtw.31.1660145108572; Wed, 10 Aug 2022 08:25:08 -0700 (PDT) Received: from localhost (2603-7000-0c01-2716-00ea-7f88-5fd9-01cd.res6.spectrum.com. [2603:7000:c01:2716:ea:7f88:5fd9:1cd]) by smtp.gmail.com with ESMTPSA id f7-20020a05622a114700b0033c36ef019esm11938634qty.63.2022.08.10.08.25.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Aug 2022 08:25:08 -0700 (PDT) Date: Wed, 10 Aug 2022 11:25:07 -0400 From: Johannes Weiner To: Chengming Zhou Cc: Tejun Heo , corbet@lwn.net, surenb@google.com, mingo@redhat.com, peterz@infradead.org, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, songmuchun@bytedance.com Subject: Re: [PATCH v2 09/10] sched/psi: per-cgroup PSI stats disable/re-enable interface Message-ID: References: <20220808110341.15799-1-zhouchengming@bytedance.com> <20220808110341.15799-10-zhouchengming@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Wed, Aug 10, 2022 at 09:30:59AM +0800, Chengming Zhou wrote: > On 2022/8/10 08:39, Chengming Zhou wrote: > > On 2022/8/10 01:48, Tejun Heo wrote: > >> Hello, > >> > >> On Mon, Aug 08, 2022 at 07:03:40PM +0800, Chengming Zhou wrote: > >>> So this patch introduce a per-cgroup PSI stats disable/re-enable > >>> interface "cgroup.psi", which is a read-write single value file that > >>> allowed values are "0" and "1", the defaults is "1" so per-cgroup > >>> PSI stats is enabled by default. > >> > >> Given that the knobs are named {cpu|memory|io}.pressure, I wonder whether > >> "cgroup.psi" is the best name. Also, it doesn't convey that it's the > >> enable/disable knob. I think it needs a better name. > > > > Yes, "cgroup.psi" is not good. What abort "pressure.enable" or "cgroup.psi_enable"? > > Doesn't look good either, what do you think of "cgroup.pressure.enable"? How about just cgroup.pressure? Too ambiguous? cgroup.pressure.enable sounds good to me too. Or, because it's default-enabled and that likely won't change, cgroup.pressure.disable.