famewolf wrote:For the users asking about using swap space with their HD2 and this rom:
I've verified that the following script works with 2.4 and the HD2. It creates a swapfile on either /data or the external sd....I personally would recommend using the external sd...better to replace a $20 microsd than deal with bad blocks in the nand...IMHO......so no need for a special swap partition....and it appeared to speed up my hd2 nicely. The thread has more info......
http://forum.xda-developers.com/showthr ... ?t=2359182
What will this script do?
It will do three things: (1) it will create a swap file that is a size specified by the user [note: user also has two choices for swap file location]; (2) it will create an init.d script that enables ram swap and sets the swappiness level to a user specified value during each boot process; and (3) it will create 'shift' scripts so as to facilitate turning swap on/off and changing swappiness on the fly.
He provides a .zip that can be flashed (I chose this one...simple) or for those braver another file with just the needed scripts.
Contrary to this note: "Note: JB users will likely have to choose /data for their swapfile location so as to avoid swapon/swapoff errors." you do NOT have to use /data....microsd works fine. The user this referenced did not have a physical SD card card as it was all "internal storage" like the nexus 4 or nexus7 and had to use /data.
The op answers most anything you can think to ask in his first post but is also active in the thread.
The flashable zip seems to work only when the system folder is on NAND. Modifications would be needed for NativeSD. Is that correct?








