Saturday, April 27, 2013

Peformance improvement tweaks for CM10


On my momo9c i have CM10 but there were few performance issue. After some analysis i found that there were certain kernel modules which were not relevant to my needs or my device so i decided to remove them using following commands

#Remove ethernet modules
rmmod asix
rmmod mcs7830
rmmod qf9700
rmmod rtl8150
rmmod usbnet
rmmod gt2005

Also there minfree parameter were inappropriate for 512 MB which were making background application/services get kill by the lowmemorykiller module and making user experiance worst. I adjusted the minfree parameters of lowmemorykiller module using

#Adjust OOM minfree parameters
echo "1024,2048,4096,8192,10240,51200" > /sys/module/lowmemorykiller/parameters/minfree

Currently I have consolidated these commands into a scripts (download myinit.sh) and i run the script after every boot but in future i will add a post to move them into /system/etc/init.local.rc or modify the init.rc and init.sun4i.rc.

No comments:

Post a Comment