Linux – Measuring system calls per second in Linux

kernellinuxperformance-monitoring

Is there a way to measure the total number of system calls per second on a Linux system?

strace gives counts, but only for a single process.
It looks like some versions of sar support this, but the one I have only shows context switches/sec or forks/sec. I'm running a 2.6.9-89 based kernel.

Best Answer

You could look into writing a SystemTap script. There is even an example script that could be modified to meet your needs.