Special statement: this optimization is based on Blue Devil i9, so full copying does not guarantee the effect, and specific parameters need to be adjusted accordingly
Statement 2: This optimization has passed the e-robot Software Implementation, so first, you need to use e-robot
E-robot download Address: http://www.coolapk.com/apk/com.bartat.android.robot
See: http://padbbs.zol.com.cn/1/233_342.html
To add a custom kernel optimization script, see: http://padbbs.zol.com.cn/1/233_340.html
Main part:
First of all, to achieve dynamic optimization, it needs a dynamic and representative parameter as the standard for adjusting other parameters. Here I choose the battery temperature. Why? Is simple, easy to use, and more convenient than CPU Temperature can better reflect the overall working condition of the machine (of course, not absolute)
After a benchmark parameter is selected, which parameters need to be adjusted to achieve speed increase, power saving and cooling?
Look here
if [ -e /proc/sys/vm/swappiness ]; then
Echo "40">/proc/sys/vm/swap Memory And relieve the memory pressure, but it will consume some operations)
fi
if [ -e /proc/sys/vm/vfs_cache_pressure ]; then
Echo "25">/proc/sys/vm/vfs_cache_pressure
fi
if [ -e /proc/sys/vm/dirty_expire_centisecs ]; then
Echo "0">/proc/sys/vm/dirty_expire_centisecs
fi
if [ -e /proc/sys/vm/dirty_writeback_centisecs ]; then
Echo "0">/proc/sys/vm/dirty_writeback_centisecs
fi
if [ -e /proc/sys/vm/dirty_ratio ]; then
Echo "25">/proc/sys/vm/dirty_ratio
fi
if [ -e /proc/sys/vm/dirty_background_ratio ]; then
Echo "2">/proc/sys/vm/dirty_background_ratio
fi?
Echo "4096">/proc/sys/vm/min_free_kbytes virtual machine Pressure, too high will consume memory)
Echo "512">/sys/block/mmcblk0/queue/nr_requests
Echo "512">/sys/block/mmcblk1/queue/nr_requests (adjust the throughput of the external SD card)