It looks like puppy halves the amount of actual memory and allocates one half to front end and one half to back end - into which puppy sfs is copied. So provided half of total memory is more than the puppy sfs size it doesn't seem to matter whether that puppy sfs size is big or small, you stlll end up with around the same amount of 'front end 'free memory'
Mine typically shows 750MB free on this 1.5GB PC, even if puppy sfs is 100MB or 400MB.
Personnally I'm running with no swap partition and drop my core sfs's into puppy sfs (in a directory I created (/OFFICE) for that purpose. So the sfs's are already in memory after booting and ready to be loaded.
I have a script in my Startup folder that loads those sfs's quickly i.e.
Code: Select all
for i in audacity-1M.sfs LibreOffice-423-1M.sfs skype43-1M.sfs blender259-1M.sfs inkscape-1M.sfs openshot1.4-1M.sfs xvidcap1M.sfs; do
f=`losetup -f`
if [ ! -d /initrd/pup_$i ]; then
mkdir -p /initrd/pup_$i
losetup $f /initrd/pup_ro2/OFFICE/$i
mount -r -t squashfs -o noatime $f /initrd/pup_$i
busybox mount -t aufs -o remount,append:/initrd/pup_$i=ro unionfs /
fi
done
nice fixmenus
# fire up libre tray icon (doesn't matter if restart as libre handles multi-calls ok
/opt/libreoffice4.2/program/soffice --quickstart &
nice jwm -restart
Code: Select all
#!/bin/bash
# Kill libre tray icon
kill `ps | grep quickstart | grep -v grep | awk '{print $1}'`
for i in audacity-1M.sfs LibreOffice-423-1M.sfs skype43-1M.sfs blender259-1M.sfs inkscape-1M.sfs openshot1.4-1M.sfs xvidcap1M.sfs; do
LOOPDEV=`losetup | grep -w $i | cut -d: -f 1`
if [ "$LOOPDEV" != "" ]; then
busybox mount -t aufs -o remount,del:/initrd/pup_$i unionfs /
busybox umount $LOOPDEV
# losetup -d $LOOPDEV
rmdir /initrd/pup_$i
fi
done
nice fixmenus
nice jwm -restart
On the Wary 5.5 I'm currently using for instance that looks like
Code: Select all
#!/bin/bash
cd MAIN
rm puppy_wary_5.5.sfs
mksquashfs ../EXTRACTEDPUP puppy_wary_5.5.sfs
find | cpio -o -H newc >../initrd
For instance I've just noticed that skype was set to auto-update, so I changed that setting in the running version, copied /root/.Skype i.e.configuration file to (replace the existing)<path>/EXTRACTEDPUP/root/.Skype ... and ran the above script so that a new initrd is created and ready for the next reboot.
Nice being able to remaster that way as once running you can carry on doing other stuff whilst its running without interfering with the remaster
I've highly compressed my sfs's (slow to form) as I'm loading entirely into ram, I'm also using a high compression of puppy sfs (mksquashfs) and in total the initrd produced is around 400MB. When booted that has 750MB of free space showing. If however I don't include the sfs's inside puppy sfs and the initrd is say 100MB, then I still have 750MB being shown as the amount of available free space.