Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Aug 2008 16:48:22 -0400 (EDT)
From:      Michael W Lucas <mwlucas@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/126694: [PATCH] net-mgmt/net-snmp: treat inactive memory as cache in new 
Message-ID:  <200808202048.m7KKmMVC035848@bewilderbeast.blackhelicopters.org>
Resent-Message-ID: <200808202110.m7KLA1o9091589@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



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