yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
I didn´t write a new lmk. Á few mechanisms from a newer kernel base are backported to our 4.4 kernel base.

It´s not possible to put in more apps in the available RAM on the Pixel 2 XL than the 4GB of RAM allow. There is a problem on stock pixel 2 xl that the phone hangs for quite a while when a new app is opened up and RAM must be freed! That issue is (it appears to me so after extensive testing) fixed on 4.1.1. Previously I sometimes faced a hang when opening youtube, and doing something RAM-heavy beforehand! (that was my reproducible case, which I could trigger quite easily)

I guess 4GB is a limit you reach quite fast the way Android uses RAM.

As to other phones. There are certain "tricks" to enlarge the available RAM. One of these is ZRAM. It´s basically virtual compressed RAM sitting in the actual RAM.

Read about it here to get a short overview.

Googles uses ZRAM of 512MB on the pixel 2 xl. I completley disabled ZRAM intentionally as ZRAM needs CPU Power and it´s just more effecient to kill a process here and there than to use ZRAM on a Phone with 4 GB. As ZRAM is slower than RAM. But this is the case for this kernel since the beginning.

You can play with the OOM values in EXKM if you do a bit of research. That way you can fine tune it for your specific use case. But the defaults are quite good for the majority of users :)

hope this helps :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Valeriuz:
Thank you. Great explanation
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] xFirefly93:
Check your PM:s when you have the time for it :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Already replied :svetius:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] :
Shedtune changes

Why it isnt possible to change value /dev/stune/top-app/schedtune.boost ? Stock value is 50 but if i try to set it lower,, for example 25 ,, it will revert to stock "50" right after change.. Am i missing something ? :(
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
The stock power Hal changes the value to 50 as soon as you touch the screen! This is hardcoded and rom side. That’s why you see 50 after applying this in EXKM for example. Because you have to touch the screen to set the value.

the mechanism is one of the reasons why the pixels are the smoothest android phones out there. Wouldn’t recommend to touch this :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] :
Thank you for explanation... still running Kiriskura on another - custom ROM, everything is fine... battery life is perfect :good: :fingers-crossed:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
“Stock” power Hal is also included in all custom roms as far as I’m aware of. so you’ll get that behaviour on all roms you can flash for this device :)

Great to hear it’s working fine for you :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Psych0t1c20:
I flashed this kernel (8.1) after flashing aicp and I'm having apps randomly force close. I've noticed this happens after flashing a different kernel other than provided in roms, so I'm curious as to what I should do to fix this.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Psych0t1c20:
Here's a log cat of magisk randomly crashing.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Sorry but this is not helpful.

If you flashed the latest kernel release on an Android 8.1 rom and face issues I cannot help you. It’s made for 9.0 and I cannot support 8.1.

Also I cannot tell from your post what kernel you flashed or which android version you’re on.

The magisk crash has nothing to do with the kernel as far as I can tell.

Furthermore, for kernel debugging you need to collect a dmesg too! A logcat, especially a filtered one, is not useful for kernel debugging.

Sorry but I cannot help you at all with the information you have provided. And I have to tell you the same that was replied to you in the flash kernel thread...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
I also found this a very interesting interview of 2 google employees.

https://arstechnica.com/gadgets/201...sts-tracks-and-improves-android-battery-life/

They specifically claim to much ram is not a good idea. forgot that to mention in my last post. But that’s probably the least interesting thing you will find in that interview :)

:svetius:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] greyhd:
Looking forward to trying out your new builds.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Ariac Konrel:
Wew, now I am excited.

Thank you for the detailed post on everything, it was very informative!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Update to 4.4.0

hey guys and girls,

I hope all of you had and still have a nice weekend. :)

So what to expect in this new release.

There is a little surprise I didn´t lose a word about yet. I managed to completely backport the RCU implementation from the 4.9 kernel!

Have a read on what RCU is here.

This link provides even more information :)

As already posted RAM management is improved by using a patched up ZRAM implementation as well as a new compression algorithm.

Linux stable upstream to latest 4.4.162.

Upstream patches from kernel/common. Improvements from CAF.

Also picked in a few EAS patches from the pixel 3 kernel.

A few changes from [MENTION=4800121]Sultanxda[/MENTION]. Big thanks to him!

Also enabled laser sensor from camera back on. It was accidentally disabled previously.

Changelog:

- Upstream from 4.4.159 to 4.4.162

- some patches from kernel/common for loop device and usb gadget

- CAF patches for IPA, kthread/smpboot, AIO,

- EAS patches from Pixel 3 source

- ZRAM improvements and new compression algorithm

- Backported RCU from 4.9

- enabled laser sensor from camera back on

- disable frame pointer and align linker sections (thanks to [MENTION=4800121]Sultanxda[/MENTION])

- CPU and DDR bus freq to max when pixel launcher becomes a top app (thanks [MENTION=4800121]Sultanxda[/MENTION])

For further details please take a look at my github!

Download is below :)

Download: https://www.androidfilehost.com/?fid=11410932744536990777

or following the link in the op to the correction version

Have fun, enjoy the kernel and your phone.

If you like my work please consider a donation.

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee: http://paypal.me/freak07
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] EstiR86:
Wow this is great! I can definitely hold more apps in RAM compared to other kernels!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] KHANrad_SIN:
To update can I just dirty flash (don't need to reflash stock kernel) if I'm coming from Kiriskura version 4.1.1 correct?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] greyhd:
Phone feels more responsive. Thank you again for the continued support.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] i42o:
Thank you for the update, runs fluid. Awesome work
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Yes that’s correct :svetius:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
That’s great to hear! Enjoy :svetius:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ilal2ielli:
How about if the custom ROM I'm using has Flash Kernel built inline?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] veetoe:
I dirty flashed over with no problem.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] darkoj2007:
Have not used this kernel until now but I must say I am impressed! Very little usage while screen is off, smooth, stable simply satisfy my needs and really really postive in all areas. thank you dev :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] trantiendat3004:
waiting new kernel for htc u11 :fingers-crossed:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Reechings:
What rom you using? I've been burnt before trying to flash this kernel on existing setup and eventually having to flash factory image with internal storage wipe to recover. Thanks
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Donric13:
I was on stock with sultans kernel. Flashed boot.img from actual stock image, then magisk,, then this kernel and magisk again. All fine no data loss and all magisk modules running (no reflash of magisk modules).
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] veetoe:
I'm using latest liquid remix which has flash built into the rom. Flashed this and magisk in same twrp session and so far so good.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] WillowTree:
Anyone running this kernel with pixeldust ROM? Because everyone time i flash this kernel i loose root. So i either have to flash root or have this kernel. Wierd
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Shamestick:
Why not just flash magisk after installing the kernel?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] WillowTree:
I tried doing so, same issue. I have the kernel but no magisk.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Donric13:
Maybe install magisk.apk after. Sometimes the app doesn't install.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] WillowTree:
I did and i checked with root checker. Nada :eek:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] greyhd:
What version of the Magisk zip are you trying to install?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] WillowTree:
Tried 17.3/17.2 and 17.1
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] greyhd:
Try 16.0 and then upgrade from there.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] greyhd:
I just got mine to work using 17.1. Flash it then install the Magisk manager apk and you should be good to go.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] WillowTree:
Are you using pixeldustROM?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] greyhd:
No, I'm on stock ROM
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] WillowTree:
And i am on custom ROM (pixeldust). Maybe that's why
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
I didn’t try that rom yet. Does it come with root built in/ any other root solution that’s differing from the other roms here?

Also are you using the latest twrp?

Fastbooted or permanently flashed twrp Zip?

Flashing the kernel and directly afterwards flashing magisk should work fine. do other kernels work fine with that particular rom?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
New build with November security patches will be out tomorrow! Wasn’t at home the whole day. I hope you can cope with the small delay :highfive:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] WillowTree:
I appreciate the response!

No it does not come with any built in root, only built flash but that shouldn't be no problem.

Yes i am using the latest twrp and i have permanently flashed it.

I've done both ways, problem comes up either way. And I've been using flash/ElementalX/sultan kernels without any problem. Only met this problem after re-flashing the ROM from sultan to flash your kernel.

PS: thanks for the hard work! :victory:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
did you do a reboot between dirty flashing rom + twrp zip?

And afterwards my kernel zip plus magisk without a reboot?

Do you get any errors while flashing in twrp?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] WillowTree:
Yes, I did. Then i checked so that the rom built-in kernel was installed instead and went ahead to twrp to flash yours and magisk.

Yes. But I can merely have your kernel OR magisk installed on my device, not both.

No i did not get any errors at all. Which makes it so wierd.

If it is too much trouble I thought of updating to November.img and go ahead to another ROM and hope that it supports your kernel with root.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Update to 4.5.0

hey guys and girls,

it seems the zram zstd backport is stable for all of us. I faced no issues and nothing was reported here. So it will stay in the kernel as memory management seems to be improved.

This release has a few CAF patches and the November Security Update in it. A little EAS fixup and a few new commits from [MENTION=4800121]Sultanxda[/MENTION].

Sorry it took me so long but I found no time to release it.

Changelog:

- November Security Update

- Caf updates

- Patches to CPU Input Boost (thanks to [MENTION=4800121]Sultanxda[/MENTION])

- Pixel Launcher Top App boost time increased to 1000ms (also thanks to [MENTION=4800121]Sultanxda[/MENTION])

For further details please take a look at my github!

Download is below :)

Download: https://www.androidfilehost.com/?fid=11410963190603842255

or following the link in the op to the correction version

Have fun, enjoy the kernel and your phone.

If you like my work please consider a donation.

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee: http://paypal.me/freak07
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] greyhd:
Thank you for the continued support. The phone seems more responsive with apps opening up quick.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pa.pn2:
Nice Kernel so far.stable and smooth.very responsive and bat life seems to be good as well.good job
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] inzaghi75:
Can I flash this kernel over Sultan?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
yes don´t forget to flash magisk afterwards :)

in case you face issues, flash the boot.img from factory image first. but I don´t think you will :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pa.pn2:
Did u find anything in the logs concerning the reboot?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Yes I can see the reboot. It’s the same Nathan was addressing with his fixes. I’ll send you a pm with a test build this evening or tomorrow if you don’t mind. :svetius:

Just a bit curious as I never had this reboot in half a year now.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Gordietm:
I also just had my phone freeze. Not a reboot, but had to reboot to restart the phone. Sorry, I don't have a log.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Benjamin_L:
Freeze and reboot yesterday too. No log yet, changed kernel as I need my phone unfortunately ;)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pa.pn2:
No problem dude.take your time
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Pre Release Post for 4.5.1

hey :)

this is probably the next release. I will write a release post tomorrow or the day after.

it would be great if [MENTION=2740774]pa.pn2[/MENTION] , [MENTION=3249877]Benjamin_L[/MENTION] and [MENTION=4840775]Gordietm[/MENTION] could especially test this release. I was never able to reproduce or get this panic.

the release should have the fixes for the panic included (thanks to [MENTION=6842057]nathanchance[/MENTION] ). it also has upstream to latest 4.4.163, some patches from kernel/common and a few other commits as well.

I already pushed the changes so feel free to take a look at my github.

Download:

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

have fun and enjoy :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Gordietm:
I flashed the new build, no issues. But the freeze that I had was a one off and I've only been on this new build for a few hours.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Cuancena:
I had my phone freeze and force restart about once a day since 4.4.0, just to add to what's going on here. I initially dismissed it since I recently chucked my phone down the road... It seemed plausible that it could be my fault. So far, it hasn't happened on 4.5.0, but I haven't been using it for long enough to tell. Thank you for the quick response to the issue, though. I'll probably flash that test build when I get home.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
That would be very much appreciated!

Also if it happens again ( fingers crossed that it doesn’t) just pull a ramoops. It’s really not hard just a matter of seconds after the phone boots up.

https://github.com/nathanchance/Android-Tools/blob/master/Guides/Proper_Bug_Reporting.txt
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] cjrivera04:
I've had no reboots or freezes on 4.5. I don't know if this matters but I'm also on Magisk canary build. Latest kernel has been great for me.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Update to 4.5.2

hey guys and girls,

as already announced here is the new release which included the fix for the crashes some people reported.

it´s upstreamed to latest and has some more patches to the ZRAM driver.

Some other small patches are also included!

Enjoy the release, I think it´s a great one and this kernel has now reached a milestone of stability and performance!

Changelog:

- Upstream to 4.4.163

- fix for the crash that some people were experiencing

- add back overflow changes as they were not the cause of the reboots

- update to sdcardfs

- small patch to ion

- important little fix for zram

- some upstream patches to zsmalloc

For further details please take a look at my github!

Download is below :)

Download: https://www.androidfilehost.com/?fid=11410963190603845726

or following the link in the op to the correction version

Have fun, enjoy the kernel and your phone.

If you like my work please consider a donation.

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee: http://paypal.me/freak07
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Gordietm:
https://drive.google.com/file/d/12fod1YNyyNaRRwBGrT4F4-7wJx6gw9xb/view?usp=drivesdk

Just had a freeze and reboot again. I was using the Unified Tuning Script, so not sure if it's the kernel or a combination of the two. Hoping that you can tell from the ramoops file. Thanks

The ramoops file is attached above.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
did you force reboot the device with long press power + vol down?

doesn´t look like a kernel panic to me no. Might be caused by something else. It´s definitely not the reboot I fixed were a logfile was provided earlier.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Gordietm:
Yes, I had to force reboot it, the phone was stuck.

Could it have been that tuning script?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] def-g:
Had the same issue. Phone shut off. Had to hold power button awhile to hard reboot it. Running unified script also.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Gordietm:
Must be that script. I've just deleted it and I'll if it happens again.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Could be. I don’t know exactly I don’t use it. I can tell you it was no kernel panic from what I can see.

With my kernel or a different one?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] cjrivera04:
Latest kernel is running fine. No script or other frills here.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] def-g:
Your Kernel. Latest version.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
yes same for me. For a few days now.

hm then it might be something in the script. Maybe some memory tweaks? If it freezes could be related to running out of memory.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pa.pn2:
Same here.kernel is fine.i remove the script.bat life and snappiness is good enough without
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pkgnex:
You could always try my script. I doubt it will cause any issues because it's not as "invasive" as xFirefly93's, and honestly the few things that make any subtantial performance or battery difference on modern devices are in both scripts.

I've not had any reboots, and I run my script (of course).
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Gordietm:
Ok, I'll give it a try, thanks.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] greyhd:
Running the latest kernel with no script and still getting 7 hrs of SOT. Phone is responsive and stays cool.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] andrewwdai:
Had one freeze in the morning. Other than that it is good work... Just a note about root: If you flash the kernal after magisk, the root won't work. However, it apparently hides the unlocked bootloader, therefore SafetyNet check passes.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Gordietm:
We're you using one of the scripts or just the kernel alone?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] andrewwdai:
I flashed kernal via twrp. I tried to flash kernel first and then magisk, SafetyNet won't pass.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Shamestick:
[MENTION=3428502]Freak07[/MENTION] Are you still considering changing the GPU clocks back to stock (or at least displaying stock values since they may not actually be getting overclocked?) based on your comment exchange with flar2? I didn't see it in the changelogs or GitHub, but it had sounded like you were going to revert it. Thanks
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] marcmv:
Could be a module issue. Disable all your magisk modules and reboot. If you pass then enable them one at a time until you find the one that is making you fail. For me it was DNSCRYPT 2
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] andrewwdai:
what month of security patch you have?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Cuancena:
My phone is continuing to freeze and reboot randomly. I just had my second freeze on 4.5.2 today. Here is the ramoops you requested that I send if something were to happen again: https://drive.google.com/file/d/18IWgV_E7QxpwE3HaIed1otc1hUsPGWV6/view?usp=sharing

Thank you for all the support and hard work to get to the bottom of this issue!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pkgnex:
More specifically, were either of you using either my kernel tuning script or xFirefly93's unified kernel script at the times the freezes / reboots happened?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] andrewwdai:
No. I just flashed the factory image, install twrp, flash magisk and flash the kernel.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
If flashing kernel and magisk afterwards results in broken safety net you probably have some other issues going on on your phone.

Could be a magisk module or some other mod most probably.

Nope I didn’t revert it as I still wasn’t able to find any reference/documentation on the situation.

Initially I tried to overclock the gpu to see if it would make a difference in a specific game from playstore which proved to be a very good benchmark. With the slight overclock I got 2-5 higher fps average when completely maxing the game out. I was able to reproduce that a few times. That’s no hard proof but it was something.

I’m still undecided. Could be also me just wishing for 2-5 more fps and it suddenly happened due to unknown factors.

Thanks for the log!!

Puh I never saw something similar. Are you on a custom rom or stock rom?

If that happens frequently it would be great if you could reflash and make sure that it still happens?

I didn’t saw a log from [MENTION=7151487]andrewwdai[/MENTION] so I don’t have a clue if it’s the same reboot cause or something else happened. If safety net breaks after flashing just kernel plus magisk there might be other things going on.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] marcmv:
I always keep up with the latest. But I found this issue a few months ago when Magisk was upgraded. There was some compatibility with older modules and that caused safety net to fail
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] rodcpierce:
I'm currently running this kernel and haven't had a single issue yet. It's not as quick to open apps and such as Sultan, but it's been stable for the last 24 hours or so. I'll continue to test it and report back.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] greyhd:
I am not sure how others are flashing the kernel, but I have not had any issues. I flashed the kernel then Magisk, no root lost, no magisk issues, and I pass safetynet. Great work [MENTION=3428502]Freak07[/MENTION]