From owner-freebsd-questions Wed Mar 21 19:16:16 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 44B6B37B720 for ; Wed, 21 Mar 2001 19:16:14 -0800 (PST) (envelope-from mwm@mired.org) Received: (qmail 14797 invoked by uid 100); 22 Mar 2001 03:16:12 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15033.28284.778431.468125@guru.mired.org> Date: Wed, 21 Mar 2001 21:16:12 -0600 To: Eric M Logan Cc: questions@freebsd.org Subject: Re: ramdisks and mfs... In-Reply-To: <125241313@toto.iv> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Eric M Logan types: > Is there a difference between /dev/md* and mounting a partition from > swap. Let me elaborate. I have a swap partition mounted and I have > /tmp mounted using the same address as that swap partition. Anything I > put in /tmp will therefore be gone upon reboot. Is this what's > considered a ramdisk in Freebsd? Or, is using /dev/md* mounted > somewhere what's known as a ramdisk in FreeBSD? In Linux, it's the > latter. Any help would be appreciated, thanks. I assume you're using mfs for /tmp. Yes, that qualifies as a ramdisk, even though it's backed by swap. If you don't need the memory back, it'll act just like a ramdisk. If you do need the memory for something else, your data will be paged out to swap, and have to be read back from disk. md isn't backed by swap, so the data is always in ram, meaning the memory isn't usable by anything else. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message