From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752140AbdBBRFT (ORCPT ); Thu, 2 Feb 2017 12:05:19 -0500 Received: from mail.skyhub.de ([78.46.96.112]:48440 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751147AbdBBRFS (ORCPT ); Thu, 2 Feb 2017 12:05:18 -0500 Date: Thu, 2 Feb 2017 18:04:56 +0100 From: Borislav Petkov To: Ingo Molnar Cc: "Ghannam, Yazen" , x86-ml , Yves Dionne , Brice Goglin , Peter Zijlstra , lkml Subject: Re: [RFC PATCH] x86/CPU/AMD: Bring back Compute Unit ID Message-ID: <20170202170455.gbuivmli5fhmuucn@pd.tnic> References: <20170201200237.36s2jwjgxi24we66@pd.tnic> <20170201214421.ppw2ww3faxxu2jrm@pd.tnic> <20170201222507.qvcn6dsxucn6fqcv@pd.tnic> <20170201224150.ohb7f7jvbttnikkz@pd.tnic> <20170202121054.im3c3iiqp26a2dyb@pd.tnic> <20170202154359.fevz4fmwc6t4ew75@pd.tnic> <20170202160916.GA12498@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170202160916.GA12498@gmail.com> User-Agent: NeoMutt/20161014 (1.7.1) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 02, 2017 at 05:09:16PM +0100, Ingo Molnar wrote: > If there's any doubt about the validity of the measurement I'd suggest doing: > > perf stat -a --sync --repeat 3 ... > > ... so that there's no perf overhead and skew from the many processes of a kernel > build workload, plus the --sync should reduce IO related noise. > > Or: > > perf stat --null --sync --repeat 3 ... > > ... will only measure elapsed time, but will do that very precisely and with very > little overhead. Yeah, I was talking to Peter about the -a thing on IRC... I think I'm going to try that. Here's the full command I was using: ./tools/perf/perf stat -e task-clock,context-switches,cache-misses,cpu-migrations,page-faults,cycles,instructions,branches,branch-misses --repeat 3 --sync --pre ~/bin/pre-build-kernel.sh -- make -s -j17 bzImage I think I stole it from you from some mail thread we had in the past. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.