yashsingh1/xdaforums huggingface dataset:
[Nexus 6  Original Android Development] Custodian:
Bbedward do you have any recommended settings for this kernel?..
[Nexus 6  Original Android Development] michmeister:
Do I have to enable this BFS? IS THE BFQ scheduler the same thing? I'm confused as to what and how we enable.

---------- Post added at 03:09 PM ---------- Previous post was at 03:08 PM ----------

In synapse there's a setting for vibration
[Nexus 6  Original Android Development] bbedward:
/sys/vibrator/pwmvalue

Will allow you to set a value, either in an init script (echo val > /sys/vibrator/pwmvalue) or most of the kernel apps should support it. I know kernel audito, trickster mod, etc should work with it. I think value ranges from 0 to 127.

No it is already in, cannot be changed while system is running. BFS is a CPU/Process scheduler. Handles how all all processes/tasks get done essentially. Typically there's lots of factors involved: waiting for I/O requests, preventing tasks from not getting done, handling short tasks vs long tasks, avoiding one from never getting done due to these waits, making sure all CPUs are busy doing work, etc.

I'm pretty happy with stock. Haven't seen any concrete benefits to using a different I/O scheduler (they all seem to be limited by the physical abilities of the eMMC, rather than the I/O algorithm itself). I don't see any particularly strong reason to change any of the memory settings (swappiness, VFS Cache pressure, Dirty/Background ratio, min_free, etc) because the main reason anybody has done this in the past was to maximize caching and adjusting the memory killer sensitivity. But with 3GB of ram i don't see any real benefit in adjusting these. Upping readahead could speed up I/O - but hard to measure any real changes.

So in short, I recommend stock :p but feel free to play around with stuff.
[Nexus 6  Original Android Development] michmeister:
I have tried every kernel with my rom (benzo) and this kernel gives me the best results by far with stock settings.
[Nexus 6  Original Android Development] Xileforce:
Hehe, I prefer to ride on the bleeding edge until I fall off. Then I gotta fix everything :/ BFS is definitely much improved over CFS imo. It seems more efficient in theory and in practice I'm getting not only better performance, but better battery life as well. Win win lol. And I really like the way you have your git setup. Its always fun to see if a new experimental branch has popped up for me to break stuff with :D I'm definitely going to be recommending zen to any of my users who wish to have a similar but more stock experience!
[Nexus 6  Original Android Development] lainemac:
Got any ideas where the freezes are coming from? I love this kernel and I want to use it again!
[Nexus 6  Original Android Development] purian23:
What was the last build you ran and was it a constant?

I got rid of light flow for awhile testing. I haven't had a single reboot or freezing since Zen9+ which was a tester after the actual release.

I'm running my own modified stock rom, cleanly installed using fastboot, I've had no issues there :cowboy:
[Nexus 6  Original Android Development] rebretz000:
Modified stock ROM you say..... That you made.......
[Nexus 6  Original Android Development] purian23:
LOL you always catch me here! It's only very slightly modified as in really just debloated to my liking with ZenKernel for now :)

Nothing special here I promise. I'd still recommend CleanROM any day of the week from [MENTION=426561]scrosler[/MENTION]'s vast amount of experience into a clean modified stock rom :good:
[Nexus 6  Original Android Development] otisman:
Pretty modest considering this beast of a kernel your involved in must be sick
[Nexus 6  Original Android Development] ttabbal:
Had an overnight crash. I don't know if it's related to the kernel, but if it is, hopefully the logs help.
[Nexus 6  Original Android Development] bbedward:
https://www.dropbox.com/s/ono6uobdu8j0fw9/13.img?dl=0

Test image with newest BFS changes + VMA cache stuff from upstream.

https://github.com/bbedward/ZenKernel_Shamu/commits/sched_upstream_bfs_gc

There is other stuff that I'm looking at for the release, but these are the ones that will have any affect on performance or battery so I'd like to see these tested.

Thanks,

B
[Nexus 6  Original Android Development] omvir:
Great! Does this include the changes to make it worth with CM 12.1 again?
[Nexus 6  Original Android Development] bbedward:
Try this one https://www.dropbox.com/s/m25s96sr05q6lan/AnykernelzenTest.zip?dl=0

I can't keep up with all the changes cm and other ROMs are doing to the ramdisk [emoji14] , I will just make an anykernel for people to use who are on these ROMs.

I used the any kernel but didn't verify to make sure it worked because the kernel in it is the same one I'm already on [emoji14]
[Nexus 6  Original Android Development] Xileforce:
Every time I refresh your github, I swear a new branch shows up lol. Great work yet again.
[Nexus 6  Original Android Development] bbedward:
https://github.com/bbedward/ZenKernel_Shamu/commit/ad7dd6163c7892395b5ce31dc402359dd49f8605

Is possibly a performance regression but it was reported lag on a hot turbo charger so I'm not sure. For me I haven't noticed anything.
[Nexus 6  Original Android Development] Xileforce:
Interesting. I'll keep an eye out then. My testers don't hold back when it comes to lag so I'm sure I'll hear about it...
[Nexus 6  Original Android Development] omvir:
Works!
[Nexus 6  Original Android Development] bbedward:
Good to know. I will just add a 3rd download for this on zen13. I don't wanna ditch my ramdisk entirely for consistency - but it's probably better for cm or chroma or any other ROM users to just use the ramdisk they provide.

That one still replaces the fstab though to disable encryption and support f2fs.
[Nexus 6  Original Android Development] omvir:
Thank you :). I was wondering if by using anykernel format, there is any loss of benefits that your kernel provides?
[Nexus 6  Original Android Development] bbedward:
Most of my changes are related to custom ROM compatibilitycompatibility, and selinux stuff for certain applications :p , aside from the f2fs and no encryption which the any kernel should add anyway.

But consistency is good if someone is coming from something like lean kernel, because I don't know what exactly will work with lkconfig if people will try to use it.
[Nexus 6  Original Android Development] bbedward:
The regression in the 13 test is real

https://github.com/bbedward/ZenKernel_Shamu/commit/ad7dd6163c7892395b5ce31dc402359dd49f8605

But I think its just the pre-requisites that were part of it, which after a second look aren't even needed.
[Nexus 6  Original Android Development] Xileforce:
I'm assuming reverting just that commit would break that branch? I haven't merged yet, since I'm not home.
[Nexus 6  Original Android Development] bbedward:
No reverting it is fine, also need to revert the cpufreq: commit that came after it.

I'm testing without the other cpufreq changes though and will push it up soon if that's the issue.
[Nexus 6  Original Android Development] Xileforce:
Roger that, I'll just wait then.
[Nexus 6  Original Android Development] bbedward:
resolved*
[Nexus 6  Original Android Development] Mauijpm:
Had a RR about an hour ago on the 13 test kernel - Here are the PStore files: https://www.dropbox.com/sh/lynytypad5cw13u/AABndNyNgpSk0rFP3Z1jRgUja?dl=0

Thanks!
[Nexus 6  Original Android Development] bbedward:
Try this one:

https://www.dropbox.com/s/mbi1499pp96c2s7/14.img?dl=0

This may be related to the performance regression. If not it is caused by the LLC cpumask stuff which I can revert. But the changes in the 14.img are relevant.
[Nexus 6  Original Android Development] bbedward:
Because 13 is unlucky

3.10-zen14 "Flight School"

Changes:

BFS: Full cpumask LLC cpu selection from -gc

BFS: Some trivial cleanups and fixes

Sched/BFS: Brought in the scheduler attr stuff from v3.14 (mostly for my future endeavors with porting)

rtmutex: deadlock detect fixes from upstream, prio. boost support for __setscheduler

Everything: Dozens and dozens of relevant i2c/usb/pinctrl/others race condition fixes, memory leak, deadlock fixes, etc. from upstream v3.10.y (without pulling it all I cherry picked relevant stuff)

VMA cache from upstream

ARM fixes from v3.10.y

Asynchronous I/O updates and unnecessary plug I/O removed for SSDs

Just dumped all my KGSL changes and sync'd with newest stuff from leankernel because i was too lazy to bisect and determine what was causing random page faults (they may still be there, they are on stock kernel too)

MSM: Updated sound soc

CM12.1 and friends AnyKernel zip added

3.10-zen14 Recovery Zip Download

3.10-zen14 boot.img (install via fastboot/twrp IMG) Download

3.10-zen14 AnyKernel Zip (Use for CM 12.1 or other roms that change ramdisk/sepolicy things)
[Nexus 6  Original Android Development] bbedward:
Well zen15 is coming shortly as punishment for not testing enough, due to the quoted :p
[Nexus 6  Original Android Development] bbedward:
[MENTION=1481114]purian23[/MENTION]'s original name for the last release is applicable for zen15.

3.10-zen15 "Unbroken"

Changes:

All the great changes of zen14 except without the BFS LLC cpumask selection - was an issue causer

Updated kcal (I forgot to merge into 14)

3.10-zen15 Recovery Zip Download

3.10-zen15 boot.img (install via fastboot/twrp IMG) Download

3.10-zen15 AnyKernel Zip (Use for CM 12.1 or other roms that change ramdisk/sepolicy things)
[Nexus 6  Original Android Development] VECTUS:
Do I have to be rooted on unlocked 5.1 bootloader and modem with something like twrp recovery to get test version 17.000991 to work? Mine won't under clock to 4400... :p:p:silly:
[Nexus 6  Original Android Development] purian23:
No way dude, you don't even need root or a 5.1 unlocked bootloader for "Unbroken"

It's fully legit at even 4300 UC :P
[Nexus 6  Original Android Development] dany20mh:
[MENTION=1481114]purian23[/MENTION] [MENTION=2632235]bbedward[/MENTION]

So with the anykernel, can we install it on the last Zen release too?

I'm kind of confused with this anykernel, so from my understanding it will support cm12.1 for now.

But if we are not on the cm12.1 and use it, will it cause any problem?

If you can give me a little more in detail about it, I would really appreciate it.

Thanks.
[Nexus 6  Original Android Development] bbedward:
All it does is use the existing kernel ramdisk. Basically unpacks the boot.img, replaces the kernel and fstab (for no force encryption and f2fs), repacks it. Rather than the zen img or normal zip which replaces the entire boot.img

So if you are on zen12 and use it, it will keep the zen12 ramdisk and add zen15 kernel (not that anything changed there). Or if you are in cm it will keep all cm ramdisk and just replace the kernel.

Theres no reason to really use it unless you are on a ROM that needs it. My ramdisk should be OK for most purposes like viper4a, su, etc. If you set the over clocking with my over clocking zip it will probably keep that change. So before you flash zen, run over clock aroma every time. With the any kernel you won't have to run the aroma every time.
[Nexus 6  Original Android Development] Simer03:
Trying 15 now! Love how it went from 12 to 15 so quick :p

Btw I tried out elemental and Franco new updates recently and I couldn't do it...I came back to zen...the small differences are big in my opinion!
[Nexus 6  Original Android Development] bbedward:
Welcome back to the dark side :cowboy:

I skipped 13 and as it turns out had pushed a major bug to 14 so here we are :laugh:
[Nexus 6  Original Android Development] yellowman82:
Same here I'm always trying out their latest updated but right away I'm back at Zen. It's the only kernel so far that's just lag/stutter free and you could see it from using the all recent button and XDA/Tapatalk app it just scrolls nicely and Zen15 is awesome.
[Nexus 6  Original Android Development] info[]box1:
Zen15 any kernel confirmed, downloaded running CM13 ultra beta ROM. recovery, wipes, flash and boot. Now. 15 is a good # for me today. j/k running cm12-1.. Haha

Thanks bbedward and Zen support team.
[Nexus 6  Original Android Development] bbedward:
Thanks guys.

I have other things to change the game, like my soon open source framework + app, which won't be available for a little while because for the next 3 weeks pre graduation I have no time. Not even time for sleep ;(

I've seen people gripe about BFS because their antutu or whatever is a few points lower. I think people need to realize these benchmarks don't accurately represent interactivity. BFS is appropriately sticking tasks to CPUs and keeping all 4 cores from unnecessarily scaling up. How could you see the mysterious disappearance in Google now launcher lag or the 3 second delay in clearing all recent apps. If you wanna shatter benchmarks I think you could by setting performance governor and raising rr_interval but that isn't the point of optimizing the normal android workload :p . anyway I also suspect a real CPU benchmark like sysbench calculating Fibonacci with x number if threads up to y in the sequence would show why things are improved.

But I could blab all day about the misconceptions of the unknowing user :p , I'm happy that my biggest nexus 5 and nexus 6 UI gripe is resolved (google now lag :()
[Nexus 6  Original Android Development] Tylog:
What are benchmark tools?[emoji12] I Never used such a crap, i like it to feel how a device works, not reading some numbers, becoming from such tools :)
[Nexus 6  Original Android Development] Xileforce:
I actually feel like BFS improved my benchmark scores lol. In fact I got my highest ever benchmark today with bfs @ 2.88ghz. Typically I was getting ~55k with CFS and the same settings. that's what I say to the people who follow the light side :P also I think im going to try and add a slider for RR interval in synapse. Do you know if adjusting the RR interval requires a reboot afterwards?
[Nexus 6  Original Android Development] goila:
which rom do you use?
[Nexus 6  Original Android Development] bbedward:
Potentially with the stock kernel you see 1000 points less or something with the scaling gov. Probably a good thing people see that because its scaling less if the CPU at a time

There's no reboot needed for that, it just goes from 1 to 1000. Ck says anything past 300 there's no chance of seeing more throughput due to noise factors.
[Nexus 6  Original Android Development] resynx:
Had my phone freeze up while typing a message in hangouts and had to hard reboot. But there were no logs inside the pstore folder this time :/ On the latest zen15.
[Nexus 6  Original Android Development] bbedward:
Hard to tell what could cause this. If the kernel deadlocks it will usually report it.

Maybe you should clean the partitions up and reinstall a ROM? Seems like there's a couple of people who reported freezes since z11 but everybody has had lots of uptime with no issues
[Nexus 6  Original Android Development] prata:
Noticeable improvement in release 15. Battery drain seems to have improved (for me). I'm waiting a couple cycles to confirm.

Thanks so much.
[Nexus 6  Original Android Development] bkdodger:
Just joining the party.. Going to give it a good go paired with Terminus..... Love this phone!..

Tapped by NexusSix
[Nexus 6  Original Android Development] fitz420:
Have you considered adding faux sound support. I have been running and loving this kernel, but I use faux to boost the output volume and would love to be able to use it with your kernel. Thanks.
[Nexus 6  Original Android Development] bbedward:
I'll get it in there next time. Keeps slipping the mind to look at it.
[Nexus 6  Original Android Development] cameljockey1:
If you do add faux. Please have an option for disabling it for others. I am not a fan of it. And I had a question. Is the zram disabled and not able to activate it? I use the element x app to adjust my kernel settings with this kernel. And thank you for the kernel. Phone runs great.
[Nexus 6  Original Android Development] bbedward:
Zram is in but doesn't do anything by default. I think some apps let you set it up, or there's ways in init scripts and boot parameters to create the devices. Using an app would be the easiest way, I know trickster does it but not sure about others.
[Nexus 6  Original Android Development] Tylog:
Excellent Kernel. I tested a few in the last days, ZEN Kernel give me the best results in Battery performance balance. Any kernel is also fine, i have always cm as secondary rom on my devices.

Thanks
[Nexus 6  Original Android Development] bbedward:
https://git.kernel.org/cgit/linux/k...0&id=f9f56f19dc4fd7c0d2069191027b12d4af540c0d

Looks like I discovered the trouble maker here.

I will just revert to v3.10.y ext4 probably.
[Nexus 6  Original Android Development] wrongway213:
Excited to hear this... definitely a "make or break" feature for me as a Viper4Android fanboy and I have been wanting to try this kernel for some time now. Seems random reboots have been curbed quite a bit as well so the timing is lovely.
[Nexus 6  Original Android Development] bbedward:
Anybody who has to press the power button multiple times to wake up is this with wake gestures enabled?

I have 0 issues but anybody with wake gestures seems to.

Im pretty sure it doesn't do anything by default. Only if you use the app but don't quote me for sure.

If it does permanently mess with the stock sound then it's probably out of the question unless it gets refactored to not do that.
[Nexus 6  Original Android Development] flyinj54:
This kernel absolutely rips on chroma. Awesome work. Paired up with changing the thermal engine to the way I like it I'm a real happy camper. Thanks 10x on this kernel. Keep kicking ass and taking names!
[Nexus 6  Original Android Development] wrongway213:
You have to enable Faux Sound yourself, whether it be from the app itself or from a kernel tweaker app such as Synapse that is able to conrol Faux Sound on kernels with the capability. For instance, a kernel with Faux Sound will show up a whole menu in Synapse that your kernel as it is now simply would not show. There would be no need for a disable option though, as it is off by default and only enabled by users who wish to use it, at least that's how it is implemented in every kernel I have seen that uses it on this device.
[Nexus 6  Original Android Development] bbedward:
As I suspected thanks. I just glanced over the code looks like that's the case.

The power button wake gesture thing idk, I haven't touched or even really looked at any of the code for it but I suspect its just a sacrifice that comes with using them for now.

If anybody just wants double tap to wake it may be better to use the google way than the way here, the sweep stuff is of course not an option on stock kernel/rom :p
[Nexus 6  Original Android Development] resynx:
Glad to hear you found the culprit! And if I have any more power button waking problems I will try turning off wake gestures and see if they persist! :)
[Nexus 6  Original Android Development] wrongway213:
No problem at all - always glad to help, especially someone in the area for a change. As for wake gestures, yes and no. Your kernel is not the only one that has this issue by any means, but I would advise you, being someone who actually appears to have a deep understanding of code/an actual programmer and not just a hobbyist to consider looking into it IF wake gestures are something you find important to implement in your kernel. Obviously that call is yours to make, not at all trying to request or advise in that department - just offering up that, off the top of my head, Hydra and leanKernel both use haptic DT2W without any sort of wake issue with power button, slow wake, etc. So I don't believe it's a sacrifice that has to come with using them, I think it honestly depends on how important you find them to be for your kernel - I do believe looking at the code and messing with it some could quite likely yield good results from someone with your skill set, as I have seen good results come from a very select few others as well.
[Nexus 6  Original Android Development] bbedward:
Trust me I would love to get deep into it and improve or even rewrite it if I had the time :p . I have way too much on my plate for the next month but hopefully then all the weight will be lifted off my shoulders :laugh:

I'm always about making things better and doing code reviews, I have done for some smaller stuff where error handling is missing or something else is done as a bad practice or in a deprecated manner. I happily make adjustments and send them to the original authors or whoever I pulled the code from.

But for the wake gestures stuff, issues could just be in the way it's implemented to begin with and it may need a rewrite or something, which I don't have time to delve very deep into :crying:
[Nexus 6  Original Android Development] resynx:
Btw, zen15 is running really smooth. Smoother than the previous once again :D
[Nexus 6  Original Android Development] ozg33k:
I've been making my own ROM for the first time, and I haven't even once ran it on any other kernel besides this one. Not even stock! I love how it makes it fly. Ive used your old kernels too back in the days... bFS always :) I haven't been on XDA for a few days, gonna upgrade now! Thanks a lot for this kernel! If I ever release my ROM to the pu loc, is it fine if I release it with zen? Thanks
[Nexus 6  Original Android Development] purian23:
Absolutely release it with ZenKernel! We want to hit the masses here to experience something a little different!
[Nexus 6  Original Android Development] bbedward:
Yes no need to ask :)

I'm uploading zen16 as we speak so hang out a little longer. Fixing a periodic ext4 lockup and a few other things.
[Nexus 6  Original Android Development] bbedward:
Wanted to squash the freeze issue with ext4 mostly. Misc. stuff + sound control support too.

3.10-zen16 "Yippee Ki-Yay"

Changes:

Revert ext4/3.18 backport which caused periodic lockups.

Merge up ext4 from v3.10.74 in lieu of the above

Add faux sound support

Adaptive LMK default

msm: vid coder possible null pointer fix from CAF

msm: mdss/panel fixes from CAF

kmemleak reporting improvements from upstream

3.10-zen16 Recovery Zip Download

3.10-zen16 boot.img (install via fastboot/twrp IMG) Download

3.10-zen16 AnyKernel Zip (Use for CM 12.1 or other roms that change ramdisk/sepolicy things)

I did a quick rebase of my master branch on git which cleaned it all up because of the ext4 stuff. Didn't want a sloppy revert or reset. It takes me about 2 seconds with the way I handle my git anyway and now it looks cleaner :p
[Nexus 6  Original Android Development] ozg33k:
:) awesome thanks so much!
[Nexus 6  Original Android Development] info[]box1:
Nice upgrade.. Thx
[Nexus 6  Original Android Development] omvir:
Thanks for the update!!!!! I was wondering if you could add options to disable the wake locks that Franco kernel allows to be disabled?
[Nexus 6  Original Android Development] Sek0n:
Zen15 fixed a big battery drain I had on zen12. Gonna flash 16 and test now.

Thanks for the great work. It has been a noticeable improvement on the benzo ROM for me!
[Nexus 6  Original Android Development] lainemac:
Stock rom +zen 15. Whoa.
[Nexus 6  Original Android Development] Vismis:
Just wondering OP what app do you use to edit kernel settings.
[Nexus 6  Original Android Development] cameljockey1:
On zen 15. Just FYI not sure if anyone else had the issue. After I reboot and let the phone settle for a bit it won't turn on I have yo hold the power button down to restart. Is this what you have fixed in zen 16? Thank you.
[Nexus 6  Original Android Development] funcrusher:
Users were definitely experiencing the slow wake in the leanKernel thread not long ago. Not sure if it was solved or if it was ever related to gestures - not something I was experiencing (I use stock/Google DT2W).
[Nexus 6  Original Android Development] bbedward:
How consistently is this happening?

I haven't heard anybody have SODs, are you undervolted using AnyKernel or Any other crazy stuff?

It could be related to what zen16 fixed, but it was a pretty rare occurrence to get a freeze most people never got one.