sysinfo icon indicating copy to clipboard operation
sysinfo copied to clipboard

Add disk I/O usage (on disk directly, not process)

Open GuillaumeGomez opened this issue 5 years ago • 3 comments

On windows it can be done as follow (from @retep998):

You can query disk performance info for the entire disk and not process specific by using FSCTL_FILESYSTEM_GET_STATISTICS or FSCTL_FILESYSTEM_GET_STATISTICS_EX if you're on windows 10

On linux, it can be retrieved from /proc/diskstats.

GuillaumeGomez avatar Apr 15 '20 18:04 GuillaumeGomez

#683

WilliamVenner avatar Jan 17 '22 23:01 WilliamVenner

Is there still interest in this? I'm currently doing some work on implementing it for Linux/macOS/Windows https://github.com/ClementTsang/bottom anyways, so I can port over some of that code if you want.

My only question is whether we also need implementations/dummy implementations for the other supported OSes.

ClementTsang avatar Apr 09 '23 01:04 ClementTsang

I'm definitely interested. From what you wrote, you don't plan to add FreeBSD but it's fine, I can add the missing parts.

GuillaumeGomez avatar Apr 09 '23 08:04 GuillaumeGomez