LFCS · Question #153
In the following output, what does the 1 in the b column indicate?
The correct answer is D. A process is blocked on I/O. In vmstat output, the 'b' column under the 'procs' section indicates the number of processes currently blocked, typically waiting for I/O completion.
Question
Options
- AA process is swapped and waiting.
- BA process is waiting.
- CA process is waiting on a parent to check its exit value.
- DA process is blocked on I/O.
How the community answered
(35 responses)- A3% (1)
- B3% (1)
- D94% (33)
Why each option
In `vmstat` output, the 'b' column under the 'procs' section indicates the number of processes currently blocked, typically waiting for I/O completion.
While a process might be waiting, `vmstat`'s `b` column specifically indicates blocked, not necessarily swapped, which is shown by `swpd` or `si`/`so` columns.
This is too general; the `b` column specifically denotes a *blocked* state, which is a particular type of waiting often for I/O resources.
A process waiting on a parent to check its exit value is a 'zombie' process, which is typically shown in `ps` output, not directly by `vmstat`'s `b` column.
In `vmstat` output, the 'b' column (blocked) under the 'procs' heading specifically represents the number of processes that are in an uninterruptible sleep state, which most commonly occurs when they are waiting for I/O operations (like disk or network I/O) to complete. A value of '1' means one process is in this blocked state.
Concept tested: `vmstat` blocked process interpretation
Source: https://man7.org/linux/man-pages/man8/vmstat.8.html
Topics
Community Discussion
No community discussion yet for this question.