Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: /proc/[pid]/io - Display the IO accounting fields  (Read 2014 times)

0 Members and 1 Guest are viewing this topic.

vinayakk

  • Guest
/proc/[pid]/io - Display the IO accounting fields
« on: January 30, 2014, 03:01:34 pm »
/proc/[pid]/io - Display the IO accounting fields

This file contains IO statistics for each running process.

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

Code: [Select]
# 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

 :)