Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
arc/zpool metric support on linux #32
Comments
|
Oh that's interesting - are the metrics exported via libzfs on Linux too? If so, the right approach here might be to create a pmdazfs that can be installed on either platform. Do you use ZFS on Linux and if so, do you want to take this work on? I'm happy to give you pointers as neede, just let me know. |
|
AFAIK, on Solaris and Illumos systems the zfs stats are exposed via kstats - a generic stats framework used by the kernel to export all sorts of kernel stats to userspace. This is totally unrelated to libzfs. Since Linux doesn't have kstats, I don't know how these stats are exported to userspace. On Illumos with two pools (rpool & storage):
|
cburroughs
commented
Jul 17, 2015
|
I use ZFS on linux but probably do not have the time/expertise to work on this in the near future. The kstats for the arc are exposed via /proc. Tools like
libzfs will (I think) "Just Work" (with the standard caveats about it not being intended as a stable/production interface). It looks like that is how pcp is getting the zpool topoligy information. |
cburroughs commentedJul 16, 2015
The arc and ZFS metrics are burried inside a 'solaris' pmdas but zfs is now available on linux. ZoL exports a similar set of kstat like metrics.