Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong (zero) read counts #1128

Closed
lzhengchun opened this issue Sep 15, 2017 · 1 comment
Closed

wrong (zero) read counts #1128

lzhengchun opened this issue Sep 15, 2017 · 1 comment

Comments

@lzhengchun
Copy link

lzhengchun commented Sep 15, 2017

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 x86_64 GNU/Linux" always reports read_bytes as zero.

So, psutil.disk_io_counters().read_count always reports 0, as well as the p.io_counters() 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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants