An otherwise good article recently in Linux magazine contained the following:
Quote:
If the interrupt rate is too high... you can use an interrupt utility, like sar, to help uncover the cause... A high number of context switches relative to the number of processes is undesirable because of the flushing of cached data.
|
However, like too many similar articles, it fails to say what a high ratio of context switches, or too high interrupt rate, would be. On a Pentium dual core laptop, I'm seeing 100 to 1,000 cs's and around 60 - 800 interrupts per second (but often zero running processes), just surfing the web, while an old PC that I'm currently flogging by making it compile gcc is showing less than 10 context switches, but more than 300 interrupts.
Obviously, these machines are doing very different jobs. The old PC isn't having to run a GUI, and doesn't have a user prodding it constantly. However, is there a table or a formula to tell me "how high is too high"?
Thanks,
Rob