[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] justmpm:
Hey Ahmed, things are great! Hope all is well for you and your family. I attached a script for activating zram. I am not sure how you inactivated your zram, but the script should restart it. The easiest way to run it is with Script Manager (free from play store), you just need to run it as root, or su if you run it from terminal. Just download the script and then delete the .txt from the end. It will probably still run with the .txt but xda won't take a file with out an extension. The script is more or less the same as pojhe's here are the steps:

1) sysctl -w vm.swappiness=30 -this step determines how quickly the swap will fill up and runs from 0 to 100 with 100 being the fastest, but there will still be some swapping at 0.

2) echo "1" > /sys/block/zram0/reset -this step resets the swap, so turns it off and clears out the swap file so that nothing is in it.

3) echo $((50*1024*1024)) > /sys/block/zram0/disksize -this step sets how big the swap will be. In this case it will be about 50 MB, just change the first number to change the size (the 1024*1024 just puts it into MB).

4) mkswap /dev/block/zram0 -this step tells Android where to put the swap

5) swapon /dev/block/zram0 -this step starts the swapping.

Really, you can only experiment with 1 and 3. I never really noticed that much difference in performance between zram being on or off, especially if you are talking about antutu or quadrant benchmarks. There was a difference with super Pi and I am pretty sure that there was less lag and things like scrolling were smoother. Since these last two are pretty subjective, it is hard to know if it is real or just placebo.

Android is "cheating" so it can be faster. First it is trying to read ahead in the program so it knows what it needs to do before it has to do it. This is what the dalvik.cache is for. This is like staying one chapter ahead in school. The other thing Android is trying to do is keep things it has already done/used in RAM . Most of the time you are rerunning the same apps and those apps are doing the same things so it makes sense to keep as much "used" information in memory as you can. The android memory manager determines what stays in RAM and what gets tossed out. Even though a lot of people say "Free RAM is wasted RAM", this isn't exactly true. If the RAM is completely full and you open up a new app, there will be a delay while the cpu decides how to clear space for the new app and every time that app needs more RAM there will be more lags. ZRAM is supposed to help this by compressing the data before it goes into RAM, so that more data can be stored in RAM. But if you set swappiness too high or the size of the swap is too small then it stops helping you. If you are a heavy gamer than you probably want different settings then if you are mostly after better user experience (multi tasking).

If you type "free" in terminal the last 3 numbers displayed will tell you about the swap. First will be the total size of the swap, then the amount that is currently being used, then the amount that is still free to be used (empty). You typically don't want this last one to be near 0, unless you have just finished doing something that pushed your phone pretty hard (a game for example).

Don't worry about bugging people, nobody is forcing anybody to participate but I think it would be wrong not to help others, after I have been given so much help!

Cheers!