From owner-freebsd-stable@FreeBSD.ORG Thu Mar 22 23:17:42 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 D7B2C16A401 for ; Thu, 22 Mar 2007 23:17:42 +0000 (UTC) (envelope-from michael.schuh@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247]) by mx1.freebsd.org (Postfix) with ESMTP id 87B2713C4DE for ; Thu, 22 Mar 2007 23:17:42 +0000 (UTC) (envelope-from michael.schuh@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so989318ana for ; Thu, 22 Mar 2007 16:17:41 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=WPyGeIzFHCKo8bwHMv9l8w3oBCJAk5vF6xZ3qRQ3SZtVL5fGPCT1XNO3RW4fpNgfXunFjgg1vHtSD0k6Aa4CgtBVarrQEoBJBZPxy85Ppd2iGKpGOFHhGPb3HxekWAeKzSsDsTZtZayyAYkwwbs5tela3GLx+2fuA6nUValQaPo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=mjunAg7u/AwcHXNHamZcIY/n6aYLTparNxinLexv1ioit9Rstf1tqZXlCRph6IDa1wlgwpJP8ifx1i4Oi+DI0jPA37niUIQc/qcwe1VzNNfZglVecffxLG9M1GmHKwWbzzoZ5tjYlkQH4/gV3btmKARw3ndTq9Cro/JPhiyFBMI= Received: by 10.100.128.8 with SMTP id a8mr2113246and.1174605461424; Thu, 22 Mar 2007 16:17:41 -0700 (PDT) Received: by 10.100.174.20 with HTTP; Thu, 22 Mar 2007 16:17:41 -0700 (PDT) Message-ID: <1dbad3150703221617g488c3e96t20e552fc41c265a5@mail.gmail.com> Date: Fri, 23 Mar 2007 00:17:41 +0100 From: "Michael Schuh" To: "Kevin Oberman" In-Reply-To: <20070322230314.257D445047@ptavv.es.net> MIME-Version: 1.0 References: <1dbad3150703221504u71e3db44sbefeed758ed253db@mail.gmail.com> <20070322230314.257D445047@ptavv.es.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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:17:42 -0000 Hi, ok i don't know this joke, kbut i know the word's you have two options option a and option b. i can't understand how malloc can eat all available memory, i have 2Gigs of it ;-) so it seems to me i know what i doing, if i have 1,6 Gigs free Memory, and i say ok get me 750Megs from my 1,6 Gigs of free Memory, what was faulty on that???? that would imply for me i can't use my 2 Gigs of ram... and it also implies that you can put as many ram as you can find, and you can never use that ram, while a programm says:" hey guy you are not knowing what you doing...... YOU would use 750Megs of you 24Gigs Ram, no, you are dumb, you don't use this...." i would use my 2 Gigs of ram, in that way i like :-D i would a very fast temporary filesystem in my ram. not more, not less..... and the other question is i have a OS that say's i am a release, and the documentation say you can do this, who say don't do this? i have read the thread abaut malloc, but the errors described are not the same....i have enough ram..... (so show it to me :-D errare humanum est, is it?) i hope it gave another way to use such ram-disk without using swap or other harddisk based backend....otoh my ram is not fully useful for me and i must, after twelve years of using freebsd, looking back to linux, and that i never would, only for using ramdisks.... thanks regards michael 2007/3/23, Kevin Oberman : > > > 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=3D686899200 > > , length=3D131072)]error =3D 28 > > Mar 22 22:08:14 flying-dutchman kernel: > > g_vfs_done():md0a[WRITE(offset=3D687030272 > > , length=3D131072)]error =3D 28 > > Mar 22 22:08:14 flying-dutchman kernel: > > g_vfs_done():md0a[WRITE(offset=3D687161344 > > , length=3D131072)]error =3D 28 > > Mar 22 22:08:14 flying-dutchman kernel: > > g_vfs_done():md0a[WRITE(offset=3D687292416 > > , length=3D131072)]error =3D 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 > > > > -- > > =3D=3D=3D michael-schuh.net =3D=3D=3D > > Michael Schuh > > Preu=DFenstr. 13 > > 66111 Saarbr=FCcken > > 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 > > --=20 =3D=3D=3D michael-schuh.net =3D=3D=3D Michael Schuh Preu=DFenstr. 13 66111 Saarbr=FCcken phone: 0681/8319664 mobil: 0177/9738644 @: michael.schuh@gmail.com =3D=3D=3D Ust-ID: DE251072318 =3D=3D=3D