尽管proc联机帮助页令人遗憾地落后(大多数与cookie-
cutter用户空间开发无关的联机帮助页/文档也是如此),但幸运的是,这些资料已在Linux内核源代码下的完全记录了下来
documentation/filesystems/proc.txt。以下是相关的位:
rchar-----I/O counter: chars readThe number of bytes which this task has caused to be read from storage. Thisis simply the sum of bytes which this process passed to read() and pread().It includes things like tty IO and it is unaffected by whether or not actualphysical disk IO was required (the read might have been satisfied frompagecache)wchar-----I/O counter: chars writtenThe number of bytes which this task has caused, or shall cause to be writtento disk. Similar caveats apply here as with rchar.read_bytes----------I/O counter: bytes readAttempt to count the number of bytes which this process really did cause tobe fetched from the storage layer. Done at the submit_bio() level, so it isaccurate for block-backed filesystems. <please add status regarding NFS andCIFS at a later time>write_bytes-----------I/O counter: bytes writtenAttempt to count the number of bytes which this process caused to be sent tothe storage layer. This is done at page-dirtying time.


![/ proc / [pid] / io中的计数器是什么意思? / proc / [pid] / io中的计数器是什么意思?](http://www.mshxw.com/aiimages/31/374907.png)
