Subject: kern/26129: System hangs when copying files with new_bufq_strategy and softdeps
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <tmarc@felix.fizyka.amu.edu.pl>
List: netbsd-bugs
Date: 06/30/2004 22:32:57
>Number: 26129
>Category: kern
>Synopsis: System hangs when copying files with new_bufq_strategy and softdeps
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jun 30 22:34:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Tomasz Marciniak
>Release: 2.0_BETA
>Organization:
N/A
>Environment:
NetBSD studnia2 2.0_BETA NetBSD 2.0_BETA (T) #4: Fri Jun 25 15:59:52 CEST 2004 root@studnia2:/usr/stable/obj/usr/src/sys/arch/i386/compile/T i386
>Description:
2.0_BETA hangs when copying files from ntfs disk to ffs with soft-dependencies enabled and NEW_BUFQ_STRATEGY option in kernel. Many times when I try to copy some files (size doesn't matter) from there:
/dev/wd1e on /mnt type ntfs (read-only, local)
to there:
/dev/wd0g on /home type ffs (soft dependencies, local)
AND X server is running (commands typed from xterm) system just freezes with no reaction to alt ctrl esc or whatever. There are logged messages:
Jun 30 22:50:38 studnia2 /netbsd: uvm_fault(0xc5d44978, 0, 0, 2) -> 0xe
Jun 30 22:50:38 studnia2 /netbsd: fatal page fault in supervisor mode
Jun 30 22:50:38 studnia2 /netbsd: trap type 6 code 2 eip c014e833 cs 8 eflags 10246 cr2 14 ilevel 0
Jun 30 22:50:38 studnia2 /netbsd: panic: trap
Jun 30 22:50:38 studnia2 /netbsd: syncing disks...
I tried to repeat this problem without X, but it didn't happen then.
Here goes dmesg:
NetBSD 2.0_BETA (T) #4: Fri Jun 25 15:59:52 CEST 2004
root@studnia2:/usr/stable/obj/usr/src/sys/arch/i386/compile/T
total memory = 191 MB
avail memory = 185 MB
BIOS32 rev. 0 found at 0xfb220
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 0xfdba0, size 160 bytes (8 entries)
pcibios_pir_init: bad IRQ table checksum
PCI BIOS has 8 Interrupt Routing table entries
PCI Exclusive IRQs: 5 9 10 11
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Duron (686-class), 649.73 MHz, id 0x631
cpu0: features c1c7f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features c1c7f9ff<PGE,MCA,CMOV,PAT,PSE36,PN,MMXX,MMX>
cpu0: features c1c7f9ff<FXSR,3DNOW2,3DNOW>
cpu0: I-cache 64 KB 64b/line 2-way, D-cache 64 KB 64b/line 2-way
cpu0: L2 cache 64 KB 64b/line 16-way
cpu0: ITLB 16 4 KB entries fully associative, 8 4 MB entries fully associative
cpu0: DTLB 24 4 KB entries fully associative, 8 4 MB entries 4-way
cpu0: 8 page colors
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: vendor 0x1106 product 0x0305 (rev. 0x02)
agp0 at pchb0: aperture at 0xd0000000, size 0x10000000
ppb0 at pci0 dev 1 function 0: vendor 0x1106 product 0x8305 (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga0 at pci1 dev 0 function 0: vendor 0x10de product 0x0028 (rev. 0x15)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 7 function 0
pcib0: vendor 0x1106 product 0x0686 (rev. 0x22)
viaide0 at pci0 dev 7 function 1
viaide0: VIA Technologies VT82C686A (Apollo KX133) ATA66 controller
viaide0: bus-master DMA support present
viaide0: primary channel configured to compatibility mode
viaide0: primary channel interrupting at irq 14
atabus0 at viaide0 channel 0
viaide0: secondary channel configured to compatibility mode
viaide0: secondary channel interrupting at irq 15
atabus1 at viaide0 channel 1
uhci0 at pci0 dev 7 function 2: vendor 0x1106 product 0x3038 (rev. 0x10)
uhci0: interrupting at irq 9
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x1106 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: vendor 0x1106 product 0x3038 (rev. 0x10)
uhci1: interrupting at irq 9
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
pchb1 at pci0 dev 7 function 4
pchb1: vendor 0x1106 product 0x3057 (rev. 0x30)
vendor 0x1106 product 0x3058 (audio multimedia, revision 0x20) at pci0 dev 7 function 5 not configured
eap0 at pci0 dev 9 function 0: vendor 0x1274 product 0x5880 CT5880-C (rev. 0x02)
eap0: interrupting at irq 11
eap0: ac97: SigmaTel STAC9721/23 codec; 18 bit DAC, 18 bit ADC, SigmaTel 3D
eap0: ac97: ext id 200<AMAP>
audio0 at eap0: full duplex, mmap, independent
vendor 0x11c1 product 0x0440 (miscellaneous communications, revision 0x01) at pci0 dev 12 function 0 not configured
rtk0 at pci0 dev 13 function 0: Realtek 8139 10/100BaseTX
rtk0: interrupting at irq 11
rtk0: Ethernet address 00:0a:cd:08:9b:51
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
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
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: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
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
isapnp0: no ISA Plug 'n Play devices found
apm0 at mainbus0: Power Management spec V1.2
apm0: A/C state: on
apm0: battery charge state: no battery
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
wd0 at atabus0 drive 0: <ST340014A>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 38166 MB, 77545 cyl, 16 head, 63 sec, 512 bytes/sect x 78165360 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
wd1 at atabus1 drive 1: <ST320413A>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 19092 MB, 38792 cyl, 16 head, 63 sec, 512 bytes/sect x 39102336 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1(viaide0:1:1): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
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)
And here is kernel config:
include "arch/i386/conf/std.i386"
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
maxusers 32 # estimated number of users
options I686_CPU
options USER_LDT # user-settable LDT; used by WINE
options MTRR # memory-type range register syscall support
options INSECURE # disable kernel security levels - X needs this
options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT
options NTP # NTP phase/frequency locked loop
options KTRACE # system call tracing via ktrace(1)
options SYSTRACE # system call vetting via systrace(1)
options SYSVMSG # System V-like message queues
options SYSVSEM # System V-like semaphores
options SYSVSHM # System V-like memory sharing
options P1003_1B_SEMAPHORE # p1003.1b semaphore support
options NEW_BUFQ_STRATEGY
options COMPAT_16 # NetBSD 1.6
options COMPAT_OSSAUDIO # OSS (Voxware) audio driver compatibility
options COMPAT_LINUX # binary compatibility with Linux
options COMPAT_FREEBSD # binary compatibility with FreeBSD
file-system FFS # UFS
file-system NTFS # Windows/NT file system (experimental)
file-system CD9660 # ISO 9660 + Rock Ridge file system
file-system MSDOSFS # MS-DOS file system
file-system FDESC # /dev/fd
file-system KERNFS # /kern
file-system PROCFS # /proc
options SOFTDEP # FFS soft updates support.
options INET # IP + ICMP + TCP + UDP
options WSEMUL_VT100 # VT100 / VT220 emulation
options WS_KERNEL_FG=WSCOL_GREEN
options WSDISPLAY_COMPAT_PCVT # emulate some ioctls
options WSDISPLAY_COMPAT_SYSCONS # emulate some ioctls
options WSDISPLAY_COMPAT_USL # VT handling
options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes
options PCDISPLAY_SOFTCURSOR
config netbsd root on ? type ?
mainbus0 at root
cpu* at mainbus?
apm0 at mainbus0 # Advanced power management
options APM_POWER_PRINT # Print stats on the console
options APM_DISABLE_INTERRUPTS=0 # Don't disable interrupts
pci* at mainbus? bus ?
pci* at ppb? bus ?
options PCIBIOS # PCI BIOS support
options PCIBIOSVERBOSE # PCI BIOS verbose info
pchb* at pci? dev ? function ? # PCI-Host bridges
pcib* at pci? dev ? function ? # PCI-ISA bridges
ppb* at pci? dev ? function ? # PCI-PCI bridges
agp* at pchb?
isa0 at pcib?
isapnp0 at isa?
npx0 at isa? port 0xf0 irq 13 # x86 math coprocessor
options XSERVER_DDB # PF12 gets you into DDB when X is running
options XSERVER # X server support
pckbc0 at isa? # pc keyboard controller
pckbd* at pckbc? # PC keyboard
pms* at pckbc? # PS/2 mouse for wsmouse
vga* at pci? dev ? function ?
wsdisplay* at vga? console ?
wskbd* at pckbd? console ?
wsmouse* at pms? mux 0
com0 at isa? port 0x3f8 irq 4 # Standard PC serial ports
com1 at isa? port 0x2f8 irq 3
lpt0 at isa? port 0x378 irq 7 # standard PC parallel ports
viaide* at pci? dev ? function ? # VIA/AMD/Nvidia IDE controllers
atabus* at ata?
wd* at atabus? drive ? flags 0x0000
fdc0 at isa? port 0x3f0 irq 6 drq 2 # standard PC floppy controllers
fd* at fdc? drive ? # the drives themselves
rtk* at pci? dev ? function ? # Realtek 8129/8139
ukphy* at mii? phy ? # generic unknown PHYs
uhci* at pci? dev ? function ? # Universal Host Controller (Intel)
usb* at uhci?
uhub* at usb?
eap* at pci? dev ? function ? # Ensoniq AudioPCI
audio* at audiobus?
include "arch/i386/conf/GENERIC.local"
pseudo-device crypto # opencrypto framework
pseudo-device md 1 # memory disk device (ramdisk)
pseudo-device vnd 4 # disk-like interface to files
pseudo-device bpfilter 8 # Berkeley packet filter
pseudo-device loop # network loopback
pseudo-device pty # pseudo-terminals
pseudo-device tb 1 # tablet line discipline
pseudo-device rnd # /dev/random and in-kernel generator
pseudo-device clockctl # user control of clock subsystem
pseudo-device wsmux # mouse & keyboard multiplexor
pseudo-device wsfont
pseudo-device ksyms # /dev/ksyms
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: