Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Nov 2005 20:58:01 -0500
From:      Kris Kennaway <kris@obsecurity.org>
To:        Rob <spamrefuse@yahoo.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Swapfile problem in 6? (was: 6.0: during kernel compilation, 'kernel linking' freezes PC)
Message-ID:  <20051115015801.GA84919@xor.obsecurity.org>
In-Reply-To: <20051115015242.88624.qmail@web36205.mail.mud.yahoo.com>
References:  <20051115015242.88624.qmail@web36205.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <spamrefuse@yahoo.com> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051115015801.GA84919>