Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1271850imm; Fri, 13 Jul 2018 15:12:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfI06fS3OCxJnMypsk2VgCa3355poUDmxyMyR2b1crJnT6zDZMhsrIXT/J57c+IckZvYsth X-Received: by 2002:a62:4083:: with SMTP id f3-v6mr8786788pfd.229.1531519937343; Fri, 13 Jul 2018 15:12:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531519937; cv=none; d=google.com; s=arc-20160816; b=mPm8XAy4K0uJ2XkxUURSuJ+GQgk3eH4p05c5X4rRfbYjGY0uB7IamJmO8GtASsI6C4 YjHLkNPqDCXAvC+DtkqIZKCaFh3iIcPth8baKCnwfaHjfWFBtXJPNNLbjVFg3sv+v0Xx nhV2G6rNVOAbomFtuguP65UiKh7TPf3Kauzs7zieE7DKT97cytiKrI/w8hkbRBGIZDY8 bINbxyH5RGRzcpbiS/9/cnK9DJ6nz2ufNbqGk7D0gnMCx8DF0HdjOPM4+U01/hauwhi3 eBL68e92dUUrdIBYNzsbGFOY8K3xsHHo7kmwJ0zwk3o0APKmlXo1/Xlqv1iIblBP0jxW HEQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=7PgyzSNJ2bqfKN8F6PdixT1ZQ9Zdxvkc+fOPVFGcypE=; b=jO0JEQ3EQ3/2evg8TMC2LqNuE7Cbo6PAEhyqRkTDq6zqsuvuyUPL350olmzXWRqeIf Bsk/BWKKesm0GqOFLtJcuvjHh2mluu/Wvp/7sWdHM52UJvmSpyBkKbof/bb9hlj8yY0n 3c9y50mI5H4tJD47auAdfGwv/F0rL4wVhxuvzS1Yz2bAvGma/jx69Ph28yVZeMqwEKWE 9NKMOD1GBlHSyhGPyHpawCZaicxCbSu45VM81itqm6/IgSpqtoBAcs8irVacW8F0to+t 0M0xu8bdZhUHkbVfHhO71Hpad+rvEQU30y+rl3W1I6ae+E4KpwX8mHH0BMpxszCPitXy K5mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=sQxoz6Mk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l21-v6si23600306pgo.272.2018.07.13.15.12.00; Fri, 13 Jul 2018 15:12:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=sQxoz6Mk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732699AbeGMW14 (ORCPT + 99 others); Fri, 13 Jul 2018 18:27:56 -0400 Received: from mail-yw0-f193.google.com ([209.85.161.193]:41782 "EHLO mail-yw0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731935AbeGMW14 (ORCPT ); Fri, 13 Jul 2018 18:27:56 -0400 Received: by mail-yw0-f193.google.com with SMTP id q129-v6so9497098ywg.8 for ; Fri, 13 Jul 2018 15:11:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=7PgyzSNJ2bqfKN8F6PdixT1ZQ9Zdxvkc+fOPVFGcypE=; b=sQxoz6MkrCfzDoTQIGPLrKd4xVZIMBDrFsvmmbmc+kAXLuPFVzlBm5DjzRN15UUcP+ D7v/yop7r0jW80AiPLdBdouqkREe6MC+FUAQJ4gfG0ZakjNWam5rQa0H5Y7FH2RuwHH6 s5s7RZkRnpgIG7TuhiZhNE3q/4Y2z0J9iDU9ihUo5g4GXwZCWKCxjBnYuRTEE2ypCC/i RIANcG9WiWGFY9p6utjE8yzYIxvUz1vpALUKT3z5Sps64dBwKb6oxhuMU2uWTsHkl+ed b4XL+3azzT4UCDcQ60eOhDO0R2cSNk0SWITJ1ctbRX4y+0OPC3Oq9ilN8F67S2O5SNkd cYww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=7PgyzSNJ2bqfKN8F6PdixT1ZQ9Zdxvkc+fOPVFGcypE=; b=S/208LqIVxOhPkjdKot8FDjcO/mN2RTrCGs2/Gh8TbR7x3eeRxVqguEMkOJ4YB7lWh nF9V9N3+Br/hcPa5DXu29aPEy5ugjEGaw7xxGvPdneMI+JGpyQdsaGWY4DYSDWP7z+qv 5SAdXZYPCbJmUKznyOJTLBl+fJs4ssS9lO9ONFiNDBJsZolLqys01EEhFt/8nrdXhf4Y UzemBCQk9t8t0Eqin9I8xYZQzVDhqw/vW32ScVgWH/jFOD2b/knoxcr1Efb2sqcbVxaA WdKXNnVfg9yHQgBSfWntQbSZ1LrcVh9XeeJ+W0ZuIXFPI5+wAvQ/vsEvBxUXe32oIfCU bVDw== X-Gm-Message-State: AOUpUlHJe9eQNOQaP7EW1/EF+maFDcIZr7KuRUj1FxTRCKZLEH920W8Z dH9Htjo50fz/m5TGtBYkI9H4Vw== X-Received: by 2002:a81:160c:: with SMTP id 12-v6mr4207053yww.254.1531519883181; Fri, 13 Jul 2018 15:11:23 -0700 (PDT) Received: from localhost ([2620:10d:c091:180::1:23bd]) by smtp.gmail.com with ESMTPSA id d189-v6sm10476114ywh.93.2018.07.13.15.11.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Jul 2018 15:11:22 -0700 (PDT) Date: Fri, 13 Jul 2018 18:14:06 -0400 From: Johannes Weiner To: Andrew Morton Cc: Ingo Molnar , Peter Zijlstra , Linus Torvalds , Tejun Heo , Suren Baghdasaryan , Vinayak Menon , Christopher Lameter , Mike Galbraith , Shakeel Butt , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH 0/10] psi: pressure stall information for CPU, memory, and IO v2 Message-ID: <20180713221042.GA30013@cmpxchg.org> References: <20180712172942.10094-1-hannes@cmpxchg.org> <20180712164422.a53cc0f9c26b078dbc7e5731@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180712164422.a53cc0f9c26b078dbc7e5731@linux-foundation.org> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 12, 2018 at 04:44:22PM -0700, Andrew Morton wrote: > On Thu, 12 Jul 2018 13:29:32 -0400 Johannes Weiner wrote: > > > > > ... > > > > The io file is similar to memory. Because the block layer doesn't have > > a concept of hardware contention right now (how much longer is my IO > > request taking due to other tasks?), it reports CPU potential lost on > > all IO delays, not just the potential lost due to competition. > > Probably dumb question: disks aren't the only form of IO. Does it make > sense to accumulate PSI for other forms of IO? Networking comes to > mind... It's conceivable, although I haven't thought too much about it yet. If that turns out to be a state we might want to track, we can easily add a task state to identify such stalls and add /proc/pressure/net e.g. "io" in this case means only the block layer / filesystems. I think keeping this distinction makes sense in the interest of identifying which type of hardware resource is posing a pressure problem.