On Wed, Mar 27, 2002 at 09:51:05AM +0100, Hans Ekbrand wrote:
> On Wed, Mar 27, 2002 at 07:56:14AM +0100, Wolfgang Schweer wrote:
> > 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,It did! But I don't really know how to measure the gain in RAM. I set the runlevel to 3 and run "free" as first command. The smfs system reported 2416 free kb of RAM, and the ramdisk setup gave about 2200 (don't remember exactly). But that's perhaps not a good measure? (Even if it's just some 200k of RAM, that's still 200k of RAM, so I will of course continue to use it). -- Hans Ekbrand
msg04092/pgp00000.pgp
Description: PGP signature
