Re: How to convert /tmp to memfs after install
From: Steve M. Fabac, Jr. (smfabac_at_att.net)
Date: 10/19/05
- Previous message: Steve M. Fabac, Jr.: "Re: Open Server 6.0 is fragile, not ready for prime time?"
- In reply to: Bob Bailin: "Re: How to convert /tmp to memfs after install"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 19 Oct 2005 06:11:24 GMT
Bob Bailin wrote:
>
> <third@whasup.com> wrote in message news:dj2ob6$evg$1@reader2.panix.com...
>
> [...]
>
> > Try this one:
> >
> > mount -F memfs -o swapmax=SIZE_IN_BYTES /dev/mem MOUNT_POINT
>
> "/dev/mem": a crucial bit of info left out of the man page.
>
> After first mistyping the 'swapmax' option as 'swapmem', I see that
> /etc/mount is a script that calls the appropriate mount binary, in this case
> for memfs it's 'mount.svr5':
>
> # mount -F memfs -o swapmem=64000 /dev/mem /tmp
> UX:memfs mount.svr5: ERROR: illegal option: swapmem=64000
> UX:memfs mount.svr5: TO FIX: Usage:
> mount.svr5 [-F memfs] [generic_options] [-r] [-o {swapmax=xx | global_swapmax=xx
> }, rootmode=xx] special mount_point
>
> Does 'special' have to be /dev/mem, or is this parameter ignored?
> According to this test:
>
> # mount -F memfs -o swapmax=64000 /dev/tty /tmp
> # df -v
> Mount Dir Filesystem blocks used free %used
> / /dev/root 5426356 3993352 1433004 74%
> /stand /dev/boot 81918 12806 69112 16%
> /proc /proc 0 0 0 -
> /dev/fd /dev/fd 0 0 0 -
> /dev/_tcp /dev/_tcp 0 0 0 -
> /system/pr /processorfs 0 0 0 -
> /tmp /dev/tty 128 0 128 0%
>
> it seems to be ignored. Therefore, the /etc/mount script should be
> modified to supply a dummy '/dev/mem' argument when -F is memfs,
> if only to avoid bogus filesystem entries in df -v listings.
>
> Bob
With the above items as examples, I added the following to /etc/default/filesys:
bdev=/dev/mem mountdir=/tmp mount=yes fstyp=memfs \
rcmount=yes fsck=no rcfsck=no mntopts=global_swapmax=120000000
bdev=/dev/mem mountdir=/var/tmp mount=yes fstyp=memfs \
rcmount=yes fsck=no rcfsck=no mntopts=
And after rebooting I see:
# dfspace
/ : Disk space: 1344.51 MB of 3000.99 MB available (44.80%).
/stand : Disk space: 30.99 MB of 39.99 MB available (77.49%).
/u : Disk space: 5797.17 MB of 6000.99 MB available (96.60%).
/app1 : Disk space: 7641.63 MB of 8137.82 MB available (93.90%).
/tmp : Disk space: 114.43 MB of 114.44 MB available (100.00%).
/var/tmp : Disk space: 114.43 MB of 114.44 MB available (100.00%).
Total Disk Space: 15043.19 MB of 17408.70 MB available (86.41%).
# df -i
Mount Dir Filesystem iused ifree itotal %iused
/ /dev/root 180123 177565 357688 51%
/stand /dev/boot 22 10218 10240 1%
/proc /proc 71 9830 9901 1%
/dev/fd /dev/fd 9 0 9 100%
/dev/_tcp /dev/_tcp 0 0 0 -
/u /dev/u 4 765972 765976 1%
/app1 /dev/app1 89 1009671 1009760 1%
/system/pr /processorfs 3 0 3 100%
/tmp /dev/mem 4 32764 32768 1%
/var/tmp /dev/mem 2 32766 32768 1%
So, 120M memfs for /tmp is probably excessive but, Hey, I got 1G
total RAM on a test system. The next time I have to install a
6.0 Enterprise system, I will record the settings from
/etc/default/filesys after enabling /tmp memfs in the ISL
configuration screen.
--
Steve Fabac
S.M. Fabac & Associates
816/765-1670
- Previous message: Steve M. Fabac, Jr.: "Re: Open Server 6.0 is fragile, not ready for prime time?"
- In reply to: Bob Bailin: "Re: How to convert /tmp to memfs after install"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]