Date: Tue, 18 Sep 2007 21:12:53 +0800 (CST) From: Rong-En Fan <rafan@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: kuriyama@FreeBSD.org Subject: ports/116437: [PATCH] net-mgmt/net-snmp: count inactive memory as cache Message-ID: <200709181312.l8IDCrmh047038@svm.csie.ntu.edu.tw> Resent-Message-ID: <200709181320.l8IDK111051120@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 116437 >Category: ports >Synopsis: [PATCH] net-mgmt/net-snmp: count inactive memory as cache >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Sep 18 13:20:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Rong-En Fan >Release: FreeBSD 6.2-STABLE amd64 >Organization: NTU CSIE >Environment: System: FreeBSD svm.csie.ntu.edu.tw 6.2-STABLE FreeBSD 6.2-STABLE #1: Sat Jul 14 14:31:49 CST 2007 >Description: According to FAQ: http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/misc.html#TOP-FREEMEM Inactive pages are a kind of cache memory. So count them as cache under UCD-SNMP mib's memory section. This makes monitoring software happy (like nagios's check_snmp_mem.pl). Port maintainer (kuriyama@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- net-snmp-5.3.1_4.patch begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/net-mgmt/net-snmp/Makefile,v retrieving revision 1.142 diff -u -u -r1.142 Makefile --- Makefile 4 Aug 2007 11:41:13 -0000 1.142 +++ Makefile 18 Sep 2007 13:15:30 -0000 @@ -7,7 +7,7 @@ PORTNAME= snmp PORTVERSION= 5.3.1 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= net-mgmt ipv6 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= net-snmp Index: files/patch-memory_freebsd2.c =================================================================== RCS file: /home/ncvs/ports/net-mgmt/net-snmp/files/patch-memory_freebsd2.c,v retrieving revision 1.6 diff -u -u -r1.6 patch-memory_freebsd2.c --- files/patch-memory_freebsd2.c 3 Mar 2007 13:00:16 -0000 1.6 +++ files/patch-memory_freebsd2.c 18 Sep 2007 13:15:30 -0000 @@ -9,3 +9,12 @@ #ifdef BUFSPACE_SYMBOL long bufspace; +@@ -352,7 +352,7 @@ + #ifdef darwin + long_ret = ptok(mem.v_lookups); + #else +- long_ret = ptok(mem.v_cache_count); ++ long_ret = ptok(mem.v_cache_count) + ptok(mem.v_inactive_count); + #endif + return ((u_char *) (&long_ret)); + #endif --- net-snmp-5.3.1_4.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709181312.l8IDCrmh047038>