yashsingh1/xdaforums huggingface dataset:
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Oh and I also forgot there is a now sched gov (again I know) in the test kernel. It is called pwrutil

Here is a short description. This new governor is based on schedutil and is split into two cluster dependent governors.

A much simpler yet very effective governor based on schedutil. All this changes is the calculation to get the next frequency. Rather than using bit shift to calculate tipping point and what not, we don't use it at all. This is much much more efficient if you use my program called schedutil calculator to calculate what the next frequency is. For example, a load of 25% with a max freq of 2150400 will get 500MHz as next frequency. A load of 50% will get 1GHz as next frequency. A load of 75% will get 1.5-1.6GHz as next frequency. A load of 100% will get 2.15GHz as next frequency. You can see the lower the load, the much lower the frequency selection will be, but the higher the load and the higher the frequency selection is. So it can go from a very low powered state with 50% load and under, to a high performance state from 75% load and above.

Includes a tunable called "utilboost" which is basically a load multiplier - it makes load higher than it is perceived by the governor, thus making next frequency selection higher. Remember utilisation does not equal load. The equation of calculating load is util / max capacity of a CPU (which should be 1024). So 512 / 1024 = 0.5 (50% load).

You can change the utilboost (I wouldn't recommend touching up and down rate limit as that affects how fast or slow it will ramp up or down), which is a load multiplier. The formula is (util + ((util * tunables->utilboost) / 100)) / max where util is the current CPU utilisation and max is the maximum CPU capacity. Let's say if util was currently 512 / 1024 it would be 50% CPU load. If you add utilboost in, let's say a value of 10, it will add 5% higher load than perceived. It's quite powerful, manipulating load will make the governor think it needs to get a higher frequency to meet the new CPU load demands.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] yung40oz84:
I ran this on both Pure Nexus and DU and I have had zero reboots on either ROM, ever.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] CHANGiism:
So far so good with the test version! No reboot during the last 30 hours with it. My configuration is:

Phone: VZW Pixel XL 128gb

ROM: PureNexus 20170317

vendor: NOF27C

CPU gov: schedutil

SELinux: Enforcing (forced permissive with script for sdcardfs)

SDCardFS enabled

NonOC kernel used with default frequencies

Everything default except Readahead at 512kb
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] evilryry:
193 hours up time on version 12 kernel so far. I know newer is out but it has been rock solid stable so why update till I have to? [emoji1] a few releases ago I had over 300 hours uptime but I updated rom build (DU). Been really happy with this awesome kernel. Have been running this exclusively since 2nd release and it's been consistently great. Thanks!!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Dave778:
Is the latest test v a 7.1.1 kernel or 7.1.2 kernel?

I ask because people were mentioning that the latest makes the double tap to wake stock feature more responsive (apparently)
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
a 7.1.1 kernel. I have a 7.1.2 kernel in testing. I will release it this evening if everything goes well with it.

Are you sure it is kernel and not rom dependant?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Dave778:
Disregard my last post...

I am on stock 7.1.2 & double tap to wake is even worse than it was on 7.1.1, sigh.

Will flash this kernel regardless when it goes live

Thanks
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] CHANGiism:
So unfortunately, I just had a reboot overnight after being on test kernel for uptime of about 72 hours. I've attached a log. My settings are still the same as what I've posted day or two ago. Thank you!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bobbarker2:
Just want to know your reasoning, why do you disable zram? It's very beneficial and goes a long way to keep from swapping to disc, which is a pretty substantial performance hit. I believe this kernel has lz4 compression too, which is much more effective than lz0 in terms of CPU Cycles and compression ratio.

I recognize you compensate for this by lowering the dirty ratios but my opinion disabling zram is going to do more harm than good.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Alcolawl:
I should start by saying that the dirty ratio being set to 20 is a typo, I usually set it to 30. My bad.

To answer your question, I disable ZRAM because I don't find it all that necessary. My typical memory usage on this phone is like 2.5 GB max. I'm not what you'd call a heavy user. I guess it's a habit from my Nexus 5X where enabling ZRAM would have a noticeable performance hit at times but was necessary due to its much lower memory capacity.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Ofthecats:
I do the same. I don't need zram for this device, and set swappiness at 1 or 0
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bobbarker2:
Welp like I said it's just my opinion. It's standard in Linux kernel since 2014 and was in staging for a looong time before being merged into stable. It's like downloading more ram at little to no cost in terms of performance/battery. Can't speak to your nexus5x experience.

But I would encourage you to read the documentation on it. It can be found on kernel.org in any version in the dir /documentation/blockdev/zram.txt

---------- Post added at 08:31 PM ---------- Previous post was at 08:21 PM ----------

Now that's just flat out wrong. You're telling your phone to never swap unless OOM if 0, and if 1 you're saying "okay only use swap if you really really really really need to. I'd advise you to do some reading on swapping and what it actually does/means to the system.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
would you please flash the test found here:

https://www.androidfilehost.com/?fid=745425885120722187

this test includes all april and 7.1.2 updates
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Update April Patches

here are the tests for the kernel with the april patches and 7.1.2 changes.

OC: https://www.androidfilehost.com/?fid=529152257862717251

NONOC: https://www.androidfilehost.com/?fid=529152257862717252

is it possible one reports back if the zip works on sailfish as well? :) thank you!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] CHANGiism:
Are these different than the file you quoted me with? The links are different so I would like to know which I should flash in advance. Thanks!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
The one I linked where I quoted you. If it solves your reboot issues I will include it in the April release.

https://www.androidfilehost.com/?fid=745425885120722187
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Alcolawl:
So you're suggesting that I enable ZRAM to give me more memory that I won't use? My problem with ZRAM is that the phone will start shoving **** into ZRAM when there's plenty of regular memory still available. Why would I want my phone to spend the extra CPU cycles compressing and decompressing data from ZRAM when it could just be accessing it in super-fast non-compressed memory?

Dope. Flashing ASAP. Been running 14_4 on 7.1.2 for almost two days now and it's been flawless. No random reboots as of yet. Also gave pwrutil a shot. Seems like a pretty cool idea. I went back to Schedutil on LITTLE and energy-dcfc on Big because I was experiencing some odd slowdowns with the other configuration. I'll have to play around with it more when I get bored at work tomorrow.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
I forgot to add. If anyone is facing a reboot with these two please flash the 14_9test release from the testing folder linked below and see if it solves anything. 14_9_test is available as oc and nonoc as usual :)

https://www.androidfilehost.com/?w=files&flid=163259
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bobbarker2:
Just providing information and documentation for you to choose to do what you want with. For the Android system memory not used is memory wasted. That's the nature of the system to use the resources it has available to its best capacity to provide the best experience. ZRAM is just one of many tools used to provide this.

I run light too and after a couple days of uptime I always get to the upper limits​.. but never hit the roof and almost never have OOM kills.

Anyhow I was just offering opinion and pointing you towards some docs for you to make your own choices. You seem to have taken a defensive position as if you are being attacked. So lets stop here.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Alcolawl:
Woah woah woah lol. I'm sorry if I came off as abrasive or defensive. Please know this was not my intent. I was simply trying to see your side of the discussion and questioning parts of your opinion that I didn't understand. I've read the documentation and I understand what ZRAM does and what purpose it serves. You're totally correct in saying that "In Android, unused memory is wasted memory.", I guess what I was trying to say is that I don't use too much memory to begin with and that my past experiences with it were underwhelming. There were many times with my N5X where things were being crammed into the ZRAM and regular memory wasn't being used that much. Disabling it noticeably improved UX on that device... Until you ran out of memory lol. Maybe I'll give it a shot over the next few days and see how things fair. Just figured with how lightly I use my phone and how much RAM it has, ZRAM wouldn't be necessary.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bobbarker2:
No worries bro, people on this site tend to be hypersensitive so I probably read too much into it. Apologies for the misunderstanding. Alls well that ends well.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bbender716:
Good God there's a ton of options baked into this kernel! So far I've only changed cpu govs to helix_util, scheduler to bfq, gpu boost to low. I have very little insight into some of these newer EAS govs in terms of best choices. I'm also curious wth the maple scheduler is... What are your thoughts for balanced performance/batt?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Have a look at the second post for the EAS govs. :)

I suggest you try energy-dcfc or pwrutil. Helix_schedutil is somehow "old" and deprecated.

Information about the govs can be found on the second post.

Look at my github here for the maple io scheduler: https://github.com/freak07/Kirisakura_Pixel/commit/57a01f123940925f0a7ac0cb831d71850b24f751

you can try it but i suggest bfq, fiops or Deadline.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] yung40oz84:
I was wondering why I keep getting this over and over again in my logs? I did flash schedtunefixnohint to remove boost and I'm using input boost in ex kernel with the new energy dfic governor on both cores.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bbender716:
Fwiw I got a random reboot running energy dcfc and bfq.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
[MENTION=6044187]yung40oz84[/MENTION] I do not get this in my logs i just checked.

Which ROM and version of my kernel are you running?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] yung40oz84:
I'm running the same,no reboots for me so far.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Version of my kernel, ROM version and a log please. Have a look at the third post on how to get it.

Did you get the reboot while using the device? Or the wake up bug?

Because the wake up bug seems solved for me. Didn't have experience a crash for a whole week now
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bbender716:
Sorry. 7.1.2 stock, latest version as of yesterday, v14_9. I'll try to pull a log.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
What happened? Did it reboot while you used it or didn't it wake up?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bbender716:
I just looked down while it was on my desk and it happened to be on the Ram dump screen (usually happens when interrupting a reboot in progress when trying to go to recovery).
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] yung40oz84:
I am running the latest 14_9, Not the test one. Pure Nexus rom. I flashed schedtunefixnohint, should I try the test version? Which are you running?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
A new one I haven’t posted yet.

Here is a link:

https://drive.google.com/file/d/0BxbxiBXaZVu-eGJMUUZvNHNxNHc/view?usp=drivesdk

Its an oc kernel so beware if you know your soc cant handle it.

Will push changes to git once I can say it is stable. Getting late here.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] freddienuxx:
permissive

is this permissive kernel as well thx in advance
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bbender716:
Running fine here with pwrutil, maple, low GPU boost
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
That's the fastboot screen you refer to i think. I never had this one. So there is not much i can do without a log.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
This kernel is enforcing by default. Look at the faq on the op. There is a script to set the kernel to permissive on boot.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] CHANGiism:
I am on this test kernel the last 3 days and I have not rebooted since! Good sign!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Update to 0.14

Hey guys and girls,

Update time again. This is a pretty big release, it includes new features as well as some fixes. I hope I have fixed all reboots. So far the kernel is rock stable for a week.

Changelog:

- Added April Security Patches

- Updates to Schedutil, Sched, energy-dcfc

- Introduced a new EAS governor called pwrutil <-- more information on the second post

- Some upstream patches

- some more crypto patches

- updated wakelock blockers

- for other things look at my github

It is still advised to flash the schedtunenohint zip.

more informatin can be found here:

https://xdaforums.com/showpost.php?p=71502126&postcount=241

the link to schedtunenohintzip is here:

https://drive.google.com/drive/folders/0B4tnYt16-NAULXZESmE4VFRKTTA

and finally the link for the new kernel:

OC: https://www.androidfilehost.com/?fid=817550096634760472

NONOC: https://www.androidfilehost.com/?fid=673368273298945715
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] DaveHTC200:
Awesome, thank you!

Are we able to flash without root, as even with just fastbooting the zimage it wouldn't boot!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
honestly I don’t know.

I know now that flashing the zip and not flashing root is not working correctly. It is due to our pixels, the rooting method and the anykernel zip not working 100% correctly in devices environment.

Osmosis (anykernel dev) and Franco are working hard to fix it. Once we have a correctly working anykernel zip we should be able to flash without rooting afterwards. For now please follow the instructions in the op.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] DaveHTC200:
Thank you for your answer, and I'll follow instructions.

I only asked due to other kernels being flash able without root, however sounds like it's just a matter of time :svetius:
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] yung40oz84:
When I flash the schedtunenohint zip that's when that error I posted was happening. I'll try again. When I flashed the new zip despair made, the scedtune10 or whatever it went away.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Is anybody else experiencing an extremely fluid ui on the new April 7.1.2 update and kirisakura 0.14?

I am using schedutil, maple IO, CPU and GPU OC, gpu boost to medium.

Sched_migration_cost_ns set to 0.

And and schedtune interaction hint completely disabled :)
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] 水攸月羽:
Thanks for your great kernel update!

Will try the same settings after next PN update(7.1.2).

In my opinion, flash the kernel without schedtunefix always have the best smoothness(due to the high boost) and some noticeable fps drop appears in some apps after flashing schedtunefix. I've tried all schedtunefix zips and turned on touch boost, but non of them can achieve same smoothness as stock schedtune. However, you'll get better battery life if you use schedtunefix(in my case, 6h SOT vs 7h SOT).
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bbender716:
FYI, I know Despair had to revert/sdcardfs commit to get rid of crashing. I experienced the same on this kernel with sdcardfs enabled. You may want to check it out :good:
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] zetsumeikuro:
Unless I am blind I have been probing through options in EX manager trying to find where to disable schedtune interaction hint. Or would I need to manually add a specific line under user settings? Thanks!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] drdrewdown:
Flash the zip (read the op)
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] zetsumeikuro:
I did read the OP and already flashed the zip. I was confused and thought it was some other tweak.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
No you didn’t experience exactly the same reboot because I didn’t add the newest sdcardfs commits into 0.14, which caused issues for despair. But thanks for the hint :)

Just curious... On which version did you experience the crash?

And did you get a log? Id like to take a look at it.

I am running 0.14 now for a week and didn’t have a single reboot. Sdcardfs enabled or disabled does not make a difference, I would call it stable now.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] CHANGiism:
Running 0.14 nonOC, had a reboot last night. Please see the log attached. Using schedutil, no boost, everything default.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Did you take the log immediately after the crash?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] CHANGiism:
Well I took the log after I woke up in the morning when I saw that I had to retype my password to access the device. Nothing in the log?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Just had a quick look but didn’t find something no. But the one you took before was very good ;) so thank you again for the effort! :good::highfive:
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Alcolawl:
Got a random reboot while driving, didn't touch it at all afterwards. Zipped up the log file as soon as I got home.

Attached.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] anomalous3:
I've also been experiencing random reboots, and looking at most of the other kernel threads it looks like others are as well, the common thread seems to be in the implementation of sdcardfs. I think we just started seeing it earlier on this kernel because new features are ported sooner.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] kkeith:
I haven't had a random reboot though, I've enabled sdcardfs, running 0.14 OC on RR ROM. My phone has been Rock stable, not one FC or reboot
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
May I ask what rom you are on? Still stock 7.1.2?

You have errors I never seen on mine. I am running DU 7.1.2.

Maybe it is time for a clean flash for you. I see why the phone did reboot for you but you had a lot of errors beforehand, I never saw on my own logs.

Do you have GPU OC enabled? Maybe try without GPU OC if so. I want to rule out every possibility.

I don’t think these are caused by sdcardfs.

Maybe the updated EAS commits are somewhat to blame and it comes down to a different mix of firmware, roms ( los, aosp and stock).

I had now no reboot for nearly two weeks since I tried to fix all reboots I could gather from the thread.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
I will look into it but I won’t promise anything because I have to research how to do that and I fear the pixel is not your anyday device. Maybe I will ask on of the other kernel devs for help.

is flashing via fastboot that much of a hassle to you?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
so. Is there any feedback here? Gpu oc seems to work fine for me. Anyone else has problems with it?

Performance when setting the governor to schedutil is also superb for me.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] 557953:
/i had a go a few days back and all seemed very good, but it wasn't latest version! I will try the up to date version in next few days tho :)

I have to agree with above, to be able to flash via TWRP would probably help popularity of the Kernel, although fastboot isn't hard, it still requires a PC, a cable, and typing commands, with a .zip it's reboot flash reboot.

People are lazy lol me included!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Reechings:
It's not a huge hassle but to be honest I just don't hook my phone up to my computer that often and would prefer to not have to as I flash other ROMs and updates fairly often.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Update

Kernel is updated to 0.4_1

- Kernel is now a flashable zip - I updated the instructions in the OP

- More performance tweaks and upstream commits

Download is here

https://www.androidfilehost.com/?fid=529152257862703462

and in the op
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] 557953:
Great lets see how it runs with RR!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bbender716:
I've been running it great with RR. :good: I'll try to grab batt stats. Other than that, have you looked at some wakelock disablera like ipa_ws that Franco disables? Thanks again!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
Update

Kernel updated to Version 0.5

Some big changes here:

0.5

- add Slimbus OC <-- Increases Audio Quality

- Various crypto Patches

- More Patches that my help with Performance

- added wakelock Patches

- added a few alsa Patches

Download is here:

https://www.androidfilehost.com/?fid=745425885120708450

and in the op
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] DaveHTC200:
Amazing kernel! Thank you!!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] zaksimmermon:
Do you think you could tell me what I would need to do to get this running on the regular pixel? I know you're probably busy so I could definitely try doing it myself, if you wouldn't mind helping me out?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bbender716:
Nothing. It will work on sailfish fine.

---------- Post added at 02:09 AM ---------- Previous post was at 02:07 AM ----------

Any way you could add sdcardfs support that Sharkey has?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] smallsmx301:
Is there a noticeable difference in audio
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] TheNewNEXUS:
Good job m8! This is good work for a new kernel. Already seeing a difference in performance and audio. Adding sound control options would be great because lowering headphone audio gain is the first thing I do on any kernel. The static hiss in some cases is eradicated. Other than that, everything is a go.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
I don’t have the regular pixel so I don’t know if I can support it. I definitely not merged a commit that added wake gestures to also work on sailfish, I recall.

I can merge the commit and if you can test, maybe I can bring it up on sailfish forums too.

Or maybe if I think we are ready to have a big release I just update it for sailfish less frequently.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] zaksimmermon:
That sounds good to me! I just downloaded the flashable zip so I'll get that going and report back.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Freak07:
yeah good idea :)