From owner-freebsd-current@FreeBSD.ORG Sat May 5 03:37:08 2007 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B6D6B16A402 for ; Sat, 5 May 2007 03:37:08 +0000 (UTC) (envelope-from dg@dglawrence.com) Received: from downloadtech.com (dt2-sfo.downloadtech.net [66.220.3.227]) by mx1.freebsd.org (Postfix) with ESMTP id 878E313C45A for ; Sat, 5 May 2007 03:37:08 +0000 (UTC) (envelope-from dg@dglawrence.com) Received: from dglawrence.com (static-72-90-113-2.ptldor.fios.verizon.net [72.90.113.2]) by downloadtech.com (8.12.9p1/8.12.9) with ESMTP id l453b4tP097132; Fri, 4 May 2007 20:37:05 -0700 (PDT) (envelope-from dg@dglawrence.com) Received: from tnn.dglawrence.com (localhost [127.0.0.1]) by dglawrence.com (8.13.8/8.13.6) with ESMTP id l453ax7W037038; Fri, 4 May 2007 20:36:59 -0700 (PDT) (envelope-from dg@dglawrence.com) Received: (from dg@localhost) by tnn.dglawrence.com (8.13.8/8.13.8/Submit) id l453axPc037037; Fri, 4 May 2007 20:36:59 -0700 (PDT) (envelope-from dg@dglawrence.com) X-Authentication-Warning: tnn.dglawrence.com: dg set sender to dg@dglawrence.com using -f Date: Fri, 4 May 2007 20:36:59 -0700 From: David G Lawrence To: Eric Anholt Message-ID: <20070505033659.GB2462@tnn.dglawrence.com> References: <1178329243.54075.34.camel@vonnegut> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1178329243.54075.34.camel@vonnegut> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (downloadtech.com [66.220.3.227]); Fri, 04 May 2007 20:37:05 -0700 (PDT) Cc: current@FreeBSD.org Subject: Re: swap_pager_swap_init panic X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Sat, 05 May 2007 03:37:08 -0000 > I've got an SMP netbooting test machine, which panics on startup almost > 100% of the time with the issue that has been reported since 2006-12-02 > at least: > db> where > Tracing pid 40 tid 100040 td 0xffffff003b9e24c0 > kdb_enter() at kdb_enter+0x2f > panic() at panic+0x291 > swap_pager_swap_init() at swap_pager_swap_init+0x20c I had the same problem with one of my SMP machines. It's a curious problem since I can take the same hard drive over to a slightly different SMP machine and not see the panic. It appears to be a race of some kind in the VM system initialization, right after the second CPU is started. Try this patch out and let me know if it fixes it for you... Index: uma_core.c =================================================================== RCS file: /home/ncvs/src/sys/vm/uma_core.c,v retrieving revision 1.119.2.19 diff -c -r1.119.2.19 uma_core.c *** uma_core.c 11 Feb 2007 03:31:19 -0000 1.119.2.19 --- uma_core.c 1 Mar 2007 06:52:26 -0000 *************** *** 1615,1621 **** #endif args.name = "UMA Zones"; args.size = sizeof(struct uma_zone) + ! (sizeof(struct uma_cache) * (mp_maxid + 1)); args.ctor = zone_ctor; args.dtor = zone_dtor; args.uminit = zero_init; --- 1615,1621 ---- #endif args.name = "UMA Zones"; args.size = sizeof(struct uma_zone) + ! (sizeof(struct uma_cache) * (mp_maxid + 33)); args.ctor = zone_ctor; args.dtor = zone_dtor; args.uminit = zero_init; Note that I don't claim this is a proper fix - it is just a work-around that works for me. -DG David G. Lawrence President Download Technologies, Inc. - http://www.downloadtech.com - (866) 399 8500 The FreeBSD Project - http://www.freebsd.org Pave the road of life with opportunities.