giampaolo / psutil

Cross-platform lib for process and system monitoring in Python
BSD 3-Clause "New" or "Revised" License
10.25k stars 1.38k forks source link

wrong (zero) read counts #1128

Closed lzhengchun closed 7 years ago

lzhengchun commented 7 years ago

Unsure why, the file /proc/[pid]/io of my system "_Linux smart-dtn 3.10.0-514.2.2.el7.x86_64 #1 SMP Tue Dec 6 23:06:41 UTC 2016 x86_64 x86_64 x8664 GNU/Linux" always reports read_bytes as zero.

So, _psutil.disk_io_counters().readcount always reports 0, as well as the _p.iocounters() where p is the process.

update: Well the read counter is not always zero, but just does not change.

An example of my /proc/[pid]/io file:

rchar: 97640349 wchar: 93615 syscr: 1027662 syscw: 1123 read_bytes: 0 write_bytes: 225280 cancelled_write_bytes: 0

giampaolo commented 7 years ago

If it doesn't change and psutil reports it as is then it's not a psutil bug. Closing.