Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 4 down vote accepted

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

share|improve this answer
+1, very easy to do with SystemTap – James Jul 21 '10 at 20:56
Thanks, I'll give it a try! – user33983 Jul 22 '10 at 21:29

If you try to run strace for every process in your machines and afterwards count them ?

share|improve this answer
Running strace has a lot of overhead and I can't think of a way to catch short lived processes with this method. – user33983 Jul 22 '10 at 21:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.