Replies: 10 comments 2 replies
-
Ah the number does not belong to the disk, but to the index in the array. I have 5 pass devices:
According to pass(4) these are device nodes for Common Access Method Storage subsystem:
The nvme drive is missing from this list however. |
Beta Was this translation helpful? Give feedback.
-
Ok, so the trick is to use unit_number, this gives the correct device:
Now this matches the devices. However, as the BSD system uses zfs, this does not map to anything that you get from Also strange that the Linux disk has a high read count, as I've not even mounted it in BSD. |
Beta Was this translation helpful? Give feedback.
-
Yeah, that would be the crux, may need a third function (or file) that can correlate some piece of data between the two sets. |
Beta Was this translation helpful? Give feedback.
-
I've updated ghostbsd, and system became very unstable. Now it doesn't even boot anymore. I can access the files from linux using the linux zfs drivers, but it just doesn't boot anymore, not in single user, not safe mode, nothing. Will have to re-install, so will be out of business until I have time to do that... If it proposes updates, don't install them! |
Beta Was this translation helpful? Give feedback.
-
… On Sat, 20 Nov 2021, 14:05 aristocratos, ***@***.***> wrote:
I reset all BIOS settings, and now back ok.
That's a relief.
I've posted a question regarding disk io on the FreeBSD forums in the
development section. Hopefully someone can help.
Ah, smart move. Can you post a link to the thread so I can follow along.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#156 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEB7R7OI3N4WQIKCUJQGQDUM6MIFANCNFSM5IFIOTXQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
@aristocratos I've implemented 'regular' filesystems using devstat API (a bit special as this gives per block device not per partition/mountpoint), so several mountpoints can match. I've implemented the ZFS filesystems with sysctl output parsing. The debug logs show it does calculate for all, but the io graph only shows root. Can you have a look? |
Beta Was this translation helpful? Give feedback.
-
and this is valgrind output for this code:
|
Beta Was this translation helpful? Give feedback.
-
I believe this behavior would be fine considering this how bpytop operates for both freebsd and osx. Have only had time to take a quick glance at the code, but I can't say I'm a big fan of the os call to Edit: Saw that you got some responses in the freebsd forums thread, will take a look when I have time if we can get equivalent information programmatically some way from the source to the programs they suggested. |
Beta Was this translation helpful? Give feedback.
-
@aristocratos I don't think there's a way to do this programmatically :-(. Nobody even on FreeBSD dev forum seems to know. |
Beta Was this translation helpful? Give feedback.
-
@aristocratos implemented RAII and iterate over all ZFS pools |
Beta Was this translation helpful? Give feedback.
-
For FreeBSD disk io, these are the disks in my system:
nvd0 is an nvme disk with Linux
ada0 is a sata disk with FreeBSD (GhostBSD)
ada1 is a sata disk with win10
ada2 is a sata disk with macOS
This is the debug output of the collect_disk method:
Seems to match a little bit, although for the ada ones, it seems to be off by 1. Doesn't seem to break down the stats per partition/slice, but per total disk.
The cd9 entry could be the dvd drive. No idea what the pass devices are.
Beta Was this translation helpful? Give feedback.
All reactions