From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753082AbeDTQvX (ORCPT ); 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 X-Google-Smtp-Source: AB8JxZo/cfnuGMql+/FVbplwUlloK3+a0IVEZPstD3l46+UaawH1gc8AjWndHJrfVMivLWxg2LuULw== 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 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