Тема: 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.
-
Частичная запись: сдвигайте смещение буфера вместо повторной отправки всех данных
Считайте короткую запись с положительным результатом прогрессом и сохраняйте неотправленное состояние при обратном давлении.
Машиночитаемо: JSON