Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1672771ioo; Sun, 22 May 2022 23:53:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAEtC4YabeLViRb8+3lkGfWoSAmcwPYhGfjH+Kd1BymNjMStokhoNXFcJLiNkHglpD4ZLr X-Received: by 2002:a17:902:cf06:b0:161:53b6:474d with SMTP id i6-20020a170902cf0600b0016153b6474dmr21883269plg.63.1653288808479; Sun, 22 May 2022 23:53:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653288808; cv=none; d=google.com; s=arc-20160816; b=UssZZ5cZ41+HCVn+MVjTBmZKi4OTeSXqVGRpnJYf9lnJMS5r6h2GqYXZJ45RDGwfqn 8oQsHO6JP6HgbcnNp8eRxCIvXh665IJPK/4MB5hbUBu85hsas3OBtpcW9iQnueVYyU2U FSv/cCH/UZVGROrAaW58E2TXRMT/mTXoKS33gdS+gKSHRfcXYEIzGBznHV2wLDqrtqae VCBQGPu9B9giF4muHy7BZPZ8XjYeSEiyoVcJjc3gYBzTw9q2Fhdi9vbHenhivIzAIBpP is6RMeJgZckVeksVc+xmnmTJwsosMErbzL3582aqIicBa3wKgzBqtV235Mu3fuiHGXXe aszg== 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=ODCcZqtARQzQ4GGmhDAMqDnN52rPA8Uu34tLe5UIzMU=; b=Y05NjqOgY2imYYcxupGCh18IOehGoze14HBI5aNBMBW7ndlQ++ixM9bldsuOFh1x7y egK+TVMbpkZso7k8wmq6ocYebS2muR9U2vSHszHc9Wty2j6MyJrZVjlNcIjRvRGhzP0i +SzfKBrDrU8CE30xXJ7gzwgZedxAGKrjaiLgZmSmdrYktHjR4u6KUGz+M510/Duvl/xT M6VIF6x90xcPBFGQctGCYqfBwQwAswnta7vcGdY0iIRsnCyb/lFSzo5E/UmLlDN7Pte8 zbsuBbOYhxistP4jm/xIn4cCLz7SkEjXutE7uhS8CnM3B1eIzmsP9j/Zni5DriwJHtTA nXew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vhwSXwGc; 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 mu4-20020a17090b388400b001e012c2ea7fsi10915514pjb.144.2022.05.22.23.53.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:53:28 -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=vhwSXwGc; 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 3152F43AEA; Sun, 22 May 2022 23:20:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345935AbiEVN2I (ORCPT + 99 others); Sun, 22 May 2022 09:28:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345952AbiEVN2F (ORCPT ); Sun, 22 May 2022 09:28:05 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E59B53B036 for ; Sun, 22 May 2022 06:28:02 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id l14so11795122pjk.2 for ; Sun, 22 May 2022 06:28:02 -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=ODCcZqtARQzQ4GGmhDAMqDnN52rPA8Uu34tLe5UIzMU=; b=vhwSXwGc/fbz4Js0Ua+WwXL6PC7yUZrdvIN4VKjt0SXfmp2hl4hhvJ0gp1IMdzx+sx SEhunI/FFODzeLCKRy+diJhiwSJcvaC/VjfSSxBan2XzJZx/Yuih12qxXIFmnTuWdkv2 llx3lsVNe6E3ux+uAc7rBbTTk2oPhmOEN3dDOI+vccclG1cD8hbcRX8Yc6CaJZz9NK1z UGHEeUEQ83P0xZ1zKa3StaKdnwPxWrnf2HQtoNoQNUjGrZkvfpgMkznzl6xKBPetay9v jhgPQ0gqKJUra5M9mf4x90H2/X8YG/+JZEvPEE8vX7RXfwUWIj7TA3HngA7EnCTr5k+W JRKw== 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=ODCcZqtARQzQ4GGmhDAMqDnN52rPA8Uu34tLe5UIzMU=; b=uxfbTzuPg+Gow4OkCN3BS8VB1DVIfbZ3yyl0xP80pLp1ax5LzOLmP+D6tGPv4SzkTC jwgqs0/24AwfJ6rx4UdiO7ymfjFGFYYbooC6TxnyDQhPbaDqZWJ1iL9JCc4mOXqKdzyo bitYPkWxjdDGQBjaz4cMmmMvT1NaYNXaajDz8tYgrJkNksWdUtlkvgG8DOEJJ66j0TsT PxFsD27q1IXVrHSHLM/QzImV8SGpnIc9Hxfg55Z3Ejyuo+0lGJQX4VkD9i4gGghc2qL1 rL7TbhfJ17CGxCT/2QjCCNhOx3xQRL816O8j6X148hiKxT7YFJSZXDb8W7HVzLb9ZAXE xsTQ== X-Gm-Message-State: AOAM531pyM87oUQkoM5kGkqKL4c29ytgH43Qjp8vO8802OzQ/VtdUBIP SzORcDdPvEizO3mP2fVEPErfEw== X-Received: by 2002:a17:90a:e388:b0:1df:ac20:df7d with SMTP id b8-20020a17090ae38800b001dfac20df7dmr22146463pjz.208.1653226082306; Sun, 22 May 2022 06:28:02 -0700 (PDT) Received: from leoy-ThinkPad-X240s ([137.184.121.66]) by smtp.gmail.com with ESMTPSA id j195-20020a636ecc000000b003db0f2d135esm2983622pgc.49.2022.05.22.06.27.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 06:28:01 -0700 (PDT) Date: Sun, 22 May 2022 21:27:52 +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: <20220522132752.GC715382@leoy-ThinkPad-X240s> References: <20220508092346.255826-1-leo.yan@linaro.org> <20220508092346.255826-10-leo.yan@linaro.org> <20220518061221.GA430350@leoy-ThinkPad-X240s> 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 On Thu, May 19, 2022 at 05:06:18PM +0800, Adam Li wrote: > Hi Leo, > > Thanks for the update. > On 5/18/2022 2:12 PM, Leo Yan wrote: > > > 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. > > > > Agree that "Load Remote HIT" makes more sense than "Load Remote DRAM". > > > 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? > > > > I tested v3 patch (perf_c2c_arm_spe_peer_v3 branch) on 2P Altra system. > > Compared with v2, "Snoop Peer" can better indicate cache false-sharing, > for the 'false_sharing.exe' test case. Thanks a lot for the testing and confirmation, Adam. I will update the patches based on the comments from Joe and James, after get ready will send out the patch set and loop you. Thanks, Leo