[Galaxy Ace II Android Development] ace2nutzer:
@up

of course u're right, it'll use ram more effective because of compression.. so it fits more data in same ram size of course. btw: how high is LZ4 Compression rate ??? if it's 50% then we can say it saves or expand real RAM by approx 300MB ... (600 /2 = 300) I've already google it, but it didn't found nothing.

btw2: KSM and UKSM is the worsest feature i ever seen ! Before i need to use KSM i prefer to use zram with LZO or even gzip instead... why ?? Because it makes all the time the whole RAM slower....

In comparision with zRam it makes the RAM slower only if the RAM is already FULL .. and slow ram is only the part of compressed RAM ... the rest of the RAM what is uncompressed is still running at full speed ... that's why zRam with LZ4 is best choice (even if the Device has enough RAM) ... (I'm also using full zRam LZ4 on my Laptop with 4GB physical RAM ;) )

hmm that's weird.. because since this version i didn't touch LCD Driver at all .... :cyclops:

And on 04/11 + 08/11 it's broken ?

as for zram: nope, it's already @ max. .. to be precise we've now: 768MB + 628MB zram= 1396MB = 1,4GB RAM

But it's just approx. because i don't now how much it can compress (compression ratio for LZ4)

If u even need more RAM .. it's possible to recompile the Kernel with LZO compression for zram .. then it's compress more than with LZ4 ... but it'll drain more battery and the Phone will lag much more.

And other and last alternative is to create an swap file on sdcard0 or 1 .. and so adding this to the system swap.

But it's not recommended because it's damage the sdcard .. because of too much write/delete ...

An other Thing to mention is: how much RAM can the system allocate at all ???

- With the actually kernel config ----> the VMSPLIT is @ 2G/2G ... that means in totally it can allocate approx 1,8GB RAM ...

I can change this in kernel to 3G/1G ... then the system can allocate 3GB RAM ... we've 32bit CPU .. not 64bit ;)

But last will result in a slightly slower kernel .. because of enabled HIGHMEM in order to use the full RAM.

So actually the FULL RAM is allocated as "LOW Memory" ----> fastest mode. :highfive:

btw: on stock GB and JB it was painfully @ slower 3G/1G :laugh:

btw2: LZ4 is the fastest algorithm at all.. so that's why it can't hurt using this.

okay, then try on time with enabled zram and one time with disabled zram.. don't try different Values.. u'll not see much difference :)

btw: this is not an settings or just my preference... nope, it's just a feature .... so the Question is: we need more ram or not ? - I say yes .... Because after an fresh reboot, the free RAM is just approx. 180MB ... but cached it's completely FULL. so basically even after an reboot the RAM is already completely FULL...

Don't believe ? - Check with term. emulator by typing: "free"

Also i don't believe that disabling zRam will save battery or CPU load... nope, as i said ram is always full.. so if open an app .. then it'll first close an other app/service in ram in order to load the new app... okay... after closing that new app.. it'll probably re-load the old app/service again .. since the most important apps/services has the function to restart automatically again ... so if u all understand this,, this procedure with killing apps and re-load to mem. again cost also CPU load like one time compress some ram in order to prevent some killing apps.

As u can see, no matter if zram or not, in both cases it'll drain battery just because of too low RAM... u can do nothing. (except of not using 100+ apps :D ) The only difference is: with zram = more ram, better performance and multitasking ... and without zram = less performace, more lags, and bad multitasking .. also higher risk to running out of memory (OOM) ---> Kernel panic ! ---> Reboot :highfive: