author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 2 Aug 2015 11:47:18 +0000 (13:47 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Tue, 4 Aug 2015 08:13:30 +0000 (10:13 +0200) | ||
commit | ce4b0390a3ddea1618566d264c2adbc1fbc8f4c3 | |
tree | 0b0f697a71615d7a061d3800fac82ea9c041e2d9 | tree | snapshot |
parent | 1d7fbcf1832d4a9887a0bc7dca1896564adeca67 | commit | diff |
disk: gather statistics since boot on FreeBSD
disk_octets and disk_ops are derives, so we don't want rates
but absolute values.
I tested this with fio with a constant IO rate and confirmed
that the values are correct for disk_octets and disk_ops.
disk_time is a different matter and I need some help with that.
devstat_compute_statistics returns a long double and it didn't
seem to increase much on my system, but that might be because I
tested this with a fast SSD.
disk_octets and disk_ops are derives, so we don't want rates
but absolute values.
I tested this with fio with a constant IO rate and confirmed
that the values are correct for disk_octets and disk_ops.
disk_time is a different matter and I need some help with that.
devstat_compute_statistics returns a long double and it didn't
seem to increase much on my system, but that might be because I
tested this with a fast SSD.
src/disk.c | diff | blob | history |