Oh I forgot to add this to the change log as well:
" KSM (Kernel samepage merging)
KSM is a kernel thread that runs in the background and compares pages in memory that have been marked*MADV_MERGEABLE*by user-space. If two pages are found to be the same, the KSM thread merges them back as a single copy-on-write page of memory.
KSM will save memory over time on a running system, gaining memory duplication at a cost of CPU power, which could have an impact on battery life. You should measure whether the power tradeoff is worth the memory savings you get by enabling KSM.
To test KSM, we recommend looking at long running devices (several hours) and seeing whether KSM makes any noticeable improvement on launch times and rendering times.
To enable KSM, enable*CONFIG_KSM*in the kernel and then add the following lines to your`*init.<device>.rc*file:
write /sys/kernel/mm/ksm/pages_to_scan 100
write /sys/kernel/mm/ksm/sleep_millisecs 500
write /sys/kernel/mm/ksm/run 1
Once enabled, there are few utilities that will help in the debugging namely : procrank, librank, & ksminfo. These utilities allow you to see which KSM memory is mapped to what process, which processes use the most KSM memory. Once you have found a chunk of memory that looks worth exploring you can use either the hat utility if it's a duplicate object on the dalvik heap."
Merges similar pages in RAM to reduce ram usage with lots of apps open. I enables it in the ramdisk so the kernel will actually use it per the above advert from the Android 4.4 instructions. 👍