From owner-freebsd-stable@FreeBSD.ORG Tue Nov 15 02:08:28 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 A17CB16A41F for ; Tue, 15 Nov 2005 02:08:28 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: from web36214.mail.mud.yahoo.com (web36214.mail.mud.yahoo.com [209.191.68.240]) by mx1.FreeBSD.org (Postfix) with SMTP id 3B2F743D45 for ; Tue, 15 Nov 2005 02:08:28 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: (qmail 83658 invoked by uid 60001); 15 Nov 2005 02:08:27 -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=CGv6ZEfUI6iQhB/rkUxjnkU7yvIJ2XS+M4c9mvvbd3nEVf49z/p1n/vewhk2jh/4hlsKDlBTaJnGAKIwz3oY8fk8kByedUQqkgufv4521nkasMGe5Heret0M4PkiqsvXF5j2AtdsQuwZw+ZKD9lsVyHeHw+dB+8tcGxWCgqo/Sg= ; Message-ID: <20051115020827.83656.qmail@web36214.mail.mud.yahoo.com> Received: from [147.46.44.181] by web36214.mail.mud.yahoo.com via HTTP; Mon, 14 Nov 2005 18:08:27 PST Date: Mon, 14 Nov 2005 18:08:27 -0800 (PST) From: Rob To: freebsd-stable@freebsd.org In-Reply-To: <20051115015801.GA84919@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 02:08:28 -0000 --- Kris Kennaway wrote: > On Mon, Nov 14, 2005 at 05:52:42PM -0800, Rob wrote: > > > > Problem kind of solved: > > > > As this PC has only 32 MB Ram, I add a swapfile. > > However, when I compile the new kernel without the > > swapfile, all goes well. > > > > Since the freeze is very reproducible with the > > swapfile (always at the 'kernel linking' stage), > > and immediately disappears when I do not use the > > swapfile, I think there's something wrong with > > using swapfile in 6.0. Is it? > > > > I do this: > > > > dd if=/dev/zero of=/swapfile bs=1024k count=128 > > chmod 0600 /swapfile > > mdconfig -a -t vnode -f /swapfile -u 0 > > swapon /dev/md0 > > > > Is this OK? > > Looks fine, and I use this myself (on a much larger > scale). Are you > sure it's freezing and not just taking a really long > time? Whenever > your system is swapping performance will be > terrible, and that goes at > least double for swapping onto a file and not a > device. > > What happens if you leave it for an hour or two (or > overnight)? 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 :). Rob. __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com