From owner-freebsd-questions Sat Nov 28 04:30:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA09315 for freebsd-questions-outgoing; Sat, 28 Nov 1998 04:30:24 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from caladan.tdx.co.uk (caladan.tdx.co.uk [195.188.177.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA09309 for ; Sat, 28 Nov 1998 04:30:22 -0800 (PST) (envelope-from kpielorz@tdx.co.uk) Received: from tdx.co.uk (lorca-tx.tdx.co.uk [195.188.177.242]) by caladan.tdx.co.uk (8.9.1/8.9.1) with ESMTP id MAA13961 for ; Sat, 28 Nov 1998 12:30:13 GMT Message-ID: <365FECD4.2E3D5FEF@tdx.co.uk> Date: Sat, 28 Nov 1998 12:30:12 +0000 From: Karl Pielorz Organization: TDX - The Digital eXchange X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 CC: questions@FreeBSD.ORG Subject: Re: Memory File Systems Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Chuck wrote: > > I've just set up a server with 192 megs of ram... I need to know the > best way to set up my /tmp directory so that it is in memory and not on > my hard drive... As you can see I have TONS of memory... I also have > some chat scripts that reside in /usr/local/www/cgi-bin/chat2 is there > any easy way to move those to memory and let them run out of memory > instead of off of the hard drive?... This would mean my cgi directory > was in memory instead of my hard drive?... > > If you have any thoughts on this I would love to hear them... You can setup an MFS (memory file system) which I beleive will do what you want... You might want to think twice about doing this, as I beleive the MFS RAM can be 'swapped' out in time of need, so you data may end up sitting on the disk anyway... Why not let FreeBSD look after the memory - if you run the script a couple of times (and the system has a lot of free memory) it will be cached in RAM anyway... -Kp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message