Re: SNMPD Consuming Swap Space

2008-11-27 Thread Lowell Gilbert
Davenport, Steve M [EMAIL PROTECTED] writes:

 Hello,
  
 I am running snmpd 5.4.1.2 built from a port on 7-Release, hardware is
 Sun V100, 512Mb total memory, 381Mb free. The daemon starts fine. When a
 snmpwalk is done from another system all is well until the interface
 table and then I see:
  
 interfaces.ifTable.ifEntry.ifSpeed.1 : Gauge32: 1000
 interfaces.ifTable.ifEntry.ifSpeed.2 : Gauge32: 0
 interfaces.ifTable.ifEntry.ifSpeed.3 : Gauge32: 0
 snmpwalk: No response arrived before timeout.

 After the timeout happens, looking at swapinfo -k shows that swap
 space is continually consumed until empty at which point the snmpd
 daemon is stopped:
  
 fbsdh# swap_pager: out of swap space
 swap_pager_getswapspace(16): failed
 Nov 25 11:44:08 fbsdh kernel: pid 84674 (snmpd), uid 0, was killed: out
 of swap space
  
 Now the swap space is freeded:
 fbsdh# swapinfo -k
 Device  1K-blocks UsedAvail Capacity
 /dev/ad0b 209916026456  2072704 1%
  
 Has anyone seen this issue or know of a solution. 

Since you're running the SNMP daemon from a port, not the one from the
base system, you may need developers' assistance for this sort of bug.
Problems like this are often caused by wraparound bugs or infinite loops
in my experience, although there are lots of other possibilities.  If
you can get a stack traceback when it crashes, that will is quite likely
to give a solid clue.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


SNMPD Consuming Swap Space

2008-11-25 Thread Davenport, Steve M
Hello,
 
I am running snmpd 5.4.1.2 built from a port on 7-Release, hardware is
Sun V100, 512Mb total memory, 381Mb free. The daemon starts fine. When a
snmpwalk is done from another system all is well until the interface
table and then I see:
 
interfaces.ifTable.ifEntry.ifSpeed.1 : Gauge32: 1000
interfaces.ifTable.ifEntry.ifSpeed.2 : Gauge32: 0
interfaces.ifTable.ifEntry.ifSpeed.3 : Gauge32: 0
snmpwalk: No response arrived before timeout.

After the timeout happens, looking at swapinfo -k shows that swap
space is continually consumed until empty at which point the snmpd
daemon is stopped:
 
fbsdh# swap_pager: out of swap space
swap_pager_getswapspace(16): failed
Nov 25 11:44:08 fbsdh kernel: pid 84674 (snmpd), uid 0, was killed: out
of swap space
 
Now the swap space is freeded:
fbsdh# swapinfo -k
Device  1K-blocks UsedAvail Capacity
/dev/ad0b 209916026456  2072704 1%
 
Has anyone seen this issue or know of a solution. 
 
Thanks for your assistance,
Steve
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]