Subject: uvm_pagefaults in 1.5.3 & 1.6
To: None <tech-kern@netbsd.org>
From: None <don+nbsdtk@resun.com>
List: tech-kern
Date: 10/11/2002 23:01:47
Greetings, all:

First, thanks for providing a great open-source OS.  I've been using
NetBSD since the 1.1 days.

Now, onto the problem.

I'll start at the beginning, just incase it turns out to be
relevant.  I was running 1.5.3 on an AMD K6-2 500MHZ running on a
Mainboard I530 w/ 384MB memory.  The system ran for a couple of
years, before becoming unstable with uvm_pagefaults, and freezing
up.

As a result, I migrated to this configuration:
====
NetBSD 1.6 (resun) #2: Fri Oct  4 18:06:47 UTC 2002
    root@:/usr/src/sys/arch/i386/compile/resun
cpu0: AMD Athlon Model 6 (Palomino) (686-class), 1533.02 MHz
cpu0: I-cache 64 KB 64b/line 2-way, D-cache 64 KB 64b/line 2-way
cpu0: L2 cache 256 KB 64b/line 16-way
cpu0: features 383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 383f9ff<PGE,MCA,CMOV,FGPAT,PSE36,MMX>
cpu0: features 383f9ff<FXSR,SSE>
total memory = 503 MB
avail memory = 463 MB
using 6144 buffers containing 25884 KB of memory
BIOS32 rev. 0 found at 0xfb200
PCI BIOS rev. 2.1 found at 0xfb250
pcibios: config mechanism [1][x], special cycles [1][x], last bus 1
PCI IRQ Routing Table rev. 1.0 found at 0xfdc10, size 128 bytes (6 entries)
PCI Interrupt Router at 000:07:0 (VIA Technologies VT82C596A (Apollo Pro) PCI-ISA Bridge)
PCI Exclusive IRQs: 3 9 10 11
PIR Entry 0:
	Bus: 0  Device: 8
		INTA: link 0x01 bitmap 0xdeb8
		INTB: link 0x02 bitmap 0xdeb8
		INTC: link 0x03 bitmap 0xdeb8
		INTD: link 0x05 bitmap 0xdeb8
PIR Entry 1:
	Bus: 0  Device: 9
		INTA: link 0x02 bitmap 0xdeb8
		INTB: link 0x03 bitmap 0xdeb8
		INTC: link 0x05 bitmap 0xdeb8
		INTD: link 0x01 bitmap 0xdeb8
PIR Entry 2:
	Bus: 0  Device: 10
		INTA: link 0x03 bitmap 0xdeb8
		INTB: link 0x05 bitmap 0xdeb8
		INTC: link 0x01 bitmap 0xdeb8
		INTD: link 0x02 bitmap 0xdeb8
PIR Entry 3:
	Bus: 0  Device: 15
		INTA: link 0x05 bitmap 0xdeb8
		INTB: link 0x01 bitmap 0xdeb8
		INTC: link 0x02 bitmap 0xdeb8
		INTD: link 0x03 bitmap 0xdeb8
PIR Entry 4:
	Bus: 0  Device: 1
		INTA: link 0x01 bitmap 0xdeb8
		INTB: link 0x02 bitmap 0xdeb8
		INTC: link 0x03 bitmap 0xdeb8
		INTD: link 0x05 bitmap 0xdeb8
PIR Entry 5:
	Bus: 0  Device: 7
		INTA: link 0x00 bitmap 0xdeb8
		INTB: link 0x00 bitmap 0xdeb8
		INTC: link 0x03 bitmap 0xdeb8
		INTD: link 0x05 bitmap 0xdeb8
mainbus0 (root)
pnpbios0 at mainbus0: nodes 14, max len 74
pckbc1 at pnpbios0 index 4 (PNP0303): kbd port
pckbc2 at pnpbios0 index 10 (PNP0F13): aux port
com3 at pnpbios0 index 13 (PNP0501)
com3: io 3f8-3ff, irq 4
com3: ns16550a, working fifo
lpt1 at pnpbios0 index 15 (PNP0400)
lpt1: io 378-37f, irq 7
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc1 (aux slot)
pckbc1: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: VIA Technologies product 0x3112 (rev. 0x00)
agp0 at pchb0: aperture at 0xd0000000, size 0x10000000
ppb0 at pci0 dev 1 function 0: VIA Technologies product 0xb112 (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: Trident Microsystems product 0x8500 (rev. 0x00)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 7 function 0
pcib0: VIA Technologies VT82C686A (Apollo KX133) PCI-ISA Bridge (rev. 0x40)
pciide0 at pci0 dev 7 function 1: VIA Technologies VT82C686A (Apollo KX133) ATA100 controller
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
wd0 at pciide0 channel 0 drive 0: <WDC WD800BB-32CAA0>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 76319 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1 at pciide0 channel 0 drive 1: <QUANTUM FIREBALLP LM20.5>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 19595 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 40132503 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
pciide0: secondary channel configured to compatibility mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <CREATIVE CD1220E, , ec1.05> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
wd2 at pciide0 channel 1 drive 1: <MAXTOR 4K040H2>
wd2: drive supports 16-sector PIO transfers, LBA addressing
wd2: 38182 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 78198750 sectors
wd2: 32-bit data port
wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
wd2(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
viapm0 at pci0 dev 7 function 4
viaenv0 at viapm0
ahc0 at pci0 dev 8 function 0
ahc0: interrupting at irq 11
ahc0: aic7870 Single Channel A, SCSI Id=7, 16/255 SCBs
scsibus0 at ahc0: 8 targets, 8 luns per target
rtk0 at pci0 dev 9 function 0: D-Link Systems DFE 530TX+
rtk0: interrupting at irq 9
rtk0: Ethernet address 00:50:ba:b5:ff:4d
ukphy0 at rtk0 phy 7: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000000, model 0x0000, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ex0 at pci0 dev 10 function 0: 3Com 3c905-TX 10/100 Ethernet (rev. 0x0)
ex0: interrupting at irq 3
ex0: MAC address 00:60:08:20:cb:8b
nsphy0 at ex0 phy 24: DP83840 10/100 media interface, rev. 1
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
tlp0 at pci0 dev 15 function 0: ADMtek AN985 Ethernet, pass 1.1
tlp0: interrupting at irq 10
tlp0: Ethernet address 00:10:dc:58:8b:1e
ukphy1 at tlp0 phy 1: Generic IEEE 802.3u media interface
ukphy1: OUI 0x00e092, model 0x0001, rev. 1
ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isa0 at pcib0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
apm0 at mainbus0: Power Management spec V1.2
biomask e965 netmask ef6d ttymask ffef
scsibus0: waiting 2 seconds for devices to settle...
cd1 at scsibus0 target 2 lun 0: <YAMAHA, CRW4260, 1.0h> SCSI2 5/cdrom removable
cd1: async, 8-bit transfers
boot device: wd2
root on wd2a dumps on wd2b
root file system type: ffs
IP Filter: v3.4.27 initialized.  Default = pass all, Logging = enabled
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
====

But first running it under 1.5.3.  I finally determined that a
software system that I wrote seemed to be related to the problem.
When that system wasn't running, I could go for weeks w/o any
crashes.  So, that system is currently off.

As you can see from the above, I'm trying to migrate to 1.6 in the
hopes that some of the uvm problems had been found/fixed.  As it
turns out, 1.6 is even less stable than 1.5.3 was!  I can't even
compile a new kernel without having the compiler fault and/or having
the system hang or get a uvm_fault.  I can push through the errors,
and ultimately get a bootable kernel, but I've tried 60 times to get
mozilla to compile, and can try to push past the errors about five
times before hanging/getting a uvm_pagefault.  I have two or three
system dumps of the problem, if that would be a help.

I'm more than happy to help whoever try and track down/debug the
problem.  I just need the instructions on what information I need to
provide.

Thanks in advance,
-- 
  Don Phillips         don@resun.com
  Escondido, Calif.    My opinions are just that, and no more.