PHP Code:
top - 08:52:01 up 19:20, 2 users, load average: 0.01, 0.03, 0.00
Tasks: 86 total, 1 running, 76 sleeping, 9 stopped, 0 zombie
Cpu0 : 0.3%us, 0.0%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu1 : 7.0%us, 0.7%sy, 0.0%ni, 92.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 3501256k total, 546388k used, 2954868k free, 66824k buffers
Swap: 2650684k total, 0k used, 2650684k free, 313112k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2884 xxx -99 0 227m 121m 20m S 52 3.5 564:33.49 srcds_i486
I have used taskset -pc 1 2884 to lock my match server to cpu no 2 (physical cpu not core)
If you look you will se two diff walues of cpu usage. I have two physical cpu´s. And if you look there cpu1: 7.0%us... and if you then look at the pid for my srcds server. You will se an cpu usage of 52%