From owner-freebsd-stable@FreeBSD.ORG Tue Nov 15 01:58:02 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 84DDE16A41F for ; Tue, 15 Nov 2005 01:58:02 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B70243D45 for ; Tue, 15 Nov 2005 01:58:02 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 179491A3C26; Mon, 14 Nov 2005 17:58:02 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 63602512B0; Mon, 14 Nov 2005 20:58:01 -0500 (EST) Date: Mon, 14 Nov 2005 20:58:01 -0500 From: Kris Kennaway To: Rob Message-ID: <20051115015801.GA84919@xor.obsecurity.org> References: <20051115015242.88624.qmail@web36205.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nFreZHaLTZJo0R7j" Content-Disposition: inline In-Reply-To: <20051115015242.88624.qmail@web36205.mail.mud.yahoo.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-stable@freebsd.org 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 01:58:02 -0000 --nFreZHaLTZJo0R7j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 14, 2005 at 05:52:42PM -0800, Rob wrote: > --- Rob wrote: > >=20 > > Hi, > >=20 > > I have upgraded a Pentium-1 PC from 5 to 6-Stable, > > which went smoothly. > >=20 > > Now I'm running 6 with GENERIC kernel, and I want > > to compile a new kernel. When I start a new kernel > > compilation, this process *always* freezes the PC > > (no crash) when reaching the point of "linking > > kernel"; this is 100 percent reproducible!! > >=20 > > Then all communication with the PC is frozen; > > no serial port response, no ssh response etc. > > However, I can ping the PC..... > >=20 > > Only power off/on brings the PC back to live. > >=20 > > Any idea how I can further investigate. > > /var/log/messages has no special information while > > the freezing occurred. > >=20 > > The output of 'dmesg' of this PC is here: > > http://surfion.snu.ac.kr/~lahaye/dmesg >=20 > Problem kind of solved: >=20 > 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. >=20 > 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? >=20 > I do this: >=20 > dd if=3D/dev/zero of=3D/swapfile bs=3D1024k count=3D128 > chmod 0600 /swapfile > mdconfig -a -t vnode -f /swapfile -u 0 > swapon /dev/md0 >=20 > 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)? Kris --nFreZHaLTZJo0R7j Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDeUCoWry0BWjoQKURAjUCAKCJVMcTcDUCKBkXQN4QI/7pN8y8YACghLBe txx0FRbxqynv1Gn2z3UZlik= =eI2Z -----END PGP SIGNATURE----- --nFreZHaLTZJo0R7j--