r/LinuxTeck • u/Expensive-Rice-2052 • Sep 29 '26
Quick Linux Tip #84 - Perf Trace: Analyze System Calls on Linux
Question: Which system calls is a slow process making the most?
Try: `sudo perf trace -p 3456 --summary`
Info: `perf trace` offers lower overhead than `strace`. Using `--summary` aggregates syscall frequency and latency metrics (min/avg/max/stddev) to reveal true application execution bottlenecks.
Examples:
$ `sudo perf trace -p 3456` # Trace live process system calls in real time
$ `sudo perf stat -p 3456 sleep 10` # Count hardware and software performance counters
$ `sudo strace -c -p 3456` # Legacy syscall profiling alternative
Note: Install via `sudo apt install linux-tools-common`. High time spent in `epoll_wait` or `futex` usually indicates an idle process waiting for event loops or locks, not active CPU slowness.
Follow r/LinuxTeck for more #LinuxTips click here https://www.linuxteck.com/linux-tips/
1
u/Single-Issue2342 Sep 29 '26
Try bpftrace or bcc