There is an alternative to the scripting and partitioning. I use Swapper v2 which is an APK that does all the above work for you. It has 2 modes, a Swap File or a Swap Partition. For the File Mode, no partitioning is needed, it just creates a file and uses that. For Partition Mode, you still need to partition the SD and know its device path.The whole thing is menu driven, and many options are selectable (such as Swappiness and File Size).It does all the scripting for you, and even does a SwapOff if the SD is unmounted.I have tried both methods and performance between the 2 is negligible on this hardware. It is easy to see the improvement over not having swap, especially when browsing.This requires ROOT, of course.