From owner-freebsd-current@FreeBSD.ORG Thu Jun 16 14:56:20 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.org 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 B29EA16A41C; Thu, 16 Jun 2005 14:56:20 +0000 (GMT) (envelope-from sepotvin@videotron.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8921643D48; Thu, 16 Jun 2005 14:56:20 +0000 (GMT) (envelope-from sepotvin@videotron.ca) Received: from [10.0.0.147] ([67.70.237.74]) by VL-MO-MR001.ip.videotron.ca (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTPA id <0II600K9UMS242@VL-MO-MR001.ip.videotron.ca>; Thu, 16 Jun 2005 10:55:15 -0400 (EDT) Date: Thu, 16 Jun 2005 10:55:14 -0400 From: "Stephane E. Potvin" In-reply-to: <20050616151502.X27625@fledge.watson.org> To: Robert Watson Message-id: <42B192D2.7000505@videotron.ca> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050330) X-Enigmail-Version: 0.91.0.0 References: <42B18536.3080200@videotron.ca> <20050616151502.X27625@fledge.watson.org> Cc: freebsd-current@FreeBSD.org Subject: Re: Reboot while booting with new per-CPU allocator 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: Thu, 16 Jun 2005 14:56:20 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Robert Watson wrote: > > On Thu, 16 Jun 2005, Stephane E. Potvin wrote: > >> Kernel malloc layers malloc_type allocation over one of two underlying >> allocators: a set of power-of-two UMA zones for small allocations, >> and the >> ... >> modifications to vmstat in order to restore "vmstat -m" on core dumps >> will >> follow shortly. >> >> I get spontaneous reboots while the kernel is loading after the kernel >> finds the APICs while booting verbose: > > > It sounds like you've one a binary search to track this down and it's > definitely that commit that did it? I.e., if you specifically back out > the associated changes to kern_malloc.c and malloc.h locally with a > curret kernel, all is well? > > Have you tried running with kern_malloc.c:1.141 (Jun 10) from Joseph > Koshy, which corrects a bug in the deregistering of malloc types? > > It looks like you're running with a serial console, but if not, could > you do so and make sure there are no last second printfs that get eaten > by the reboot clearing the video console? > I did a binary search to find the offending commit. Reverting the changes to kern_malloc.c and malloc.h locally did fix the problem. That's what I'm currently using to type this message. I also had to revert the changes to vmstat to make the world compile. Using head sources from yesterday (Jun 15) exhibit the same problem unfortunately. The computer that has this problem is a Dell XPS laptop which, being quite recent, doesn't have any serial port. The boot output I gave is a mix of interpolating the beginning from a working image (with only the kern_malloc.c and malloc.h differing) and getting the last part with a digital camera. I guessed it wouldn't cause a problem as the kern_malloc.c diff didn't seems to print anything during the boot. There might be some last second printfs going to the console before the reboot but in that case they are much too fast to be seen even to the naked eyes. Steph -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCsZLSmdOXtTCX/nsRAtG8AKDc858m6/64Iv4aKs90mZysXulc+ACfQuQo Tp0ZxB6AECs15V8Fz87lR5c= =pLjb -----END PGP SIGNATURE-----