Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4234734pxj; Tue, 8 Jun 2021 09:28:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyiTnKq7ttH9ReD4ebN/LgkXQbowp655W4wQmlhs8rX1kjl5C4kZgDB6rNmCAuq1sKaBqnL X-Received: by 2002:a50:d54c:: with SMTP id f12mr25981160edj.301.1623169691403; Tue, 08 Jun 2021 09:28:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623169691; cv=none; d=google.com; s=arc-20160816; b=nrJpvXDf2bab9repoYFk2vdfrgKk+swZVZQGSn+zu1g1ctVLPK1on5d0eaOpEXQclr iZyDQwmXrU74rjRPxcEs2Kx0IDc86uNmryds8khHaQgBcydl8h+AljHzt5FeUc/nJSGQ Mw3dEw92IQwv60BtwYmZgoYlzR2hNIt6XmNCAkXFzNEQpKQ8mM52rF4RXNgk8QUXuLL8 gbG+eCkz0DNp8Xtzb+wdmL8biTILibCDSeYRrTXlWXZV+eNJrT9VGKqvGUM3egga3dt3 OcZTDn9Ugoc8eaoP8gxcdvyMWSpkgYFL4rSIxYmhSY+x4PWsQPep4LEzFDkg9dTTGwKh zxEg== 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=O9BYezu8gyZabw4yWCqgrj5D/dzmRPqg3cqOBnuX70I=; b=Ud6F/4BhCN0wfq2DMOUsb6cvJeac+zaqf4+D8L+yHf/b8dqQP/5YLf8hASWsEdGhPR AxFzPdtIi46M39DCmjGZmoVocUFW20sMRYw6s7lkCkj5vWj5PRTLRXX13yy7buGe1Txs UFdeaZEWdqAz9ETUmbZMRfIoARBPjLOc00gV4Uktedjx/CIEP3RszVZbQDQaVJqb1/8F Wl6solMazIJLQL88XYm5sLOq8ZGp4fx3dpySBy3jg9D9f/1ZWHsCxyM6LqGgLHa0Vwsv 4yBvaIi1muyihdqeHBwAJFXkHyZwRzeymNa6KV9obbAgn9ni6Tjey9OuttzLW0uf8Tt3 BhDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=JFQV+NEk; 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 x16si108518ejj.678.2021.06.08.09.27.47; Tue, 08 Jun 2021 09:28:11 -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=JFQV+NEk; 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 S231165AbhFHQ2N (ORCPT + 99 others); Tue, 8 Jun 2021 12:28:13 -0400 Received: from mail-yb1-f178.google.com ([209.85.219.178]:47022 "EHLO mail-yb1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231175AbhFHQ2M (ORCPT ); Tue, 8 Jun 2021 12:28:12 -0400 Received: by mail-yb1-f178.google.com with SMTP id h15so1207877ybm.13 for ; Tue, 08 Jun 2021 09:26:19 -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=O9BYezu8gyZabw4yWCqgrj5D/dzmRPqg3cqOBnuX70I=; b=JFQV+NEkpW/iFhrOOSAEJdSvL4Y5t7uoDY1dd51Y2Duhk5IpfAeqhuOyRWPFleGd3j IYdDjObTU/mSwgFZLLbQl5DFxzATFnERzNKUj5O4DVbW7GoQzRu3HVFLrA6eE932UFqa TUBINtgBShb/FCjRoTrYIdj2+wQRXbb2T1VZ52hbLSQRcCbHE42KncKpaSAw32jsGP5E aOHoGGn9J8Esk/WJ6zRNYgghsabPfwjmjUR7H7m9bfTjOaWn1kBnCbrIJrYVMBeHab7V 9z39z1pHc3ZsyC7nRCPnIz4iOwdfrAki0j7U0Jb8FcXcaGkp0//wtiz90eUBg7r+88WM BlZQ== 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=O9BYezu8gyZabw4yWCqgrj5D/dzmRPqg3cqOBnuX70I=; b=FbRHjzVViIbShJ0UIxcgrbulvPFp5qburJ8g2Fou5DXhib4EnrSzJxgUSb34WuLQDM 3xwOir7tmjaSg6/DH3JBQNOhLpUGq4A85EAZh31TE9akYm3Bqx3E9eEhbX2SM4jTtowD kXT44Ih693ZrZnTn8KAnINVQcWcKhHkZ3CG2/EYwam3DMIFNmqlwyDNOrAAGdengWgwK ZZyR7f3wzXFtG/f0fy5o8HcAELEmynKjtJmkDdQObsp9AWv+NU72ACV7MWTCA6zWBCkc 3yWmMZmAwy40Mm2beJhIJzuCV/1Ztpf8a+M8lRAMp7agOfSM4kbY1WLCI0oHvk8x7jK8 rszw== X-Gm-Message-State: AOAM531tSRogFgqdjLrZL/lJcbab36I2Aa0P5iIDOLmag19C1sUpkbGH vC/zqb/DkZn/++euXyA+rJK9eE5eyCJPnKyJrh5UyA== X-Received: by 2002:a25:ade3:: with SMTP id d35mr34223802ybe.190.1623169519031; Tue, 08 Jun 2021 09:25:19 -0700 (PDT) MIME-Version: 1.0 References: <20210524195339.1233449-1-surenb@google.com> In-Reply-To: From: Suren Baghdasaryan Date: Tue, 8 Jun 2021 09:25:08 -0700 Message-ID: Subject: Re: [PATCH v3 1/1] cgroup: make per-cgroup pressure stall tracking configurable To: Johannes Weiner Cc: Tejun Heo , 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, May 25, 2021 at 6:00 AM Johannes Weiner 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 > > Acked-by: Johannes Weiner Gentle ping for cgroup folks to please take a look at the cgroup interface part.