yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Android Development] nathanchance:
I don't really know. I set it to maple 128 for my personal kernel and zen 256 for public builds. I think zen is pretty balanced and any readahead should be solid, although bobbarker might want to chime on that lol.
[Nexus 6P Android Development] shadowstep:
Even I use Maple with 128 as my defaults, set on boot. :)

Btw if anyone is interested in reading more about I/O schedulers and read-ahead cache, click here.
[Nexus 6P Android Development] lakyberry:
I've checked kernel features and I don't see sweep to sleep? Is it supported for this kernel OP?
[Nexus 6P Android Development] nathanchance:
That was just asked on the other page but yes, that's what wake gestures are. I'll make that more clear in the OP.
[Nexus 6P Android Development] aostrom:
Having audio issues since I screwed up...

OK -- I screwed up. Complete brain fade. I could make an excuse, like it was late at night (it was), but I'll just own it -- I did a dumb one. When Ninja 1.9/3.7 was announced I happily downloaded 3.7 and flashed it. The only problem is that I'm still running the 8/21 build of PureNexus MM and was running Ninja 1.8. Everything seemed OK, but I was having a few weird issues. When I looked at EXKM I realized what I had done and this is what I did to fix it:

Dirty Flash PureNexus

Flash suhide V0.53

Flash SuperSU 2.78-SR1

Flash Ninja 1.9

Everything seemed OK. Then today, I started having audio issues again - no notifications, ringtones, etc. People could hear me on the phone, but I couldn't hear anything, and no audio was playing in settings when I selected ringtones, notifications, etc. Just no audio output at all. So, I did basically the same thing again (1 difference):

Dirty Flash PureNexus

Flash suhide V0.53

Flash SuperSU 2.78-SR1

Flash Ninja 1.9

Flash Xthermal Fast Charge

Boot

Reset EXKM to "default" settings

Everything seems to be working now. Should I expect more problems? Do I need to do a clean flash (I'd rather wait for PN Nougat if I have to do that). Any thoughts on what I messed up and how to fix it if there's still something messed up. Thanks for the help!
[Nexus 6P Android Development] nathanchance:
No, you should be fine!
[Nexus 6P Android Development] HikingMoose:
That is probably the best I/O write-up I've read! Not that I've read many lol. I just wish he followed his thoughts when he first started talking about some being fast, but not smooth, and some bring smooth but not fast. He then described fast schedulers, but never once mentioned smoothness the entire rest of the page.

I don't care about benchmarking, or gaming. I don't multitask a lot. But I do care a lot about battery life and smoothness! I tend to use ROW or FIOPS. Should I look at others, or are those two of the smoothest?

I've always figured that the scheduler couldn't really help too much with battery life (noticeable improvement). So I've always tried for smoothness out of my I/O scheduler. Does that make sense, or am I wrong in feeling that way?
[Nexus 6P Android Development] elevatorguy:
Figured I'd ask here seems to be a pretty friendly thread. Where does one look to figure out what caused a random reboot? Also in that file what do you look for? If the answer is to long to explain could you please point me in the right direction to find this info. Thanks
[Nexus 6P Android Development] nathanchance:
You need to look at the ramoops file in /sys/fs/pstore
[Nexus 6P Android Development] elevatorguy:
There's two files there one says console-ramoops the other pmsg-ramoops-0. Which one do I look in, how do you interpret the contents of the file?
[Nexus 6P Android Development] nathanchance:
Console one. Scroll down towards the bottom and start reading the log. Usually random reboots are caused by watchdog bite but it may be something else.
[Nexus 6P Android Development] shadowstep:
Yeah, that is my go-to page for all these kernel related things. And agreed, smoothness is definitely not the same as speed. Just like there is a difference between efficiency and effectiveness. :)

Also, to be honest, I've played around a lot with different I/O schedulers and read-ahead cache values, but there hasn't been a time ever that I remember where changing any of these has had any change that is conceivable by the naked eye, whether its smoothness or battery life. Maybe one or two times at max, but otherwise not.

However, I suggest you try noop with 128. I have tried this combination and as far as I remember, it was fine. noop is the most battery friendly I/O scheduler. But I don't think one can assign a quantitative value to how much more battery saving it is as compared to others. Good luck, nonetheless! :good:
[Nexus 6P Android Development] HikingMoose:
Yeah, I've never tried noop. I think I'll use my kernel settings to conserve battery and gear the scheduler towards smoothness.

What's the smoothest scheduler? I don't run benchmarks. I don't play games. I just want smooth scrolling while browsing with my browser, and Tapatalk.
[Nexus 6P Android Development] Mikulec:
I will just highlight one sentenced that he said that I could agree more with him:

"but there hasn't been a time ever that I remember where changing any of these has had any change that is conceivable by the naked eye, whether its smoothness or battery life"
[Nexus 6P Android Development] lakyberry:
Apps get closed in background and dont stay in memory to often. Is that new doze or something else?

I didn't experience same 'issue' on MM.
[Nexus 6P Android Development] nathanchance:
Pretty sure this is an N thing, it happens on the stock kernel. zram helps a little bit. I'll probably dig into it a bit later.
[Nexus 6P Android Development] Saber:
Hi,

Apologies if I made the descriptions confusing, I am in the process of making the descriptions better.

Thanks for the suggestion, I also noticed that I don't talk much about smoothness (and other factors) later in the guide. Although, I would argue that changing the IO scheduler on a modern device would have little (or even no) difference in battery life or smoothness. ;)

gsstudios
[Nexus 6P Android Development] HikingMoose:
No, don't get me wrong, it was a fantastic write up!

I agree they probably would never have a perceivable effect on phones like this with such large batteries and so much processing power.

That being said, I still am always trying to achieve perfection. Lol. So i just want to choose the best one for my needs. Probably ROW with a read ahead of 1024 (I used to use 2048, but that was probably over kill).
[Nexus 6P Android Development] nathanchance:
Update!

Nothing too major in this release, just some upstream commits from Linux version 4.7 for zswap. By default, this is disabled. To enable it, you will need to do one of two things:

Go into EX Kernel Manager, then Tools, then User Settings, and hit the Add FAB. Navigate to /sys/module/zswap/parameters/enabled and hit Open. Tap on it and set it to either 1 or Y (and apply it on boot if you want)

Open a terminal emulator, type "su", then type "echo Y > /sys/module/zswap/parameters/enabled" (note this will need to be done every time you reboot, unless you make a su.d/init.d script).

I have asked flar2 to support this in the Memory settings so it should show up in one of the upcoming updates. For those of you who want to know more about zswap, read here:

https://en.wikipedia.org/wiki/Zswap

https://github.com/torvalds/linux/blob/master/Documentation/vm/zswap.txt

Download: 3.8 for N and 1.11 for M

Changelog: (also on Github)

Added upstream zswap commits

Additionally, I wanted to give you some insight on my update process just so you guys are aware. My goal is to try and have a release available for you guys every week but I want them to be somewhat substantial. So here's how I am going to try to do it:

Pull in new commits and build personally to test stability for two to three days

Make a staging branch and push out betas through Telegram so people can test and give feedback for three to four days

Release publicly if there are no issues a week after pulling the commits in

Exception: security updates and upstream Linux updates will be a same-day or next day release

I think this will keep things fresh. Of course, if there are not that many commits, I may not release but this is going to be the overall plan. Hope it works out!
[Nexus 6P Android Development] minhgi:
I was just testing the zswap but getting this error message :

Zswap: default zpool zbud not available

Zswap: zpool creation failed
[Nexus 6P Android Development] nathanchance:
Getting that error message where?
[Nexus 6P Android Development] minhgi:
Using this command to check if it is running : dmesg | grep zswap

Had my phone rebooted but same result
[Nexus 6P Android Development] ariefabuzaky:
How about this ?
[Nexus 6P Android Development] nathanchance:
Ah okay I think I might have missed a commit, looking into it now.
[Nexus 6P Android Development] minhgi:
Seem to be a missing zpool type not being enable. So something like: zswap.zpool=zbud
[Nexus 6P Android Development] bobbarker2:
No that's set. Check the parameters/zpool file.

Odd that the documentation says to echo 1 and that results in a Y for enabled though.

Also while looking around I saw Zen_iosched/version is 1.0. I seem to recall this getting upgraded to a newer version?
[Nexus 6P Android Development] nathanchance:
Nah, he's right lol. I have the same error. Release a build with one feature and it doesn't work, standard ¯\_(ツ)_/¯

That's the updated version, I've compared the changes in 1.2 or whatever people are calling it now and they are present in my files. I think people are calling the fixes that Despair did for it the new version.
[Nexus 6P Android Development] Juzman:
Literally just downloaded and flashed, to see that there is stuff missing.

So 3.8.1 soon? Haha.
[Nexus 6P Android Development] nathanchance:
It will be a new 3.8 lol. I think I got it, just need to tidy up source.
[Nexus 6P Android Development] bobbarker2:
Oh I read too quickly, I thought he meant it wasn't being set, not that it wasn't available. but reading the error in the kernel log it's obvious that's the case. My b.
[Nexus 6P Android Development] aostrom:
Ok, I figured out what my issue was with no audio after flashing Ninja 1.9 (after incorrectly flashing 3.7). This behavior still exists in 1.11. Getting older, and harder of hearing, I was using the audio controls in EXKM to boost speaker output. If you set the left or right speaker boost to anything more than 10 you lose output completely.
[Nexus 6P Android Development] nathanchance:
No worries :) alright, figured out what was up. For some reason, I cannot get zbud to compile. Adding CONFIG_ZBUD=y to the defconfig does absolutely nothing. So instead, I switched zpool to zsmalloc and it works just fine. I'll be rebuilding here in a bit.

I just cranked up the speaker values to 20 and I could here in my headphones and speakers still with music and phone calls. Can you get me a dmesg?
[Nexus 6P Android Development] eduardozeassesme:
Hi [MENTION=6842057]nathanchance[/MENTION] I have a big problem cannot install Ninja on benzo rom. Any idea? Thanks
[Nexus 6P Android Development] aostrom:
I will be happy to get the dmesg. My technical background was really PDP-11 and VAX/VMS, not Unix, so a little pointer to the command or utility and I'll jump right on it. I was simply playing my ringtone in setup, I didn't try playing music or making a call, I can do that, too.
[Nexus 6P Android Development] nathanchance:
Benzo requires a permissive kernel (for whatever reason). My kernel is enforcing by default. If you have SuperSU installed, type this into a file named permissive.sh in either /system/su.d or /su/su.d (if either exist) with 755 permissions:

#!/system/bin/sh

echo 0 > /sys/fs/selinux/enforce

If that doesn't work, going to have to wait for Benzo to fix his ROM or switch ROMs.
[Nexus 6P Android Development] nathanchance:
Perfect. Either use adb on your computer:

adb shell dmesg > dmesg.txt

or on your phone in a terminal emulator:

dmesg > /sdcard/dmesg.txt

EX Kernel Manager also has an option in Tools > Save Logs > Current kernel log.
[Nexus 6P Android Development] eduardozeassesme:
Thanks I try now
[Nexus 6P Android Development] eduardozeassesme:
Is correct?

Edit: wont work
[Nexus 6P Android Development] nathanchance:
Alright, fixed builds are uploaded! Here is the original post if you missed it: http://xdaforums.com/showthread.php?p=68832177

Sorry for the inconvenience :(
[Nexus 6P Android Development] aostrom:
Ok, music works no matter how much boost is applied, but ringtone and notification die once I exceed 10. In call audio output is also gone. [MENTION=6842057]nathanchance[/MENTION], attached is the dmesg.txt file.
[Nexus 6P Android Development] nathanchance:
Unfortunately, nothing I can do on my end :/ I won't force permissive on everyone because one dev is forcing permissive on his users. I wanted to explore doing it from the command line but I haven't had time to look into it. I would recommend either sticking with the built-in kernel or switching ROMs.
[Nexus 6P Android Development] eduardozeassesme:
Thanks for all dev but I see that kernel not flashing always on benzo kernel
[Nexus 6P Android Development] elevatorguy:
[MENTION=6842057]nathanchance[/MENTION]. I tried to attach the file for the reboot I asked you about but said file was to big so here's a screenshot of the last bit of it. Does it tell you anything? Thanks
[Nexus 6P Android Development] nathanchance:
I'd need to see a bit above it but it seems like it is a panic related to ext4 (which the file system). Is that on my kernel? If it hasn't happened again, I wouldn't worry about it.
[Nexus 6P Android Development] elevatorguy:
Yep it's on your kernel 1.10 and has been happening for a while. Usually it's every few days every once in a while it will be two days in a row, usually around 330 in the morning.

How much more would you need to see? If you have somewhere I could send you the whole file.
[Nexus 6P Android Development] matust:
[MENTION=6842057]nathanchance[/MENTION] Random reboot on latest 3.8, stock rom no xposed. Have logcat as well if that helps
[Nexus 6P Android Development] nathanchance:
Hmmm that's really weird, I've only had two random reboots ever and they were just watchdog bites. Try pasting the contents to somewhere like pastebin, otherwise you can either upload it to Google Drive, or send it to me by email.

I'll take that logcat as neither of those logs show any kernel errors. I have tested this for a few days so I am confident it is stable.
[Nexus 6P Android Development] nathanchance:
Alright I'll take a look at it. Seems like this may be more of a userspace issue, can I get a logcat too?
[Nexus 6P Android Development] Juzman:
Just flashed, and I have no /sys/module/zswap - is it removed?
[Nexus 6P Android Development] elevatorguy:
[MENTION=6842057]nathanchance[/MENTION] Flashed 1.11 will see if the problem persists if it does I'll get an email address to send log to. Thanks for your time and effort.
[Nexus 6P Android Development] nathanchance:
It should be there still, commits are still there and I have it.

natechancellor@gmail.com
[Nexus 6P Android Development] RASanchez007:
Have any of you had luck with flashing thermal mods like xthermal fast charging or lag fixing thermal mods?
[Nexus 6P Android Development] aostrom:
Logcats and other felines

I worked for 15 years for a computer company (Digital Equipment) where we tried so hard to make computers easier to use, less confusing, less cryptic, more intuitive. It seems the Unix folks have gone in the opposite direction! :crying: Ok, I hope I got this right...

[MENTION=6842057]nathanchance[/MENTION], it seems I can't attach the logcat - it seems the file is too big for xdadevelopers, so here's a link to the file: https://drive.google.com/file/d/0B1m9rCHnd0YZeTNhcGxGMTZlZE0/view?usp=sharing I hope it helps you.

---------- Post added at 02:11 AM ---------- Previous post was at 02:10 AM ----------

It was there for me with 1.11...
[Nexus 6P Android Development] Juzman:
All good [MENTION=6842057]nathanchance[/MENTION] I redownloaded it again, and zswap is there. :)
[Nexus 6P Android Development] BIGWORM:
I had that internal system error earlier today. What app do you recommend to dump a logcat, [MENTION=6842057]nathanchance[/MENTION]?
[Nexus 6P Android Development] nathanchance:
I'd use either Matlog or SysLog.
[Nexus 6P Android Development] ariefabuzaky:
So zwap can be enable again without an issue ?
[Nexus 6P Android Development] Juzman:
Correct.
[Nexus 6P Android Development] winxuser:
Nathan have you got plans to update msmhotplugging to 2.3?? I think it's been updated to 2.3 now
[Nexus 6P Android Development] kantjer:
I joined you in testing phase 1 :)
[Nexus 6P Android Development] Mystique:
Isn't software great?

:)

I haven't seen any issues yet.
[Nexus 6P Android Development] ariefabuzaky:
Do you use N kernel over marshmallow ?
[Nexus 6P Android Development] kantjer:
it looks like it, asking for trouble ................
[Nexus 6P Android Development] minhgi:
Ok.. I enable a gig of swap file using set xperia to test zswap / and default zram ram disk 510MB. Just testing the responsiveness on the 6p. My nerd in me just crying "try me".
[Nexus 6P Android Development] Mystique:
Kernel isn't modular.. User land binaries aren't tied to the kernel at all..

Welcome to Linux :)

Of course ymmv..

My 0.02
[Nexus 6P Android Development] murphyjasonc:
Ninja is working just fine on Benzo for me. I had Ninja install with enforcing but I later installed a permissive script for other reasons but I didn't have any problems with Ninja working on either one.
[Nexus 6P Android Development] kantjer:
have you, for example, already tested if the proximity sensor works
[Nexus 6P Android Development] minhgi:
Apparently, opening 50 apps at once didn't make phone slow down. Swap size use is about 700MB + 510 zram.
[Nexus 6P Android Development] nathanchance:
There is no functional difference between 2.2 and 2.3. I prefer removing __cpuinit from the kernel to bring it more inline with upstream Linux and 2.3 just adds it back.
[Nexus 6P Android Development] nathanchance:
Guarantee that your camera, proximity sensor, and rotation don't work ;)
[Nexus 6P Android Development] Nowak4G:
I had no problems installing Ninja either. I was also using Saber before installing. Maybe that has some effect?
[Nexus 6P Android Development] Nowak4G:
With Ninja3.7 on BenzoRom with sabermod that I enabled on the included kernel. Didn't mess with SELinux.
[Nexus 6P Android Development] eduardozeassesme:
Do you try 3.8?

---------- Post added at 06:55 PM ---------- Previous post was at 06:46 PM ----------

How do you do it?
[Nexus 6P Android Development] murphyjasonc:
Yep. I installed 3.8 today and also enabled Zswap. No problems at all.
[Nexus 6P Android Development] eduardozeassesme:
Help me don't work for me, I tried clean flash wipe all and benzo kernel present every time
[Nexus 6P Android Development] rickysidhu_:
I have a question regarding flashing new builds of this kernel, and flashing other zips as well.

Do I need to wipe cache/dalvik cache after flashing an updated build of this kernel? I noticed I get that option in TWRP, right after flashing. This goes for other things as well, such as TeamBlackOut zips.

I have about 150 apps installed, so it takes quite a while for these apps to "optimize" before I can get back into my phone. That being said, if I'm able to skip past that, then I'd be saving myself a lot of time in the future haha.

Any help/insight on this would be much appreciated, thanks!
[Nexus 6P Android Development] kantjer:
No you don't have to wipe cache/dalvik after flashing a kernel or gapps.
[Nexus 6P Android Development] HikingMoose:
It used to be recommended though. I'd be interested to know how many people still wipe vs how many don't.
[Nexus 6P Android Development] JaylanPHNX:
I never wipe on a kernel. It's like washing your hands after touching something with your foot.

From my Tab Pro 8.4
[Nexus 6P Android Development] Prattham:
[MENTION=6842057]nathanchance[/MENTION] which tcp is good or ideal?
[Nexus 6P Android Development] Lord. Tech:
ok but generally when do u need to wipe it then?
[Nexus 6P Android Development] kantjer:
Never, except when changing ROM or flashing a new Android release based ROM.
[Nexus 6P Android Development] nathanchance:
I stick with westwood, which is the default.
[Nexus 6P Android Development] stevesin:
3.7 works on benzo, upgraded bootloader k radio, then flash vendor, benzo, gapps, ninja

Camera did crash, but worked once I reopened. Hasn't crashed since
[Nexus 6P Android Development] xperator:
Ninja so great that you could actually flash it over Windows 95
[Nexus 6P Android Development] ftarules:
We exactly is the camera launch gesture? I tried drawing a circle both clockwise and counter clockwise but it didn't work.
[Nexus 6P Android Development] nathanchance:
Swipe down on the screen. You also need to have sweep to wake in the down direction enabled in addition to the double tap the power button to launch the camera enabled.
[Nexus 6P Android Development] adinkwok:
Looks like I won't be needing to develop anything since this project is looking good :silly:. All hail efficiency :victory:!
[Nexus 6P Android Development] nathanchance:
Oh great, the former "Redognized Developer" is here... :silly: :victory:
[Nexus 6P Android Development] n1729m:
How can I buy you a cup of coffee?
[Nexus 6P Android Development] nathanchance:
You can't :p http://xdaforums.com/showthread.php?p=68578863

If you feel like giving money to someone, feel free to donate to one of the people I have thanked in my OP like [MENTION=4684315]flar2[/MENTION] or [MENTION=3292224]franciscofranco[/MENTION], they do a lot more work than I do. Just running the kernel is enough for me :)
[Nexus 6P Android Development] n1729m:
Already done that, appreciate your efforts for doing this.
[Nexus 6P Android Development] Lord. Tech:
I got no reboots n all is great, Just tried it out of curiosity and a few lines above last line, i ended up with

[ 4369.261337] init: Service 'imscmservice' (pid 14953) killing any children in process group

Haha :laugh:

Edit: it sounded really funny the first time :p
[Nexus 6P Android Development] yung40oz84:
Got a question, first with msm thermal there is this setting for max CPUs and I know on AK kernel profiles it was always changed to either save battery or performance, but I don't know exactly what the first number is and then the number after the colon.....these are default, sometimes in AK was set to 4:4....

Also, for zpool enable is this correct for the .sh file?
[Nexus 6P Android Development] Arzee08:
The number either side of the colon is the cores in each CPU cluster ( 2 quad core clusters) don't know about the zswap zip though
[Nexus 6P Android Development] yung40oz84:
Well it's the actual file in the zip, and .sh file, ok but what do the numbers do or mean, why is -1:1 default, and what -1?
[Nexus 6P Android Development] nathanchance:
Yeah that script looks right. I have no idea with the msm_thermal settings, I don't touch those. I've never had thermal issues on this device.
[Nexus 6P Android Development] yung40oz84:
Ok, ya I just know it's for the amount of cores online, in AK kernel the profiles they were making sometimes adjusted it to 4:4
[Nexus 6P Android Development] nathanchance:
I don't know the logic behind that though since the max number of cores online should be 4 for each cluster. Oh well lol, something to explore with real world tests I guess.
[Nexus 6P Android Development] yung40oz84:
Ya I'm not sure either since the default is -1:1 on boot, stranger, lol