perfd - Essential Phone Questions & Answers

So... Anyone out there played with /vendor/etc/perf-profile*.conf yet?
It appears we have 8 perfd profiles that something selects... And overrides any other CPU choices while perfd is enabled...
Thoughts?

rignfool said:
So... Anyone out there played with /vendor/etc/perf-profile*.conf yet?
It appears we have 8 perfd profiles that something selects... And overrides any other CPU choices while perfd is enabled...
Thoughts?
Click to expand...
Click to collapse
Haven't looked at that but have a tweaked thermal-engine.conf

tech_head said:
Haven't looked at that but have a tweaked thermal-engine.conf
Click to expand...
Click to collapse
I don't think I've ever bumped into the thermal.config...
I think perfd get a hold of the processor long before the thermal engine fires up

rignfool said:
I don't think I've ever bumped into the thermal.config...
I think perfd get a hold of the processor long before the thermal engine fires up
Click to expand...
Click to collapse
I think it uses both.
Definitely the thermal-engine.conf for heat throttling.
But the perf-profile is probably used and from what I can tell scaling up/down based on demand.
I modified them to take advantage of the overclock in my ElementalX kernel and tweaks thermal-engine.conf.
I now see the CPU go into the overclock frequencies more often. I hadn't even bothered looking in those files.
Great Find!!!!

tech_head said:
I think it uses both.
Definitely the thermal-engine.conf for heat throttling.
But the perf-profile is probably used and from what I can tell scaling up/down based on demand.
I modified them to take advantage of the overclock in my ElementalX kernel and tweaks thermal-engine.conf.
I now see the CPU go into the overclock frequencies more often. I hadn't even bothered looking in those files.
Great Find!!!!
Click to expand...
Click to collapse
Now if only I could understand what triggers them..............

rignfool said:
Now if only I could understand what triggers them..............
Click to expand...
Click to collapse
CPU load as reported by the kernel.

tech_head said:
CPU load as reported by the kernel.
Click to expand...
Click to collapse
It seems to be more than that...

rignfool said:
It seems to be more than that...
Click to expand...
Click to collapse
There are some target loads. There are some ramp times.
If you are running ElementalX and are over clocked. Just adjust the frequencies to get the performance.
If you research thermal-engine.conf it will help understand these files.

Anyone out there know an 835 that has perfd that we could compare profiles?
I can't leave stuff alone...

Related

[Q] Performance Profiles

Moin,
Is there any app that provides performance profiles like CPU-, GPU-clock speed etc? My old tf300 came with build in options for that :crying:
Thank you
fredopato
fredopato said:
Moin,
Is there any app that provides performance profiles like CPU-, GPU-clock speed etc? My old tf300 came with build in options for that :crying:
Thank you
fredopato
Click to expand...
Click to collapse
You mean like this?
https://play.google.com/store/apps/details?id=com.antutu.ABenchMark
danielms22 said:
You mean like this?
https://play.google.com/store/apps/details?id=com.antutu.ABenchMark
Click to expand...
Click to collapse
I mean something like a widget with Performance presets (yeah i should have said that ) so you can easily switch between them... for example
Code:
preset 1: CPU 1,5GHz to 1 GHz, GPU 400 MHz
preset 2: CPU 1 GHz to 380 MHz, GPU 200 MHz
etc.
franco.Kernel updater offers power modi based on which app you are currently running. It's not exactly what you were looking for, but I think this functionallity goes even further.
Also I think (I haven't used it in ~2 years) setCPU does offer some functionallity like this
Now that I understand the question: Is this even possible when we're talking stock/unrooted? (Just assuming, because OP asked for an app, not ROM)
danielms22 said:
Now that I understand the question: Is this even possible when we're talking stock/unrooted? (Just assuming, because OP asked for an app, not ROM)
Click to expand...
Click to collapse
No. Such a modification would need root access.
Thanks a lot! I will try SetCPU, because i don't want to manage the clockspeed for all of my apps in franco.updater

Overclocking snapdragon 800.

So I was wondering about the truth behind the risks of frying your cpu through overclocking or the chip itself degrading faster over time, and if there are such risks do they apply to a simple 2.5 ghz overclocking ?
There isn't any risk like that, unless you are using extremely high voltage, or are at terribly hot place.
I have tested all the overclockable kernels, and haven't found a single one which is steady at 2.6 or 2.8 GHz. Only Faux's kernel at 2490 MHz is stable.
Don't be scared, there's no risk.
PS: I personally use Performance governor by the way, so the CPU is always at max frequency, against all advice I keep using that for past three years, never had a problem, and you can understand where I live the temperature reaches extremely high in summer, so...
devilsdouble said:
There isn't any risk like that, unless you are using extremely high voltage, or are at terribly hot place.
I have tested all the overclockable kernels, and haven't found a single one which is steady at 2.6 or 2.8 GHz. Only Faux's kernel at 2490 MHz is stable.
Don't be scared, there's no risk.
PS: I personally use Performance governor by the way, so the CPU is always at max frequency, against all advice I keep using that for past three years, never had a problem, and you can understand where I live the temperature reaches extremely high in summer, so...
Click to expand...
Click to collapse
That's actually comforting I too am using fauxclock and I live in Egypt so the temperature gets pretty high here, but I'm constantly monitoring the cpu's temperature so I will give the 2.5 ghz overclock a try for a while and see how it goes.
MohamedOMostafa said:
That's actually comforting I too am using fauxclock and I live in Egypt so the temperature gets pretty high here, but I'm constantly monitoring the cpu's temperature so I will give the 2.5 ghz overclock a try for a while and see how it goes.
Click to expand...
Click to collapse
Yeah do that. Just to see if the OC is stable run that damn Antutu benchmark. If the device doesn't reboot/stuck then OC is stable
Best of luck.
devilsdouble said:
Yeah do that. Just to see if the OC is stable run that damn Antutu benchmark. If the device doesn't reboot/stuck then OC is stable
Best of luck.
Click to expand...
Click to collapse
That's the first thing I did actually
MohamedOMostafa said:
That's the first thing I did actually
Click to expand...
Click to collapse
Ha ha. Good. That's on Faux right? I got almost same score (44.7k) when I was checking.
Now if you want more then flash one of those 2.6 or 2.8 GHz kernels, and do the test, and message me if Antutu finishes the benchmark even once
devilsdouble said:
Ha ha. Good. That's on Faux right? I got almost same score (44.7k) when I was checking.
Now if you want more then flash one of those 2.6 or 2.8 GHz kernels, and do the test, and message me if Antutu finishes the benchmark even once
Click to expand...
Click to collapse
will do.
If you want higher you should try out Ultimate Kernel. Although it is removed from XDA, you can still find it on some foreign language site. It's the highest and most stable OC kernel I have used (3.0GHz).
Graffiti Exploit said:
If you want higher you should try out Ultimate Kernel. Although it is removed from XDA, you can still find it on some foreign language site. It's the highest and most stable OC kernel I have used (3.0GHz).
Click to expand...
Click to collapse
3.0 GHz
any benchmark screenshots ??
Graffiti Exploit said:
If you want higher you should try out Ultimate Kernel. Although it is removed from XDA, you can still find it on some foreign language site. It's the highest and most stable OC kernel I have used (3.0GHz).
Click to expand...
Click to collapse
Hmm, just found the topic, and it's mentioned that the topic was close due to non-compliance with the GNU GPLv2 and XDA forum rules, now what's the former thing?
Anyone has the latest version, if it's still updated outside XDA? Want to try it.
djak272 said:
3.0 GHz
any benchmark screenshots ??
Click to expand...
Click to collapse
Sorry cleaned up my screenshots folder as it was taking up a lot of space. Besides Antutu has been constantly getting updates so it may not be accurate.
devilsdouble said:
Hmm, just found the topic, and it's mentioned that the topic was close due to non-compliance with the GNU GPLv2 and XDA forum rules, now what's the former thing?
Anyone has the latest version, if it's still updated outside XDA? Want to try it.
Click to expand...
Click to collapse
I don't know if this is allowed but here it is.
v72
http://www.android-hilfe.de/custom-...ernel-kitkat-tw-only-ultimate-kernel-v72.html
v73
https://www.androidsource.club/foru...kernel-ultimate-kernel-v73-galaxy-note-3.html
Last one I used was v63. So do test it out more because I cannot vouch for the updates. But based from experience, I have never gotten an unstable update from that kernel.
Graffiti Exploit said:
Sorry cleaned up my screenshots folder as it was taking up a lot of space. Besides Antutu has been constantly getting updates so it may not be accurate.
I don't know if this is allowed but here it is.
v72
http://www.android-hilfe.de/custom-...ernel-kitkat-tw-only-ultimate-kernel-v72.html
v73
https://www.androidsource.club/foru...kernel-ultimate-kernel-v73-galaxy-note-3.html
Last one I used was v63. So do test it out more because I cannot vouch for the updates. But based from experience, I have never gotten an unstable update from that kernel.
Click to expand...
Click to collapse
Thanks a lot for the link mate. Downloaded and flashed v73, but I can't get it past the stock clock rate of 2265 MHz! I mean I have tried to set higher frequency than that in S Tweaks, even downloaded Trickstar, SetCPU, but the it'd just stuck at 2265 MHz! I can go lower than 2265 but not higher! Weird!
devilsdouble said:
Thanks a lot for the link mate. Downloaded and flashed v73, but I can't get it past the stock clock rate of 2265 MHz! I mean I have tried to set higher frequency than that in S Tweaks, even downloaded Trickstar, SetCPU, but the it'd just stuck at 2265 MHz! I can go lower than 2265 but not higher! Weird!
Click to expand...
Click to collapse
I think it comes with 2 apps for customization. You apply frequency on the first one and open the other and select apply changes. I'm not sure if it was this kernel or was it AEL. Lol. Anyways good luck. Maybe your ROM doesn't support a certain "stuff". I'm sorry but I really forgot about those terminologies. You can read up on the closed thread if you want. I'm sure you'll have a clue or on that link I gave you. *Google Translate ftw*

how to increase battery life by 25%

It is simple, tested on my nexus 6, just go to system/bin and delete mpdecision, then install an app that controls kernel, like kernel adiutor, raise min freq of cpu to 883000 mhz, then set apply on boot, reboot phone and enjoy lagfree and smooth super battery life
you are my hero
fedef12evo said:
It is simple, tested on my nexus 6, just go to system/bin and delete mpdecision, then install an app that controls kernel, like kernel adiutor, raise min freq of cpu to 883000 mhz, then set apply on boot, reboot phone and enjoy lagfree and smooth super battery life
Click to expand...
Click to collapse
Isn't enough to just turn off mpdecision in the kernel app?
this only works for stock roms? I can't find any mpdecision file on /system/bin
Sent from my Nexus 6 using Tapatalk
blanco2701 said:
Isn't enough to just turn off mpdecision in the kernel app?
Click to expand...
Click to collapse
if it turn off the 3 sec boost of mpdecision yes
sgloki77 said:
this only works for stock roms? I can't find any mpdecision file on /system/bin
Sent from my Nexus 6 using Tapatalk
Click to expand...
Click to collapse
works on all roms for nexus 6, some file managers cant see mpdecision in system/bin, try it in recovery using twrp
fedef12evo said:
raise min freq of cpu to 883000 mhz
Click to expand...
Click to collapse
Can you tell me if it's the minimum CPU frequency in the CPU tab or in the CPU governor configuration?
blanco2701 said:
Isn't enough to just turn off mpdecision in the kernel app?
Click to expand...
Click to collapse
Disabling in a kernel app will accomplish the same thing. The reason you are seeing a change in battery life is because of the 3 second input boost of MPD. Most of the custom kernels have a generic touch boost driver that is set to 1 second or less to take the place of the mpd boost and increase battery because of the decreased boost time.
MPD works great for some people and not for others. It is greatly dependent on your usage habits. For my typical usage, with mpd on, I average 6-7 hours of screen on time. If you are a gamer, where you are constantly touching the screen, mpd will adversely affect your battery life because of the constant boost.
As a kernel developer, I definitely would not recommend deleting the mpd binary. I would suggest trying a couple of different kernels and/or configurations to accomplish the same results.
lol.. seriously? i guess thats one reason that ive disabled mpdecision for the last 3+ years on whichever nexus i was on, but not the main reason
How can I turn mpd off on ex kernel manager
you don't need a kernel app to disable it BTW. all kernel apps do is provide a ui for you to use. it can be done via a terminal emulator app.. type,
su(press enter)
stop mpdecision(press enter)
and that's it.
I'm using kernel auditor and in the CPU hotplug section the first listing is mp decision. Is that what needs to be disabled?
OK, silly question.. do you know what mpdecision does? do you know what disabling mpdecision does?
simms22 said:
OK, silly question.. do you know what mpdecision does? do you know what disabling mpdecision does?
Click to expand...
Click to collapse
@simms22 good point here. This is good for everyone to know. If you disable mpd without a replacement, you risk all cores not coming back online after deep sleep. Mpd doesn't actually control hotplugging, it controls input boost and onlining of cores.
Sent from my Nexus 6 using Tapatalk
and that's exactly why I disable mpdecision, so I can have all 4 cores active at all times.
buckmarble said:
@simms22 good point here. This is good for everyone to know. If you disable mpd without a replacement, you risk all cores not coming back online after deep sleep. Mpd doesn't actually control hotplugging, it controls input boost and onlining of cores.
Sent from my Nexus 6 using Tapatalk
Click to expand...
Click to collapse
When you say without a replacement what are you referring to? Trying to learn here..
MrMiami81 said:
When you say without a replacement what are you referring to? Trying to learn here..
Click to expand...
Click to collapse
A replacement such as Zen, Mako, Blu_Plug, etc.
Also, (just an FIY) Zen isn't really a hotplug (it keeps all four cores active at all times, unlike Mako, Blu_Plug, etc). It's still lumped in there for some reason.
I highly recommend disabling MPDecision. You know what MPDecision stands for, right? MakePoor Decisions
Face_Plant said:
A replacement such as Zen, Mako, Blu_Plug, etc.
Also, (just an FIY) Zen isn't really a hotplug (it keeps all four cores active at all times, unlike Mako, Blu_Plug, etc). It's still lumped in there for some reason.
I highly recommend disabling MPDecision. You know what MPDecision stands for, right? MakePoor Decisions
Click to expand...
Click to collapse
I'm running elemental x now and I can't find mp decision on kernel auditor. Do you know if it is included with this kernel? If so how would I disable it?
MrMiami81 said:
I'm running elemental x now and I can't find mp decision on kernel auditor. Do you know if it is included with this kernel? If so how would I disable it?
Click to expand...
Click to collapse
i believe its already disabled in elementalx kernel. anyways, you can always use a terminal emulator app, then type..
su(press enter)
stop mpdecision(press enter)
thats all. all kernel apps do is give you a ui to whats already available.
MrMiami81 said:
I'm running elemental x now and I can't find mp decision on kernel auditor. Do you know if it is included with this kernel? If so how would I disable it?
Click to expand...
Click to collapse
Some kernels come with it already removed. Check the features section of the original post in the Elemental X thread or try searching the thread.
I can say from experience that Kernel Auditor doesn't give you access to all of the adjustments in Elemental X. Some features are only accessible through the official Elemental X app, so it might be there, but you can't use Kernel Auditor to adjust it.
Face_Plant said:
Some kernels come with it already removed. Check the features section of the original post in the Elemental X thread or try searching the thread.
I can say from experience that Kernel Auditor doesn't give you access to all of the adjustments in Elemental X. Some features are only accessible through the official Elemental X app, so it might be there, but you can't use Kernel Auditor to adjust it.
Click to expand...
Click to collapse
I just downloaded the elemental x app. I'm gonna go over to the thread now. I appreciate your help

[Discussion/Q&A] Documentation on cpu governors?

I decided to make my own cpu governor, are there any tips, documentation, etc that the android community can help me with? I cannot seem to pinpoint the actual place where the governor scales the frequency up/down.
regards LLJY
http://forum.xda-developers.com/galaxy-s2/general/ref-kernel-governors-modules-o-t1369817
I found this one but may bee there is a better one
addidas_85 said:
http://forum.xda-developers.com/galaxy-s2/general/ref-kernel-governors-modules-o-t1369817
I found this one but may bee there is a better one
Click to expand...
Click to collapse
Not governor parameters, making a governor from scratch
Read Documentation/cpu-freq/governors.txt, near the end it mentions the required functions.
_that said:
Read Documentation/cpu-freq/governors.txt, near the end it mentions the required functions.
Click to expand...
Click to collapse
Thanks, do you happen to know the function for getting cpu load?
_LLJY said:
Thanks, do you happen to know the function for getting cpu load?
Click to expand...
Click to collapse
No, but you can easily find out by reading the code of existing governors.
_that said:
No, but you can easily find out by reading the code of existing governors.
Click to expand...
Click to collapse
Alright, thanks anyways

Over Clocking Kernel

Is anyone working on a kernel to overclock our amazing phone's CPU?
Umm are you trolling?
Really???... Not fast enough for some, I guess! :silly:
tekno4ever said:
Is anyone working on a kernel to overclock our amazing phone's CPU?
Click to expand...
Click to collapse
The way the clock frequencies are done on this phone, the kernel has no control to overclock.
I asked the developer of ElementalX and also checked to see if thermal-engine existed.
No dice. No overclock.
Only GPU overclocking
So there in no known method of overclocking either Snap 845 or 855 CPUs, right? (i mean throgh software/kernel)
I've never seen the point of overclocking especially with latest chipsets
RaduNastase said:
So there in no known method of overclocking either Snap 845 or 855 CPUs, right? (i mean throgh software/kernel)
Click to expand...
Click to collapse
Is not possible, the CPU frequency tables are stored inside something called "TrustZone", basically the bootloader, and no one outside of Qualcomm has the ability and the tools to control or make changes in that area of the processor.
onliner said:
Is not possible, the CPU frequency tables are stored inside something called "TrustZone", basically the bootloader, and no one outside of Qualcomm has the ability and the tools to control or make changes in that area of the processor.
Click to expand...
Click to collapse
Even rooted? ...how very interesting... 0_0
This means not only that we can not overclock (and this must also mean voltage table is ..off the table), but also we can not "set" a certain min/max frequency, right? Let's say i want to have a min/max of 2.8 ghz, it can't be done through kernel
RaduNastase said:
Even rooted? ...how very interesting... 0_0
This means not only that we can not overclock (and this must also mean voltage table is ..off the table), but also we can not "set" a certain min/max frequency, right? Let's say i want to have a min/max of 2.8 ghz, it can't be done through kernel
Click to expand...
Click to collapse
Actually you can. It requires a Kernel that supports Overclocking. As of now there is no Kernel for the 6T that supports CPU Overclocking. Smurf has GPU OC but not CPU. Besides, the 845 is already a beast so I dunno why would you want to OC
I think me and more features will be driven by the chipsets themselves and will use a Trust Zone not accessible from the kernel (like widevine).
What is sure is that many CPU clock parameters are not accessible, that's why only GPU OC is present. This have been discussed in different kernel threads.
And the real question is why OC on those fast CPU, just to empty faster the battery and warm the phone in winter?
Mannan Qamar said:
Actually you can. It requires a Kernel that supports Overclocking. As of now there is no Kernel for the 6T that supports CPU Overclocking. Smurf has GPU OC but not CPU. Besides, the 845 is already a beast so I dunno why would you want to OC
Click to expand...
Click to collapse
You can't overclock the cpu on newer socs period.
RaduNastase said:
Even rooted? ...how very interesting... 0_0
This means not only that we can not overclock (and this must also mean voltage table is ..off the table), but also we can not "set" a certain min/max frequency, right? Let's say i want to have a min/max of 2.8 ghz, it can't be done through kernel
Click to expand...
Click to collapse
Isn't related to root or unroot, It's a limitation set at a lower level, lower than the operating system or the kernel.
You can modify the ramdisk to set the Max/Min frequencies, but those values ​​must be within the stock values ​​of the processor, I mean, you can't create a new frequency, you should use one that already exists.
onliner said:
Isn't related to root or unroot, It's a limitation set at a lower level, lower than the operating system or the kernel.
You can modify the ramdisk to set the Max/Min frequencies, but those values ​​must be within the stock values ​​of the processor, I mean, you can't create a new frequency, you should use one that already exists.
Click to expand...
Click to collapse
Oh, so min/max can be adjusted? That's something at least. Sometimes the CPU assesses wrongly the speed needed to properly run an app (a very CPU heavy one) so restricting the CPU to lower the frequency provides the best performence possible on that hardware.
And yes even a powerful Soc like 845 and even 855 are pushed to the limits by certain apps.
RaduNastase said:
Oh, so min/max can be adjusted? That's something at least. Sometimes the CPU assesses wrongly the speed needed to properly run an app (a very CPU heavy one) so restricting the CPU to lower the frequency provides the best performence possible on that hardware.
And yes even a powerful Soc like 845 and even 855 are pushed to the limits by certain apps.
Click to expand...
Click to collapse
It's not the apps fault, the scheduler is a bit broken in 4.9 thanks to CAF.
RaduNastase said:
restricting the CPU to lower the frequency provides the best performence possible on that hardware
Click to expand...
Click to collapse
Yes and no, OOS applies boosts from the userspace, I mean that although you limit the frequency of the processor, in certain circumstances that limit can "break" (I don't use custom roms on this device, so I don't know about it, but probably the same thing happens).
This is interesting. I want to look. Into tz and see what I can find

Categories

Resources