From owner-freebsd-stable@FreeBSD.ORG Tue Nov 15 06:39:01 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A1D416A420 for ; Tue, 15 Nov 2005 06:39:01 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: from web36205.mail.mud.yahoo.com (web36205.mail.mud.yahoo.com [209.191.68.231]) by mx1.FreeBSD.org (Postfix) with SMTP id 591F043D55 for ; Tue, 15 Nov 2005 06:39:00 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: (qmail 48743 invoked by uid 60001); 15 Nov 2005 06:38:59 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=xSLImv9RLKcLr1zl9BPeg59MAWfbod/t58PQ8uoB0c5VsYojkUFbimYvLFmaIaHVUCa5SfhNnxuJJI1Y+w0stoTJHoXBrfejQj4XoOg2PyJlPxvGFueIoHtoIfjZZlrTysSo8yv60F2ZdAPgZopGcsczvQEazUAWWQEKdY30h2c= ; Message-ID: <20051115063859.48741.qmail@web36205.mail.mud.yahoo.com> Received: from [147.46.44.181] by web36205.mail.mud.yahoo.com via HTTP; Mon, 14 Nov 2005 22:38:59 PST Date: Mon, 14 Nov 2005 22:38:59 -0800 (PST) From: Rob To: freebsd-stable@freebsd.org In-Reply-To: <20051115021311.GA1260@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: Swapfile problem in 6? (was: 6.0: during kernel compilation, 'kernel linking' freezes PC) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Nov 2005 06:39:01 -0000 --- Kris Kennaway wrote: > On Mon, Nov 14, 2005 at 06:08:27PM -0800, Rob wrote: > > > I left it overnight twice for performing this > > 'kernel linking' stage. In both cases the machine > > remained dead. > > Without the swapfile, this 'kernel linking' stage > > completes in just about less than a minute. > > > > So I think it's not my impatience, but there is > > another problem with my swapfile or with 6 :). > > Since you can compile a kernel without it, add DDB, > WITNESS and INVARIANTS support, then trigger the > deadlock with the swapfile, break to DDB and > examine the state of the machine. See the chapter > on kernel debugging in the developers handbook for > more instructions. Thanks, but for now, I cannot compile a new kernel, because the kernel compilation terminates with insufficient swap space error. Apparently 32 MB is not enough for a new kernel compilation. So for now I'm stuck with the GENERIC kernel. This is my partitioning: /dev/ad0s1a 253678 34446 198938 15% / /dev/ad0s1b 39848 8168 39848 20% (swap) /dev/ad0s1d 253678 152958 80426 66% /var /dev/ad0s1e 253678 6016 227368 3% /home /dev/ad0s1f 1624576 727274 767336 49% /usr First I used 128 MB swapfile on root partition; then tried again with a 128 MB swapfile on /var. However, exactly the same deadlock occurs: when the kernel compilation reaches 'linking kernel' the PC is dead (no crash). Although I can ping the PC, there's no response to any other service; also serial port console is dead. Without using the swapfile, the compilation easily passes through the 'linking kernel' stage, but somewhat later terminates as swap space is insufficient. With 5-Stable, I used the swapfile extensively for recompiling new kernels and worlds, without any problem. I only can conclude that something is wrong with the swapfile construct in 6. Is 128 MB too big for a swapfile in 6? I'll try again with a smaller swapfile... Any other ideas? dmesg output of this PC is here: http://surfion.snu.ac.kr/~lahaye/dmesg Thanks, Rob. __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com