Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jun 2010 13:18:02 +0200
From:      Thomas Steen Rasmussen <thomas@gibfest.dk>
To:        <ports@freebsd.org>
Subject:   ports/133758 and net-snmp-5.5 - inactive memory stil not counted as free memory
Message-ID:  <a9a9f1ad843802e6f2c5edcfc9600988@10.16.255.155>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a9a9f1ad843802e6f2c5edcfc9600988>