-
Change Request
-
Resolution: Fixed
-
Trivial
-
None
-
FreeBSD
Now in Zabbix we have many parameters for monitoring memory under FreeBSD: vm.memory.size[<mode>]
<mode> can be:
total
free
used
shared
cached
5 parameters! ('pfree' and 'pused' doesn't work in my servers, and doesn't work correct anyway) Ok, not bad.
But I don't know what does 'shared' and 'used' parameters mean.
If you use FreeBSD go to `top`. At head you can see memory parts:
Active, Inact, Wired, Cache, Buf and Free. You can't see 'shared' and 'used' parameters. And you don't know how to get correct or real free memory!
In order to know REAL FREE MEMory you need:
1. Get from sysctl folowing vars:
"vm.stats.vm.v_inactive_count" * "vm.stats.vm.v_page_size" (lets call it INACT)
"vm.stats.vm.v_cache_count" * "vm.stats.vm.v_page_size" (CACHE)
"vm.stats.vm.v_free_count" * "vm.stats.vm.v_page_size" (FREE)
2. Calculate REAL FREE MEMory:
free_mem = INACT + CACHE + FREE
3. If you want to get REAL USED MEMory:
total_mem = "vm.stats.vm.v_page_count" * "vm.stats.vm.v_page_size" (it defines correct in zabbix)
used_mem = total_mem - free_mem
Conclusion 4 developers:
Please make correct calculation of FreeBSD memory!
You need add INACT (sysclt vm.stats.vm.v_inactive_count) mode to vm.memory.size.
Then make 'pfree' and 'pused' mode calculation as I described below (real free and real used memory).
I think you need to delete 'shared' and 'used' modes for fbsd, because it is not necessary under FreeBSD.
Thanks!
P.S. maybe it right for all BSD systems.
____________
? ????? ?????? Zabbix ????? ?????????? ?? ???- ???????? ??? FreeBSD (? ????? ? ??? ???? BSD) ???????? vm.memory.size:
shared ? used (? ???? ?? ???? ??? ??? ?? ???????? ?????)
? ?? ?? ????? ??????????? ?????????? ???????? inactive ?????? (?? ? active).
? ???? ?? ? ???? ????? ?? ?????????? ?????? pused ? pfree, ?? ? ??? ???? ???????????.
????? ?????? ??????? ????????? ??? ?????????? ????????? ??????, ?.?. ?? ???? ??? ?????? ??????? ?????????????? swap, ????? ?????????? ???????? ????????? ????.
???????!
- duplicates
-
ZBXNEXT-144 Please implement support of item key "vm.memory.size[used]" on Windows platform.
- Closed
- is duplicated by
-
ZBX-4419 Missing memory items FreeBSD 8.2
- Closed