Tuning [tested @ Replicant 4.2]
Added by My Self over 10 years ago
I wanted to know if I could optimize the Replicant installation on my I9100. Here are my results.
I've benchmarked the system (after I temporarily installed the OpenGL ES drivers to get the benchmark to work; of course this step is not recommended). The benchmark results are attached as 'Replicant_4.2.0002_Benchmark_i9100.pdf'
On that base I've created a init script for my system start under: /system/etc/init.d/23tuning
(This file is also attached).
I've created a flashable zip file, too to get that file smoothly planted with the correct permissions :)
(Also this 'tuning_i9100.zip' is attached).
- Sets the CPU-Governor -> pegasusq
That governor seems to be the better choice instead of 'ondemand', like the benchmark confirms. More informations about 'pegasusq':
http://forum.xda-developers.com/showthread.php?t=1767797 - Deletes 'LOST.DIR' and 'System Volume Information' folders (if they exist) on every OS boot.
This automatically created folders are often deleted manually from a lot of people. So I wanted to do that automatically, too.
This works great for me, but I don't know if everyone want to kill this folder. If not, please modify the script before you use it. More informations about the LOST.DIR folder:
https://android.stackexchange.com/questions/44959/how-to-prevent-android-from-creating-lost-dir-on-sd-card - IO-Scheduler -> noop
That scheduler seems to be the best choice on this device with that OS for now, (like the benchmark shows). More informations about 'noop':
http://forum.xda-developers.com/showthread.php?t=1558153 - Read-Ahead -> 4096kb
This setting boosts up your storage read/write speed (without any side effects), like this link explains:
http://www.androidpolice.com/2011/04/04/increase-your-sd-card-read-speeds-by-100-200-with-a-simple-tweak-hands-on-benchmarks/
The possibility over the Settings -> Performance to adjust under 'Processor' the CPU-Governor, of point 1. and over Settings -> Performance 'I/O Scheduler' the IO-Scheduler of point 3., doesn't seems to survive a system reboot - even if the 'set on boot' options is checked.
Hope this helps somebody...
[Edit]
To set these (and some more) settings manually, I've found a great open source app to do that (Kernel Adiutor):
https://f-droid.org/repository/browse/?fdfilter=kernel&fdid=com.grarak.kerneladiutor
Over that app, the settings are able to survive a system reboot. Also every setting is tagged with a little description, what could be very useful, too.
Furthermore you're able to tune some more (and deeper) parameters, for example the pegasusq governor itself. Here is a little introduction for that:
http://forum.xda-developers.com/galaxy-s2/general/ref-kernel-stuffs-how-ics-kernel-t1572937/post24233103#post24233103
fallback note
Don't be afraid; if you want to set the changes back to default (behavior), just "install" the Replicant .zip file (over CWM Recovery) again.
Over this way you don't lose any personal data or settings you made - even on encrypted devices.
disclaimer
Please don't make me responsible for any damage on your device. I've researched and tested very carefully, but if you want to try this at home, please do it at your own risk.