Quantcast
Channel: from where htop collects IO read/write data for one current user proccess without root? - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 2

from where htop collects IO read/write data for one current user proccess without root?

$
0
0

I cant find a way to capture htop output for a single process about IO_RATE IO_READ_RATE IO_WRITE_RATE.

I need it (the last few seconds IO (or just 1s), not the overall accumulated IO) to determine if a process is not working well to auto-restart it.

I cant use iotop as it requires root and that will complicate my work flow, mostly because it is clearly unnecessary.

I went thru everything I could at /proc/$PID/... but found nothing I could use about IO in bytes. Not that is it not there, just that I could not find it.

So, a way to grab htop output thru a pipe could also suffice as a workaround, but is not what I am asking.

I can already grab top output about %CPU, but that is not enough, and I could not find IO data in top.

Below, every answer elsewhere is bout iotop (no) or htop (unable to capture output) or other apps that did not help, so I decided to ask this question:
monitor IO of a running user's executable file read/write
https://stackoverflow.com/questions/469159/an-htop-like-tool-to-display-disk-activity-in-linux (if atop can do it, I still dont get how...)


Viewing all articles
Browse latest Browse all 2

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>