Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4362118pxj; Tue, 8 Jun 2021 12:25:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyk6FCXCLBjuHXT2kI3BYBd9j8GzHZFInljR/5BeMe1mFdVC5mM1/2jkfouPC0PXzVTMA4t X-Received: by 2002:a50:c8c3:: with SMTP id k3mr27730925edh.318.1623180331803; Tue, 08 Jun 2021 12:25:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623180331; cv=none; d=google.com; s=arc-20160816; b=PB8nGgqqtyZkSdlKrQUW0eRzMsU0lzFXA2F0ZacXOgjCz1nADoUT/G7NTw/DXif+Z5 D3yzlYJQ+StsFWR2aqmbN26aXzN3giG2mWzae/8zDlX4fBZIThf9FtdFlao9s2lx7vY2 Nti2DVNF44A8WElw4CtaIooDdnZ6o2Vg9u2sEVaBd6qNiROEWs+vx1lQazYZfobsN+z3 Uk7i3zMGEb35/1GSrhAye6ywRAUfWvGnSc3HNM3SfnpUpVJHqGSzl0DQnDSOQGUbMQAW wNoFIkvSZzPA7lXESjy4MGlR6TvVtl1zrYo9M0v4tVCDyWbG/xBrdMYZ+RZc6TUxt7yg 3Cxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=8Q62ke2XWkCOB5xI489ufG7OUF/C+vGscmBTXHr5cls=; b=P9AHrNYeSoqnheLwBmfpH5U9cpwtWh2O01S/iA91pE2MHcdvA1EOnMpXc3i8nzgC0j sEV4QQnYW6ulOANwrKgF5yLPivEmWh7hoQhjgAVIFzkRPYxClN8tGFmP2xC1RKdZxZmY cavDs511kNzy6DUWk7+6+4fIKp81sdzVLH0znyznw4UwsDUv7XWnvWePGhnB4UKXjkcR Kb6gg6JY3KT88NqJKxjo+fPO3HZdm1rffLKWbW20KrRDiS1oDy6JD/Veci330ciLpRnl Rl/Pbsv+Bb1+bgQU3/OvKMJUvLTwTStRELN2Pt3dbMXCoF6xBXYUk5i4/hKqtc7lVLjg gHZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=JefvDSOv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 12si427849ejm.512.2021.06.08.12.25.08; Tue, 08 Jun 2021 12:25:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=JefvDSOv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239106AbhFHTVI (ORCPT + 99 others); Tue, 8 Jun 2021 15:21:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237037AbhFHTJN (ORCPT ); Tue, 8 Jun 2021 15:09:13 -0400 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 989B3C061156 for ; Tue, 8 Jun 2021 12:02:06 -0700 (PDT) Received: by mail-yb1-xb2a.google.com with SMTP id g142so12389011ybf.9 for ; Tue, 08 Jun 2021 12:02:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8Q62ke2XWkCOB5xI489ufG7OUF/C+vGscmBTXHr5cls=; b=JefvDSOvRlIAhXCAScJI3MkrvZhUIqoSdi6+Zz2+X+DhJhDkZGIb/RKdsWCOR4WEtZ tF7RtQv54pePx1GdKw4blv5HZiO6Z+lQKXXIlkM4+J2ovC5QPJv2Sb7qhE6oFEBKV4gH eOFrb4Hd9QdANKsb8iQUrZgkWOo9+QjRdiK1KDejN9LfyG3XLhosv9XRuSbvmKi9AsrS CAlZXeQeb7D73fVptUQ1IgolesraCPWKtmlUw38fv7/MZZERWznE9GnfY1NBzpLWunA9 X9aOnqH7ZcssaOPiLi1NyvLnqcwaa5HORPlh/7FDqQWHu9NO7/J8QgryUQ4CoHgt4rTP c/vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8Q62ke2XWkCOB5xI489ufG7OUF/C+vGscmBTXHr5cls=; b=FGgnPh7wZPPyREp6i4Hk71ekkkdD6R7jrVl0/mT6ZuBiYXs7vbnlEujXuvDkgfI/cE 5S1sJFoKCoZ/bGqcaiDRG5Pw6N/vUX7iy+vI3RxKXv+xjO+3kux2eVzdqcOaK8RoHqXW CU+oT85O/6mSyDjgDHYMjqFmTr3ozMV65efS/VlZouxHl5Xa19TvBIRXRPL0q+/PEIWZ FGwAILEMwBpkgqQzKYTsLTXiUQwb/6+nw2+EKAkFrFV/vjkBMfXAwWmVIJgNV2VsyuUs 1ao56XFyVCAOg3+90wVCHaTYUmirg+xMC/X+3+H7ZeuM3Vrn174GSjGhXTL9sHhbWWpj 2FlQ== X-Gm-Message-State: AOAM5300zG3uMXqsf0OGT/HNlayUE/MZeFkePaxmqABtaEjf6qYPHGtZ lhvT4nEFyYwJhblGCzUMV7AiOE8diXWiolCw79eJ+Q== X-Received: by 2002:a25:1ec2:: with SMTP id e185mr33330825ybe.23.1623178925539; Tue, 08 Jun 2021 12:02:05 -0700 (PDT) MIME-Version: 1.0 References: <20210524195339.1233449-1-surenb@google.com> In-Reply-To: From: Suren Baghdasaryan Date: Tue, 8 Jun 2021 12:01:54 -0700 Message-ID: Subject: Re: [PATCH v3 1/1] cgroup: make per-cgroup pressure stall tracking configurable To: Tejun Heo Cc: Johannes Weiner , Zefan Li , Ingo Molnar , Peter Zijlstra , Shakeel Butt , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Benjamin Segall , Mel Gorman , Minchan Kim , Jonathan Corbet , Daniel Bristot de Oliveira , "Paul E . McKenney" , Randy Dunlap , Andrew Morton , Thomas Gleixner , macro@orcam.me.uk, Viresh Kumar , Mike Kravetz , linux-doc@vger.kernel.org, LKML , cgroups mailinglist , kernel-team Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 8, 2021 at 12:01 PM Tejun Heo wrote: > > 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 > > Applied to cgroup/for-5.14. > > Thanks. Thanks folks! > > -- > tejun