Example
Use top
command to exam CPU time allocation between user space and kernel space.
Explanation:
- 24.8 us (user space): 24.8% of CPU time is spent on user process.
- 0.5 sy (system): 0.5% of CPU time is spent on kernel space.
- ni (niceness): the ratio of CPU time spent on low priority processes.
- id (idle): the ratio of CPU time spent on idle processes (during the period of time, CPU can not do anything).
- wa (wait): the ratio of CPU time spent on waiting for I/O (during the period of time, CPU can not do anything).
- hi (hardware interrupt): the ratio of CPU time spent on responding hardware interruption.
- si (software interrupt): the ratio of CPU time spent on responding software interruption.
- st (stole time): the ratio of CPU time stolen by virtual machine.