Hardware: 8 CPUs, x86_64
System: Linux Debian 2.6.26 SMP
(1) Use the TOP command to view CPU usage, and then press "1" to view the usage of each CPU.
Top-13:45:55 up 4 days, 8 users, load average: 0.00, 0.00, 0.00
Task: 102 total, 1 running, 101 sleeping, 0 stopped, 0 zombie
Cpu0: 0.0% us, 0.0% Sy, 0.0% Ni, 100.0% ID, 0.0% wa, 0.0% hi, 0.0% Si, 0.0% St
Cpu1: 0.0% us, 0.0% Sy, 0.0% Ni, 100.0% ID, 0.0% wa, 0.0% hi, 0.0% Si, 0.0% St
Cpu2: 0.0% us, 0.0% Sy, 0.0% Ni, 100.0% ID, 0.0% wa, 0.0% hi, 0.0% Si, 0.0% St
Cpu3: 0.0% us, 0.3% Sy, 0.0% Ni, 99.7% ID, 0.0% wa, 0.0% hi, 0.0% Si, 0.0% St
Cpu4: 0.0% us, 0.0% Sy, 0.0% Ni, 100.0% ID, 0.0% wa, 0.0% hi, 0.0% Si, 0.0% St
Cpu5: 0.0% us, 0.0% Sy, 0.0% Ni, 100.0% ID, 0.0% wa, 0.0% hi, 0.0% Si, 0.0% St
Cpu6: 0.0% us, 0.0% Sy, 0.0% Ni, 100.0% ID, 0.0% wa, 0.0% hi, 0.0% Si, 0.0% St
Cpu7: 0.0% us, 0.0% Sy, 0.0% Ni, 100.0% ID, 0.0% wa, 0.0% hi, 0.0% Si, 0.0% St
Mem: 4058012 k total, 3293784 K used, 764228 K free, 100692 K Buffers
Swap: 979924 k total, 0 K used, 979924 K free, 3004012 K cached
PID user PR Ni virt res shr s % CPU % mem time + command
30 root 15-5 0 0 s 0 0.0. 52 events/3
1 root 20 0 12480 852 700 s 0 0.0. 78 init
2 root 15-5 0 0 s 0 0.0. 00 kthreadd
(2) Use top to view the CPU of the nearest Process
Press "F" to add a column to the top output, j -- latest CPU (SMP)
PID user PR Ni virt res shr s % cpu p % mem time + command
1 root 20 0 12480 852 700 s 0 6 0.0. 78 init
2 root 15-5 0 0 s 0 6 0.0. 00 kthreadd
3 root RT-5 0 0 0 s 0 0 0.0 0: 00. 00 migration/0
4 root 15-5 0 0 0 s 0 0 0.0 0: 00. 00 ksoftirqd/0
5 root RT-5 0 0 0 s 0 0 0.0 0: 00. 00 watchdog/0
6 root RT-5 0 0 0 s 0 1 0.0. 00 migration/1
7 root 15-5 0 0 s 0 1 0.0. 00 ksoftirqd/1
8 root RT-5 0 0 0 s 0 1 0.0. 00 watchdog/1
9 root RT-5 0 0 0 s 0 2 0.0. 00 migration/2
10 root 15-5 0 0 s 0 2 0.0. 00 ksoftirqd/2
11 root RT-5 0 0 0 s 0 2 0.0. 00 watchdog/2