Subject: Re: threads and SMP
To: current-users <current-users@netbsd.org>
From: Adam K Kirchhoff <adamk@voicenet.com>
List: current-users
Date: 02/17/2003 16:20:03
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--Boundary_(ID_j3EVo5ZypE1vrk2VLyPd/w)
Content-type: TEXT/PLAIN; charset=US-ASCII
Content-transfer-encoding: 7BIT


On Sun, 16 Feb 2003, Adam K Kirchhoff wrote:

> Date: Sun, 16 Feb 2003 18:16:11 -0500 (EST)
> From: Adam K Kirchhoff <adamk@voicenet.com>
> To: current-users <current-users@netbsd.org>
> Subject: threads and SMP
>
>
> I take it that threads and SMP don't work well together, yet, huh? :-)
> Given a limited set of programming skills, is there anything I (or any
> user, really) can do to help development in this area?

I'm attaching the dmesg and ddb output from when I tried to run mozilla on
an SMP system with the new threading.  Total system lock up :-(

Adam

--Boundary_(ID_j3EVo5ZypE1vrk2VLyPd/w)
Content-id: <Pine.NEB.4.53.0302171620020.301@sorrow.ashke.com>
Content-type: TEXT/PLAIN; charset=US-ASCII; name=session.log
Content-transfer-encoding: 7BIT
Content-disposition: attachment; filename=session.log
Content-description:


>> NetBSD/i386 BIOS Boot, Revision 2.12
>> (autobuild@tgm.daemon.org, Sun Sep  8 19:22:13 UTC 2002)
>> Memory: 638/523200 k
> 
> 
> boot
booting hd3a:netbsd
kenter: 0x00002000
acpi: wakecode is installed at 0x2000, size=336
[ using 468284 bytes of netbsd ELF symbol table ]
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.6N (SORROW) #2: Mon Feb 17 13:39:06 EST 2003
    root@sorrow.ashke.com:/usr/src/sys/arch/i386/compile/SORROW
total memory = 511 MB
avail memory = 469 MB
using 6144 buffers containing 26292 KB of memory
BIOS32 rev. 0 found at 0xfb460
mainbus0 (root)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel Pentium III (686-class), 1002.37 MHz, id 0x68a
cpu0: features 387fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features 387fbff<PGE,MCA,CMOV,PAT,PSE36,PN,MMX>
cpu0: features 387fbff<FXSR,SSE>
cpu0: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 4-way
cpu0: L2 cache 256 KB 32b/line 8-way
cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu0: serial number 0000-068A-0003-256E-96A0-EC2F
cpu0: calibrating local timer
cpu0: apic clock running at 100 MHz
cpu0: 8 page colors
cpu1 at mainbus0: apid 1 (application processor)
cpu1: starting
cpu1: Intel Pentium III (686-class), 1002.28 MHz, id 0x68a
cpu1: features 387fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu1: features 387fbff<PGE,MCA,CMOV,PAT,PSE36,PN,MMX>
cpu1: features 387fbff<FXSR,SSE>
cpu1: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 4-way
cpu1: L2 cache 256 KB 32b/line 8-way
cpu1: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu1: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu1: serial number 0000-068A-0001-31FA-8BC9-0A7C
ioapic0 at mainbus0 apid 2 (I/O APIC)
ioapic0: pa 0xfec00000, version 11, 24 pins
acpi0 at mainbus0
acpi0: X/RSDT: OemId <VIA694,AWRDACPI,42302e31>, AslId <AWRD,00000000>
    ACPI-0372: *** Info: GPE Block0 defined as GPE0 to GPE15
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
acpibut0 at acpi0 (PNP0C0C): ACPI Power Button
PNP0C01 at acpi0 not configured
PNP0A03 at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C02 at acpi0 not configured
PNP0000 at acpi0 not configured
PNP0200 at acpi0 not configured
PNP0100 at acpi0 not configured
PNP0B00 at acpi0 not configured
PNP0800 at acpi0 not configured
PNP0C04 at acpi0 not configured
PNP0700 at acpi0 not configured
PNP0501 at acpi0 not configured
PNP0501 at acpi0 not configured
PNP0400 at acpi0 not configured
PNP0F13 at acpi0 not configured
PNP0303 at acpi0 not configured
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 VT82C691 (Apollo Pro) Host-PCI (rev. 0xc4)
agp0 at pchb0: aperture at 0xf0000000, size 0x10000000
ppb0 at pci0 dev 1 function 0: VIA Technologies VT82C598 (Apollo MVP3) CPU-AGP Bridge (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: ATI Technologies Radeon 8500 (rev. 0x00)
wsdisplay0 at vga1 kbdmux 1
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
atapibus0 at pciide0 channel 0: 2 targets
cd0 at atapibus0 drive 1: <CREATIVE DVD-ROM DVD6240E, , 0101> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
wd0 at pciide0 channel 0 drive 0: <Maxtor 2B020H1>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 19541 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 40020624 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
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)
cd0(pciide0:0:1): using PIO mode 4, DMA mode 2 (using DMA data transfers)
pciide0: secondary channel configured to compatibility mode
wd1 at pciide0 channel 1 drive 0: <Maxtor 5T040H4>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 39083 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 80043264 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
pciide0: secondary channel interrupting at irq 15
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
uhci0 at pci0 dev 7 function 2: VIA Technologies VT83C572 USB Controller (rev. 0x1a)
uhci0: interrupting at apic 2 int 11 (irq 11)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 7 function 3: VIA Technologies VT83C572 USB Controller (rev. 0x1a)
uhci1: interrupting at apic 2 int 11 (irq 11)
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
viapm0 at pci0 dev 7 function 4
viaenv0 at viapm0
ahc0 at pci0 dev 9 function 0
ahc0: interrupting at apic 2 int 18 (irq 11)
ahc0: aic7892 Wide Channel A, SCSI Id=7, 16/255 SCBs
scsibus0 at ahc0: 16 targets, 8 luns per target
bktr0 at pci0 dev 10 function 0
bktr0: interrupting at apic 2 int 19 (irq 11)
bktr0: Hauppauge Model 61381 D423
bktr0: Detected a MSP3430G-B6 at 0x80
bktr0: Hauppauge WinCast/TV, Philips FR1236 NTSC FM tuner, msp3400c stereo, remote control.
radio0 at bktr0
Brooktree product 0x0878 (miscellaneous multimedia, revision 0x11) at pci0 dev 10 function 1 not configured
eap0 at pci0 dev 11 function 0: Ensoniq AudioPCI 97 ES1373-8(rev. 0x08)
eap0: interrupting at apic 2 int 16 (irq 11)
eap0: TriTech TR28602 codec; no 3D stereo
audio0 at eap0: full duplex, mmap, independent
midi0 at eap0: AudioPCI MIDI UART
rtk0 at pci0 dev 12 function 0: RealTek 8139 10/100BaseTX
rtk0: interrupting at apic 2 int 17 (irq 10)
rtk0: Ethernet address 00:50:bf:72:fa:5a
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
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 mux 1
wskbd0: connecting to wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
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
ioapic0: enabling
Kernelized RAIDframe activated
scsibus0: waiting 2 seconds for devices to settle...
uhub2 at uhub0 port 2
uhub2: Texas Instruments TUSB2046 hub, class 9/0, rev 1.10/1.25, addr 2
uhub2: 4 ports with 4 removable, bus powered
sd0 at scsibus0 target 0 lun 0: <QUANTUM, ATLAS_V__9_WLS, 0230> disk fixed
sd0: 8755 MB, 20907 cyl, 2 head, 428 sec, 512 bytes/sect x 17930694 sectors
sd0: sync (25.0ns offset 63), 16-bit (80.000MB/s) transfers, tagged queueing
sd1 at scsibus0 target 4 lun 0: <QUANTUM, ATLAS_V__9_WLS, 0230> disk fixed
sd1: 8755 MB, 20907 cyl, 2 head, 428 sec, 512 bytes/sect x 17930694 sectors
sd1: sync (25.0ns offset 63), 16-bit (80.000MB/s) transfers, tagged queueing
uhci0: device addr 3 (config 1) exceeds power budget, 256 mA > 100 mA
uhub2: port 1, set config at addr 3 failed
uhub2: device problem, disabling port 1
cd1 at scsibus0 target 6 lun 0: <HP, CD-Writer+ 9600, 1.0a> cdrom removable
cd1: sync (100.0ns offset 15), 8-bit (10.000MB/s) transfers
wd0: no disk label
sd0: no disk label
sd1: no disk label
wd0: no disk label
sd0: no disk label
sd1: no disk label
boot device: wd1
root on wd1a dumps on wd1b
cpu1: CPU 1 running
Mon Feb 17 21:02:27 GMT 2003
swapctl: adding /dev/wd1b as swap device at priority 0
Starting file system checks:
/dev/rwd1a: 2215 files, 23338 used, 1013700 free (188 frags, 126689 blocks, 0.0% fragmentation)
/dev/rwd1a: MARKING FILE SYSTEM CLEAN
/dev/rwd1e: FREE BLK COUNT(S) WRONG IN SUPERBLK (SALVAGED)
/dev/rwd1e: 1633 files, 16027 used, 237916 free (92 frags, 29728 blocks, 0.0% fragmentation)
/dev/rwd1e: MARKING FILE SYSTEM CLEAN
/dev/rwd1f: 6 files, 5 used, 253938 free (18 frags, 31740 blocks, 0.0% fragmentation)
/dev/rwd1f: MARKING FILE SYSTEM CLEAN
/dev/rwd1g: 248907 files, 3000396 used, 6536208 free (47968 frags, 811030 blocks, 0.5% fragmentation)
/dev/rwd1g: MARKING FILE SYSTEM CLEAN
Setting tty flags.
Setting sysctl variables:
Starting network.
Hostname: sorrow.ashke.com
NIS domainname: ashke.com
IPv6 mode: host
Configuring network interfaces: rtk0.
add net default: gateway 192.168.0.1
Adding interface aliases:
Building databases...
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)
Starting syslogd.
Checking for core dump...
savecore: no core dump
Mounting all filesystems...
wd0: no disk label
sd1: no disk label
Clearing /tmp.
Creating a.out runtime link editor directory cache.
Checking quotas: done.
Starting virecover.
starting local daemons:.
Starting Samba/etc/rc.local: /usr/pkg/sbin/smbd: not found
Updating motd.
Starting sshd.
Starting sendmail.
Starting cron.
Mon Feb 17 16:03:58 EST 2003

NetBSD/i386 (sorrow.ashke.com) (console)

login: uvm_fault(0xe36809c0, 0x0, 0, 1) -> e
kernel: page fault trap, code=0
Stopped in pid 352.2 (mozilla-bin) at   sa_upcall_userret+0x1df:        movl             0
(%esi),%eax
db{1}> trace
sa_upcall_userret(e407f284,b,6,1,4855db21) at sa_upcall_userret+0x1df
trap() at trap+0x79d
--- trap (number 6) ---
0x4855b79c:
db{1}> sync
syncing disks... 

--Boundary_(ID_j3EVo5ZypE1vrk2VLyPd/w)--