Thursday, May 6, 2010 | By: Kunal Ekawde

CPU analysis; sar system data and top data

On the current project i had a good opportunity for capacity testing of the product.
sar data was collected on each blade using cron, which is configurable using /etc/cron.d/sysstat.
sa1 would collect the OS statistics (counters) from different resources including /proc/stat etc. sa2 would decode the sar data collected (stored at /var/log/sa/) at a time specified in the above mentioned config file.
top data would be instant data collected, though one can run a moving average on top specifying the -n option. sar command can also be run at regular instants, but the values would be average over the delay the command is executed while the system wide would be moving average.
The sar data collected at instants can be compared to top data collected at instants and same with moving average.

0 comments: