diff options
author | Vladimir Kobal <vlad@prokk.net> | 2022-05-11 18:02:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-11 18:02:55 +0300 |
commit | 787c751455b1ca731cdad63d5dcd4fd9cf5bb4ff (patch) | |
tree | d9ed762da56d40f8812fb4afc60eb8ecbe914332 /health | |
parent | d7b33aa2237345e0c3b2c9718bb0bea043665c35 (diff) |
Consider ZFS ARC shrinkable as cache on FreeBSD (#12879)
Diffstat (limited to 'health')
-rw-r--r-- | health/health.d/ram.conf | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/health/health.d/ram.conf b/health/health.d/ram.conf index bb6817f231..ff5f3ac173 100644 --- a/health/health.d/ram.conf +++ b/health/health.d/ram.conf @@ -1,18 +1,6 @@ # you can disable an alarm notification by setting the 'to' line to: silent - alarm: used_ram_to_ignore - on: system.ram - class: Utilization - type: System -component: Memory - os: freebsd - hosts: * - calc: ($zfs.arc_size.arcsz = nan)?(0):($zfs.arc_size.arcsz - $zfs.arc_size.min) - every: 10s - info: amount of memory reported as used, \ - but it is actually capable for resizing itself based on the system needs (eg. ZFS ARC) - alarm: ram_in_use on: system.ram class: Utilization @@ -66,7 +54,7 @@ host labels: _is_k8s_node = false component: Memory os: freebsd hosts: * - calc: ($active + $wired + $laundry + $buffers - $used_ram_to_ignore) * 100 / ($active + $wired + $laundry + $buffers - $used_ram_to_ignore + $cache + $free + $inactive) + calc: ($active + $wired + $laundry + $buffers) * 100 / ($active + $wired + $laundry + $buffers - $used_ram_to_ignore + $cache + $free + $inactive) units: % every: 10s warn: $this > (($status >= $WARNING) ? (80) : (90)) @@ -82,7 +70,7 @@ component: Memory component: Memory os: freebsd hosts: * - calc: ($free + $inactive + $used_ram_to_ignore) * 100 / ($free + $active + $inactive + $wired + $cache + $laundry + $buffers) + calc: ($free + $inactive + $cache) * 100 / ($free + $active + $inactive + $wired + $cache + $laundry + $buffers) units: % every: 10s warn: $this < (($status >= $WARNING) ? (15) : (10)) |