System hangs with ATAng

2003-11-05 Thread Kevin Oberman
I suspect that I have a system losing interrupts from the disk. I get
fairly random lock-ups where the system totally freezes and the disk
access LED is on continuously until I power cycle the system.

It's an IBM T30 with an IBM 40 GB disk. The only thing I have noticed
is that the lock-ups only seem to occur when both ATA busses are in
use. Unfortunately, it may simply be that DVD and disk activity at the
same time simply are stressing the system a bit more.

The DVD is using the ATAPICAM device. DMA is enabled on both the disk
and the DVD. APM is in use. No ACPI. Kernel was built on Oct. 31.
(Maybe it's haunted. :-) )

I have DDB in the kernel, but not WITNESS or INVARIANTS. APM is in
use. No ACPI. I will attach my kernel config file and dmesg.

Any suggestions on how to proceed would be appreciated.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]   Phone: +1 510 486-8634

Copyright (c) 1992-2003 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.1-CURRENT #46: Fri Oct 31 10:51:08 PST 2003
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/IBM-T30-D
Preloaded elf kernel /boot/kernel/kernel at 0xc0823000.
Preloaded userconfig_script /boot/kernel.conf at 0xc0823278.
Preloaded elf module /boot/kernel/apm.ko at 0xc08232c8.
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz (1798.48-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0xf24  Stepping = 4
  
Features=0x3febf9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM
real memory  = 536281088 (511 MB)
avail memory = 511197184 (487 MB)
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: math processor on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
Using $PIR table, 14 entries at 0xc00fdeb0
apm0: APM BIOS on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
pcib0: Host to PCI bridge at pcibus 0 on motherboard
pci0: PCI bus on pcib0
pci_cfgintr: 0:29 INTA BIOS irq 11
pci_cfgintr: 0:29 INTB BIOS irq 11
pci_cfgintr: 0:29 INTC BIOS irq 11
pci_cfgintr: 0:31 INTB BIOS irq 11
pci_cfgintr: 0:31 INTB BIOS irq 11
pci_cfgintr: 0:31 INTB BIOS irq 11
agp0: Intel 82845 host to AGP bridge mem 0xe000-0xe3ff at device 0.0 on pci0
pcib1: PCIBIOS PCI-PCI bridge at device 1.0 on pci0
pci1: PCI bus on pcib1
pci_cfgintr: 1:0 INTA BIOS irq 11
pci1: display, VGA at device 0.0 (no driver attached)
uhci0: Intel 82801CA/CAM (ICH3) USB controller USB-A port 0x1800-0x181f irq 11 at 
device 29.0 on pci0
usb0: Intel 82801CA/CAM (ICH3) USB controller USB-A on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1: NEC Corporation USB2.0 Hub Controller, class 9/0, rev 2.00/1.00, addr 2
uhub1: 4 ports with 4 removable, self powered
uhci1: Intel 82801CA/CAM (ICH3) USB controller USB-B port 0x1820-0x183f irq 11 at 
device 29.1 on pci0
usb1: Intel 82801CA/CAM (ICH3) USB controller USB-B on uhci1
usb1: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci2: Intel 82801CA/CAM (ICH3) USB controller USB-C port 0x1840-0x185f irq 11 at 
device 29.2 on pci0
usb2: Intel 82801CA/CAM (ICH3) USB controller USB-C on uhci2
usb2: USB revision 1.0
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
pcib2: PCIBIOS PCI-PCI bridge at device 30.0 on pci0
pci2: PCI bus on pcib2
pci_cfgintr: 2:0 INTA BIOS irq 11
pci_cfgintr: 2:0 INTB BIOS irq 11
pci_cfgintr: 2:2 INTA BIOS irq 11
pci_cfgintr: 2:8 INTA BIOS irq 11
cbb0: TI1520 PCI-CardBus Bridge mem 0x5000-0x5fff irq 11 at device 0.0 on 
pci2
start (5000)  sc-membase (d020)
start (5000)  sc-pmembase (f000)
cardbus0: CardBus bus on cbb0
pccard0: 16-bit PCCard bus on cbb0
cbb0: [MPSAFE]
cbb1: TI1520 PCI-CardBus Bridge mem 0x5100-0x51000fff irq 11 at device 0.1 on 
pci2
start (5100)  sc-membase (d020)
start (5100)  sc-pmembase (f000)
cardbus1: CardBus bus on cbb1
pccard1: 16-bit PCCard bus on cbb1
cbb1: [MPSAFE]
pci2: network at device 2.0 (no driver attached)
fxp0: Intel 82801CAM (ICH3) Pro/100 VE Ethernet port 0x8000-0x803f mem 
0xd020-0xd0200fff irq 11 at device 8.0 on pci2
fxp0: Ethernet address 00:09:6b:50:36:29
miibus0: MII bus on fxp0
inphy0: i82562ET 10/100 media interface on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: [MPSAFE]
isab0: PCI-ISA bridge at device 31.0 on pci0
isa0: ISA bus on isab0
atapci0: Intel ICH3 UDMA100 controller port 
0x1860-0x186f,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 

Re: System hangs with ATAng

2003-11-05 Thread Kevin Oberman
I hate following up my own post, but I manages to get some significant
information.

The console (previously inaccessible after the crash) was on screen
for the last event and I get the the following:
FAILURE - malloc ATA request failed
cannot allocate ATAPI/CAM request
(cd0:ata1:0:0:0): out of memory, freezing queue.
FAILURE - malloc ATA request failed
ad0: FAILURE - out of memory in start
(These two lines repeat 15 times)
panic: kmem_malloc(4096): kmem_map too small: 216326144 total allocated
Debuggger(panic)
Stopped at  Debugger+0x54:  xchgl%ebx,in_Debugger.0

So it looks like in need to tune my kernel a bit.

Will this work?
options VM_KMEM_SIZE_SCALE=4
options VM_KMEM_SIZE_MAX=(1024*1024*1024)
options KVA_PAGES=512

I found these suggested in a prior thread, but I am uncertain if the
values are even close to appropriate to my system (no PAE, UP, 384 MB
RAM).
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]   Phone: +1 510 486-8634
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]