* Re: Question about using the perf c2c in UMA system [not found] <80f723d230744bc299044cfd4f8c4d92@shmbx06.spreadtrum.com> @ 2024-04-29 21:43 ` Leo Yan 2024-04-30 3:40 ` Ian Rogers 0 siblings, 1 reply; 4+ messages in thread From: Leo Yan @ 2024-04-29 21:43 UTC (permalink / raw) To: ?????? (Baisheng Gao) Cc: jolsa@kernel.org, linux-perf-users@vger.kernel.org, ???? (Hao_hao Wang) Hi Baisheng, On Mon, Apr 08, 2024 at 10:52:59AM +0000, ?????? (Baisheng Gao) wrote: > Hi linux-perf-users, > > My perf tool version is 6.6, and I compiled it to run on an Android system. > The problem is: > > # ./perf c2c report > Failed setup nodes > > According to the articles on the Internet, it seems that the perf c2c is only supported > in NUMA system. However, the cache false sharing does not exist only in NUMA, and > the UMA system has also the problem. So I wonder how to support perf c2c in UMA. The log above is related with parsing NUMA nodes, but this doesn't mean 'perf c2c' must run on NUMA system. My understanding is both x86_64 (memory event) and Arm64 (SPE) support 'perf c2c' not only on NUMA. Thanks, Leo ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Question about using the perf c2c in UMA system 2024-04-29 21:43 ` Question about using the perf c2c in UMA system Leo Yan @ 2024-04-30 3:40 ` Ian Rogers 2024-04-30 14:36 ` James Clark 0 siblings, 1 reply; 4+ messages in thread From: Ian Rogers @ 2024-04-30 3:40 UTC (permalink / raw) To: Leo Yan Cc: ?????? (Baisheng Gao), jolsa@kernel.org, linux-perf-users@vger.kernel.org, ???? (Hao_hao Wang) On Mon, Apr 29, 2024 at 2:43 PM Leo Yan <leo.yan@linux.dev> wrote: > > Hi Baisheng, > > On Mon, Apr 08, 2024 at 10:52:59AM +0000, ?????? (Baisheng Gao) wrote: > > Hi linux-perf-users, > > > > My perf tool version is 6.6, and I compiled it to run on an Android system. > > The problem is: > > > > # ./perf c2c report > > Failed setup nodes > > > > According to the articles on the Internet, it seems that the perf c2c is only supported > > in NUMA system. However, the cache false sharing does not exist only in NUMA, and > > the UMA system has also the problem. So I wonder how to support perf c2c in UMA. > > The log above is related with parsing NUMA nodes, but this doesn't > mean 'perf c2c' must run on NUMA system. My understanding is both > x86_64 (memory event) and Arm64 (SPE) support 'perf c2c' not only on > NUMA. The lack of SPE on most ARM hardware really is a pain. Can we add a better error message to make it clearer to users that they need a neoverse CPU? :-) Thanks, Ian > Thanks, > Leo > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Question about using the perf c2c in UMA system 2024-04-30 3:40 ` Ian Rogers @ 2024-04-30 14:36 ` James Clark 2024-04-30 19:32 ` Leo Yan 0 siblings, 1 reply; 4+ messages in thread From: James Clark @ 2024-04-30 14:36 UTC (permalink / raw) To: Ian Rogers, Leo Yan Cc: ?????? (Baisheng Gao), jolsa@kernel.org, linux-perf-users@vger.kernel.org, ???? (Hao_hao Wang) On 30/04/2024 04:40, Ian Rogers wrote: > On Mon, Apr 29, 2024 at 2:43 PM Leo Yan <leo.yan@linux.dev> wrote: >> >> Hi Baisheng, >> >> On Mon, Apr 08, 2024 at 10:52:59AM +0000, ?????? (Baisheng Gao) wrote: >>> Hi linux-perf-users, >>> >>> My perf tool version is 6.6, and I compiled it to run on an Android system. >>> The problem is: >>> >>> # ./perf c2c report >>> Failed setup nodes >>> >>> According to the articles on the Internet, it seems that the perf c2c is only supported >>> in NUMA system. However, the cache false sharing does not exist only in NUMA, and >>> the UMA system has also the problem. So I wonder how to support perf c2c in UMA. >> >> The log above is related with parsing NUMA nodes, but this doesn't >> mean 'perf c2c' must run on NUMA system. My understanding is both >> x86_64 (memory event) and Arm64 (SPE) support 'perf c2c' not only on >> NUMA. > > The lack of SPE on most ARM hardware really is a pain. Can we add a > better error message to make it clearer to users that they need a > neoverse CPU? :-) > This issue seems to be about report rather than record, so I'm assuming that the record worked and SPE is present. Having said that, the error message for no SPE isn't great, but it's not that bad either: $ perf c2c record failed: no PMU supports the memory events ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Question about using the perf c2c in UMA system 2024-04-30 14:36 ` James Clark @ 2024-04-30 19:32 ` Leo Yan 0 siblings, 0 replies; 4+ messages in thread From: Leo Yan @ 2024-04-30 19:32 UTC (permalink / raw) To: James Clark Cc: Ian Rogers, ?????? (Baisheng Gao), jolsa@kernel.org, linux-perf-users@vger.kernel.org, ???? (Hao_hao Wang) On Tue, Apr 30, 2024 at 03:36:02PM +0100, James Clark wrote: [...] > >> On Mon, Apr 08, 2024 at 10:52:59AM +0000, ?????? (Baisheng Gao) wrote: > >>> Hi linux-perf-users, > >>> > >>> My perf tool version is 6.6, and I compiled it to run on an Android system. > >>> The problem is: > >>> > >>> # ./perf c2c report > >>> Failed setup nodes > >>> > >>> According to the articles on the Internet, it seems that the perf c2c is only supported > >>> in NUMA system. However, the cache false sharing does not exist only in NUMA, and > >>> the UMA system has also the problem. So I wonder how to support perf c2c in UMA. > >> > >> The log above is related with parsing NUMA nodes, but this doesn't > >> mean 'perf c2c' must run on NUMA system. My understanding is both > >> x86_64 (memory event) and Arm64 (SPE) support 'perf c2c' not only on > >> NUMA. > > > > The lack of SPE on most ARM hardware really is a pain. Can we add a > > better error message to make it clearer to users that they need a > > neoverse CPU? :-) We cannot stick to Arm Neoverse CPUs as Arm SPE is supported on more CPU variants. On the other hand, I think we need to dynamically detect CPU feature for SPE to replace current code for binding specific CPU variants. > This issue seems to be about report rather than record, so I'm assuming > that the record worked and SPE is present. Yes, this issue is for the report command. @Baisheng, do you mind to share the steps for reproduce this issue or drop the perf data file with me? Sorry if I missed your sharing. > Having said that, the error message for no SPE isn't great, but it's not > that bad either: > > $ perf c2c record > failed: no PMU supports the memory events This is better than nothing ;-) I will check a bit for a better log. Thanks, Leo ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-04-30 19:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <80f723d230744bc299044cfd4f8c4d92@shmbx06.spreadtrum.com>
2024-04-29 21:43 ` Question about using the perf c2c in UMA system Leo Yan
2024-04-30 3:40 ` Ian Rogers
2024-04-30 14:36 ` James Clark
2024-04-30 19:32 ` Leo Yan
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).