Skip to content

Disk IO only shown for a few disks #287

Answered by aristocratos
MPeti1 asked this question in Q&A
Discussion options

You must be logged in to vote

The way the IO stats work in bpytop is by using the two psutil functions psutil.disk_partitions() (to get the partitions stats) and psutil.disk_io_counters(perdisk=True) (to get the IO stats).

But psutil.disk_io_counters does not return the full path to the device, so bpytop will try to match the device name to a partition, this can fail in the case of weird device names, like for raided disks or encrypted partitions.

I don't have a solution for this happening right now, but if anyone have any ideas I'm all ears.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@MPeti1
Comment options

@MPeti1
Comment options

@aristocratos
Comment options

Answer selected by aristocratos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants