Questions tagged [perf]
perf is Linux profiling tool for both Linux kernel and underlying hardware (hardware counters).
94 questions
1
vote
0
answers
68
views
How to use linux perf in a conda environment
I'm trying to use linux perf program in a conda environment, but the perf program seems to ignore the conda environment. I installed the conda-forge::linux-perf package in my conda environment, but ...
0
votes
0
answers
57
views
Can "perf mem" command detect remote memory access on CXL NUMA nodes?
I wonder that if perf mem can detect the remote memory access on CXL NUMA Nodes. I got an AMD-EPYC-9654 server, and CXL Mem is on the Numa Node 2. I run a task on node 0, which accessed the remote ...
0
votes
0
answers
234
views
Clarifications on perf_events data collection
Originally posted here on stackoverflow
I have never used the perf command before (but I need it), hence I have been reading the (really useful) PerfWiki.
The section devoted to Event-based sampling ...
1
vote
1
answer
178
views
Failed to run some functions with perf tool in embedded Linux
I am working on an embedded Linux system (kernel-5.19.20), and I tried the perf tool in my SOC, found some functions did NOT work.
After run perf record /test/perf_test, I got the perf.data, and perf ...
0
votes
0
answers
459
views
How to cross-compile Linux tools/perf for embedded system?
I am working on an embedded Linux system (kernel-5.19.20) on MIPS, and I want to build tools/perf for my system.
I want to have libelf feature enabled when cross compile perf, so I firstly cross-...
1
vote
1
answer
290
views
perf trace is not available on my machine
I'm on
Ubuntu 22.04.5 LTS (GNU/Linux 6.8.0-45-generic x86_64)
I installed the perf packages
sudo apt install linux-tools-common linux-tools-generic linux-tools-$(uname -r)
but when I try to run perf ...
1
vote
0
answers
165
views
Cache or save results of perf report
For large files, perf report takes a while. e.g. around 5 minutes for 500G perf.data. Is there a way to dump (certain states of) perf report to a file, or tell perf to cache something that enables ...
0
votes
1
answer
192
views
see vdso function with perf report
On my perf report I see a bunch of lines with vdso modules and no function names. I am guessing these are for gettimeofday type calls. But how can I see actual function calls?
My perf record command:
...
0
votes
2
answers
174
views
INST_RETIRED.ANY no longer works as a performance counter with perf on linux 6.7
With the older kernels INST_RETIRED.ANY (as well as many of the other counters documented in https://perfmon-events.intel.com/ahybrid.htm ) worked as counters for perf.
I am now using perf with a 6.7 ...
2
votes
0
answers
102
views
A simple memcpy loop with stride of 8-16-32 Bytes, no L1 cache misses, what stalls backend cycles?
I am trying to understand the CPU cache performance in a single producer single consumer queue algorithm, but cannot pinpoint the cause of performance degradation in some cases. The following ...
0
votes
1
answer
229
views
Which tools for micro-benchmarking?
I'm not sure which tool to use for micro-benchmarking a C program.
I would like to measure both:
Memory usage, RSS ( Resident Set Size )
CPU cycles
I did use perf record -g and perf script piped ...
1
vote
0
answers
41
views
What is futex-default-S?
I can't find more info about futex-default-S
Is this a system call? module? or else?
https://github.com/torvalds/linux/blob/06dc10eae55b5ceabfef287a7e5f16ceea204aa0/tools/perf/Documentation/perf-lock....
1
vote
0
answers
264
views
perf instruction count
so i've been playing with perf and assembly i have the following program:
.intel_syntax noprefix
.global _start
_start:
mov cl, 2
mov ebx, 0b101
shr ebx, cl
and bl, 1
je do_stuff
...
0
votes
1
answer
773
views
Unable to find any information about TLB on my computer or obtain information about hardware counters about TLB
The Ubuntu version I am using is Ubuntu 18.04.6 LTS, and the kernel version is 5.4.0-148 generic. My processor is 12th Gen Intel (R) Core (TM) i7-12700.
I would like to know the number of TLB ...
0
votes
0
answers
131
views
Security of perf under root access
when I use perf it asked for more permission to be used:
You may not have permission to collect stats.
I was lazy so I did sudo perf (some short program I created myself) but I later realize you can ...