Re: Recent stable: bsnmpd eats up memory and cpu

2016-07-05 Thread Mark Huizer
On Tue, Jul 05, 2016 at 10:38:23AM +0200, Mark Huizer wrote:
> On Mon, May 02, 2016 at 12:01:07AM +0200, Wolfgang Zenker wrote:
> > Hi,
> > 
> > after updating some 10-STABLE systems a few days ago, I noticed that on
> > two of those systems bsnmpd started to use up a lot of cpu time, and the
> > available memory shrinked until rendering the system unusable. Killing
> > bsnmpd stops the cpu usage but does not free up memory.
> > Both affected systems are amd64, one having moved from r297555 to
> > r298723, the other from r297555 to r298722. Another amd64 system
> > that went from r297555 to r298722 appears to be not affected.
> > The two affected systems are on an internal LAN segment and there
> > is currently no application connecting to snmp on those machines.
> > 
> > What would be useful debugging data to collect in this case?
> 
> I saw a resembling thing here after upgrading to 10-stable yesterday.
> I noticed bsnmp running at 30 to 40% cpu continuously, resembling what I 
> found here:
> 
> https://forums.freebsd.org/threads/37045/

Sorry, I meant https://forums.freebsd.org/threads/56235/

Greetings

Mark
-- 
Nice testing in little China...
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Recent stable: bsnmpd eats up memory and cpu

2016-07-05 Thread Mark Huizer
On Mon, May 02, 2016 at 12:01:07AM +0200, Wolfgang Zenker wrote:
> Hi,
> 
> after updating some 10-STABLE systems a few days ago, I noticed that on
> two of those systems bsnmpd started to use up a lot of cpu time, and the
> available memory shrinked until rendering the system unusable. Killing
> bsnmpd stops the cpu usage but does not free up memory.
> Both affected systems are amd64, one having moved from r297555 to
> r298723, the other from r297555 to r298722. Another amd64 system
> that went from r297555 to r298722 appears to be not affected.
> The two affected systems are on an internal LAN segment and there
> is currently no application connecting to snmp on those machines.
> 
> What would be useful debugging data to collect in this case?

I saw a resembling thing here after upgrading to 10-stable yesterday.
I noticed bsnmp running at 30 to 40% cpu continuously, resembling what I found 
here:

https://forums.freebsd.org/threads/37045/

After ktrace-ing the process I noticed it was doing sysctl stuff all the time 
and a more close
look showed that it was freaking out on the CD device without a medium.

So I inserted a CD in the device, and bsnmp went back to normal.

"Interesting". So far I didn't notice memory issues.

Mark
-- 
Nice testing in little China...
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


fxp0: device timeout

2005-04-25 Thread Mark Huizer
My server in the attic was recently reinstalled from scratch with
FreeBSD 5.stable (actually: RC2, and now upgraded to 5-stable), see the
attached dmesg.boot for the dmesg info.

This machine in the exact hardware configuration was running fine in its
6-current days. The reason for 'down'grading was the fact that overtime
it seems that a subtle filesystem problem arose, that lead to random
crashes (well, random... take a lot of vm activity and at some point
vnlru would lead to a kernel panic), but the network was perfectly fine.

Now, with the 5.x install, I have regular problems with fxp0.

In /var/log/messages and dmesg I get this:
(The last line comes from ifconfig fxp0 link0, which I added yesterday
to see if it would solve problems, the same symptoms occur without that
option)

Apr 25 18:15:08 eeyore kernel: fxp0: device timeout
Apr 25 18:15:08 eeyore kernel: fxp0: Microcode loaded, int_delay: 1000 usec  
bundle_max: 0

The symptoms:
* network freezes for 30 seconds or something like that, after a while
pings start to work again and everything moves on.

When:
* combinations of network activity and/or disk activity. Starting bacula
will guarantee device timeouts, as will browsing from a workstation combined
with e.g. using a samba share

The interface:

fxp0:  port 0xe000-0xe01f mem 
0xe300-0xe30f,0xe3101000-0xe3101fff irq 5 at device 17.0 on pci0
miibus1:  on fxp0

fxp0: flags=9843 mtu 1500
options=8
inet6 fe80::208:c7ff:fe25:7560%fxp0 prefixlen 64 scopeid 0x2 
ether 00:50:da:3d:d7:f6
media: Ethernet autoselect (100baseTX )
status: active

There are 2 'special' things with this interface:
* the mac address is changed from /etc/start_if.fxp0
* it is used with VLAN's (802.1q tagging)

I looked in the mail archives, and of course it is clearly an interrupt
problem. I did the usual stuff: put the card in different PCI slots,
force it to different IRQ in the BIOS, but still no improvement.
Furthermore I don't believe that hardware should change that much just
by reinstalling FreeBSD, so I tend to believe that something is
different between 5.x and 6.x.

Does anyone recognize these symptoms and have a nice solution for me?
Or if people decide I should PR this: what kind of info would make
debugging easy? vmstat 1 info would take a little work to collect for
these kind of outages, but I can do some scripting to fix that of course
:-)

Greetings,

Mark
-- 
Nice testing in little China...
Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.4-STABLE #1: Thu Apr 21 02:25:25 CEST 2005
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/eeyore
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) XP (1660.52-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x681  Stepping = 1
  
Features=0x383f9ff
  AMD Features=0xc040
real memory  = 536805376 (511 MB)
avail memory = 515637248 (491 MB)
npx0:  on motherboard
npx0: INT 16 interface
acpi0:  on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
cpu0:  on acpi0
acpi_throttle0:  on cpu0
acpi_button0:  on acpi0
acpi_button1:  on acpi0
pcib0:  port 
0x6000-0x607f,0x5000-0x500f,0x4080-0x40ff,0x4000-0x407f,0xcf8-0xcff on acpi0
pci0:  on pcib0
agp0:  mem 
0xd000-0xd7ff at device 0.0 on pci0
pcib1:  at device 1.0 on pci0
pci1:  on pcib1
pci1:  at device 0.0 (no driver attached)
isab0:  at device 7.0 on pci0
isa0:  on isab0
atapci0:  port 
0xc000-0xc00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 7.1 on pci0
atapci0: Correcting VIA config for southbridge data corruption bug
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
uhci0:  port 0xc400-0xc41f irq 10 at device 7.2 on 
pci0
usb0:  on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1:  port 0xc800-0xc81f irq 10 at device 7.3 on 
pci0
usb1:  on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
pci0:  at device 7.4 (no driver attached)
sym0: <810a> port 0xd800-0xd8ff mem 0xe310-0xe31000ff irq 11 at device 15.0 
on pci0
sym0: Symbios NVRAM, ID 7, Fast-10, SE, parity checking
sym0: open drain IRQ line driver
sym0: using LOAD/STORE-based firmware.
xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xdc00-0xdc7f mem 
0xe3102000-0xe310207f irq 10 at device 16.0 on pci0
miibus0:  on xl0
ukphy0:  on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: Ethernet address: 00:04:75:c4:f4:43
fxp0:  port 0xe000-0xe01f mem 
0xe300-0xe30f,0xe3101000-0xe3101fff irq 5 at device 17.0 on pci0
miibus1:  on fxp0
inphy0:  on miibus1
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet

Re: FreeBSD Console

2000-07-28 Thread Mark Huizer

On Fri, Jul 28, 2000 at 10:00:18AM -0500, Sean Kelly wrote:
> I am using FreeBSD as a desktop workstation at work.  It is very nice
> and productive, but I have one problem.  We have many HP/UX machines, and
> I am constantly connecting to them.  I can't find a terminal type on
> HP/UX that matches the FreeBSD console exactly.  'ansi' appears to be close,
> but I still have some horrid drawing errors.  Same with remote work on
> SunOS 5.7.  On SunOS, the 'more' command doesn't even scroll properly.
> I'd be interrested to know if anybody knows of a terminal type that
> can be used on HP/UX 10.20, SunOS 5.7, and HP/UX 11 that works perfectly
> with the FreeBSD 4-STABLE console.
> 
for me at386 often gives reasonable results.

Mark
-- 
Nice testing in little China...


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message