Intelligently overclock a single core only

chareos12

Senior Member
Sep 8, 2010
700
52
0
Hi,

thinking of make launcher(s) as smooth as possible, while keeping best possible battery life, I was thinking os a probably foolish thing:
could be possible to write a script (even an init.d or something similar) that finds which CPU core is running the launcher and then sets up frequencies/governor for that core only ?

This way one could define the good performance/power level for the overall phone and apps, while still boosting the launcher performance.

Totally crazy ?
Doable ? How ?
 

fasst

Senior Member
Feb 20, 2008
485
130
0
Dual core is why we bought the S2 for mate :)

Sent from my GT-I9100 using xda premium
Maybe it's so, but still some clever heads are doing good work making new opporutinies for us.

Tegrak has made an app 2nd Core, witch make you set these 3 different options, but only for Lutz kernel build 15 and up. Siyah's kernel is coming up with a beta soon supporting the settings below. For now you only see what core is active/inacitve.

[ Features ]
*Set on boot
Change mode what you selected automatically on boot time.
Menu > Settings

[ Modes ]
*Dynamic Hotplug Mode
Default. Recently, mobile multicore CPUs turn off extra core(s) to save battery life when system is not busy and only use 1 core.
They turn on extra core(s) when system is busy. so system use all cores again.

*Single Core Mode
Use 1 core always. A extra core is shut down. It makes battery life longer but performance is decreased.

*Dual Core Mode
Use 2 cores always. Performance is increased but battery life is shorter than others.

https://market.android.com/details?...1bGwsMSwyLDEsImNvbS50ZWdyYWsuc2Vjb25kY29yZSJd

If it will possible to set different OC's,UV's for each core, I don't know but lets see what the Lutz and the Siyah kernels brings in the future.
 

Jibraldor

Senior Member
Jun 1, 2010
244
45
0
London
Maybe it's so, but still some clever heads are doing good work making new opporutinies for us.

Tegrak has made an app 2nd Core, witch make you set these 3 different options, but only for Lutz kernel build 15 and up. Siyah's kernel is coming up with a beta soon supporting the settings below. For now you only see what core is active/inacitve.

[ Features ]
*Set on boot
Change mode what you selected automatically on boot time.
Menu > Settings

[ Modes ]
*Dynamic Hotplug Mode
Default. Recently, mobile multicore CPUs turn off extra core(s) to save battery life when system is not busy and only use 1 core.
They turn on extra core(s) when system is busy. so system use all cores again.

*Single Core Mode
Use 1 core always. A extra core is shut down. It makes battery life longer but performance is decreased.

*Dual Core Mode
Use 2 cores always. Performance is increased but battery life is shorter than others.

https://market.android.com/details?...1bGwsMSwyLDEsImNvbS50ZWdyYWsuc2Vjb25kY29yZSJd

If it will possible to set different OC's,UV's for each core, I don't know but lets see what the Lutz and the Siyah kernels brings in the future.
+1. This is pure ingenuous. Since our phones seldom used the second core, it currently.is a battery hog and this app will brilliantly manage our battery life while maintaining the same level of performance. This will definitely improve our battery life by a significant margin.

Sent from my MB860 using XDA App
 

chareos12

Senior Member
Sep 8, 2010
700
52
0
Probably I was too optimistic thinking Android is capable to turning off unused cores ?

My initial goal was to
- find which core executes home launcher (let's say core 2)
- leave core 1 untouched (1200/200)
- overclock core 2 to 1600/200

yet, if Android (or MIUI kernel to say my example) is dumb about switching off unused core, the solution discussed above becomes really interesting...
 

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,095
25,085
0
Owego, NY
It is impossible to clock the cores independently. It IS possible to completely shut down the second core, effectively removing it from the system. Our system does this by default.

It's already done when system load is low. arighi has some kernel patches that change the hotplug heuristics to change when the second core gets fired up:

https://github.com/arighi/linux-gt-i9100

He's got a thread on it somewhere too.
 

isisky

Senior Member
Nov 18, 2010
102
12
38
Rennes
It is impossible to clock the cores independently. It IS possible to completely shut down the second core, effectively removing it from the system. Our system does this by default.

It's already done when system load is low. arighi has some kernel patches that change the hotplug heuristics to change when the second core gets fired up:

https://github.com/arighi/linux-gt-i9100

He's got a thread on it somewhere too.
If i remember rights there was a script tath can undervolt cpu independently, but i think that the launcher dont use especialy one core, but switch or use both of them