Re: Ram Disk

From: Dr. Tom Blinn, 603-881-0646 <tpb_at_zk3.dec.com>
Date: Thu, 23 Mar 95 10:06:19 -0500

> Do you known how to define (is it possible ?) a disk partition in RAM.
>
> If it's possible, is it using only standard commands (no free or shareware) ?

Look at the mfs reference page.

There is an undocumented upper limit on the size of the mfs file system you
can define in your /etc/fstab using the technique in the reference page; the
limit seems (empirically) to be about 64MB. If you want to set up an mfs to
always be created at system startup, then in your /etc/fstab put a line like
this:

/dev/rz0b /tmp mfs rw 1 2

instead of a line like this:

-s262144 /tmp mfs rw 1 2

where /dev/rz0b is a partition that is the right size. On my system, I've
got four swap partitions (partition b on rz0, rz1, rz2, rz3) and I use lazy
(deferred) swap allocation, so what I'm doing is setting an mfs on /tmp to
use about 25% of the swap space (if it needs it). This works fine for me.

This is a standard, documented, supported part of Digital UNIX.

Tom
 
 Dr. Thomas P. Blinn, UNIX Software Group, Digital Equipment Corporation
  110 Spit Brook Road, MS ZKO3-2/U20 Nashua, New Hampshire 03062-2698
   Technology Partnership Engineering Phone: (603) 881-0646
    Internet: tpb_at_zk3.dec.com Digital's Easynet: alpha::tpb

  Worry kills more people than work because more people worry than work.

     My favorite palindrome is: Satan, oscillate my metallic sonatas.
                                         -- Phil Agre, pagre_at_ucsd.edu

  Opinions expressed herein are my own, and do not necessarily represent
  those of my employer or anyone else, living or dead, real or imagined.
 
Received on Thu Mar 23 1995 - 10:45:12 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:45 NZDT