201-450 practice question 12 of 25

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

Full set: 161 questions
Answer options
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. Correct answer
Correct Answer:
D. Processes waiting for IO operations to complete.
Explanation

The wa metric in the CPU statistics line of top represents "I/O wait". It is the percentage of time the CPU was idle while the system had an outstanding disk I/O request. This means that at least one process was in an uninterruptible sleep state, waiting for an I/O operation (like reading from a disk) to finish. A consistently high wa value can indicate an I/O bottleneck, where the CPU is ready to work but is forced to wait for the storage subsystem.

Why Incorrect

A. Processes waiting for user interaction are typically in an interruptible sleep state and contribute to the idle (id) percentage, not I/O wait (wa).
B. Closed processes no longer exist in the process table and do not consume any CPU resources.
C. While loading from swap is an I/O operation, option D is the more general and accurate definition of the wa state, covering all I/O operations.

References

- Linux man page for top(1). Under the "2c. CPU States" section, it defines %wa as "I/O wait : time waiting for I/O completion". Available at: https://man7.org/linux/man-pages/man1/top.1.html

- Linux man page for proc(5). The description of /proc/stat details the cpu line fields. The fifth value, iowait, is the "Time waiting for I/O to complete," which is the source for the wa metric. Available at: https://man7.org/linux/man-pages/man5/proc.5.html

Scroll to Top