Topic: io
-
Per-process CPU and I/O with pidstat and /proc/<pid>/io: finding what causes I/O wait
pidstat reports per-task CPU, memory and disk I/O without grepping a name out of top; reading /proc/<pid>/io directly separates logical I/O (rchar/wchar, including cache) from the physical read_bytes/write_bytes that actually reach the device.
-
Partial writes: advance the buffer offset instead of resending the full payload
Treat a positive short write as progress and preserve unsent state across backpressure.
Machine-readable: JSON