From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88F94C433E0 for ; Wed, 23 Dec 2020 22:19:52 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 31BDA22283 for ; Wed, 23 Dec 2020 22:19:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 31BDA22283 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=5Y7maNRUBUDkLjCxiEhKHQYUZHMNA14/o/lUTLFJF0I=; b=EhZgQbAHwB9m6IjEc9SlVojep haTNQAqWPoOWemex9uBJoM9imSNLSuFncRz/dLhAMf68FeP/Aijin8w/MTNRF8B3Du7vXbAaQFWCp WU9pqhcHS8zJc2xL5yycJBYvx9hWrMXpL8mvfavbwBG2wamTa6WafwIzuQYk6KhW+5kOLHpzdUz2J uVV9C+2fFRqattId9sYWQKTaOULxuGpQHwQiDMOIBkRmvruIajDduSThuDBjdj5hIs18mosEYwL47 5jO+SsscN/fCKg5Ebb9AD3Jt1rbvqP76ntLVWHlCcK2tnywIXAYhrSMtmYQHxrVqtSm8agoBp5Qpc m5iCxzoMA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ksCSD-0006UY-Rp; Wed, 23 Dec 2020 22:17:57 +0000 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ksCSA-0006Tz-BT for linux-arm-kernel@lists.infradead.org; Wed, 23 Dec 2020 22:17:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1608761873; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=6Ck1I5IrcfRnzD5SQ2UFbqmp5MXdOKhjN9/IxJ3cG8s=; b=jH/iQIaKW6DwCdcMroULe4RtSmlzPgg+ic8n1YHCBkyU0m75K1n6JpOKggaUdMS66VMAH9 42Ur3DJCACc85vya2Mr4JP8VuwlgzFMka7IVrxXOtoCKUzjWu6kLsHWvn23ikUgPdVbjw4 IaK0eW8DmxknWpz17EAMiFdKxEd2T8o= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-226-5aHaB8T0OqWGAb0lOIsWTw-1; Wed, 23 Dec 2020 17:17:51 -0500 X-MC-Unique: 5aHaB8T0OqWGAb0lOIsWTw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id F3716801AB3; Wed, 23 Dec 2020 22:17:49 +0000 (UTC) Received: from krava (unknown [10.40.192.56]) by smtp.corp.redhat.com (Postfix) with SMTP id DFF662BFE3; Wed, 23 Dec 2020 22:17:47 +0000 (UTC) Date: Wed, 23 Dec 2020 23:17:47 +0100 From: Jiri Olsa To: Arnaldo Carvalho de Melo , James Clark Subject: Re: [PATCH v6 00/12] perf tools: fix perf stat with large socket IDs Message-ID: <20201223221747.GB236568@krava> References: <20201126141328.6509-1-james.clark@arm.com> <20201203153923.GA3613481@krava> <30c4426d-b314-98ff-e6d5-6d5152f316e8@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <30c4426d-b314-98ff-e6d5-6d5152f316e8@huawei.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201223_171754_438141_50EE4E48 X-CRM114-Status: GOOD ( 20.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: John Garry , linux-kernel@vger.kernel.org, Linuxarm , linux-perf-users@vger.kernel.org, namhyung@kernel.org, "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Dec 04, 2020 at 11:48:36AM +0000, John Garry wrote: > On 03/12/2020 15:39, Jiri Olsa wrote: > > + > > > On Thu, Nov 26, 2020 at 04:13:16PM +0200, James Clark wrote: > > > Changes since v5: > > > * Fix test for cpu_map__get_die() by shifting id before testing. > > > * Fix test for cpu_map__get_socket() by not using cpu_map__id_to_socket() > > > which is only valid in CPU aggregation mode. > > > > > > James Clark (12): > > > perf tools: Improve topology test > > > perf tools: Use allocator for perf_cpu_map > > > perf tools: Add new struct for cpu aggregation > > > perf tools: Replace aggregation ID with a struct > > > perf tools: add new map type for aggregation > > > perf tools: drop in cpu_aggr_map struct > > > perf tools: Start using cpu_aggr_id in map > > > perf tools: Add separate node member > > > perf tools: Add separate socket member > > > perf tools: Add separate die member > > > perf tools: Add separate core member > > > perf tools: Add separate thread member > > > > Acked-by: Jiri Olsa > > > > Tested-by: John Garry hi, I was wondering where this went, and noticed that Arnaldo was not CC-ed on the cover letter ;-) jirka > > I still think that vendors (like us) need to fix/improve their firmware > tables so that we don't get silly big numbers for socket/package IDs, like > S5418-D0, below: > > $./perf stat -a --per-die > > Performance counter stats for 'system wide': > > S36-D0 48 72,216.31 msec cpu-clock # 47.933 CPUs utilized > S36-D0 48 174 context-switches # 0.002 K/sec > S36-D0 48 48 cpu-migrations # 0.001 K/sec > S36-D0 48 0 page-faults # 0.000 K/sec > S36-D0 48 7,991,698 cycles # 0.000 GHz > S36-D0 48 4,750,040 instructions # 0.59 insn per cycle > S36-D0 1 branches > S36-D0 48 32,928 branch-misses # 0.00% of all branches > S5418-D0 48 72,189.54 msec cpu-clock # 47.915 CPUs utilized > S5418-D0 48 176 context-switches # 0.002 K/sec > S5418-D0 48 48 cpu-migrations # 0.001 K/sec > S5418-D0 48 0 page-faults # 0.000 K/sec > S5418-D0 48 5,677,218 cycles # 0.000 GHz > S5418-D0 48 3,872,285 instructions # 0.68 insn per cycle > S5418-D0 1 branches > S5418-D0 48 29,208 branch-misses # 0.00% of all branches > > 1.506615297 seconds time elapsed > > but at least it works now. Thanks. > > > > > > > > > tools/perf/builtin-stat.c | 128 ++++++++++++------------ > > > tools/perf/tests/topology.c | 64 ++++++++++-- > > > tools/perf/util/cpumap.c | 171 ++++++++++++++++++++++----------- > > > tools/perf/util/cpumap.h | 55 ++++++----- > > > tools/perf/util/stat-display.c | 102 ++++++++++++-------- > > > tools/perf/util/stat.c | 2 +- > > > tools/perf/util/stat.h | 9 +- > > > 7 files changed, 337 insertions(+), 194 deletions(-) > > > > > > -- > > > 2.28.0 > > > > > > > . > > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel