From owner-freebsd-stable@FreeBSD.ORG Thu Dec 22 04:35:20 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 675D716A41F for ; Thu, 22 Dec 2005 04:35:20 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C1DA43D4C for ; Thu, 22 Dec 2005 04:35:19 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id jBM4ZJ6s007833; Wed, 21 Dec 2005 20:35:19 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id jBM4ZJxt007832; Wed, 21 Dec 2005 20:35:19 -0800 Date: Wed, 21 Dec 2005 20:35:19 -0800 From: Brooks Davis To: James Long Message-ID: <20051222043519.GA4610@odin.ac.hmc.edu> References: <20051222035049.GA25222@ns.museum.rain.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="45Z9DzgjV8m4Oswq" Content-Disposition: inline In-Reply-To: <20051222035049.GA25222@ns.museum.rain.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-stable@freebsd.org Subject: Re: Reboots under 6.0 while exercising md device 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: Thu, 22 Dec 2005 04:35:20 -0000 --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--