Thursday, September 25, 2008

Install sysstat on CentOS

Install sysstat

yum -y install sysstat

Data will be in '/var/log/sa'. Performance will be kept for 1 week old. Viewing data by using:

sar

or download kSar which is java program that display data in graphical format.

Setting CPU affinity for process

Using taskset command

taskset -cp cpu_list process_id

example

taskset -cp 1,2,3 3215