I have been using
/proc/stat for calculating the cpu usage. Recently I have been going through
sar command for calculating cpu usage. And what I found was that their values were not related (I was considering the time interval in case of sar command that is 10 min).
/proc/stat I was getting cpu ussage 99.85% and sometimes 100% .
and from sar command
i was getting usage of 1-2%
Assuming that cpu usage% =100-cpu idle%
Note- I am having more than 100 cpu's which I am monitoring. Can any body explain why there were such differences in the cpu usage?