Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* mfs for /tmp?
@ 1997-02-12  5:00 Mark Sirota
  1997-02-15  5:00 ` Andrew Gallatin
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Sirota @ 1997-02-12  5:00 UTC (permalink / raw)



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?

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.
-- 
Mark Sirota, Network Systems Engineer
University of Pennsylvania, Information Systems and Computing
msirota@isc.upenn.edu, 215/573-7214



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: mfs for /tmp?
  1997-02-12  5:00 mfs for /tmp? Mark Sirota
@ 1997-02-15  5:00 ` Andrew Gallatin
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Gallatin @ 1997-02-15  5:00 UTC (permalink / raw)



In article <33020B1D.6F9A@isc.upenn.edu>,
Mark Sirota  <msirota@isc.upenn.edu> 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-02-15  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-02-12  5:00 mfs for /tmp? Mark Sirota
1997-02-15  5:00 ` Andrew Gallatin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox