On Sat, Jun 13, 2015 at 04:02:01PM -0000, Himanshu  Pandey wrote:
> Hi Friends,
> Our SNMPd service reports memory usage including buffers+cache, and
> the result is always high because kernel uses all available memory to
> speed up disk reads. Buffers+cache can be freed by kernel whenever
> applications needs it.Is this the behaviour of our SNMPd memory usage
> reporting.Please explain and clarify.

We return exactly the same basic numbers as the standard Linus "free"
command, and that is the best we can do.
It is then up to you to interpret these numbers, possibly by adding
buffers and cached to free, but we give you the needed numbers.

>From my own server:

[nba@server nba]$ snmpwalk localhost memory
UCD-SNMP-MIB::memIndex.0 = INTEGER: 0
UCD-SNMP-MIB::memErrorName.0 = STRING: swap
UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 6078460 kB
UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 5819652 kB
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 3835236 kB
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 720412 kB
UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 6540064 kB
UCD-SNMP-MIB::memMinimumSwap.0 = INTEGER: 16000 kB
UCD-SNMP-MIB::memShared.0 = INTEGER: 44504 kB
UCD-SNMP-MIB::memBuffer.0 = INTEGER: 409828 kB
UCD-SNMP-MIB::memCached.0 = INTEGER: 575148 kB
UCD-SNMP-MIB::memSwapError.0 = INTEGER: noError(0)
UCD-SNMP-MIB::memSwapErrorMsg.0 = STRING: 
[nba@server nba]$ free
             total       used       free     shared    buffers cached
Mem:       3835236    3112304     722932      44512     409836 576300
-/+ buffers/cache:    2126168    1709068
Swap:      6078460     258784    5819676

/Niels

-- 
Niels Baggesen - @home - Ã…rhus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

------------------------------------------------------------------------------
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to