I am familiar with iotop and those tools. But for some strange reason I have to write a Ruby program on my own to monitor only read and write activity of all the partitions on /dev/sda). I want to know how does iotop work.
I have the Kernel 4.20.13-arch1-1-ARCH
Is there a file that I can read with Ruby's IO.read('somefile') and do some formatting to get the IO details?
For further info, I want to know how does gnome-system-monitor monitor disk IO activities as a non-root user?
/proc/diskstats
– Stephen Harris Mar 03 '19 at 18:00gnome-system-monitor
usesgvfs
: https://wiki.gnome.org/Projects/gvfs – PersianGulf Mar 03 '19 at 18:28