Re: OpenBSD w/ DISMAN-EVENT-MIB swapError / memMinimumSwap
Robert Story <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Organization | Net-SNMP |
| Message-ID | <20050816120709.32cad854@aud> |
On Mon, 15 Aug 2005 19:22:09 -0400 (EDT) Brian wrote:
BAS> Okay per the grep below, the problem is in memory_netbsd1.c,
BAS> which, given the name of the file, would explain a great deal of
BAS> desynchronization between the kernel data structures and the state of the
BAS> MIB data retrieval algorithm. The logic is the line:
BAS>
BAS> if (swapFree < minimumswap)
BAS> ....blah
BAS>
BAS> In FreeBSD, swapFree get's assigned
BAS>
BAS> swapFree += kswap[i].ksw_total
BAS>
BAS> But in OpenBSD (I'm assuming it uses the NetBSD #ifdef'd file),
Assumptions are a dangerous thing. If you look in the build directory, what
files are being built? (ls memory*.o)
Also, if you are handy with a debugger, stepping through the code helps a lot.
If not, then adding debug output can help as well...
--
NOTE: messages sent directly to me, instead of the lists, will be deleted
unless they are requests for paid consulting services.
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
You are lost in a twisty maze of little standards, all different.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users