Sun Sep 11 21:01:16 EDT 1994

*pre-alpha status*

use it or ignore it, it works for me.

this goofus program doesnt check arguments, tho will genrally divide-by-zero
when all params aren't set.

*background*

My linux configuration consists of the following:

4m cache EISA scsi controller using 64kb bios blocks.

two scsi-2 Drives (.6 gigs, 1.0 gigs)

hpfs, dos, and ext2 partitions

no swap partitions

some time ago i put together a script to run mkswap, swapon, based on small
files interleaved on different drives for clustering advantage.  it took
*forever*.  the swapping was markedly faster however.

then... i just tarred a pile of files, 32 megs of swap into a 32k tar.gz
that was untarred at boot.  and swapon was run over those.
--slower startup yet

this completes the chore, i suppose.  it is probably the fastest way to
splatter out several small empty megabytes suitable for swapon.  
i doubt i will get around to removing all the status output it provides.

*requirements*

your kernel needs significantly more linux/mm/swap.c:NR_SWAPFILES set.

mine runs 256

there is no cleanup routine attempted.  I put the swapfiles in tmp dirs, and
waste em at bootup anyway.

excerpt from /etc/rc.d/rc.M
___________________________________________________________________

  /bin/rm -f /usr/spool/locks/* /usr/spool/uucp/LCK..* /tmp/.X*lock
  /bin/rm -rf /root/?/tmp

  if [ -r /tmp/hunt -o -r /tmp/hunt.stats ]; then
    echo "Removing your stale hunt sockets from /tmp..."
    /bin/rm -f /tmp/hunt*
  fi

for i in 0 3 #my mount points are /root/[0-4], with /root/0 pointing to /
do
        mkdir /root/$i/tmp
        >/root/$i/tmp/--linux-.--- #for UMSDOS
        mkdir /root/$i/tmp/.swap
done

/sbin/swapbuild -v /tmp/.swap/ /root/3/tmp/.swap/ -s 32 -b 256
___________________________________________________________________


*syntax*

swapbuild -v volumes ... -s SIZE (in megabytes) -b BLOCKS (in kilobytes)


yyZ@video.net (WhyWhyZee)