Quick Linux Tip #84:
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.
Leave a Reply