Subject: Re: Experiences with 2.0beta?
To: None <port-sparc@netbsd.org>
From: Christian Corti <corti@informatik.uni-stuttgart.de>
List: port-sparc
Date: 05/04/2004 10:53:32
Hauke Fath <hauke@espresso.rhein-neckar.de> wrote:
> Since the machine has produced quite a few crashes, I've made a list on
> http://la.causeuse.org/hauke/NetBSD/netbsd-2-0-experience/ -- what are
> others' experiences with the to-be-2.0? Stability? Anybody having more
> success with bridge(4) than me?

I have a very similar configuration here. A SS10/MP with 320MB RAM, hme
Fast-Ethernet and Fast-Wide SBus-Card (isp) (both unused) and a ST15150N
as single drive, with 512 MB swap space. I've started with a current
kernel 2.0C that caused a total freeze nearly once a day, the error each
time was "unable to allocate scsipi_xfer" and "unable to allocate ecb". I
then switched to 2.0D that seemed to solve this issue but showed another
one: after some time I got frequent "sbrk: grow ... failed, error 12". Now
I'm at 2.0E that hasn't produced this error yet, but instead I got
"virtual memory exhausted" during compilation, and no network daemons
would work anymore (no sshd, no smtpd, even if restarted). And I had the
same problems from 2.0C again. So I think the memory management code must
be broken in some way.
If the machine freezes it says "syncing disks..." on the console and
that's it. I have to go into the monitor with Stop-A and say reset, sync
won't work after a crash. The machine is only running as a mail server
based on postfix (currently 2.0.19) from pkgsrc.

This is what I have found in /var/log/messages:

Apr 30 04:11:46 ti /netbsd: sd0(esp0:0:3:0): unable to allocate ecb
Apr 30 04:11:51 ti /netbsd: sd0(esp0:0:3:0): adapter resource shortage
Apr 30 04:11:51 ti /netbsd: sd0(esp0:0:3:0): unable to allocate ecb
Apr 30 04:11:51 ti /netbsd: sd0(esp0:0:3:0): adapter resource shortage
Apr 30 04:11:51 ti /netbsd: sd0(esp0:0:3:0): unable to allocate ecb
Apr 30 04:11:51 ti /netbsd: sd0(esp0:0:3:0): adapter resource shortage
Apr 30 04:11:51 ti /netbsd: sd0(esp0:0:3:0): unable to allocate ecb
Apr 30 04:11:51 ti /netbsd: sd0(esp0:0:3:0): adapter resource shortage


This is the dmesg output of my configuration:

NetBSD 2.0E (TI) #0: Sun May  2 16:23:12 CEST 2004
        toor@ti:/usr/src/sys/arch/sparc/compile/TI
total memory = 319 MB
avail memory = 308 MB
bootpath: /iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/sd@3,0
mainbus0 (root): SUNW,SPARCstation-10: hostid XXXXXXXX
cpu0 at mainbus0: mid 8: TMS390Z50 v1 @ 40.300 MHz, on-chip FPU
cpu0: physical 20K instruction (64 b/l), 16K data (32 b/l), 1024K external (32 b/l): cache enabled
cpu1 at mainbus0: mid 10: TMS390Z50 v1 @ 40.300 MHz, on-chip FPU
cpu1: physical 20K instruction (64 b/l), 16K data (32 b/l), 1024K external (32 b/l): cache enabled
obio0 at mainbus0
clock0 at obio0 slot 0 offset 0x200000: mk48t08
timer0 at obio0 slot 0 offset 0x300000: delay constant 18
zs0 at obio0 slot 0 offset 0x100000 level 12 softpri 6
zstty0 at zs0 channel 0
zstty1 at zs0 channel 1
zs1 at obio0 slot 0 offset 0x0 level 12 softpri 6
kbd0 at zs1 channel 0: baud rate 1200 (console input)
ms0 at zs1 channel 1: baud rate 1200
fdc0 at obio0 slot 0 offset 0x700000 level 11 softpri 4: chip 82077
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
auxreg0 at obio0 slot 0 offset 0x800000
power0 at obio0 slot 0 offset 0xa01000 level 2
iommu0 at mainbus0 ioaddr 0xe0000000: version 0x1/0x0, page-size 4096, range 64MB
sbus0 at iommu0: clock = 20 MHz
dma0 at sbus0 slot 15 offset 0x400000: DMA rev 2
esp0 at dma0 slot 15 offset 0x800000 level 4: ESP200, 40MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
ledma0 at sbus0 slot 15 offset 0x400010: DMA rev 2
le0 at ledma0 slot 15 offset 0xc00000 level 6: address XX:XX:XX:XX:XX:XX
le0: 8 receive buffers, 2 transmit buffers
bpp0 at sbus0 slot 15 offset 0x4800000 level 2 (ipl 3): DMA rev 2
SUNW,DBRIe at sbus0 slot 15 offset 0x8010000 level 9 not configured
isp0 at sbus0 slot 1 offset 0x10000 level 3 (ipl 5) for ptisp
scsibus1 at isp0: 16 targets, 8 luns per target
cgsix0 at sbus0 slot 2 offset 0x0 level 9: SUNW,501-1672, 1152 x 900, rev 8 (console)
cgsix0: attached to /dev/fb
hme0 at sbus0 slot 3 offset 0x8c00000 level 4 (ipl 7): Sun Happy Meal Ethernet (SUNW,hme)
hme0: Ethernet address XX:XX:XX:XX:XX:XX
nsphy0 at hme0 phy 1: DP83840 10/100 media interface, rev. 0
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
eccmemctl0 at mainbus0 ioaddr 0x0: version 0x0/0x1
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 3 lun 0: <SEAGATE, ST15150N, 0020> disk fixed
sd0: 4095 MB, 3712 cyl, 21 head, 107 sec, 512 bytes/sect x 8388315 sectors
sd0: sync (100.00ns offset 15), 8-bit (10.000MB/s) transfers
root on sd0a dumps on sd0b
root file system type: ffs
cpu0: booting secondary processors: cpu1


Christian