From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 991B5C49EB7 for ; Tue, 8 Jun 2021 19:19:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 82B736128E for ; Tue, 8 Jun 2021 19:19:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239116AbhFHTVJ (ORCPT ); Tue, 8 Jun 2021 15:21:09 -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-Google-Smtp-Source: ABdhPJy+fNm4QOr298WGvA4Zlz2bTkxgJLA52gN0Z8CpWJHcMpPf1UbFpG1hxpnar6yV3Ga3LQ+Vlh1duPmEzUpeJQE= 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