From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6267d57c07d8f3b4 X-Google-Attributes: gidfee84,public From: gallatin@cs.duke.edu (Andrew Gallatin) Subject: Re: mfs for /tmp? Date: 1997/02/15 Message-ID: <5e570q$109$1@hal.cs.duke.edu>#1/1 X-Deja-AN: 219036336 References: <33020B1D.6F9A@isc.upenn.edu> Organization: Duke University -- Department Of Computer Science Newsgroups: comp.unix.osf.osf1 In article <33020B1D.6F9A@isc.upenn.edu>, Mark Sirota wrote: >What's the conventional wisdom on using the Memory File System for /tmp >under DU3.2g or DU4.0b? What are the limitations? What are the issues? > >For instance -- does everything work, like file locking? If you >allocate a 100-meg MFS partition, does this take up 100M of swap space >no matter how full the partition is? How much faster is it than a >UFS or ADVFS disk partition? Mfs is basically ufs running in a user processes' ram; it should have all the features of a normal ufs filesystem. A 100MB mfs partition will take 100MB of swap if you are using eager swap. If you're using lazy swap, then it will take as much swap space as is required to hold that data that's currently in use. Its fast. Here's some bonnie numbers taken from a 500/266 running Digital UNIX 4.0. It has 128MB of ram & the ubc is tuned so that it cannot use more than 30% of that. -------Sequential Output-------- ---Sequential Input-- --Random-- -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks--- Machine MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU /sec %CPU ufs 64 4296 96.9 6222 13.7 2309 4.9 3789 42.2 4869 6.4 199.4 3.4 mfs 64 4063 92.2 31209 61.8 19346 36.4 8012 87.5 39095 40.3 3776.0 52.1 >I am aware, of course, that any data on an MFS partition gets lost when >the system crashes. For /tmp, I don't care. > >Thanks for any insight. Any pointers to useful white papers or >whatever would also be welcome. There's a lot of information about mfs in the latest BSD book: McKusick, Marshall Kirk, Keith Bostic, Michael J Karels, and John Quarterman. The Design and Implementation of the 4.4BSD Operating System. Reading, Mass. : Addison-Wesley, 1996. ISBN 0-201-54979-4 Much of the chapter is taken from a 1991 CSRG paper "A Pageable Memory Based Filesystem" by Marshall Kirk McKusick, Michael J. Karels, & Keith Bostic which appears in the 4.4BSD /usr/share/doc directory. Drew -- ------------------------------------------------------------------------------ Duke University Internet: gallatin@cs.duke.edu Department of Computer Science Phone: (919) 660-6590