Bug 116437 - [PATCH] net-mgmt/net-snmp: count inactive memory as cache
Summary: [PATCH] net-mgmt/net-snmp: count inactive memory as cache
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jun Kuriyama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-18 14:20 UTC by Rong-En Fan
Modified: 2008-03-30 09:20 UTC (History)
1 user (show)

See Also:


Attachments
net-snmp-5.3.1_4.patch (1.16 KB, patch)
2007-09-18 14:20 UTC, Rong-En Fan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rong-En Fan freebsd_committer freebsd_triage 2007-09-18 14:20:01 UTC
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-09-18 14:20:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->kuriyama

Over to maintainer
Comment 2 Michael W Lucas 2008-03-03 19:30:44 UTC
Tested this change against net-snmp net-snmp-5.3.2_1 on amd64.  Works
correctly on 64-bit system.

(Patch is now obsolete with change from 5.3.1 to 5.3.2, but the change
to memory_freebsd2.c works as advertised and seems to be very sensible.)

==ml

-- 
Michael W. Lucas 	mwlucas@BlackHelicopters.org, mwlucas@FreeBSD.org
		http://www.BlackHelicopters.org/~mwlucas/
      Now Shipping: "Absolute FreeBSD" -- http://www.AbsoluteFreeBSD.com
On 5/4/2007, the TSA kept 3 pairs of my soiled undies "for security reasons."
Comment 3 dfilter service freebsd_committer freebsd_triage 2008-03-30 09:13:46 UTC
kuriyama    2008-03-30 08:13:41 UTC

  FreeBSD ports repository

  Modified files:
    net-mgmt/net-snmp    Makefile 
    net-mgmt/net-snmp/files patch-configure.in 
  Added files:
    net-mgmt/net-snmp/files patch-memory_freebsd2.c 
  Log:
  - Remove unused dependency.
  - Remove unused message about WITH_INETADDRESS_HACK knob.
  - Count inactive memory as cache [1].
  
  PR:             ports/116437 [1]
  Submitted by:   rafan [1]
  
  Revision  Changes    Path
  1.152     +7 -9      ports/net-mgmt/net-snmp/Makefile
  1.6       +0 -38     ports/net-mgmt/net-snmp/files/patch-configure.in
  1.8       +11 -0     ports/net-mgmt/net-snmp/files/patch-memory_freebsd2.c (new)
_______________________________________________
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"
Comment 4 Jun Kuriyama freebsd_committer freebsd_triage 2008-03-30 09:13:48 UTC
State Changed
From-To: open->closed

Committed, thanks!