Date: Sat, 28 Nov 1998 12:30:12 +0000 From: Karl Pielorz <kpielorz@tdx.co.uk> Cc: questions@FreeBSD.ORG Subject: Re: Memory File Systems Message-ID: <365FECD4.2E3D5FEF@tdx.co.uk>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?365FECD4.2E3D5FEF>