From owner-freebsd-fs@FreeBSD.ORG Sat Jan 8 17:33:28 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2ECDB16A4CE for ; Sat, 8 Jan 2005 17:33:28 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 911FD43D31 for ; Sat, 8 Jan 2005 17:33:27 +0000 (GMT) (envelope-from scottl@freebsd.org) Received: from [192.168.254.11] (junior-wifi.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.12.11/8.12.10) with ESMTP id j08Haeo7031654; Sat, 8 Jan 2005 10:36:41 -0700 (MST) (envelope-from scottl@freebsd.org) Message-ID: <41E01905.3040200@freebsd.org> Date: Sat, 08 Jan 2005 10:31:49 -0700 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040929 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Barath S References: <20050107095005.4797.qmail@web30308.mail.mud.yahoo.com> In-Reply-To: <20050107095005.4797.qmail@web30308.mail.mud.yahoo.com> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, hits=0.0 required=3.8 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pooker.samsco.org cc: FreeBsd-MailGrp Subject: Re: using mfs of size > 64Mb and system stability X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 17:33:28 -0000 Using the swap option really is the preferred method. The available kernel malloc pool is limited and is scaled on the amount of system RAM that you have; on my 256MB laptop, it's reporting only 85MB available for kernel malloc. So this would explain why trying to malloc 128MB for md could fail =-). With the swap option, pages are allocated from the buffer/cache and held there. They are only swapped to disk when the system is under memory pressure, otherwise they stay in RAM. Scott Barath S wrote: > Thank you Arne. > I didn't try with 'swap' option as my requirement is > to have the files in memory. I will test with 5.3 and > see it that works. > regards > --- Arne Wörner wrote: > >>--- Barath S wrote: >> >>>My intention is create a file system in memory of >> >>size >> >>>>128Mb and use that for my application. But, I >>> >>>couldn't do that as my system hangs whenever I >> >>create >> >>>a mfs of size > 64Mb. I did the following... >>> >>>a) Configured memory file system of size 128Mb >> >>using >> >>>'mdmfs' command with 'malloc' option. When I tried >> >>to >> >>>copy files to this mfs, m/c hanged after copying >> >>some >> >>>files. >>>b) Then I rebooted by m/c and configured memory >> >>file >> >>>system of size 64Mb and this time the copying >>>operation was successful >>>c) I observed that the system hanged whenever I >>>configure a mfs of size > 64Mb and used that mfs >>> >>>a) Can someone provide me hints on what could be >> >>the >> >>>problem ? >>> >> >>I use R5.3. According to the man page mdconfig(8) a >>md of type >>malloc should use "-o reserve", if it is large and >>to be "filled" >>(I think the man page means "filled quickly"): >> "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." >> >>Maybe that helps? >> >>Did you try type "swap"? >> >>-Arne >> >> >> >> >>__________________________________ >>Do you Yahoo!? >>The all-new My Yahoo! - Get yours free! >>http://my.yahoo.com >> >> >> > > > __________________________________________________ > Do You Yahoo!? > Download the latest ringtones, games, and more! > http://sg.mobile.yahoo.com > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"