ports/133758 and net-snmp-5.5 - inactive memory stil not counted as free memory

Thomas Steen Rasmussen thomas at gibfest.dk
Mon Jun 14 11:18:04 UTC 2010


Hello list,

I am experiencing what seems like the problem in 
http://www.freebsd.org/cgi/query-pr.cgi?pr=133758

I have net-snmp-5.5 installed on FreeBSD 7.2 i386 and it returns this:
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 189072 kB
UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 273204 kB

When this is what 'top' says:
Mem: 157M Active, 1467M Inact, 189M Wired, 8580K Cache, 112M Buf, 176M
Free

Clearly the "Inact" isn't counted as free memory which is causing my 
monitoring to throw alerts when there is actually lots of "free" memory 
left (where free=free+inact).

I checked the file /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.5/agent/
mibgroup/hardware/memory/memory_freebsd.c and it contains the patch 
mentioned in the PR. What does this mean ? Does the patch not work, or am 
I doing something wrong or misunderstanding something ?

Thank you in advance,

Best regards

Thomas Steen Rasmussen


More information about the freebsd-ports mailing list