From: Peter Zijlstra Subject: Re: [PATCH v3 1/1] cgroup: make per-cgroup pressure stall tracking configurable Date: Tue, 25 May 2021 09:12:59 +0200 Message-ID: References: <20210524195339.1233449-1-surenb@google.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=uehh4cPPcsHkI+ofqFVA/9YB9cJWcIz/8uLMkzzVSu8=; b=XzNIiRP+DH+CDt+hgDALUsVNng lHK9X1wzN+4A/ZOIjAsp2FGB+pmCBn3/LS6bhLf+LJ/GHAcV4yf0BW0gox+4yPYa8eHdlHosrBbxl MASrTUt/7ygG5O/iH1++y+9o1GEBq7HSvHX0XpTIa91x3pZjopHo594ge099Q2ILpJChZ+67byR8E pdH3PO7Bx4vvjzdKWQaGS3SIKYPbzKCo+qQanGNUKKFg6Jj6EU8pLuuRkT9bs6dGKmsYYHZYgSwaU ueNQv0b24QFK0oiZTISUCNUY6EjEnz8Dn5pavsn5a5QMCbzi4WMkkRnvA06cJq2SSbTyrdx11evrU KnmL+Q9w==; Content-Disposition: inline In-Reply-To: <20210524195339.1233449-1-surenb@google.com> List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Suren Baghdasaryan Cc: tj@kernel.org, hannes@cmpxchg.org, lizefan.x@bytedance.com, mingo@redhat.com, shakeelb@google.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, minchan@kernel.org, corbet@lwn.net, bristot@redhat.com, paulmck@kernel.org, rdunlap@infradead.org, akpm@linux-foundation.org, tglx@linutronix.de, macro@orcam.me.uk, viresh.kumar@linaro.org, mike.kravetz@oracle.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, kernel-team@android.com On Mon, May 24, 2021 at 12:53:39PM -0700, Suren Baghdasaryan wrote: > PSI accounts stalls for each cgroup separately and aggregates it at each > level of the hierarchy. This causes additional overhead with psi_avgs_work > being called for each cgroup in the hierarchy. psi_avgs_work has been > highly optimized, however on systems with large number of cgroups the > overhead becomes noticeable. > Systems which use PSI only at the system level could avoid this overhead > if PSI can be configured to skip per-cgroup stall accounting. > Add "cgroup_disable=pressure" kernel command-line option to allow > requesting system-wide only pressure stall accounting. When set, it > keeps system-wide accounting under /proc/pressure/ but skips accounting > for individual cgroups and does not expose PSI nodes in cgroup hierarchy. > > Signed-off-by: Suren Baghdasaryan > kernel/sched/psi.c | 30 +++++++----- Acked-by: Peter Zijlstra (Intel)