If you are running 4 servers assuming you are using Dual Xeon processors ( classed as 4 cpu’s in linux)
Server 1 uses 60% CPU Usage
Server 2 Uses 60% CPU Usage
Server 3 Uses 20% CPU Usage
Server 4 Uses 20% CPU Usage
Rather than letting the distro automtically assign CPU’s it is sometimes better for you to do it manually. In this instance it would make server to have
Server 1 using CPU0
Server 2 using CPU1
Server 3 + 4 using CPU2
Leaving you with a spare CPU.
Example of how to install this in Debian / Redhat / Other:
CODE
# apt-get install schedutils
Redhat
CODE
# up2date schedutils
Other
CODE
# rpm -ivh schedutils*
If you have a particular process running and it will retain the same PID throughout then you can do the following command:
CODE
# taskset -c 1 -p 13545
‘-c 1- = Which cpu you wish the process to run on. In my example this can be set to Either ( CPU0, CPU1, CPU 2, CPU3 )
‘-p 12345- Is the process, if the process does not retain the same PID then you need to do the following:
CODE
# taskset -c 3 ./server1.sh