Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp187696iob; Tue, 17 May 2022 23:13:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvzR3Qmehs7S9Paw4z26d5ZxJdn0DevmvfrOrNOy24ZRqsmWX0F60c6/+48X/yJ0gn32va X-Received: by 2002:a05:6a00:1492:b0:50e:11ae:f62f with SMTP id v18-20020a056a00149200b0050e11aef62fmr26501700pfu.43.1652854432556; Tue, 17 May 2022 23:13:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652854432; cv=none; d=google.com; s=arc-20160816; b=ToT5GT8UuXBoFmLe1wUjbwm+//9FnI0vEVniMKoQgB1o5MOVlR5bvjOzNxtwu3wBlY RWlDFZnHRGkucJ8/wE3IVRp/qrqhzhlrCIuA3VTzGbtY+M+o4kR1nc3ZgFbbVxB/R581 5m3qLBhw0OOjVFQYnF4yYj1dIYR7DX7X8pwc5i/ywwmeJpqitXyDj7zBZnb3SGuK053V iWuAeZ8s6exmA1YlwFyzpWwKlF3GPB1XJilo/BZ9Wg1KkY5PkpDcpyBvhKSRvUa+GMbQ MI22XFymIfJUu9TtW+tMm4hkEkirG6s/PrJR0ZzdA4IF5tj07OMeFsnGvwdE0aUtg6Fc SsFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Egc6ZBRUY3Z7canJd0liUWr1zN4YpwqPjX5M7wJmK6A=; b=x8u9MimmPOyc6xMQj73X8hxO6rZZmlg2p6IPz8CPTlf9GESedNt2W9yXIXXBM+LwkZ IyQE51C8xM2e59c9UICVyAhta1Vk3h7bDdFYYinOqp+vt9SfocKDHcN7zSuGicqJljDl RuXMhMrEd72CLsYXWvPEZHTlp4Km1DPKov3Hr2KCMEtYNlFat7lyGPs6zLD8oN8mG6a6 g5EO5D6jL9yNZ2tK10u38uxZTQNhCUkLe2yBxKmZL+tNTsIyUhh2bWhMoiS9Wo5IGwQ0 +1U67jzdsN9Vh7794QUunlb1ojXk7azEFwvm7JK/Z/EItc/arRXoahimbGbpRT9gbZXP JOsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZyceAB71; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v18-20020a62a512000000b005105cb7e94fsi2052649pfm.271.2022.05.17.23.13.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 23:13:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZyceAB71; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8C7F14DF58; Tue, 17 May 2022 23:12:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230437AbiERGMd (ORCPT + 99 others); Wed, 18 May 2022 02:12:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230418AbiERGMb (ORCPT ); Wed, 18 May 2022 02:12:31 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B4444CD5D for ; Tue, 17 May 2022 23:12:30 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id p8so1205455pfh.8 for ; Tue, 17 May 2022 23:12:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Egc6ZBRUY3Z7canJd0liUWr1zN4YpwqPjX5M7wJmK6A=; b=ZyceAB71StStDws0PCQWbFm05oQFzX/fmB8D4jIFiyZTkjcY7YAb4KwAptsQh5eUog GEdf+efoFYDdNjPxnAyABJV9ERr+rmmLMkRN2QeddxZ7M3fCgJpCpts3ufWRe92HNS6B 1sH6y2UbOTyzLwEvJyEzGMmtGjgx8Q+hsiJlaoPU7dDMXxxhF7ZwQRiIS3RWGH2MM4+8 pP46COFUjCg7ezNqyyGeWUyAFXu/qUvXu0VuE2teZlTmI+druzbxUVI1HCAAdF7pbmDc MmwTI4PuCWDYoRykrlSrE3GPu9hqFwtSBKwmcbbClXuRgA0TsNBdWnI0tdiuJrE8D8uJ Weyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Egc6ZBRUY3Z7canJd0liUWr1zN4YpwqPjX5M7wJmK6A=; b=XUQendTPSMcp6W2SBy9Pg9L5fTbRMKHqbO/NBXYMxK/L4EDkzoY9f/l5kiv07kTVrU G5JutycHwRWupRhZOmHhntHf6rS/kby3LcKl/LU5J4unCsK6zxIVZIBnbG1kdys00vFD 6bkbRGiV1Xda2x6lMK1jgDBIKzSz5qziAWBh+T3+lbe4Aj80/EP6ggvIebmEuu5ufxPn ixAHOQLce42kqVuj050zLrxujaOOa65RQdqxz5T7WuL394ZsFyNuAalm/DpTXfQiuwGN lOmu2XyjKGk1wOy298za9ZhHUOKXiKlu7if52RFVWEiW7Pohk8v6q3Udxg6G1fK3Jv5v m9Fg== X-Gm-Message-State: AOAM531F6eVmykqcoIiJ/WP3JcuQOR4ieWfs5ZJF96AGcgtDLTyi8HqA 4PHYW9YoCBaE63KEmG5BNz9o2w== X-Received: by 2002:a05:6a02:206:b0:399:3c9:f465 with SMTP id bh6-20020a056a02020600b0039903c9f465mr23061776pgb.388.1652854350012; Tue, 17 May 2022 23:12:30 -0700 (PDT) Received: from leoy-ThinkPad-X240s ([137.184.121.66]) by smtp.gmail.com with ESMTPSA id 1-20020a620501000000b0050dc76281e1sm840168pff.187.2022.05.17.23.12.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 23:12:29 -0700 (PDT) Date: Wed, 18 May 2022 14:12:21 +0800 From: Leo Yan To: Adam Li Cc: Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Like Xu , Ian Rogers , Alyssa Ross , Kajol Jain , Li Huafei , German Gomez , James Clark , Kan Liang , Ali Saidi , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 9/11] perf c2c: Sort on peer snooping for load operations Message-ID: <20220518061221.GA430350@leoy-ThinkPad-X240s> References: <20220508092346.255826-1-leo.yan@linaro.org> <20220508092346.255826-10-leo.yan@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Adam, On Fri, May 13, 2022 at 05:05:45PM +0800, Adam Li wrote: [...] > > As result, we can get the 'peer' display as below: > > > > # perf c2c report -d peer --coalesce tid,pid,iaddr,dso -N --stdio > > > > Hi Leo, > > I tested v2 patch on 2P Altra system. > In case the false-sharing data is mainly from remote node, 'Snoop Peers' > cannot indicate severity of false-sharing. As showed in bellow output, > there are only 10 'Load HIT Peer' records, while there are 2353 > 'Load Remote DRAM' records. > > And the name 'Load Remote DRAM' is kind of misleading, since we cannot tell > the data source is 'DRAM'. Appreicate for the testing, and your feedback is very helpful. After some discussion, in the patch set v9 "perf: arm-spe: Decode SPE source and use for perf c2c" (please ignore the typo "v8", actually it's patch set v9), Ali has updated the memory tag setting for the type ARM_SPE_NV_REMOTE. I think the prominent change is we set PERF_MEM_SNOOPX_PEER flag for remote access. Please note, in the total statistics, all remote accesses will be accounted into metric "rmt_hit", so "rmt_hit" includes the access for remote DRAM or any upwards cache levels due we cannot distinguish them. From my experiment, with this updating the output result is promised for the peer accesses and it's easier for inspecting false sharing. As you might see I have prepared a git repo: https://git.linaro.org/people/leo.yan/linux-spe.git/ branch: perf_c2c_arm_spe_peer_v3, which contains the updated patches for both memory flag setting and perf c2c related patches. Could you confirm if the updated code works for you or not? Thanks, Leo