@cryptotaxi247 / netdata-1 / commits / 8eaf5d0de

Correct ram_in_use alarm calculation on FreeBSD (#4363)

* There is no "cached" dimension on FreeBSD, use "cache" instead * Account "buffers" as used memory. As buffers by default don't shrink much under pressure. * Account "inactive" as free memory. As pages from inactive list could be cleared and become free as soon as somebody request more memory from kernel. * Sign CLA

Vladislav Movchan committed Oct 12, 2018 at 01:20 UTC 8eaf5d0de5e5c9049549e6bf9927ea4c304be3ab
2 files changed +2 -1
CONTRIBUTORS.md
+1
@@ -118,3 +118,4 @@ username|name|email (optional)
118 @jonfairbanks|Jon Fairbanks
119 @pjz|Paul Jimenez|pj@place.org
120 @jgrossiord|Julien Grossiord|julien@grossiord.net
121 +@vladmovchan|Vladyslav Movchan|vladislav.movchan@gmail.com
conf.d/health.d/ram.conf
+1 -1
@@ -41,7 +41,7 @@ alarm: ram_in_use
41 on: system.ram
42 os: freebsd
43 hosts: *
44 - calc: (($active + $wired) - $used_ram_to_ignore) * 100 / (($active + $wired) - $used_ram_to_ignore + $cached + $free)
44 + calc: ($active + $wired + $buffers - $used_ram_to_ignore) * 100 / ($active + $wired + $buffers - $used_ram_to_ignore + $cache + $free + $inactive)
45 units: %
46 every: 10s
47 warn: $this > (($status >= $WARNING) ? (80) : (90))