yashsingh1/xdaforums huggingface dataset:
[HTC Droid DNA] orangechoochoo:
I'm using Trickstermod, it has the option for MPDecision availble so I thought you had it available on your kernel.

Under that option is the Multicore Power Saving option which groups tasks on as few cores as possible. Does your kernel have that option available?
[HTC Droid DNA] crpalmer:
I'm not sure what "multi-core power saving" would mean, other than "yes, really, do unplug cpus when they aren't needed". It's possible to disable my hotplug driver, but you really shouldnt' want to. It's enabled by default and takes cores offline when they aren't needed to save battery.
[HTC Droid DNA] 123421342:
Thats ****ing awesome thanks for writing that because my DNA gets a lot more battery from this compared to other kernels.Do you recommend using intellidemand as a powersaver then? I have cpu tuner to set up profiles so when my screen is off I currently use intellidemand. Does that make sense to do?
[HTC Droid DNA] crpalmer:
Actually, intellidemand really doesn't play nicely with thermal throttling. It sounds like it has a tendency to get stuck at a lower max speed. I wouldn't recommend using it until I have some time to make some changes to it.

In terms of what saves more battery, it depends a lot on what is happening on *your* phone when it's sleeping. For me, I believe ondemand is good because I want to get the work done as quickly as possible and then back into deep sleep because my phone wakes up fairly often (decent amount of email and several anti-virus/security packages imposed on me by my work).

All that said, you're probably fine using intellidemand when the screen is off because it's not going to have thermal throttling issues and your best bet is to try it and see if you can measure a difference in battery.
[HTC Droid DNA] 123421342:
Thanks I will just use ondemand. Is there any reason why you chose bfq as the default and not deadline for io? Some people say its better, some say worse, some say depends. From what I understand deadline is better for most applications?
[HTC Droid DNA] crpalmer:
I like bfq because it tends to have very consistent behaviour and doesn't let a single process swap the system with too many I/O requests.

Deadline seems to benchmark well for android but it was designed as a scheduler for spinning media and tries to reorder requests to execute them with fewer seeks. The worst-case behaviour is that some requests from some processes miss their deadlines and it's completely unpredictable and the reordering has no value for a phone (flash storage).

In normal usage, I don't think any of them make a huge difference though.
[HTC Droid DNA] jeremy46er:
Re: [Kernel] [Mar 16] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.36][hotplug, thermald, e

Is this why in kernel tuner I 'm only able to tune 3 cpu's at times. Because it's smart enough to take a core (always seems to be cpu1) offline to conserve battery. I also was using intelledemand but after reading here I'll try ondemand.
[HTC Droid DNA] crpalmer:
Re: [Kernel] [Mar 16] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.36][hotplug, thermald, e

Yes (replied in the other thread).
[HTC Droid DNA] Hussainally:
Re: [Kernel] [Mar 16] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.36][hotplug, thermald, e

Battery life on this kernel rocks
[HTC Droid DNA] atishpatel2012:
hey, do you think your kernel will work with cm 10.1? (like install cm 10.1 then flash your kernel) or are you going to implement parts of this kernel there since it isn't official anyway?

i'm just asking for future reference..i have ota so can't root yet and cm 10.1 will take a while to finish anyway...thanks :)
[HTC Droid DNA] crpalmer:
It depends how stable CM 10.1 becomes and how far it diverges from the HTC kernel. They have definitely diverged. CM 10.1 is using updated display drivers which, while they work on Viper 1.1.3, don't seem to be 100% compatible and feel sluggish (the kernel log has a lot of errors in it).

When CM 10.1 is truly stable, I will be running it and therefore this kernel will run on it. Until it's stable, probably not. After its stable, I may stop releasing kernels for sense based ROMs if it is too painful to maintain the two diverged code bases.
[HTC Droid DNA] crpalmer:
New versions posted in the first two posts:

1.0.25: Mar 21, 2013: Linux 3.4.37, simple_plug, performance

* Linux 3.4.37

* simple_plug: add a verify mode (every 5 seconds => almost 0 cost) that fixes the state when apps bring cores on/off-line (e.g. kernel tuner).

* rwsem performance improvements

* CAF improvements (correctness, performance) of the power management layer

The BT test version has a wakelock fix from CAF.
[HTC Droid DNA] 123421342:
Re: [Kernel] [Mar 21] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

I updated to the bt test version and using cpu tuner and on-demand with a threshold of 80 I only use 2cpu maximum. This didn't happen with version 21 and the reason this matters is because my phone is sluggish now. Any ideas?
[HTC Droid DNA] dajmanjt:
Re: [Kernel] [Mar 21] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

Crpalmer every kernel release has been flawless... Thanks much. You rock hard core :)
[HTC Droid DNA] crpalmer:
CPU Tuner looks pretty magical and could be doing all sorts of things. Do you have any idea if it tries to hot-plug (start/stop cpus)? It could be fighting with my simple_plug driver (this version changed the driver to take back control if someone else started takings cores online or offline).

How are you determining that it's only using 2 cores?

Can you try disabling CPU Tuner and see if that makes things happier? If it does, I would personally just leave it disabled. But, if you wanted to keep using it

echo 0 > /sys/module/simple_plug/parameters/simple_plug_active

(as root) should disable my hot-plug driver.

Let me know what happens.
[HTC Droid DNA] orangechoochoo:
+1
[HTC Droid DNA] 123421342:
Re: [Kernel] [Mar 21] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

Thanks for the reply. All it does from what I understand is switch governors for different situations like low power or screen off and it shows how many cores are active. It switches between 1 and 2 and my system is slower without it. The sluggishness resolved itself but thanks for your help and excellent kernel!
[HTC Droid DNA] crpalmer:
Let me know if you have more problems with it being sluggish.

The difference that you're seeing is probably 99% cosmetic (and 1% it will be slightly improving your battery usage). CPU Tuner probably brings all 4 cores online when it starts up. Previously I would just leave them on until you created enough load that my driver wanted to have all 4 of them on and then it would be back to normal. Now every 5 seconds it makes sure that the right cores are online.

So, previously it started up all 4 and left them running even though the system didn't need them running.
[HTC Droid DNA] jeremy46er:
First let me say this kernel is awesome, I am having no issues, I flashed the update this morning. I do see in Kernel Tuner that when I first open it all 4 cores are online and after a couple of seconds it only shows cpu 0. I do not need to make many adjustments because I am not a OC'er, however I do run my min values at 192. I need to play with the phone a bit to get all cores online so that I can make the adjustment but once its made I don't need to touch it.

Do you recommend making any voltage changes? I am binned at faster, I get awesome battery life but if I can get better by lowering some voltages I'd try it. Maybe that is something that I just need to figure out on my own.

Great job man I cant wait to see what you do for CM!
[HTC Droid DNA] crpalmer:
I started to explain why you don't need to worry about the other cores, but I think I was wrong. dsbi9938 was pretty sure that you couldn't change per core settings.

From some quick testing, it looks like SetCPU (which is what I use) works fine but both CPU Tuner and Kernel Tuner can somehow get the cores into a funny state.

If you (or anyone else) has weird core problems, you can force all the cores online by running this command from a root shell (via adb):

echo 4 > /sys/module/simple_plug/parameters/min_cores

and when you're done setting the cores, do

echo 1 > /sys/module/simple_plug/parameters/min_cores

I'll take a look tonight/tomorrow and see if I can see what's going on that is actually letting these tools set per-cpu speeds/governors.
[HTC Droid DNA] 123421342:
Re: [Kernel] [Mar 21] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

Cpu tuner has an option to only apply settings on one core. Should I do that for now?
[HTC Droid DNA] crpalmer:
Easiest and most likely to be right is to use SetCPU.
[HTC Droid DNA] jeremy46er:
Re: [Kernel] [Mar 21] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

Thanks I'll give that a try. I used set cpu on my xoom but it seemed a lot of people used kernel tuner here so I was using that with my dna.

Edit: now I remember why I didn't use setcpu on the DNA. It says it's not compatible with my device.
[HTC Droid DNA] crpalmer:
FYI, you need to make sure that Kernel Tuner isn't also setting the frequencies on boot (the default). I didn't realize it defaulted to doing so and it made me think that things were really screwed up...
[HTC Droid DNA] Memnoch73:
Huh? I have it installed and it's working fine. Did you change your DPI??
[HTC Droid DNA] jeremy46er:
Re: [Kernel] [Mar 21] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

Yeah it's at 400, that's crazy that dpi restricts me from a cpu tuning app.

It's all good tho. I'll download it next time I flash a Rom. Then lower my dpi again. I know there's an app that allows you to browse the market and have access to apps even with a different dpi but I haven't ever tried it.
[HTC Droid DNA] Memnoch73:
That's causing the play store issue for you. Need go back to stock.
[HTC Droid DNA] KyleKatastrophe:
MultiDPI play store is available here

http://xdaforums.com/showthread.php?t=1839871
[HTC Droid DNA] t1gartist:
Why is that no version of yours or zarboz kernel when I try to change 2d and 3d kHz it won't stick goes right back to default settings

Kernel tuner is what I'm using btw
[HTC Droid DNA] 123421342:
Re: [Kernel] [Mar 21] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

Setcpu works much better than cputuner thank you crpalmer!
[HTC Droid DNA] jeremy46er:
Re: [Kernel] [Mar 21] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

I forgot how simple setcpu was to use
[HTC Droid DNA] crpalmer:
New versions posted in the first two posts:

1.0.27: Mar 25, 2013: thermald, simple_plug

* Make the previous changes to simple_plug less aggressive about turning cores back off when applications force them online. We now detect that this has occurred and give the application 2 minutes to be in charge before we force the state back to what we want.

* Change thermald default throttling to be slightly less strict.
[HTC Droid DNA] jeremy46er:
Re: [Kernel] [Mar 25] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

Just flashed.27 and put kernel tuner back on. All cores stayed online just like you said. :thumbup:

So far I've gotten the best battery life from .17 version.

Thank you for this kernel!
[HTC Droid DNA] crpalmer:
Just to check, from .17?
[HTC Droid DNA] jeremy46er:
Re: [Kernel] [Mar 25] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

Sorry 1.0.17
[HTC Droid DNA] azndan2:
Hello Mr. Palmer,

I have been running your kernel and it has been fantastic on battery life. Thanks!

One question: I do notice some lag here and there that I don't seem to have noticed on the stock kernel. What settings do you recommend in SetCPU to make this kernel perform more snappy? I am fine with a loss in battery life.

Thanks!
[HTC Droid DNA] crpalmer:
Glad you're liking the kernel!

I use ondemand 1728 MHz max, 192 MHz min and bfq. I don't really experience lag. Is there something that you do that often causes lag?
[HTC Droid DNA] monkboy24:
Re: [Kernel] [Mar 25] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

Hey what Rom are you running bro?

sent from my DNA running sense 5
[HTC Droid DNA] crpalmer:
Re: [Kernel] [Mar 25] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

Viper 1.1.3 while I wait on kernel source to let me use newer version(s) of viper.
[HTC Droid DNA] monkboy24:
Re: [Kernel] [Mar 25] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

Which one of your kernels are just stock with overclocking
[HTC Droid DNA] azndan2:
The most noticeable thing is when the screen has been off for a while, when I turn it on and try to pull the an icon to unlock, the movement of the icon is choppy and it takes a decent amount of time to open the app. But after a few seconds, the phone is generally pretty snappy, so my guess is that the lag I am experiencing is due to the CPU ramping itself up.

So, I think I would like the CPU to ramp up faster, even if this means sacrificing battery life by preventing it from sleeping as "deeply". Hope that makes sense.

How do I enable BFQ?
[HTC Droid DNA] crpalmer:
Re: [Kernel] [Mar 25] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

There isn't one. They are all modified...
[HTC Droid DNA] crpalmer:
Re: [Kernel] [Mar 25] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

Bfq is the default I/O scheduler.

What governor are you using?
[HTC Droid DNA] azndan2:
I tried it with interactive, ondemand, and performance and I was still able to replicate the lag when screen first turns on. I also tried raising my min freq to 486.
[HTC Droid DNA] crpalmer:
Sorry, busy day today. Do you see similar lag with other kernels or is it more lag with this kernel?

I wonder if I don't see the same lag that you do because I have a lock screen password and you don't?
[HTC Droid DNA] orangechoochoo:
I dont have a password and my phone snaps awake. My min is 192 running interactive and noop. The only thing I can think of is the max cpu speed at sleep might be too low for his phone.
[HTC Droid DNA] agentcdog:
Re: [Kernel] [Mar 25] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

I had lag on this kernel with stock settings and just changed to interactive for core0 with noop and 192/17xx. I no longer have lag. YMMV.
[HTC Droid DNA] Cadillac Johnson:
Re: [Kernel] [Mar 25] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

Pretty much the same here, seemed to be just with the most recent update, and only for the first 20min or so, smoothed out after that but interactive/noop/1.67 seemed to smooth it out even further.

On another note, any chance we'll see lionheart and sio or row in a future release? :cool:
[HTC Droid DNA] 123421342:
Re: [Kernel] [Mar 25] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

I'm running 380/1.5 with no problems.
[HTC Droid DNA] Cadillac Johnson:
Re: [Kernel] [Mar 25] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

Yeah the kernel works fine, just wanted to mention that I noticed the choppiness on the .27 release that wasn't present in the .25 release. Even during the boot animation it is noticeable, but like I mentioned it quickly goes away once the kernel settles a bit.
[HTC Droid DNA] KyJelly69:
Re: [Kernel] [Mar 25] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

I'm wondering, do kernels "settle" or is it placebo? Please only crplalmer answer this.
[HTC Droid DNA] crpalmer:
Re: [Kernel] [Mar 25] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

The only meaningful settling in would be post boot (and every boot). There are many tasks that happen at boot but once that's done there's nothing special about the first day like some people believe.

In terms of some lag, I did pull some power management changes from CAF which I may undo for the next release and see if that makes things better.
[HTC Droid DNA] 123421342:
Do you have the fix from qualcomm that fixes the msm_hsic_host wakelock? I have about 13 minutes of this wakelock for a long time now.
[HTC Droid DNA] crpalmer:
Re: [Kernel] [Mar 25] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

There should not be wake lock problems with this kernel.
[HTC Droid DNA] KyJelly69:
Re: [Kernel] [Mar 25] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

Famous last words ;)
[HTC Droid DNA] crpalmer:
Re: [Kernel] [Mar 25] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.37][hotplug, thermald, e

That's why I said "should not be" and didn't say "there aren't ".... :)
[HTC Droid DNA] Zarboz:
Honestly depends on your system setup, Init.d scripts, Startup scripts, initpostboot scripts, how the dev setup the ramdisk and other things having to do with their kernel :D
[HTC Droid DNA] crpalmer:
New version posted in the OP.

12.2: April 1, 2013: linux 3.4.38, lag fixes, bluetooth drivers, cleanup:

* Undo some dubious commits (or extra code included in unrelated commits, what I meant by "early mistakes"). I reexamined every commit in the kernel to decide whether to keep it or remove it.

* Bluetooth drivers are the current CAF msm-3.4 drivers.

* Additional CPU speed and governor information added in /proc/cpuinfo.

* Cleaner patching to upstream linux (see my github repo for the clean upstream patching).

* Linaro -O3 compilation was redone from scratch because there were some problems found by kern3l in the original patches I pulled, I wanted to ensure that there were no other problems so I redid the work myself.
[HTC Droid DNA] Zarboz:
Re: [Kernel] [April 1] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.38][hotplug, thermald,

I want to look at the o3 lol

left you a comment with fix for workqueue.c
[HTC Droid DNA] orangechoochoo:
What init.d scripts are included with your kernel,if any? I want to go through that folder and remove any that may conflict with yours.
[HTC Droid DNA] crpalmer:
I haven't added any so you should be safe.
[HTC Droid DNA] orangechoochoo:
I see some scripts that deal with the kernel, hotplugging, and schedulers, I'm thinking of commenting them out. I don't have any problems with your kernel, I just want to be sure all your tweaks are not changed by something else. What are your thoughts and what other places should I look at to find any other scripts that can change the kernels settings?
[HTC Droid DNA] crpalmer:
Are you looking at /etc/init.d/ or /etc/init.* ?

If you're looking at the init.* files, those are not something that you can modify. If you're looking at /etc/init.d and there are files talking about hotplugging, etc. what ROM are you using? I'm using viper and there are only a handful of files in init.d.
[HTC Droid DNA] orangechoochoo:
Etc/init.d

I'm running Slim SC Hatka.

S98bolt_siyah has a bunch of cpu and gpu settings in it.

Same with this, it includes changes to the governor settings S98system_tweak

***edit: I removed some of those scripts and I got my highest quadrant score with your kernel, 93k.
[HTC Droid DNA] crpalmer:
No idea where that file came from. It's definitely not from my kernel and it doesn't look like it's from your ROM either (I downloaded it and looked at the files in the zip and it wasn't there). Sounds like it would be a good idea to remove it unless you installed some MOD that might have needed it.
[HTC Droid DNA] orangechoochoo:
I'm going to take a look at the rom zip to find the init.d files it installs and remove everything else. There were two zipalign scripts in there too so I removed one of them. One of these days I'm going to ruu to completely clean house, over the years I noticed that wiping and fdr doesn't completely clean things and after a while you end up with a bunch of crap that is duplicative or conflicts in some way.
[HTC Droid DNA] CharliesTheMan:
Re: [Kernel] [April 1] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.38][hotplug, thermald,

You should make a nandroid of the data partition, wipe everything especially system and clean install the rom, then restore your nandroid of the data partition and install your kernel.

You shouldn't need to RUU although it's not a bad thing, wiping system and factory reset in recovery should be done when you flash a rom, and there won't be any remnants.
[HTC Droid DNA] orangechoochoo:
When I had my D3 and D4, doing the equivalent of ruu (sbf) not everything was cleaned out unless I did a wipe of the internal memory first. I would find programs and changes to logwrapper etc made under the previous OS, GB. Sometimes when you want to wile things they're not, and when you don't want them wiped they are. Damn Murphy's Law.
[HTC Droid DNA] t1gartist:
hey palmer new kernel is doing good but mp decision is having a small issue not sure how to fix it but this is the comment made by logcat

"E/MP-Decision( 9460): Unable to open deferrable timer file"

now it can be a few other things if you like ill pull a full copy of logcat so you can see the other errors created by kernel tuner and the sense 5 rom itself but i dont think its anything to do with rom but its possible

https://www.dropbox.com/s/vv4sgazhpfqau3f/logcat.txt
[HTC Droid DNA] crpalmer:
What ROM are you using? I'm guessing the sense 5?

The only ROMs that I have looked at (based on Verizon launch), mpdecision is a binary (system/bin) and not an android application. The boot ramdisk included with my kernel should (and does for me) disable the mpdecision binary. Your logcat seems to imply that you may have an mpdecision running as an application?

Guessing at the error, I suspect that it's looking for magic data being exported from the kernel in /sys. This could the pnpadaptive code I have removed from the kernel (it's not needed after I replaced mpdecision and thermald) or it could be something new that they added in the (unreleased) kernel code.

When you tell me which ROM, I can take a look (or we each take a look) at the ROM to see if it includes a new form of mpdecision and if there is an obvious way to disable it.
[HTC Droid DNA] nev310:
Re: [Kernel] [April 1] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.38][hotplug, thermald,

I tried to flash the newest kernel but my phone wouldn't even boot. I've had allot of problems with kernels. I'm on viper DNA. I'm back on version 1.0.18. it is the most stable for me.

Sent from my Droid DNA
[HTC Droid DNA] jeremy46er:
Re: [Kernel] [April 1] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.38][hotplug, thermald,

Are you s-on? The zip in the op is made for users that are s-off. If your s-on you will need to extract the boot.img from the update.zip and flash it in fastboot or use flash image gui.
[HTC Droid DNA] t1gartist:
I was running sense 5 v 1.0.6 and it's which version I noticed the error in.

I wanted to make a few build prop changes but no matter how little the change was all

Sense 5 versions seem to become unresponsive and no booting so I'm guessing it's Rom cause it's not doing it in 1.0.4 that I can see

So imma say Rom needs to have no decision disabled if at all possible

As the Rom does have a power saver feature that no decisions can and might be apart of
[HTC Droid DNA] crpalmer:
Damn, I hate being wrong, but it looks like I somehow got an outdated initrd.img into my boot.img somehow. I've fixed it in my latest build (1.2.6 which includes CAF updates to lowmemorykiller, apply elkay's hsic fixes from scratch and some slight optimization improvements in addition to fixing the boot.img). Do you want to try this version and see if it fixes it for you:

1.2.6
[HTC Droid DNA] t1gartist:
im flashing it now but my only concern is I could not figure out how it was affecting my phone in anyway accept that the file could not be open because its not there. there should be away to take that out of the rom im sure so it doesnt even look for mp decision at all and if so im going to remove it.
[HTC Droid DNA] crpalmer:
Re: [Kernel] [April 1] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.38][hotplug, thermald,

No need to try to change anything in your ROM. Definitely my problem that you noticed for me.. Thanks!

You're right that it's not having much of an effect. About once a minute it is running a program that very quickly exits. That will burn a little battery, but not much.
[HTC Droid DNA] Cadillac Johnson:
Re: [Kernel] [April 1] crpalmer's [Linaro 4.7 -O3] [Linux 3.4.38][hotplug, thermald,

So.. is 1.2.6 gtg?