From owner-freebsd-smp@FreeBSD.ORG Thu Jan 22 07:58:40 2004 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A22716A4CE for ; Thu, 22 Jan 2004 07:58:40 -0800 (PST) Received: from smtp.uol.com.br (smtpout2.uol.com.br [200.221.11.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30F1443D1D for ; Thu, 22 Jan 2004 07:58:38 -0800 (PST) (envelope-from smanioto@netsite.com.br) Received: from smannote (200-158-227-130.dsl.telesp.net.br [200.158.227.130]) by scorpion2.uol.com.br (Postfix) with SMTP id 2111A7E1B; Thu, 22 Jan 2004 13:58:32 -0200 (BRST) Message-ID: <003501c3e100$94faf470$cf00a8c0@smannote> From: "Carlos Eduardo Smanioto" To: , "Dong Lin" References: <200401202057.i0KKvqvD000830@doom-11.cs.bell-labs.com> Date: Thu, 22 Jan 2004 13:58:27 -0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 Subject: Re: 5.2R SMP kernel crashes when paging on swap X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jan 2004 15:58:40 -0000 I have the same problem in FreeBSD 4.9, 5.1 and 5.2!!! []'s Carlos ----- Original Message ----- From: "Dong Lin" To: Sent: Tuesday, January 20, 2004 6:57 PM Subject: 5.2R SMP kernel crashes when paging on swap > > Does anyone have any suggestions on how to debug the following > vm_pager problem in a SMP kernel? Thanks in advance. > > The kernel crashes when vm_pageout_scan kicks. I have a hard time > locating the offending line because there is no panic. The machine > just goes blank and reboots. > > If I add DELAY() at the end of vm_pageout_scan (after Giant unlock), > it does not crash but causes the following warning on the console: > > lock order reversal: > 1st vm object(vm object) @ vm/swap_pager.c:1325 > 2nd swap_pager swhash (swap_pager swhash) @ vm/swap_pager.c:1840 > 3rd vm object (vm object) @ vm/uma_core.c:873 > Stack backtrace: > backtrace() > witness_lock() > _mtx_lock_flags() > obj_alloc() > slab_zalloc() > uma_zone_slab() > uma_zalloc_internal() > uma_zalloc_arg() > swp_pager_meta_build() > swap_pager_putpages() > default_pager_putpages() > vm_pageout_flush() > vm_pageout_clean() > vm_pageout_scan() > vm_pageout() > fork_exit() > fork_trampoline() > > This dual processor machine works fine with a non-SMP kernel. The SMP > kernel works on a uniprocessor machine as well. > > my SMP kernel: > GENERIC with BOOTP and BOOTP_NFSROOT added to run diskless. > > my machine configuration: > all fs are mounted via md or NFS. The only local storage is a swap > disk. > > nfsserver:/disk4/diskless_root 69481814 61293081 2630188 96% / > devfs 1 1 0 100% /dev > /dev/md0 7406 1720 5094 25% /etc > procfs 4 4 0 100% /proc > /dev/md1 31470 242 28712 1% /var > nfsserver:/usr 2804906 1406602 1173912 55% /usr > > % swapinfo > Device 1K-blocks Used Avail Capacity > /dev/ad0s3b 528144 4600 523544 1% > > MPTable: > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: Intel Pentium III (864.46-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x686 Stepping = 6 > Features=0x383fbff OV,PAT,PSE36,MMX,FXSR,SSE> > real memory = 134041600 (127 MB) > avail memory = 120590336 (115 MB) > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0 (BSP): APIC ID: 1 > cpu1 (AP): APIC ID: 0 > ioapic0: Assuming intbase of 0 > ioapic0 irqs 0-23 on motherboard > Pentium Pro MTRR support enabled > _______________________________________________ > freebsd-smp@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-smp > To unsubscribe, send any mail to "freebsd-smp-unsubscribe@freebsd.org"