In the following output from top, which processes contribute to the percentage of time that the CPU spends in the state of wa?
Tasks: 193 total, 1 running, 190 sleeping, 2 stopped, 0 zombie Cpu(s): 0.5%us, 0.3%sy, 0.0%ni, 98.2%id, 1.0%wa, 0.0%hi, 0.0%si, 0.0%st
A. Processes waiting for user interaction.
B. Processes that were already closed and are waiting to be launched again.
C. Processes that have not been scheduled yet because they haven't been fully loaded into RAM or are in swap.
D. Processes waiting for IO operations to complete.
题解
「top」指令用来显示目前进程的信息、系统运行时间和负载情形。有关于 CPU 的信息,各个字段的意义如下:
- us:运行 nice 值小于或等于 0 的用户进程所花费的 CPU 时间。
- sy:运行 Kernel 进程所花费的 CPU 时间。
- ni:运行 nice 值大于 0 的用户进程所花费的 CPU 时间。
- id:Kernel 闲置的时间。
- wa:等待 IO 的时间。
- hi:处理硬件中断所花费的 CPU 时间。
- si:处理软件中断所花费的 CPU 时间。
- st:等待虚拟机的管理程序(hypervisor)处理其它虚拟机的时间。
所以答案是选项「D」。
