hi! I create new version of patch-memory_freebsd.c which give us mostly right memory statistic output for UCD-SNMP-MIB and HOST_RESOURSE-MIB. Fix: take this patch and replace files/patch-memory_freebsd.c from net-snmp port dir Patch attached with submission follows: How-To-Repeat: compare output from snmpwalk memory from host and sysctl vm.stats.vm
sorry, here latest version of patch
Responsible Changed From-To: freebsd-ports-bugs->sylvio Fix synopsis and assign.
I've pretty extensively grokked and tested the Dec 15th patch... and it definitely is a big improvement (as far as my understanding of these OS stats and the UCD-SNMP MIB definitions goes). The one problem that I found remaining is with reporting of swap size/free. The reported values didn't at all match what's reported by swapinfo (on big-RAM systems you get a nice negative number). As such I'm supplying another patch that adds to the Dec 15th patch what's needed. I've simply borrowed directly from /usr/src/usr.sbin/pstat/pstat.c (swapinfo's source)... so the method is certainly sound (an hopefully the final result). In my tests it appears to work well. Hope this helps in getting this issue resolved. Thanks, Charles -- Charles Owens Great Bay Software, Inc.
sylvio 2011-02-03 19:34:40 UTC FreeBSD ports repository Modified files: net-mgmt/net-snmp/files patch-memory_freebsd.c Log: - new version of patch-memory_freebsd.c - right memory statistic output for UCD-SNMP-MIB and HOST_RESOURSE-MIB. PR: ports/153179 Submitted by: "Y.A." <nexther0@gmail.com> Feature safe: yes Revision Changes Path 1.7 +62 -9 ports/net-mgmt/net-snmp/files/patch-memory_freebsd.c _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed. Thanks!