Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Dec 2005 20:35:19 -0800
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        James Long <list@museum.rain.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Reboots under 6.0 while exercising md device
Message-ID:  <20051222043519.GA4610@odin.ac.hmc.edu>
In-Reply-To: <20051222035049.GA25222@ns.museum.rain.com>
References:  <20051222035049.GA25222@ns.museum.rain.com>

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

--45Z9DzgjV8m4Oswq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Dec 21, 2005 at 07:50:49PM -0800, James Long wrote:
> For some reason, this script:
>=20
> #!/bin/sh
>=20
> DEV=3D$(md_config -a -t malloc -s 500m)
> newfs -i 512 -U /dev/$DEV
>=20
> mount /dev/$DEV /mnt
> cp -Rp /usr/src /mnt/
>=20
>=20
> will kill my machine.  I get zillions (well, hundreds at
> least, without a serial console I can't count them)
> of:
>=20
>=20
> Dec 21 19:16:27 test kernel: g_vfs_done():md0[WRITE(offset=3D352649216, l=
ength=3D16384)]error =3D 28
> Dec 21 19:16:27 test kernel: g_vfs_done():md0[WRITE(offset=3D352665600, l=
ength=3D12288)]error =3D 28
>=20
> with varying offsets and lengths, but seemingly always error 28
>=20
> The system does not panic orderly, but rather spontaneously reboots after
> spewing a lot of the above error messages (5-20 secs worth).
>=20
> This is on a Compaq Proliant ML370 with 1 GB RAM, dmesg below.
>=20
>=20
> What do I need to fix to be able to use a RAM-backed filesystem?

=46rom mdconfig(8):

     -t type
             Select the type of the memory disk.

             malloc   Storage for this type of memory disk is allocated with
                      malloc(9).  This limits the size to the malloc bucket
                      limit in the kernel.  If the -o reserve option is not
                      set, creating and filling a large malloc-backed memory
                      disk is a very easy way to panic a system.

As a rule, swap or vnode backed md devices are a better idea than malloc
ones.

-- Brooks

--=20
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4

--45Z9DzgjV8m4Oswq
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFDqiz5XY6L6fI4GtQRAv/QAJ9FQW5fw9c8kqCJWPwx3RgnVWhILwCfWGoY
Ny0NAVwfGNWTzJSdpfW1qKw=
=PT7e
-----END PGP SIGNATURE-----

--45Z9DzgjV8m4Oswq--



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