Kernel Tweaks

CNexus

Senior Member
May 17, 2012
9,009
13,993
263
~/android
So I saw this over on the s3 forums and it gave me an idea

If everyone who sees this could post the kernel setup (overclocking, schedulers, or other tweaks) that has given either a) the best performance or b) the best battery life, it would be awesome and really help noobs like me who have never overclocked :laugh:

I know that every phone is different and blah blah blah, but I'm hoping that this would at least give us kernel tweaking noobs someplace to start besides just changing random settings and hoping for the best.

Thank you all in advance, all contributions are welcome

When posting, please state if you are addressing performance or battery life tweaks, and what Android version those were applied on just to make things a bit easier to follow

:good: :good:

Thanks!

TWEAKS

Performance
1.5 max, 255 min Interactive noop - Contributed by @thronnos

1.728 max, 184 min Performance noop - Contributed by @klund29078


Balanced
1.2 Max, 245 min Interactive noop - Contributed by @Chad the Pathfinder
 
Last edited:
  • Like
Reactions: junpei1337

klund29078

Senior Member
Jan 27, 2013
101
27
0
I'm by no means an expert on the subject but I run:

1.728/184 performance noop.

Honestly, I'd like to know the meanings of all the governors and I/o schedulers to have a better understanding of it. Mine is set for performance, obviously, but the battery life is not that bad. I always keep a charger with me though because I use my phone heavily everyday.
 
  • Like
Reactions: CNexus

bilgerryan

Inactive Recognized Developer
Oct 23, 2011
22,147
38,015
263
Garrett, IN
Cmon guys, theres gotta be more people who have good settings.

Sent from my PG06100
I got tons of stuff, just most of it's not very organized... I'll try to post some tweaks and such up here later when I get off work. I wish there was a tool to organize my computer and SD card for me... But it probably wouldn't do it the way I want
 
  • Like
Reactions: CNexus

CNexus

Senior Member
May 17, 2012
9,009
13,993
263
~/android
I'm by no means an expert on the subject but I run:

1.728/184 performance noop.

Honestly, I'd like to know the meanings of all the governors and I/o schedulers to have a better understanding of it. Mine is set for performance, obviously, but the battery life is not that bad. I always keep a charger with me though because I use my phone heavily everyday.
I got you

http://forum.xda-developers.com/showthread.php?t=1941195

Click the "Android CPU governors explained" link :)

Sent from my PG06100
 
  • Like
Reactions: klund29078

Chad The Pathfinder

Senior Member
Mar 18, 2012
2,648
3,173
203
Central Kentucky
I've tried several combonations and the one I like most on my Shift is 1.2 max 245 min Interactive, noop. That seems to give me the best ballance between battery life and performance. My favorite kernels for sense ROMs have been Strapped's Supreme Sense kernel and Dodge's v1.6. Others are good too, these are just my favorites.
 
Last edited:
  • Like
Reactions: CNexus

bilgerryan

Inactive Recognized Developer
Oct 23, 2011
22,147
38,015
263
Garrett, IN
Here's some good build.prop tweaks:

ro.max.fling_velocity=15000
ro.min.fling_velocity=10000
ro.HOME_APP_ADJ=1
debug.sf.hw=1
debug.performance.tuning=1
debug.composition.type=gpu
debug.kill_allocating_task=1
debug.egl.hw=1
video.accelerate.hw=1
persist.sys.use_dithering=1
persist.sys.purgeable_assets=1
persist.sys.shutdown.mode=hibernate
pm.sleep_mode=1
ro.ril.disable.power.collapse=0
ro.ril.hep=1
ril.ecclist=911,#911,*911
media.stagefright.enable-player=true
media.stagefright.enable-meta=true
media.stagefright.enable-scan=false
media.stagefright.enable-http=true
ro.mot.eri.losalert.delay=1000
ro.lge.proximity.delay=25
mot.proximity.delay=25
dalvik.vm.execution-mode=int:jit
dalvik.vm.dexopt-data-only=1
ro.compcache.default=0
net.tcp.buffersize.wimax=4096,221184,524288,4096,16384,110208
net.tcp.buffersize.gprs=4094,87380,256960,4096,16384,110208
net.tcp.buffersize.wifi=4096,87380,256960,4096,16384,256960

You can copy and paste them into build.prop with a root browser, save, and reboot

---------- Post added at 06:32 PM ---------- Previous post was at 05:50 PM ----------

Here's some more tweaks you can put in sysctl.conf (or make it if you don't have it):

net.ipv4.tcp_ecn=0
net.ipv4.route.flush = 1
net.ipv4.tcp_rfc1337 = 1
net.ipv4.ip_no_pmtu_disc = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_fack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_rmem = 4096 39000 187000
net.ipv4.tcp_wmem = 4096 39000 187000
net.ipv4.tcp_mem = 187000 187000 187000
net.ipv4.tcp_no_metrics_save = 1
net.ipv4.tcp_moderate_rcvbuf = 1
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv4.conf.all.secure_redirects = 0
net.ipv4.conf.default.secure_redirects = 0
kernel.sched_child_runs_first=0
kernel.sched_rt_period_us=1000000
kernel.sched_rt_runtime_us=950000
kernel.panic=30
kernel.core_uses_pid=0
kernel.core_pattern=core
kernel.core_pipe_limit=0
kernel.tainted=512
kernel.real-root-dev=0
kernel.print-fatal-signals=0
kernel.ctrl-alt-del=0
kernel.ftrace_enabled=1
kernel.ftrace_dump_on_oops=0
kernel.threads-max=10000
kernel.random.poolsize=4096
kernel.random.read_wakeup_threshold=512
kernel.random.write_wakeup_threshold=256
kernel.overflowuid=65534
kernel.overflowgid=65534
kernel.pid_max=32768
kernel.panic_on_oops=1
kernel.dmesg_restrict=0
kernel.kptr_restrict=0
kernel.ngroups_max=65536
kernel.watchdog=1
kernel.watchdog_thresh=10
kernel.softlockup_panic=1
kernel.nmi_watchdog=1
kernel.randomize_va_space=1
kernel.hung_task_panic=0
kernel.hung_task_check_count=32768
kernel.hung_task_timeout_secs=30
kernel.hung_task_warnings=10
kernel.max_lock_depth=0
kernel.keys.maxkeys=200
kernel.keys.maxbytes=20000
kernel.keys.root_maxkeys=200
kernel.keys.root_maxbytes=20000
kernel.keys.gc_delay=300
kernel.perf_event_paranoid=1
kernel.perf_event_mlock_kb=516
kernel.perf_event_max_sample_rate=150000
kernel.blk_iopoll=1
kernel.hostname=localhost
kernel.domainname=localdomain
kernel.shmmax=33554432
kernel.shmall=2097152
kernel.shmmni=4096
kernel.msgmax=8192
kernel.msgmni=1041
kernel.msgmnb=16384
kernel.auto_msgmni=1
vm.min_free_kbytes=4096
vm.panic_on_oom=0
vm.oom_kill_allocating_task=0
vm.vfs_cache_pressure=20
vm.oom_dump_tasks=1
vm.drop_caches=3
vm.max_map_count=65530
vm.block_dump=1
vm.stat_interval=1
vm.mmap_min_addr=204
vm.highmem_is_dirtyable=1
vm.scan_unevictable_pages=0

---------- Post added at 06:59 PM ---------- Previous post was at 06:32 PM ----------

Or here is the sysctl.conf file with the tweaks listed above. Place in system/etc with a root browser, fix permissions, and reboot
http://db.tt/LTFf4Vdi
 

bilgerryan

Inactive Recognized Developer
Oct 23, 2011
22,147
38,015
263
Garrett, IN
Oh and the sysctl.conf file is meant for 4.1+ AOSP, make a nand first, I can't guarantee anything under that... Just make a nand. I don't see why it wouldn't work on lower versions but I don't know, I only run JB now.:D
 
Last edited:

bilgerryan

Inactive Recognized Developer
Oct 23, 2011
22,147
38,015
263
Garrett, IN
To support what bilgerryan said, I tried the sysctl.cont file on sense gb before and it didn't help.
Yeah just be careful with using it with Sense, I've seen it cause boot loops on TouchWiz (people never listen... Or is it that they just didn't read the instructions?). Either way, it's meant for JB AOSP and probably won't work on anything below ICS.
The build.prop tweaks work on all ROMs tho.
 
  • Like
Reactions: Chad The Pathfinder

CNexus

Senior Member
May 17, 2012
9,009
13,993
263
~/android
Yeah just be careful with using it with Sense, I've seen it cause boot loops on TouchWiz (people never listen... Or is it that they just didn't read the instructions?). Either way, it's meant for JB AOSP and probably won't work on anything below ICS.
The build.prop tweaks work on all ROMs tho.
It worked wonders for me on GB
 
  • Like
Reactions: bilgerryan

bilgerryan

Inactive Recognized Developer
Oct 23, 2011
22,147
38,015
263
Garrett, IN
It worked wonders for me on GB
The sysctl.conf or the build.prop tweaks? I'm talking about the specific sysctl.conf that I linked to above Just for clarification. You can use a sysctl.conf file on any ROM, just saying these tweaks I did for JB.
And as far as overclocking on the Shift I use the same settings as Chad except I use Smartass (or v2 if available) and sio or deadline for I/O
 
Last edited: