ports/126694: [PATCH] net-mgmt/net-snmp: treat inactive memory as cache in new

Michael W Lucas mwlucas at FreeBSD.org
Wed Aug 20 21:10:02 UTC 2008


>Number:         126694
>Category:       ports
>Synopsis:       [PATCH] net-mgmt/net-snmp: treat inactive memory as cache in new
>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:   Wed Aug 20 21:10:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Michael W Lucas
>Release:        FreeBSD 7.0-CURRENT amd64
>Organization:
FreeBSD Project
>Environment:
FreeBSD aubsr019 7.0-BETA2 FreeBSD 7.0-BETA2 #1: Tue Nov  6 09:34:21 EST 2007     system_mwl at aubsr019:/usr/obj/usr/src/sys/AUBSR019  amd64


>Description:

ports/116437 included a patch to treat inactive memory as cache.  This
made net-snmp work with a variety of NMS.

The upgrade to 5.4.1_3 changed memory-fetching methods, invalidating the patch.

The enclosed patch brings this same functionality to 5.4.1.2, under
the same rationale.  The file patch-memory_freebsd2.c is now
obsoleted.

>How-To-Repeat:


>Fix:

--- agent/mibgroup/hardware/memory/memory_freebsd.c-dist	2008-08-20 16:19:11.000000000 -0400
+++ agent/mibgroup/hardware/memory/memory_freebsd.c	2008-08-20 16:20:23.000000000 -0400
@@ -129,7 +129,7 @@
         if (!mem->descr)
              mem->descr = strdup("Cached memory");
         mem->units = vmem.v_page_size;
-        mem->size  = vmem.v_cache_count;
+        mem->size  = vmem.v_cache_count + vmem.v_inactive_count ;
         mem->free  = -1;
     }
 



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list