Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2496610rwb; Mon, 15 Aug 2022 06:32:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR7W7HkL0s/4tU9HnM3hbtCXUFBHL7a7Sk2RF7gfbSU/LUkRd0V+1Tz+SF3cIcRg0WMv96Ye X-Received: by 2002:a63:fc19:0:b0:428:c216:7561 with SMTP id j25-20020a63fc19000000b00428c2167561mr4582693pgi.505.1660570368843; Mon, 15 Aug 2022 06:32:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660570368; cv=none; d=google.com; s=arc-20160816; b=GwAlabtq1NvmAgOfauH3Hs7Ke6vY+nTCzqJTQiQtkeLdLkZ9FXxkG767r6vAbSS+/2 C9iO0x1S0QRRwk2Brc24tAzi5K3CEOqztpxY0Zjgaaj73DCf83yjEF0RVikSvdonAkM2 5o5O69n0IaGDTHCQFxGOWHW7YAvbUbqu9rBucQ6YHZkbcmNAVDE1eK9MR16ttYDRFK/I 9yyNfqQahtzYW2ay8Tzw6KcmyYdOsMyQODeMWirqhZJAw0x1Hx8bgPtxwY2qdhQnrnHA kJPJlysYFZpzKMq9vnqZa9+JK+NmuM7nZoJ6LIHwBSYESUj7kEab4cePso2AHjMpwJrS bhAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=cHBCVrYF6PCd1Kfozii15caVkPvyJaqe6SVHf6nDFnY=; b=fPruMOFZJjAGUzojuDgCuwLeBUAm8QolljChGKgvhj5xmFJMFba4EHc17XlakdIJ70 uW9D6CKeKxcwv4o8pQht4NTmavceNbR3bAv+mX9jfiuOK0bJdg792geAgmujzKDt8Gjt wzNbe0VxqhYTCWOpMqDYykSw5fpcGvUiIZhltm9lafE0C/lAgtsWvkfGuVo5Box78Thd 93Pg9NqSEc3mPDVU91kPPTUhp60VlHA8PjdDBvxjkcB45gtPhqgk1HP1jwO6wHfLmlih VHf3kh+yNhWaJSvGKLB0MWKDahPKgRxc11JRApnL5tb4gGJgNShh70ZCDcthrx1ZTbq+ xs+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=HMGy9EAP; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f123-20020a636a81000000b0042966cc11b9si2541591pgc.77.2022.08.15.06.32.38; Mon, 15 Aug 2022 06:32:48 -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=@suse.com header.s=susede1 header.b=HMGy9EAP; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243013AbiHONYH (ORCPT + 99 others); Mon, 15 Aug 2022 09:24:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243034AbiHONXs (ORCPT ); Mon, 15 Aug 2022 09:23:48 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFC0C1DA70; Mon, 15 Aug 2022 06:23:46 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 878E220B30; Mon, 15 Aug 2022 13:23:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1660569825; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=cHBCVrYF6PCd1Kfozii15caVkPvyJaqe6SVHf6nDFnY=; b=HMGy9EAP6+jcOvZN5k/wtqCrne3YQi9csqDNao8rsF5YSRTmZ6Rbab2gsZeg8D97ThDzG7 NRx6qqjBQnQbeJmU0EXssWO2uNV7EEYZgSn7oqQdR0U3BtsBS741D8Ye1k40KbKH+WIB1q uEg5kck5difRZBcHEtu/zIYOT0gZQuI= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 3CC5C13A93; Mon, 15 Aug 2022 13:23:45 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id x9raDeFI+mKBRAAAMHmgww (envelope-from ); Mon, 15 Aug 2022 13:23:45 +0000 Date: Mon, 15 Aug 2022 15:23:43 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Johannes Weiner Cc: Chengming Zhou , 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: <20220815132343.GA22640@blackbody.suse.cz> 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: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On Wed, Aug 10, 2022 at 11:25:07AM -0400, Johannes Weiner wrote: > cgroup.pressure.enable sounds good to me too. Or, because it's > default-enabled and that likely won't change, cgroup.pressure.disable. Will it not change? I'd say that user would be interested in particular level or even just level in subtree for PSI, so the opt-out may result in lots of explicit disablements (or even watch for cgroups created and disable PSI there) to get some performance back. I have two suggestions based on the above: 1) Make the default globally configurable (mount option?) 2) Allow implicit enablement upon trigger creation WDYT? Michal