[Galaxy S 4 i9500 Android Development] krasCGQ:
Configuring KudKernel

​

The latest version of Kernel Adiutor-Mod by [MENTION=4231562]Yoinx[/MENTION] is recommended.

If you don't know what would you use when tweaking the kernel features, this guide by [MENTION=5811506]gsstudios[/MENTION] will help you much, thanks to the detailed information available.

Note:

If you proceed to keep use the original Kernel Adiutor, some of these informations aren't available or may be different because all informations I write are for KA-Mod app. | No longer applicable as the latest version of the official KA has most KAM features implemented, except SELinux things and Android logger.

CPU

CPU frequencies selection are combined, means that it would applies to either A7 or A15 cores. If power saving mode is on, maximum frequency is limited up to 1200 MHz whatever value greater than 1200 MHz is set.

CPUFreq policy for A7 cores:

100 = 200 MHz

150 = 300 MHz

200 = 400 MHz

250 = 500 MHz

300 = 600 MHz

350 = 700 MHz

400 = 800 MHz

450 = 900 MHz

500 = 1.0 GHz

550 = 1.1 GHz

600 = 1.2 GHz

650 = 1.3 GHz (not enabled)

If you prefer some performance boosts, interactive and intelliactive governors are recommended, where intelliactive governor could drain your battery life more due to more performance bias.

Alucard governor might be better for our CPU as a battery saving governor, either this is bug or not, CPU could only use A7 cores - up to 1.2 GHz - (any CPU monitor would read this as 600 MHz). But, to be honest, alucard governor is working correctly on my ZenFone 2 ZE551ML.

If you prefer the balance between performance and battery life, leaving ondemand as default governor is enough. If you're careless, then try to adjust interactive governor to make the governor more balanced. If you're success, post your value and I'd add it here.

CPU Voltage

This is a dangerous feature. Don't tweak the voltage 'as you like'! Instead, use Global Offset and lower the voltage by (up to) 50 mV. Too low or too high voltage will render your device unusable.

Screen

You could only tweak mDNIe global controls to enable Register Hook and/or Master Sequence.

I/O Scheduler

I'd only tell about read-ahead value. For me, 128 kB is recommended for stability. 1024-2048 kB could be used on most common phones and SD cards, but beware that not all SD cards support high read-ahead value and could damage the SD cards themselves! Be sure that you've a good-quality SD card. Rest of the menus are understandable by yourself.

Kernel Samepage Merging

On my kernel KSM has been replaced by UKSM, which is an improvement over KSM. UKSM is enabled by default here. Sleep between scans will tell KSM to give a time delay before the next scan is performed. This value could be set between 0 ms (no delay) and 5000 ms (5s). Higher the value, less scans are performed, but I don't recommend to set it to 0 ms. The default is 100 ms.

Another value is the maximum CPU usage that would be used by UKSM to perform scans. Most users should set this value to 5-20% (default: 20%) unless you're know what are you doing.

Low Memory Killer

As the name suggests, this would tell Android to kill apps when the device's RAM is low. Leaving this setting on it's default parameters is more than enough, unless you're know what are you doing here because there is a risk if you set it to nearly zero that it would call Out of Memory killer instead that would possibly crash your device.

Virtual Memory

Won't say much, as it's already explained on the kernel app itself. But, I should give you a note, that disabling Dirty Ratio would decrease your battery life a lot, since your CPU will be mostly bumped at the highest frequency!

(Kernel) Entropy

This Wikipedia article would tell you much.

Misc Controls

Please be noted that I forced this kernel to running over Permissive SELinux, so Toggle SELinux button will never work. Android logging could be disabled also via this option, but only applies on current session even after Apply on Boot is enabled.