Disable a CPU core to improve battery? - Galaxy S II Q&A, Help & Troubleshooting

Hey Ppl
I see there is an App to Sony smartphone, to disable one CPU core to improve the battery.
http://www.xperiablog.net/2013/01/28/xcore-allows-you-to-disable-a-cpu-core-to-improve-battery/
Is there anything similar App to Samsung devices lik S2?
//
Dong

You can change when the phone uses one core or two in the tweaks for Siyah and Dorimanx kernels but the one core would run for longer to process the same amount of work load so it would not save nearly as much as you would expect. The phone already puts one core off when it is not needed. That said I have not tried it so cant back it up with figures
In STweaks it is "MIN Frequency for 2 core"

Related

[Q] Are both cores used all the time?

Just as the question states. I know the second core will sleep when not needed but say you launch an app, does the second core help load the app? The reason I ask is because I'm curious about the raw speed difference between the atrix and inspire. Now compairing the inspire running at 1.8 and the atrix seemingly stuck at 1 per core (I'm not saying the atrix wont ever be OCed but I'm just talking about what's currently available). I'm just curious if the second core will help the first with tasks. If it doesn't would that make the inspire technically way faster (obviously battery life may be an issue but this isn't a battery compairo)?
Thanks for any insight
I think you should start by knowing that overclocking ARM prroccessors gives little yield.
XOOM at 1.5 ghz scores only 500 better than a non-overclocked xoom on quadrant.
I'm going to try and simplify the answer for you.
Will BOTH cores be used? Maybe. First off, is the app itself optimized for dual core, or does it even need dual core / multithreaded capability.
Secondly, and I think more importantly, what is the rest of the phone doing. So, let's say you fire up your favorite app, the phone is still doing stuff in the background. Maybe it's checking email. Maybe Google Latitude is checking your location and updating. The point is - the other core will still be around to offload this work.
Now, WILL it go to the other core. Maybe. Maybe not. I do work on some big Sun machines, and have seen them use one or two out of 64 cores, even with massive loads and each core being used 100%, it refused to balance the load amongst CPU's.
Hope this helps.
mister_al said:
I'm going to try and simplify the answer for you.
Will BOTH cores be used? Maybe. First off, is the app itself optimized for dual core, or does it even need dual core / multithreaded capability.
Secondly, and I think more importantly, what is the rest of the phone doing. So, let's say you fire up your favorite app, the phone is still doing stuff in the background. Maybe it's checking email. Maybe Google Latitude is checking your location and updating. The point is - the other core will still be around to offload this work.
Now, WILL it go to the other core. Maybe. Maybe not. I do work on some big Sun machines, and have seen them use one or two out of 64 cores, even with massive loads and each core being used 100%, it refused to balance the load amongst CPU's.
Hope this helps.
Click to expand...
Click to collapse
Yea that's exactly like I figured, I was kinda going off Windows/Intel multi core setup. Even after dual+cores have been out for quite some time 95% of programs made still don't use more than one core (Most of those remaining 5% being very CPU intense programs PS, Autocad ect.). But I get what you mean, the one core will be dedicated to what your doing and not sharing cycles with anything else because core 2 is working on whatever pops up. So basically the Atrix might be a little slower at doing things BUT it will always stay the same speed with less/no bog.
Techcruncher said:
I think you should start by knowing that overclocking ARM prroccessors gives little yield.
XOOM at 1.5 ghz scores only 500 better than a non-overclocked xoom on quadrant.
Click to expand...
Click to collapse
So you're saying Quadrant suck as it does with most phones or OCing the Xoom (and Atrix) wont really do much?
I already built an apk for testing CPU usage on both processors... When I get some free time, I'm going to turn it into a widget... Here's what I noticed:
Because of the current OS and less dual core support for apps, the phone kind of kicks certain tasks into using the 2nd processor. The APK i built reads the '/proc/stat' file and i've noticed that when the 2nd processor is being used it actually shows up in the file as 'cpu1'. However, when it's not being used the 'cpu1' line does not exist and you can default the 2nd processor usage to 0%. It seems like performing core OS tasks (like installing apps) kick the 2nd processor into use, which is what you can expect since froyo supports dual cores.
Like everyone says, I'd expect to see more dual core usage on 2.3/2.4 (whichever motorola gives) and when more apps are designed to kick certain threads onto the 2nd processor.

[Q] kernel_max set to 1, why if it's dual core?

I noticed that all kernels I tried are with kernel_max set to 1 making the second CPU core disabled. If you go to /sys/devices/system/cpu and do a cat online it will appear 0, doing a cat offline will show 1 indicating that cpu 1 is disabled and if you do a cat /proc/cpuinfo it will show informations only for cpu0. If it's a dual core phone, why to put the second cpu offline?
I stumbled into the "cpu1" issue in proc yesterday while doing some comparisons between my S2 and my S3. My S3 has its original ROM (heck, I only just got it yesterday...) and cpuinfo e.g. shows me only cpus 0,2 and 3. /proc/cpuinfo of my S2 shows me only cpu0. To me it looks like as if /proc/cpuinfo ignores existing cpu1. (/proc might be depricated, but then why is it still there on ICS 4.0.3/4 ?)
/sys/devices/system/cpu/online on the other hand will ALWAYS show the correct amount of online cpu's. In my case on S2 (litening ROM/ litepro kernel) the output of /sys/devices/system/cpu/online is 0-1, on my unflashed S3 0-3.
My tip. Reboot your smartphone and look then at /sys/devices/system/cpu/online. I have the impression that either some app, the kernel itself or a bug turns a core off at somepoint. It happened to me yesterday (S2) which is what brought me into the search in the first place. I was having issues with my dialer/contacts freezing when trying to call. Something that should never ever happen (It's still a phone god damn it!! Imagine you need to do an emergency call and have to reboot the thing first!)
The core isn't permanently disabled, it's only disabled at that time to conserve battery performing an operation that only requires one core. Depending on the hotplug settings the phone with use core 1 when it needs to, which naturally the people who create kernels try to keep to a minimum to conserve battery. There are very few situations at this time that honestly require 2 cores. 1000 Mhz on 1 core can handle 99.9% of tasks.

[Q] Galaxy S3 Cores... One is missing or disabled

Since i got my GSIII i've been tweaking and experimenting with the best setup to give myself a nice experience without draining the hell out of the battery (especially now that my battery is an aged piece of s**t that won't last more than 6 hours, maybe because of my own actions )
I've gone through many different ROMS, official test builds, kernel configurations, etc... but a thing that has ALWAYS caught my eye is the fact that every single CPU tweaking mod i've ever used only lists 3 cores on the device
I should point out that i own an international SIII (GT-I9300), which comes with the Exynos 4412, it's not the best, but it does it's job pretty well, even with the default PegasusQ governor, personally, i just switch the I/O Scheduler to SIO for better performance, since i have a ton of media on the phone
If the 4412 is a quad core why is that 4th core never listed? i might be overlooking somthing completely obvious and stupid, and i probably should have figured it out by now, it's been a while since i've been using android phones, but this question has bugged me since i bought the phone over a year ago... can someone please explain this? i'll be forever grateful
Do you have power saving enabled or any app to save battery installed?
Modelistis said:
Do you have power saving enabled or any app to save battery installed?
Click to expand...
Click to collapse
Neither of them... power saving disables two cores and makes the phone feel sluggish, and everybody knows battery saver apps are BS
Cores are numbered from 0, not one. So the four cores would be 0,1,2,3. Making the total number of cores to be 4
Aleycat said:
Cores are numbered from 0, not one. So the four cores would be 0,1,2,3. Making the total number of cores to be 4
Click to expand...
Click to collapse
Somebody told me about this some time ago... but even the CPU usage display option in the developers menu only lists 3 cores (separated by slashes) it seems as one core is system reserved... for usage by the phone itself... not for user needs
However... i switched CPU governors yesterday... and i noticed number 3 popped up... i might have been the reason that core was missing in SetCPU... but the built in meter still shows 3 cores... not 4
What governor are you using? Also i noticed mine also show only 3 cores.
had the same bug on my s3 with cm 11 just now but it went away after reloading the governor (there is a different governor than what i was using that only has 3 core enabled, so it might just be a bug with the phone using the wrong governor or bugged governor setting)
edit: just did some more testing and the pegasusq governor i am using dynamically disables cores if usage is low (at least on cm 11, it just sets them to "stopped" on stock 4.3 with the same governor)

please help me .. i need to overclock this phone

I have huawei mediapad m1 s8-301uv
Android jelly bean and there is no any update to kitkat
And it lags and crashes alot
It is a quad core phone but only one core is online
I rooted the phone and installed many programs to overclock like kernel adiutor and set cpu and others sometimes only two cores are online and the other two are offline
I need at least three cores online all the time even if it drains the battery
PLEASE HELP ME
Android 4.1 and 4.4 handle stuff similar and you won't see a big difference. These kernel auditor(and similar) only provide a placebo effect and are useless unless you a´have a custom rom installed, at least for me.
No matter how many cores you have the processor itself can be trash, dual core should be fine for regular usage if it's good enough.

All G5 CPUs locked down to 1.5ghz

Hey, I saw that all CPUs are currently locked down to 1593mhz. Our chip should have 2x1.5ghz for general use and 2x2.1ghz for high performance tasks.
But in stock as in custom Roms, I see all CPUs locked down, max freq 1593mhz and no control over queue processing, either from hotplug or CPU front. Is there something I missed? Or LG just lied to us?
I know from thermal point of view that our device would not be able to sustain 2.1ghz for a long time, but if the frequency is not even available, it is a serious matter... +500mhz is not something to overlook!
If thats true, thatd be a heartbreaking, the first thing I look to before choosing a device, is clock speed
Unlock the game optimization
I checked on cpu-z and frequencies. With optimization on, it won't go over 1,5 ghz but with that option off it is easily jumping to maximum clock speed (faster battery drain). Stock rom, don't know about custom roms.
Linux User said:
I checked on cpu-z and frequencies. With optimization on, it won't go over 1,5 ghz but with that option off it is easily jumping to maximum clock speed (faster battery drain). Stock rom, don't know about custom roms.
Click to expand...
Click to collapse
You mean game optimization in settings/battery? I think we do not have that option in custom ROMs (I am currently trying Aicp 12.1) and never changed it in stock. I will try going back to stock to disable that option and see if the frequency table changes... If it does, it will be a pre-requisite before flashing custom ROMs in our device. Still, it is something the kernel should handle.
I would underclock the device on my own, as I did with my good old G2, but not having the option for the CPUs to scale as intended is not cool...
Well, frequency table shows no change with stock, but somehow, CPUs 3 and 4 scale up to 2150mhz now.
I guess LG did not cheat in the strict sense of the word, but just does not want us to have control over our devices...
Sent from my LG-H850 using Tapatalk
Floodland said:
Hey, I saw that all CPUs are currently locked down to 1593mhz. Our chip should have 2x1.5ghz for general use and 2x2.1ghz for high performance tasks.
But in stock as in custom Roms, I see all CPUs locked down, max freq 1593mhz and no control over queue processing, either from hotplug or CPU front. Is there something I missed? Or LG just lied to us?
I know from thermal point of view that our device would not be able to sustain 2.1ghz for a long time, but if the frequency is not even available, it is a serious matter... +500mhz is not something to overlook!
Click to expand...
Click to collapse
So... I was freaked out after reading this thread, so i rushed to check using cpu Z and it turned out that mine is clocked at 2.15, so i don't know what is wrong u
The Snapdragon 820 inside the LG G5 has a quad-core processor which has 2 cores clocked at 2.15 GHz and two other cores clocked at 1.6 GHz (1593 MHz), it's the way the manufacturer (Qualcomm) decided the processor to be, the LG G5 is not underclocked. Some users may get different results in applications like CPU-Z or AnTuTu depending on which core the application is based on.
Android_420 said:
The Snapdragon 820 inside the LG G5 has a quad-core processor which has 2 cores clocked at 2.15 GHz and two other cores clocked at 1.6 GHz (1593 MHz), it's the way the manufacturer (Qualcomm) decided the processor to be, the LG G5 is not underclocked. Some users may get different results in applications like CPU-Z or AnTuTu depending on which core the application is based on.
Click to expand...
Click to collapse
The frequency table shown by kernel adiutor (or any kernel tweaking software) shows ranges 307-1593 for all processors.
I know the hardware behind, my first though was that LG underclocked it. Now I see the phone just hides its behavior and does not show the real table (or the available software is not able to see it).
We will need additional kernel development in order to effectively control the core speeds in our devices.
Case closed, thank you for the responses.
Floodland said:
The frequency table shown by kernel adiutor (or any kernel tweaking software) shows ranges 307-1593 for all processors.
I know the hardware behind, my first though was that LG underclocked it. Now I see the phone just hides its behavior and does not show the real table (or the available software is not able to see it).
We will need additional kernel development in order to effectively control the core speeds in our devices.
Case closed, thank you for the responses.
Click to expand...
Click to collapse
old versions of kernel auditor are buggy with the g5, they see it as a single quad core instead of big/little dual 2 cores. You need the newest kernel auditor.

Categories

Resources