Archive for the tag '/proc/[pid]/io'

/proc/[pid]/io - Display the IO accounting fields

This file contains IO statistics for each running process.

# dd if=/dev/zero of=/tmp/test.dat &
[1] 3828

# cat /proc/3828/io
rchar: 323934931
wchar: 323929600
syscr: 632687
syscw: 632675
read_bytes: 0
write_bytes: 323932160
cancelled_write_bytes: 0

Field Descriptions:
rchar - bytes read
wchar - byres written
syscr - number of read syscalls
syscw - number of write syscalls
read_bytes - number of bytes caused by this process to read from underlying storage
write_bytes - number of bytes caused by this process to written from underlying storage