Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7499029imm; Tue, 28 Aug 2018 13:13:05 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbJuLRbcHDnyK05YvaJ5SfGvf5AibaIZKT/ptNSKtKh1tZZeghqeS1h872LKkVtxatjix6K X-Received: by 2002:a62:89d8:: with SMTP id n85-v6mr2965006pfk.83.1535487184951; Tue, 28 Aug 2018 13:13:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535487184; cv=none; d=google.com; s=arc-20160816; b=QsVfhkKD6vutMb03nQhiBqaEloKq83tUw6gt4laebnb+r1XLc86ETw/tDOUxQQEg69 nJ/QMpMlfzua/L8EcVfbENuzx81Ls2o4GnC8brXyYPk2fQT3j08SoU1p5eHAQteSUwoI V0wr24hNhxI9nRemRHs9NhHrPjH1WUGrSkBaWoQpKF2zVx/8nibAI1/k/oZV6KDuV23y gmr/D+JunoxBVGK5feZ5mVhPqCJ7PusYcBW/FIFs++G1y2l9wBI8D7qtBEgUzDlm/I6S J2TGLzR5IOdSdQAsEsvsA8eum6w6DXtzC9ONIkuS6tC56hQBef87WnbcBVPr3g2QVrPK Dryg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=o7Y1OTUXeAY4pcjaIziv2jztxSTV+PFDKkaKRIMPqSI=; b=s+KE1dWtLTXoxZS9h6ABCBBuHcrBk70i3+9HKMScsTyGV3WaOllZd0Xf7obQHIqbDc h091MTXwU7fecOf8sjbREFDU/WGLYMn/8wKGOh44FGp+J3+/aIpgAyBJkstGqaGJKzIR tHeunqhgkAnFpvSDseveFmxpLB4a588xbV8e42ZqNrGlPwGjzrWhN/PTJw/57DullXda cdHpMYhy2LjlnCJAPC+Jo0kvSj8o66gONizKMAwpsKWE93scJ+3No9rGIALzZpOrpN7i iOOuvCEgr323XAwHi6GaTHndVoqoE4Dwn8E3UwMu+11DzE4uaeGwmS3MdA1f4CEnx7fR rHrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=otBAzOTM; 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 91-v6si1815186plc.500.2018.08.28.13.12.48; Tue, 28 Aug 2018 13:13:04 -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=otBAzOTM; 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 S1727217AbeH2AEl (ORCPT + 99 others); Tue, 28 Aug 2018 20:04:41 -0400 Received: from merlin.infradead.org ([205.233.59.134]:46264 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726961AbeH2AEk (ORCPT ); Tue, 28 Aug 2018 20:04:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To: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=o7Y1OTUXeAY4pcjaIziv2jztxSTV+PFDKkaKRIMPqSI=; b=otBAzOTMZrgYVYFdHWAJ0GiNNP XXSr0CM/MNOm3i6OqNE4eKHjTuVQ/aDkzrwB2BfF4DMsARViy6ouhI2wDN0cTjTa8hmwyhSsgN2Qn bATGeL/VyzubW3MKbWRYK8IGF2HkeYu10LaXsFu9YTJe8qRk+pVu3uih4Y9UudY0UQQB7jX09aNhe a16sXO2oJX0IFFir4wpzfogYfb+zcGUlWnMwnBjhPruiBrH6uJj1Zvbe9pUq9zinMPtc06pkNNpuP U/leUvTDNRHJ+OxcbvVAGVsaD3TXC64MzQJYj9aLaA9hmzfZe/ggcPPlBMcFvjs1IRrNXRM6IpCn7 FVzKegpg==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fukKZ-0004o0-DL; Tue, 28 Aug 2018 20:11:15 +0000 Subject: Re: [PATCH 8/9] psi: pressure stall information for CPU, memory, and IO To: Johannes Weiner , Ingo Molnar , Peter Zijlstra , Andrew Morton , Linus Torvalds Cc: Tejun Heo , Suren Baghdasaryan , Daniel Drake , Vinayak Menon , Christopher Lameter , Peter Enderborg , Shakeel Butt , Mike Galbraith , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com References: <20180828172258.3185-1-hannes@cmpxchg.org> <20180828172258.3185-9-hannes@cmpxchg.org> From: Randy Dunlap Message-ID: <6ff71c29-3b6a-4849-6f2a-3d829bbd43e2@infradead.org> Date: Tue, 28 Aug 2018 13:11:11 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180828172258.3185-9-hannes@cmpxchg.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/28/2018 10:22 AM, Johannes Weiner wrote: > diff --git a/Documentation/accounting/psi.txt b/Documentation/accounting/psi.txt > new file mode 100644 > index 000000000000..51e7ef14142e > --- /dev/null > +++ b/Documentation/accounting/psi.txt > @@ -0,0 +1,64 @@ > +================================ > +PSI - Pressure Stall Information > +================================ > + > +:Date: April, 2018 > +:Author: Johannes Weiner > + > +When CPU, memory or IO devices are contended, workloads experience > +latency spikes, throughput losses, and run the risk of OOM kills. > + > +Without an accurate measure of such contention, users are forced to > +either play it safe and under-utilize their hardware resources, or > +roll the dice and frequently suffer the disruptions resulting from > +excessive overcommit. > + > +The psi feature identifies and quantifies the disruptions caused by > +such resource crunches and the time impact it has on complex workloads > +or even entire systems. > + > +Having an accurate measure of productivity losses caused by resource > +scarcity aids users in sizing workloads to hardware--or provisioning > +hardware according to workload demand. > + > +As psi aggregates this information in realtime, systems can be managed > +dynamically using techniques such as load shedding, migrating jobs to > +other systems or data centers, or strategically pausing or killing low > +priority or restartable batch jobs. > + > +This allows maximizing hardware utilization without sacrificing > +workload health or risking major disruptions such as OOM kills. > + > +Pressure interface > +================== > + > +Pressure information for each resource is exported through the > +respective file in /proc/pressure/ -- cpu, memory, and io. > + Hi, > +In both cases, the format for CPU is as such: I don't see what "In both cases" refers to here. It seems that you could just remove it. > + > +some avg10=0.00 avg60=0.00 avg300=0.00 total=0 > + > +and for memory and IO: > + > +some avg10=0.00 avg60=0.00 avg300=0.00 total=0 > +full avg10=0.00 avg60=0.00 avg300=0.00 total=0 > + > +The "some" line indicates the share of time in which at least some > +tasks are stalled on a given resource. -- ~Randy