From owner-freebsd-stable@FreeBSD.ORG Thu Mar 22 23:15:23 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D9AE816A400 for ; Thu, 22 Mar 2007 23:15:23 +0000 (UTC) (envelope-from SRS1=a322f81588bc3addd525ab40b40f3f570eb3f7d2=es.net==a322f81588bc3addd525ab40b40f3f570eb3f7d2=282=es.net=oberman@es.net) Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by mx1.freebsd.org (Postfix) with ESMTP id B795313C43E for ; Thu, 22 Mar 2007 23:15:23 +0000 (UTC) (envelope-from SRS1=a322f81588bc3addd525ab40b40f3f570eb3f7d2=es.net==a322f81588bc3addd525ab40b40f3f570eb3f7d2=282=es.net=oberman@es.net) Received: from postal4.es.net (postal4.es.net [198.124.252.66]) by postal1.es.net (Postal Node 1) with ESMTP (SSL) id BAZ73016 for ; Thu, 22 Mar 2007 16:03:16 -0700 Received: from postal2.es.net (postal2.es.net [198.128.3.206]) by postal4.es.net (Postal Node 4) with ESMTP (SSL) id BAZ39815 for ; Thu, 22 Mar 2007 16:03:15 -0700 Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP (SSL) id BAZ34514; Thu, 22 Mar 2007 16:03:14 -0700 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 257D445047; Thu, 22 Mar 2007 16:03:14 -0700 (PDT) To: "Michael Schuh" In-Reply-To: Your message of "Thu, 22 Mar 2007 23:04:16 BST." <1dbad3150703221504u71e3db44sbefeed758ed253db@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1174604594_75625P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Thu, 22 Mar 2007 16:03:14 -0700 From: "Kevin Oberman" Message-Id: <20070322230314.257D445047@ptavv.es.net> Cc: freebsd-stable@freebsd.org Subject: Re: another error with md malloc based fs 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 Mar 2007 23:15:23 -0000 --==_Exmh_1174604594_75625P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > Date: Thu, 22 Mar 2007 23:04:16 +0100 > From: "Michael Schuh" > Sender: owner-freebsd-stable@freebsd.org > > Hi, > first i have 2GB of RAM, there are be 1,6G free > so it should enough toi make the following: > > # mdconfig -a -t mallo -s 750m -u 0 > # bsdlabel -w /dev/md0 > # bsdlabel -e /dev/md0 (create "a" slice to use all free respective first 16 > blocks) > # newfs -O2 -U /dev/md0a > mount /dev/md0a /mnt > # cd to_a_place/with/650MB_of_data/ > # tar -cf - |( cd /mnt/; tar -xf -) > after ~256MB transferred i get following errors, and the system crashes > horridble.... first it doesnt react of anything, then it does silently > reboot > without a shutdown.......leaves all unclean.... > > extract from all.log > Mar 22 22:08:14 flying-dutchman kernel: > g_vfs_done():md0a[WRITE(offset=686899200 > , length=131072)]error = 28 > Mar 22 22:08:14 flying-dutchman kernel: > g_vfs_done():md0a[WRITE(offset=687030272 > , length=131072)]error = 28 > Mar 22 22:08:14 flying-dutchman kernel: > g_vfs_done():md0a[WRITE(offset=687161344 > , length=131072)]error = 28 > Mar 22 22:08:14 flying-dutchman kernel: > g_vfs_done():md0a[WRITE(offset=687292416 > , length=131072)]error = 28 > > > Any impressions, suggestions or limitations for md with malloc? > This errors occures also if i request to reserve the space by creation.... > > thanks > > regards > > michael > > -- > === michael-schuh.net === > Michael Schuh > Preußenstr. 13 > 66111 Saarbrücken > phone: 0681/8319664 > mobil: 0177/9738644 > @: michael.schuh@gmail.com Old, old joke: Patient: Doctor! It hurts when I do this! Doctor: Don't do that. This is a well known issue with malloc backed md disks. Use swap backed ones. They will be the default in V7. They have all of the advantages of malloc backed mds without the possibility of eating all available memory and crashing the system. malloc backed md disks are very dangerous and should only be used in special circumstances and with great care. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 --==_Exmh_1174604594_75625P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: Exmh version 2.5 06/03/2002 iD8DBQFGAwsykn3rs5h7N1ERAoOTAJ9rKG1CdIbREtGychLaxjwDtVcypgCfcgKI tvu9EqAQwhCQVwNH9vFldvw= =/P96 -----END PGP SIGNATURE----- --==_Exmh_1174604594_75625P--