Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp342634imm; Sat, 14 Jul 2018 01:49:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc/zFGi1YcQ+pmEHiSW+ycQJPHBVS7JIwxIo097gelupW9RqfDpGhQDyg91SPoYr9VpkWPz X-Received: by 2002:a63:6188:: with SMTP id v130-v6mr8913271pgb.100.1531558191189; Sat, 14 Jul 2018 01:49:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531558191; cv=none; d=google.com; s=arc-20160816; b=KVAHa9K8JTQPsz4aQQYg49nC39mjaJjdaKVvsiGZBAI4HMrfESQjwu83t73+kAEkzk HHZUn0JW7dSZl9hgij2bhz+7tjGof7rYTcMKmD+xO47YmMFWKAZF3ICDahVvpf65p1yJ SneTVVOUgHhqOmQfT7tih5x/jifVBZoVUg/wcMWaEZQpn2sVGT+BnllBE7P4kPV9iZKJ pWxtM5WwdUSivBopdeWzkZ1ELl7gL3MRFCkgBsxBAj343wgXnH1CcmLOjy5idd+gkGTl TUzr4bTk9r//rCHbb6K7KEEbYhGtewGcmkdn2xIi0PKDFqQYtIHRhGMoLvgyRiAlE8yi HqQA== 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=D4UH+YSxBBsFpoWpsdR49sCjczDPjsDoe/b3ykeEbSg=; b=AD4KMTg1jBqozLaJS2Mv75GqSU0eDNfzZZ0NBPpr3DG8B9EelcNFVZXHHHGia05pyq 2Mb+PGDN2rdCVCy+RNBqlaxk61nnptw5TIiIBsGmyRH/mZ/xdN2sFPxhL82ztxKELjRl vMdCc+mFix5vJDPbN11hz7AmDu8GlvpLxbTPUeB9mkbQCM/sVO8LW7/jwfsIojIP8CY1 hFMp4AYGHX4fCvruv4G7jsgq4N44/9hxtlxZyboTtWzuRWf4zjqNbpN9quI0jVubRY4f fwNBtT+tBSEah/mjX7rLd0MhvOp33U0mGp3CPlT5x7EJ4AwTQuwmOMhYX1eVGUZ07J3H 8Pzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=ASPFh83A; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1-v6si17174040pfb.208.2018.07.14.01.49.15; Sat, 14 Jul 2018 01:49:51 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=ASPFh83A; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726979AbeGNJGm (ORCPT + 99 others); Sat, 14 Jul 2018 05:06:42 -0400 Received: from merlin.infradead.org ([205.233.59.134]:55314 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726657AbeGNJGm (ORCPT ); Sat, 14 Jul 2018 05:06:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=D4UH+YSxBBsFpoWpsdR49sCjczDPjsDoe/b3ykeEbSg=; b=ASPFh83A6P0wyfA5ZSABHOd5G 2zO4hvGtG0o3nSAY27X5ZIox46ynM+x6Y3pldiRdjZCLLro7MMJmfzHKQugKFbv37WAeLKsZ23Z1K e8SfE7irA4q7yc1J2Ajzk79Clk2CmzVVDHZKLampmKjJMZIA+zvSbITA0msbnDC/AlbDsyFhWPi1c WYiCDTJy44T1g33FlvxoN3WEGVFGu6NWbtiJiIvKY6sec8eWVH83Uziw4mOvcJIL2KG58RuLWdO55 8DUU32v6vz6v9qiRq1HCy2ZInxRZImTrbFcV1rBxvhBHllD31pdPvpIvuzRx6wAUdx2jKm8s97yMy uEPYG3Y2g==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1feGDl-0007ff-EK; Sat, 14 Jul 2018 08:48:05 +0000 Received: by worktop (Postfix, from userid 1000) id 8101A6E093E; Sat, 14 Jul 2018 10:48:01 +0200 (CEST) Date: Sat, 14 Jul 2018 10:48:01 +0200 From: Peter Zijlstra To: Johannes Weiner Cc: Ingo Molnar , Andrew Morton , 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 08/10] psi: pressure stall information for CPU, memory, and IO Message-ID: <20180714084801.GB4920@worktop.programming.kicks-ass.net> References: <20180712172942.10094-1-hannes@cmpxchg.org> <20180712172942.10094-9-hannes@cmpxchg.org> <20180713092153.GU2494@hirez.programming.kicks-ass.net> <20180713161756.GA21168@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180713161756.GA21168@cmpxchg.org> User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Johannes, A few quick comments on first reading; I'll do a second and more thorough reading on Monday. On Fri, Jul 13, 2018 at 12:17:56PM -0400, Johannes Weiner wrote: > First off, what I want to do can indeed be done without a strong link > of a sleeping task to a CPU. We don't rely on it, and it's something I > only figured out in v2. The important thing is not, as I previously > thought, that CPUs are tracked independently from each other, but that > we use potential execution threads as the baseline for potential that > could be wasted by resource delays. Tracking CPUs independently just > happens to do that implicitly, but it's not a requirement. I don't follow, but I don't think I agree. Consider the case of 2 CPUs and 2 blocked tasks. If they both blocked on the same CPU, then only that CPU has lost potential. Whereas the only thing that matters is the number of blocked tasks and the number of idle CPUs. Those two tasks can fill the two idle CPUs. Tracking per CPU just utterly confuses the matter.