From owner-freebsd-current@FreeBSD.ORG Tue Jan 27 01:37:09 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B43F316A4CE for ; Tue, 27 Jan 2004 01:37:09 -0800 (PST) Received: from hotmail.com (law9-f94.law9.hotmail.com [64.4.9.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5719D43D72 for ; Tue, 27 Jan 2004 01:35:32 -0800 (PST) (envelope-from mrpolitics@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 27 Jan 2004 01:35:32 -0800 Received: from 65.120.111.9 by lw9fd.law9.hotmail.msn.com with HTTP; Tue, 27 Jan 2004 09:35:31 GMT X-Originating-IP: [65.120.111.9] X-Originating-Email: [mrpolitics@hotmail.com] X-Sender: mrpolitics@hotmail.com From: "Mike Schreckengost" To: peter@alastria.net Date: Tue, 27 Jan 2004 04:35:31 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 27 Jan 2004 09:35:32.0239 (UTC) FILETIME=[E88101F0:01C3E4B8] cc: freebsd-current@freebsd.org Subject: RE: FreeBSD 5.2C: LOR - 1st 0xca738038 filedesc structure (filedescstructure) @ X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 09:37:09 -0000 Hi Peter, I also see similar LOR messages (w/ backtraces) from time to time on my FreeBSD 5.2-CURRENT system. I also use an SMP machine (2 AMD Athlon-MP 2100+ processors), I don't know if this is related to the problem or not. Anyways, if you discover any helpful information, I would be delighted if you'd share it. :) Thanks in advance, Mike >From: Peter Wood >To: freebsd-current@freebsd.org >Subject: FreeBSD 5.2C: LOR - 1st 0xca738038 filedesc structure >(filedescstructure) @ /usr/src/sys/kern/sys_generic.c:901 >Date: Mon, 26 Jan 2004 17:29:48 +0000 > >Good Evening, > >Checked nightly logs to discover that there had been two lock order >reversals >last night on my SMP 5.2C machine. > >They are listed as: > >lock order reversal > 1st 0xc7975dec vm object (vm object) @ /usr/src/sys/vm/swap_pager.c:1314 > 2nd 0xc0788d80 swap_pager swhash (swap_pager swhash) @ >/usr/src/sys/vm/swap_pager.c:1823 > 3rd 0xc1042738 vm object (vm object) @ /usr/src/sys/vm/uma_core.c:873 >Stack backtrace: > >lock order reversal > 1st 0xca738038 filedesc structure (filedesc structure) @ >/usr/src/sys/kern/sys_generic.c:901 > 2nd 0xc0752d80 Giant (Giant) @ /usr/src/sys/fs/specfs/spec_vnops.c:377 >Stack backtrace: > >The backtrace for the second LOR was thankfully still on screen, I've taken >a >screen shot and it can be located at: > >http://parallax.alastria.net/~peter/xenon-lor1.jpg > >I'm going to cvsup to current shortly, I'm interested in trying the new >schedular. If anyone from core needs access to the machine to poke, let me >know. > >Kind regards, > >Peter. > >Machine dmesg is as follows: > >Copyright (c) 1992-2004 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.2-CURRENT #3: Sat Jan 17 16:15:10 GMT 2004 > pa@xenon.talbot.lan:/usr/src/sys/i386/compile/XENON >Preloaded elf kernel "/boot/kernel/kernel" at 0xc087a000. >Preloaded elf module "/boot/kernel/acpi.ko" at 0xc087a294. >Timecounter "i8254" frequency 1193182 Hz quality 0 >CPU: AMD Athlon(tm) MP 2000+ (1666.74-MHz 686-class CPU) > Origin = "AuthenticAMD" Id = 0x662 Stepping = 2 > >Features=0x383fbffOV,PAT,PSE36,MMX,FXSR,SSE> > AMD Features=0xc0480000 >real memory = 2146959360 (2047 MB) >avail memory = 2095476736 (1998 MB) >ACPI APIC Table: >FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0 (BSP): APIC ID: 1 > cpu1 (AP): APIC ID: 0 >ioapic0 irqs 0-23 on motherboard >Pentium Pro MTRR support enabled >npx0: [FAST] >npx0: on motherboard >npx0: INT 16 interface >acpi0: on motherboard >pcibios: BIOS version 2.10 >acpi0: Power Button (fixed) >acpi0: Sleep Button (fixed) >Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 >acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0 >acpi_cpu0: port 0x530-0x537 on acpi0 >acpi_cpu1: port 0x530-0x537 on acpi0 >acpi_button0: on acpi0 >pcib0: port 0x8080-0x80ff,0x8000-0x807f,0xcf8-0xcff >iomem > 0xd8000-0xdbfff on acpi0 >pci0: on pcib0 >agp0: port 0x1010-0x1013 mem >0xf1300000-0xf1300fff, >0xf4000000-0xf7ffffff at device 0.0 on pci0 >pcib1: at device 1.0 on pci0 >pci1: on pcib1 >pci1: at device 5.0 (no driver attached) >isab0: at device 7.0 on pci0 >isa0: on isab0 >atapci0: port 0xf000-0xf00f at device 7.1 on >pci0 >ata0: at 0x1f0 irq 14 on atapci0 >ata0: [MPSAFE] >ata1: at 0x170 irq 15 on atapci0 >ata1: [MPSAFE] >pci0: at device 7.3 (no driver attached) >pcib2: at device 9.0 on pci0 >pci2: on pcib2 >asr0: mem 0xf8000000-0xfbffffff irq 21 at >device >9.1 on pci0 >asr0: major=154 >asr0: ADAPTEC 2400A FW Rev. 370L, 4 channel, 256 CCBs, Protocol I2O >pcib3: at device 16.0 on pci0 >pci3: on pcib3 >pci3: at device 0.0 (no driver attached) >atapci1: port >0x2480-0x248f,0x2490-0x2493, >0x2498-0x249f,0x2494-0x2497,0x24a0-0x24a7 mem 0xf1000000-0xf1003fff irq 16 >at >device 4.0 on pci3 >atapci1: [MPSAFE] >ata2: at 0x24a0 on atapci1 >ata2: [MPSAFE] >ata3: at 0x2498 on atapci1 >ata3: [MPSAFE] >ahc0: port 0x2000-0x20ff mem >0xf100 >5000-0xf1005fff irq 17 at device 5.0 on pci3 >ahc0: Host Adapter Bios disabled. Using default SCSI device parameters >aic7850: Single Channel A, SCSI Id=7, 3/253 SCBs >pcm0: port 0x2400-0x243f irq 18 at device 6.0 on pci3 >fxp0: port 0x2440-0x247f mem >0xf1020000-0xf103fff >f,0xf1006000-0xf1006fff irq 19 at device 7.0 on pci3 >fxp0: Ethernet address 00:02:b3:b4:4c:bb >miibus0: on fxp0 >inphy0: on miibus0 >inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >atkbdc0: port 0x64,0x60 irq 1 on acpi0 >atkbd0: flags 0x1 irq 1 on atkbdc0 >kbd0 at atkbd0 >sio0 port 0x3f8-0x3ff irq 4 on acpi0 >sio0: type 16550A >sio1 port 0x2f8-0x2ff irq 3 on acpi0 >sio1: type 16550A >ppc0 port 0x778-0x77f,0x378-0x37f irq 7 drq 3 on acpi0 >ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode >ppc0: FIFO with 16/16/9 bytes threshold >ppbus0: on ppc0 >lpt0: on ppbus0 >lpt0: Interrupt-driven port >fdc0: port >0x3f7,0x3f0-0 >x3f5 irq 6 drq 2 on acpi0 >fdc0: FIFO enabled, 8 bytes threshold >fd0: <1440-KB 3.5" drive> on fdc0 drive 0 >orm0: