[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ltsp-discuss
Subject:    Re: [Ltsp-discuss] usablility of 486
From:       Wolfgang Schweer <schweer () cityweb ! de>
Date:       2002-03-27 6:56:14
[Download RAW message or body]


On Tue, 26 Mar 2002, Hans Ekbrand wrote:

> > It is then possible to skip the ram disk for /tmp, using shmfs instead.
> > shmfs has the advantage to be resizable, i.e. only the needed memory is
> > occupied. Compared to the standard size of the ram disk for /tmp one can
> > gain nearly one meg of ram.
>
> Interesting, in order to use shmfs instead of ram disk, I suppose have to
> modify
>
> /opt/ltsp/i386/etc/modules.devfs:alias     /dev/ram*            rd
> /opt/ltsp/i386/etc/rc.local:/sbin/mke2fs -q -m0 /dev/ram1 ${RAMDISK_SIZE}
> /opt/ltsp/i386/etc/rc.local:/bin/mount -n /dev/ram1 /tmp
>
> and substitute "/dev/ram" with "/dev/shm". But is it that simple?

hi Hans,

these are the steps that work for me:

-------------------------------------------
Put a line like this into the file /etc/fstab of your ltsp tree

shmfs	/tmp	shm	defaults	0 0
-----------------------------------------

Modify /etc/rc.local for use with a custom kernel:
(custom kernel with devfs and shmfs compiled in,
devfs with 'mount on boot' enabled, either compiled in or
via kernel command line param 'devfs=mount'):

1) replace

    PATH=/bin:$PATH; export PATH

    with

    PATH=/bin:/usr/bin:/usr/sbin:/sbin; export PATH

2) replace

    echo "Creating ramdisk on /tmp"
    RAMDISK_SIZE=`get_cfg RAMDISK_SIZE 1024`
    /sbin/mke2fs -q -m0 /dev/ram1 ${RAMDISK_SIZE}
    /bin/mount -n /dev/ram1 /tmp

    with

    echo "Mounting shmfs on /tmp"
    mount -a
--------------------------------------------

hope it works for you,

Wolfgang



_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.openprojects.net
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic