author | Marc Fournier <marc.fournier@camptocamp.com> | |
Fri, 7 Feb 2014 13:51:31 +0000 (14:51 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 12 Feb 2014 00:00:20 +0000 (01:00 +0100) | ||
commit | 521df2eab8db4c5d370310b9739fbdb6a3e66557 | |
tree | 0dbf7288630e031ddeabbd3991fa69adc5463884 | tree | snapshot |
parent | 15e2832f8f3efffa195b1185b4fdc2ddb64bde79 | commit | diff |
zfs_arc: support for zfsonlinux
The plugin is structured for Solaris & FreeBSD's get_kstat_value() &
sysctlbyname() functions, which return a single metric based on its
name. ZFS-on-Linux publishes all the stats together in a file in /proc,
which is quite a different approach.
So the idea is to simulate the Solaris/FreeBSD way of doing by using
llist_search() on a linked-list containing all the key/values from the
/proc file. This prevents having to parse it over and over again for
each metric we request.
The plugin is structured for Solaris & FreeBSD's get_kstat_value() &
sysctlbyname() functions, which return a single metric based on its
name. ZFS-on-Linux publishes all the stats together in a file in /proc,
which is quite a different approach.
So the idea is to simulate the Solaris/FreeBSD way of doing by using
llist_search() on a linked-list containing all the key/values from the
/proc file. This prevents having to parse it over and over again for
each metric we request.
configure.ac | diff | blob | history | |
src/Makefile.am | diff | blob | history | |
src/zfs_arc.c | diff | blob | history |