Received: by 10.192.165.148 with SMTP id m20csp485394imm; Fri, 20 Apr 2018 09:54:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx48BaoUrawAco7XsQq4VnMBhYFNpr2wxwFzZJDS2JcgmmZtWKvBydOsO2cjEnwVhaUAflJk1 X-Received: by 2002:a17:902:8b84:: with SMTP id ay4-v6mr10908718plb.57.1524243281355; Fri, 20 Apr 2018 09:54:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524243281; cv=none; d=google.com; s=arc-20160816; b=T5JTc+4oTHFwhyMxXoel40Il7dGZigK4CZTj5fJ/Jgphl/de10SWxKTIzak2Y+EyM0 Wy9FYFB8RgUbD7RJXUQOfkf35DmozU4SYQn1cbl5q2Z+Zar1cAYuHNnXPXvzeuJzV5xt yXrUebOXoXCysBYy9CY7JzEToP8SWgVOOYf4EY2fTskAa6iFC+6WGPnK4gQ70V5ZofWu c9mXUzlYU13dISknGv+xL6fTULGupitEh87B6swYMa8gPmcJhEe59F62I/C7UoP3hfTV TTTcFr2/gEzT1qsEXAt9YUO44ZtaosxGBJX3XE4eCTrLPVTx/EkOMmh6kZhXZTiZTxUa /Nwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:date:from:dkim-signature :arc-authentication-results; bh=lA99xKHDxmnWdtBC+tghaKrOYvx9vhXj823JvTgZIyA=; b=I9qBsiBlXUzpDgU44W4moSmVgD9eAZkMuq9UIyyyEd0BaGo+mDZYlxBth6QBU2wzl4 GOcE165+aM+GXAAyTPdoZguq9GuiGBiIZDvAemTgXDvpixaV5538BWWbvQfa8jsPIk5Q 8YEeXfiREiuUnFPZR1OUkQ3rpH5Br58zDPG9ZTptwd+LTbnd6/IABiE17cq9AujJU6TU Z6900cFPwRExEBtBnipNUmtoBaNDEsFk8sVarfOHI119LjJmpG7U5IhxyXR66mdBIhq6 OrLyPZNGffcbI6tajU1a3PZJiEfZjvJ1qOWE/18deIqRub7A8a+hM2pdZ9TvbkpvzLSf 8rqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maine.edu header.s=google header.b=h2cnFMfG; 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 a16si8232pgn.39.2018.04.20.09.54.27; Fri, 20 Apr 2018 09:54:41 -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=@maine.edu header.s=google header.b=h2cnFMfG; 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 S1752958AbeDTQvX (ORCPT + 99 others); Fri, 20 Apr 2018 12:51:23 -0400 Received: from mail-qk0-f173.google.com ([209.85.220.173]:46518 "EHLO mail-qk0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751865AbeDTQvV (ORCPT ); Fri, 20 Apr 2018 12:51:21 -0400 Received: by mail-qk0-f173.google.com with SMTP id s70so9256921qks.13 for ; Fri, 20 Apr 2018 09:51:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maine.edu; s=google; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=lA99xKHDxmnWdtBC+tghaKrOYvx9vhXj823JvTgZIyA=; b=h2cnFMfGzYmtM8Gd8UdLjeFhZjJoTjJFIGVK2E9LL94M9aiVp3El/nmSPazRpWoTt7 7eqf7C+4//zAk8Mj+6kVc+KcaH9K8SgjD1xukxBXU12agFSmBfyPHIqt98K3zw35nV5j 4O/qPz9IQ0/D3YcYkV8M1zEA4KCxtF+8eYP/w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=lA99xKHDxmnWdtBC+tghaKrOYvx9vhXj823JvTgZIyA=; b=smw7ZxTGwYljqjny9fCqCtFYA/vDvwwcr6iS4o2gcEFf1T6poVBAhNckToFQVWlx8a FT+gDbFrtPz0QRxHiCLVPfbhCaplTwBvtZb3rUlRASZZhc6GZYuehVVSXOBIL7HKo9iZ yQe3V2koNeIaOnLxmIAGtHEAiUYNBYi7nuJv7ndG5TMrb1fIxcqmlvfGqnnDYqxfsBiy 2/8Oilw+bETEIKwOV08K0bbF2xAIMyTOpRsnRSN2UcVcBhaOJvIpV1rnji9FK83Fvjf7 v/mS6szn2znmESEXWyJJYPBOcVqcTISX1oAe4yrEusE8jp2f6/UIsJacuswfH676r0Js NoGA== X-Gm-Message-State: ALQs6tDLpJSi34S+GO8kHZBteupKpDg4Oy62yorJ2Agevuf0FxJitYic 4owFomwiuaMxXEYNOtDfLRNzGqYo X-Received: by 10.55.160.21 with SMTP id j21mr10841241qke.18.1524243081158; Fri, 20 Apr 2018 09:51:21 -0700 (PDT) Received: from macbook-air (weaver.eece.maine.edu. [130.111.218.23]) by smtp.gmail.com with ESMTPSA id v57-v6sm1666925qtj.47.2018.04.20.09.51.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Apr 2018 09:51:19 -0700 (PDT) From: Vince Weaver X-Google-Original-From: Vince Weaver Date: Fri, 20 Apr 2018 12:51:12 -0400 (EDT) X-X-Sender: vince@macbook-air To: Vince Weaver cc: Peter Zijlstra , Jiri Olsa , Stephane Eranian , LKML , Arnaldo Carvalho de Melo , mingo@elte.hu, Andi Kleen Subject: Re: [RFC] perf/core: what is exclude_idle supposed to do In-Reply-To: Message-ID: References: <20180417062010.GA2052@krava> <20180420083607.GG4064@hirez.programming.kicks-ass.net> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 20 Apr 2018, Vince Weaver wrote: > > AFAICT it works on Power and possibly ARM. > > at least some ARMs are a bit more honest about it than x86 > > ivybridge: > Performance counter stats for '/bin/ls': > 1,368,162 instructions > 1,368,162 instructions:I > > pi2/ARM cortex-A7 > Performance counter stats for '/bin/ls': > 1,910,083 instructions > instructions:I > > I'd fire up my Power8 machine to see but not sure it's worth the hassle > and/or having to get out the ear protection. I did power up the Power8 machine in the end: power8: perf stat -e cycles,cycles:I sleep 5 Performance counter stats for 'sleep 5': 14,271,273 cycles 14,271,273 cycles:I ??? But then if I try again on power8 perf stat -a -e cycles,cycles:I sleep 5 Performance counter stats for 'system wide': 1,238,772,322,327 cycles 1,238,674,771,713 cycles:I there is a difference. But then on ivybridge perf stat -a -e cycles,cycles:I sleep 5 Performance counter stats for 'system wide': 589,598,104 cycles 589,537,190 cycles:I there is also a different in system wide mode. So maybe exclude_idle does do something on x86? Or am I completely misunderstanding what the flag is supposed to be indicating? Vince