Tricking Puppy into thinking it has more RAM
Does your Puppy have limited RAM?
It can be difficult using Puppy to process video files or rip/shrink/copy DVDs on a PC that has only 1 or 2GB of RAM.
It may be possible if you have a large savefile but I do not use savefiles anymore as I experienced too many issues with corruption and machine hangs. I prefer to do my video processing by booting Puppy "live" into RAM and manipulating my files in /root. (avoids many permissions problems and just seems to work well for me)
But obviously this is problematic if I do not have much RAM.
So how to get around this?
In my experience video processing chokes - not always because it runs out of RAM - but also because the kernel runs out of cache (I can't really justify this last comment properly but I have seen lots of error messages and hangs that lead me to believe this is the case).
So what I do now is to trick Puppy into thinking it has way more RAM than it actually does. Not just storage - but actual RAM.
This trick is based upon the way that a "live" puppy (no savefile) handles it's swap partition and it's personal storage. During the boot process Puppy has a look at any swap partitions that are available and allocates a slice of that space as "bogus RAM" that it can use as overflow (quite separate to the remainder of the swap partition - which is still used as "swap").
This trick can be achieved with a usb stick but I currently use a small SSD as they are designed to be more robust than usb sticks in the long term.
I use a SATA3 to USB adapter cable to plug the SSD into whichever is my fastest usb port (most laptops have a mix of slow and fast ports) and format the SSD as follows (based on a 120GB SSD):
Partition 1: 20GB FAT32
Partition 2: 60GB EXT 2, 3 or 4
Partition 3: 30GB LINUX SWAP
Then I reboot with this SSD connected and Puppy grabs a sizeable chunk of the SWAP to use as temporary "personal storage space" (or "working RAM").
(It wont correctly grab the extra "personal space" if you manually attach the swap using the "swapon" command - it has to occur automatically during the boot process on a Puppy that has no savefile)
You can then see this reflected in the overall personal storage space total by hovering the mouse over the "Partview" icon in the tray. If it shows a working area of 15GB upwards then I know I am good to go with video processing.
.
This technique allows me to use a generic puppy, on a generic laptop that has no HDD and no savefile and make a start on my video processing. I store the resulting files on Partition 2. (Can copy them later to the FAT32 Partition 1 if I need to transfer them to a Windows system).
It doesn't really matter how slowly the system runs - at least this way Puppy has enough brain room to get it's job done without choking itself to death. (same technique works to use improve browser performance on low spec machines).
I can also go a step further by setting the boot flag on Partition 1, then copying Puppy files to directories on Partition 2 and running Grub4dos to make the whole thing bootable.
(But if you do this be careful to remove any other usb stick that happens to be fitted - as most puppies except the very latest ones struggle to handle more than one usb stick plugged in during boot).
This gives me a portable, bootable SSD containing one or more Puppies just for the purposes of the heavy lifting needed when handling video.
Great for testing machines that have been binned because of supposedly "insufficient specs".
Caveats:
1) There are probably much better ways of doing this. (I just dont know them)
2) SSDs sometimes use more power than you expect - especially the larger SSDs which have more nand chips. Surprisingly they can often use more power than 2.5" hard drives.
If you find that an SSD overloads your usb port's available current you may have to use this technique with a usb stick as they use way less power, or even use an old low power 2.5" spinner style HDD if you can find one that has enough GB. Many of the older laptop HDDs are limited to 500mA current draw so they can work fine on a lower power usb port.
3) The huge swap space has to be available during the boot process - you can't plug it in later.