[HD2 Android Q&A, Help & Troubleshooting and Genera] twoxx:
Well....:D

zram and swap-partition are two different things.

If you activate zram then android will use parts of your internal ram as a kind of "zram-partition". Internal ram is a very fast memory, so zram-method is very fast, but makes internal ram smaller.

If you activate swap then your swap-partition on sd-card will be used in order to outsource parts of internal ram.

So you can enlarge your internal ram, but it is not like 500 mb internal ram + 300 mb swap = 800 mb ram.

That's not true.

If you use swap-partition it depends on "Swappiness"-value how android will use swap.

For example:

Swappiness 30 means:

30 percent of all write actions into ram will be outcourced to swap-partition and 70 percent of all other write actions will be written on internal ram.

Swappiness 100 means:

Nearly nothing will be written on internal ram any more, all write actions will be outcourced to swap-partition.

I said "nearly" because some little things will be written on internal ram further on.

If you have a very fast sd-card - you can speed up your phone with this method.

The decition between zram and swap depends on how you are using your phone.

If you have a fast sd-card you can use swap-partition if your sd-card is slow - then zram is better for you.

If there are running many apps in background that must stay in background like antivirus-apps, whatsapp, taskkillers and so on,

i prefer using a swap partition instead of zram.

If you do not run many apps in background and if your are only using those playstore apps like games and so on that will be started and after using them they can be ended and erased out of memory by androids internal memory manager, then your system might be a little bit snappier by using zram.

I use a 64gb sandisk extreme sd-card and swap-partition / swappiness 100. This speeds up my system a little bit. no zram.

If you are using pixeldroids rom, then nos-injection-script activates zram automatically. if you want to use swap an no zram - you have to

erase those lines out of init.d-script "nos-injection-4cylturbo" :

# KERNEL zRAM ================

#=============================

#

# This will only work if your kernel supports zRAM!

# so your kernel DOES NOT have zRAM? Then this script won't work!!!

echo "1" > /sys/block/zram0/reset

echo $((60*1024*1024)) > /sys/block/zram0/disksize

mkswap /dev/block/zram0

swapon /dev/block/zram0

After that you have to activate swap-partition.

If you installed pixelfreaks rom, then you were able to activate swap in aroma-installer during your installation of your rom.

If you activated swapping in aroma - then only erase those lines above in nos-injections-script and finished.

If you didn't activate swapping in aroma, you have to activate it manually by using playstore-app "swapper" or by using an

init.d-script.

you can extract init.d-script "99swap" out of pixelfreaks rom-zip-file and put it into system/etc/init.d in your rom on your phone.

open script with a text-edior an set swappiness to value you decided.

set permissions to -rwxrwxrwx and reboot. Finished!!

Pixelfreaks nos-injection automatically sets readahead-value to 4096. This value runs with most sd-cards.

In my case it slows down my sd-card a little bit. My sd-card runs faster with readahead 6144. you have to try which value

is best for your sd-card in order to speed your system a little bit up.