Before proceding, please consider learning from Garfield :
(Thanx to MuertoKo for this educational image)
I have spend numerous hours making this mod ... and writing this OP, so please have the decency to at least read it before asking questions.
REMEMBER
FIRST OF ALL, do a Nandroid backup, as well as a backup of your sd-card content !
You're doing this at your very own risk, I'm not to be held responsible if something goes wrong
There's another little warning I need to add to this, using part of your sd-card as swap space will cause that part of your card to undergo lots of read/writes, thus shortening the life of that part of the card...
I've been using hard swap for quite a long time now, no issues to report, but don't tell me I didn't warn you
Now that said, let's get going
In case somebody wants to check it out, here is the swap activation script I wrote (attached) as well as explanations on how to make it all work :
I. Hard swap (using a swap partition on the SD card)
(This is the alternative I recommend, rather than using a pagefile on internal memory, considering the SD card being worn to be cheaper than the internal memory to be worn)
Here is how to use this mod :
NB: This mod will only work if the kernel you use has swap support built in !
1) Have I mentiond to backup your system (Nandroid) and SD-card ?! Cause now would be a real good time to do so

==> While doing so, now would be a great time to read the F.A.Q. in post 3. Especially do read at least the first question !!
2) Partition your SD-card (Minitool Partition Wizard, 4ext, CWM...) - for a step by step documentation have a look here.
You can create as many partitions as you like/can, as long as all are primary partitions. This MOD will look for the swap partiton and find it even if it's not the last, though it's common practice for swap to be the last partition.
Just please don't create more than one swap partition, I don't know how the script would react if there were more than one ! You've been warned !
3) Download "Hard-Swap-Yank555.lu_Flasher-vx.y.zip" and put it onto your SD-card
4) Boot into recovery
5) Flash "Hard-Swap-Yank555.lu_Flasher-vx.y.zip" from your SD-card (like a ROM or kernel)
6) Reboot and enjoy !!
To check if all went fine, start a terminal and type "free", you'll need to see something different than 0 in your swap line, look at the attached print-screen

Enjoy and please let me know how it worked for you !
NB: In case you have zram activated, I very strongly recommend to disable it, so you get all your RAM back as RAM.
If you want to know what the difference is between hard swap and zram, please read the F.A.Q..
----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------
Here is how to completely remove this mod :
1) Download "Hard-Swap-Yank555.lu_Uninstall.zip" and put it onto your SD-card
2) Boot into recovery
3) Flash "Hard-Swap-Yank555.lu_Uninstall.zip" from your SD-card (like a ROM or kernel)
And all will be again as nothing had ever happend

JP.
