yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S 5 Unified Development] fipsy:
But not swapping also means less memory for apps. Swapping to zRam normally should be no problem if it doesn't occur too often. And it helps to run lots of apps without LMK hitting too early.
[Samsung Galaxy S 5 Unified Development] jhagrid77:
I have a bit of a stupid question, so I'm sorry if this is completely obvious. Since this Kernel if pretty much for LOS14, will it work on stock firmware, or only LOS/LOS-Based ROMs?
[Samsung Galaxy S 5 Unified Development] fipsy:
As it's a derivative of the Boeffla Kernel it only works on LOS and CM based ROMs.
[Samsung Galaxy S 5 Unified Development] silva_dump:
Best kernal if your looking the battery :)

Thankx alot dev
[Samsung Galaxy S 5 Unified Development] Henki98:
Why by default did you set htpc?
[Samsung Galaxy S 5 Unified Development] audianer:
I guess something dont work... the score is like an galaxy s4....
[Samsung Galaxy S 5 Unified Development] Bosket:
Hotplug profile Tuned?
[Samsung Galaxy S 5 Unified Development] audianer:
Yes....
[Samsung Galaxy S 5 Unified Development] Bosket:
Change to MPDecision and test again.
[Samsung Galaxy S 5 Unified Development] fbs:
https://en.wikipedia.org/wiki/H-TCP

;)
[Samsung Galaxy S 5 Unified Development] fbs:
s5 doesn't have "clusters", it shouldn't even show that screen..

And I gave up on these benchmarks apps, they're totally random.. repeat 3 times and you'll see totally different values

You could get a little "notion" of performance if you use "performance" governor (so it won't have many frequency fluctuation), and if you put your phone in a freezer. Because after 10 seconds with 4 cores in their maximum frequency, the phone will heat and the throttler will start lowering cpu frequencies or even disabling cores to make your phone colder. (samsung really cares about stupid people saying "oh my god my ear is so HOT after using this phone")
[Samsung Galaxy S 5 Unified Development] fbs:
to get a lower score? LOL
[Samsung Galaxy S 5 Unified Development] Bosket:
LOL!!!You know better, just saying:(

This is from beta16.O2
[Samsung Galaxy S 5 Unified Development] fbs:
anyway I've uploaded a new build. I've been using it since yesterday and when I woke up I had no lags. but I didn't "activate" all the apps I've restored with titanium backup. they're there, but they're not running
[Samsung Galaxy S 5 Unified Development] fbs:
Killing an app will instantly free RAM with almost zero CPU usage. ZRAM swapping means a lot of CPU usage, and as it occurs in RAM (not on sd/disk), only 40-50% of ram will be really freed when an app is swapped in. And this is just the theory behind it, because I think this algorithm has its own bugs!

Let's say you haven't opened Facebook app for a long time. The system will get its memory pages (the ram used by the app) and try to compress it (ZIP-like) and put it on a swap space which is also on RAM. So it's a RAM-to-RAM operation, but with compression in-between. A 140MB app like facebook, would now be using like 80-90mb of RAM instead. But this compressing uses some cpu/battery and you're still not getting back the 140mb it used, just 50-60mb of it. If you try to open Facebook again, it will use some cpu to decompress it and it will again use those 140mb of RAM. A domino effect can happen, because when you swap out facebook from ZRAM to RAM, you'll need real free RAM... soooo other processes would have to be ZRAMed the same way facebook was.......

In the end you'll always be in a loop of compressing/decompressing, allocating more memory, moving from here to there, etc etc.. All this routine IS CPU/battey intensive, and it fragments the memory space, then the kernel will have to use other CPU-intensive operations to defragment the memory (which is called "compaction") and so on.......
[Samsung Galaxy S 5 Unified Development] PorchSong:
Which stock based Rom we're you using? I'm on a 900t. I wanted to revert to one for ****s and giggles.
[Samsung Galaxy S 5 Unified Development] fbs:
was using this:

https://xdaforums.com/galaxy-s5/development/rom-ane4-kitkat-4-4-2-multi-csc-t2813628
[Samsung Galaxy S 5 Unified Development] fbs:
This shows why ppl get more battery with tuned hotplugger (which is the default of this kernel) instead of mpdecision.. :good:

mpdecision seems to force two-core minimum, instead of one. (CPU0 and CPU3 are always on). And it delays too much to enable the CPU1, so it's not as fast.

bottom line: slow when it could be faster, and battery drainy without needing
[Samsung Galaxy S 5 Unified Development] fipsy:
You have described very nicely the process that happens when swappiness is above 40. That's all 100% true. But with low swappiness values this is no longer the case. This results in a quite balanced relationship between the termination of apps by the low memory killer and swapping of apps into zRam. The advantage in this case is that several large apps that run in parallel and all but one of them are working in the background are not killed and continue to run. This is no longer possible when zRam is switched off. Then apps are constantly thrown out of memory.
[Samsung Galaxy S 5 Unified Development] fbs:
I see. Did it happen to you, while using the latest version of this Kernel, or are you just speculating? Because Tuned default swappiness value is 20 for some months already. And even so I've had been going through huge slowdowns in the morning ;)
[Samsung Galaxy S 5 Unified Development] fipsy:
I never had slowdowns with your kernel when I was using a swappiness of 30 set with Boeffla Config.

It was this way until beta16. That was your last kernel I had been using. With that kernel I had it twice within a week that the gyro sensor has not been working anymore. So I switched back to Boeffla Kernel and didn't have gyro problems anymore since then. After that I did a lot of testing for Andi concerning the battery statistics in Boeffla Config App. Therefore I was only using the Boeffla-Kernel. I will try your kernel again if the tests have been completed. And if gyro problems then occur again I fear you will have to investigate a bit. Smile. ;)
[Samsung Galaxy S 5 Unified Development] fbs:
I've never changed anything about sensors. But I bet the ROM itself can be buggy :)
[Samsung Galaxy S 5 Unified Development] fipsy:
I can well imagine that there are any side-effects that are inadvertently triggered by your kernel.
[Samsung Galaxy S 5 Unified Development] fbs:
yeah yeah.. said xda's most fabulous developer
[Samsung Galaxy S 5 Unified Development] fipsy:
You can't mean me, I'm not developing Android software. :silly:
[Samsung Galaxy S 5 Unified Development] fbs:
beta20 is up
[Samsung Galaxy S 5 Unified Development] Jiimmy97:
Is it normall [MENTION=516058]fbs[/MENTION] ? Low performance and 3D i knowing your rom is the most battery friendly but let me know this values is normal at me ?
[Samsung Galaxy S 5 Unified Development] audianer:
[MENTION=8225602]Jiimmy97[/MENTION] : Change hotplug back to MP-Decision and your score is about 59000 points.
[Samsung Galaxy S 5 Unified Development] Jiimmy97:
So it will be like official boeffla and smartpack and others scores ? So he only tuned hotlpug to reduce performance to save more battery ?
[Samsung Galaxy S 5 Unified Development] audianer:
It does not matter which kernel you take. With interactive governor and hotplug MP-Decision you will allways have 54.000-60.000.

OC is useless. You need 15% more clock speed to get 5% more speed.
[Samsung Galaxy S 5 Unified Development] Jiimmy97:
So what's difference between kernals options only ?

I know fbs tuned kernal modified hotplug to improve battery life i mean another kernals like official boeffla and smartpack.

Regards:svetius:
[Samsung Galaxy S 5 Unified Development] fbs:
tuned hotplug is meant to make everything better, I never said it is only to save battery
[Samsung Galaxy S 5 Unified Development] fbs:
I'll tell you what is normal: benchmarks are total BS
[Samsung Galaxy S 5 Unified Development] LeoJrC:
I'm coming here to thank the dev as the latest version is fu*king awesome. Smooth and battery friendly (combined with CrDroid 3.8.3). No lags and I'm getting 4h of sot with a 4 years old battery. I wish a Merry Christmas and happy New year for the dev and everyone else in this forum.
[Samsung Galaxy S 5 Unified Development] Trey n:
Hey [MENTION=516058]fbs[/MENTION] can you please add the underclock 268mhz frequency for the cpu? That might increase battery a bit more :) I'll be happy to test it for u ? thx bud

BTW love this kernel! Keep it up! And merry CHRISTmas ? and happy new year ? God bless everyone and safe travels!
[Samsung Galaxy S 5 Unified Development] saif hussain:
Add support for Oreo 8.0
[Samsung Galaxy S 5 Unified Development] fbs:
if anyone can prove 32mhz would save at least 1% of battery, I might do it... ;)
[Samsung Galaxy S 5 Unified Development] fbs:
they use the same kernel, it should work

install and see :P
[Samsung Galaxy S 5 Unified Development] haggertk:
No. No it's not.

8.x (lineage-15.0/lineage-15.1 branch) has 40-50 additional patches that aren't in a 7.1.2 (cm-14.1 branch) kernel.
[Samsung Galaxy S 5 Unified Development] pepe100:
Thanks dev for focus this kernel in improve the save In battery, as the principal issue of lineage is the mentioned. My battery performance has improved since I use this kernel.
[Samsung Galaxy S 5 Unified Development] fbs:
So, it is the same kernel version BUT with some patches.. Thanks, I'll look into it if I can find it...
[Samsung Galaxy S 5 Unified Development] saif hussain:
Stuck in galaxy s5 logo

Not booting over 8.1.0
[Samsung Galaxy S 5 Unified Development] Abodi_1:
a little suggestion

hey bro

are you welcoming any kernels suggestions?

or having time for that ?
[Samsung Galaxy S 5 Unified Development] haggertk:
As I stated above, they are different and a 7.x.y kernel will absolutely not work on 8.x.
[Samsung Galaxy S 5 Unified Development] fbs:
just say it, if I think it's worth it I'll look into it
[Samsung Galaxy S 5 Unified Development] fbs:
The opposite is also true? The added stuff on 8.x kernel isn't backward compatible with 7.x roms ?
[Samsung Galaxy S 5 Unified Development] haggertk:
The only real breaking commit might be the mounting system/ via kernel device-tree for early-fs, but there could be more.

We purposely keep separate branches, back- or forward-porting those changes that are absolutely necessary. Pretty standard approach to configuration management.

Of course, we don't accept problem reports from non-lineage kernels, so all of this is on your shoulders. ;)

BTW, I wouldn't recommend doing anything for lineage-15.1 (or derivative) for a while. I'm making updates to the ramdisk on a regular basis; anyone using the non-standard kernel will likely find stuff broken any time they find a new build to upgrade to.
[Samsung Galaxy S 5 Unified Development] Abodi_1:
ok ,

i will send it to you in privet massage
[Samsung Galaxy S 5 Unified Development] taylorhmatos:
I was using the kernel boefla and I decided to test this kernel. Which kernel manager should I use? Boeffla or kernel auditor. And which governor do I put to good battery life without harming performance?
[Samsung Galaxy S 5 Unified Development] Bosket:
Boeffla config.

I use default profile for best battery life,not games.

Test and change anytime you want governors,best for you. :D

Happy new year!;)
[Samsung Galaxy S 5 Unified Development] taylorhmatos:
So for day to day I can keep the way that comes configured without changing anything in the boefla that will improve the battery consumption?

---------- Post added at 14:36 ---------- Previous post was at 14:35 ----------

8h SOT. WOW. Is your battery extended?
[Samsung Galaxy S 5 Unified Development] Bosket:
Yes sure!

---------- Post added at 05:42 PM ---------- Previous post was at 05:37 PM ----------

Original battery.

Music,browsing, YouTube....:D
[Samsung Galaxy S 5 Unified Development] taylorhmatos:
Okay, thank you for the help and clarification.

Our impressed with the life of your battery. My battery is brand new and the maximum it does is 5h of screen, this by moving the entire kernel.
[Samsung Galaxy S 5 Unified Development] pepe100:
Friend lineage Os is battery hungry it occurs with a old battery. The advice is change your battery for a new one or keep with stock Rom.
[Samsung Galaxy S 5 Unified Development] Bosket:
Not really!
[Samsung Galaxy S 5 Unified Development] Grubi28:
I have two s5. The klte runs outstanding with your kernel, but the kltechnduo with the stock kernel is slow as hell.

Is there a chance to get your kernel running on the kltechnduo (G9006W)?

Happy new year and thank you for the amazing kernel
[Samsung Galaxy S 5 Unified Development] vildevilde:
I would like to test this kernel, looks good, but I have some questions.

I am on LineageOs with microG, will I loose the signature spoofing/microG if I install this kernel?

If I am on official LineageOs and do regular updates, will I loose this kernel on every update?
[Samsung Galaxy S 5 Unified Development] fbs:
LOS "bug". It always use the maximum flash power. Old/generic batteries can't keep up..
[Samsung Galaxy S 5 Unified Development] fbs:
I think the kernel won't mess with microG. Every LOS update updates the kernel too.. so yes, you will lose
[Samsung Galaxy S 5 Unified Development] vildevilde:
Flashed the kernel and yes microG selfcheck reports all working, shall, will try for a while, thanks :)
[Samsung Galaxy S 5 Unified Development] Nixer:
Magisk?

Should magisk be re-flashed after flashing this kernel?
[Samsung Galaxy S 5 Unified Development] Jiimmy97:
No
[Samsung Galaxy S 5 Unified Development] Nixer:
Thanks. Hopefully I will install this soon enough and test!
[Samsung Galaxy S 5 Unified Development] saif hussain:
Dev

R u patch ur kernel for kali linux nethunter.

Bro ur kernel is very useful for me & i m kali user also.

But only for nethunter m unable to use ur kernel.

So i request u dev plz add Nethunter support
[Samsung Galaxy S 5 Unified Development] DaKillaz98:
Hey, I would like to say that this is a really nice kernel and appreciate the work! I am curious however if there is a way to disable touch-boosting? I notice when I touch the screen that the min cpu value rises, and it makes it difficult to tweak the interactive governor when it is doing that. Thanks for the hard work though. Appreciate it!
[Samsung Galaxy S 5 Unified Development] carvinx:
Hey. I used your kernel since the first version. And i have to say i loved it! My S5 was working perfectly. Thanks for your great work. Is it working on the LOS 15.1? Im using the last build of the 15.1 and seems stable, i would like to try your kernel on this. Thanks from "Brasil".
[Samsung Galaxy S 5 Unified Development] vd69:
Exellent kernel. I would like to use it too with 15.1 Thank you very much
[Samsung Galaxy S 5 Unified Development] cdrivex4:
[MENTION=516058]fbs[/MENTION] can i have a "latest" kernel for klteduos?
[Samsung Galaxy S 5 Unified Development] Henki98:
Is it possible porting this kernel featurs on boeffla kernel for tw?
[Samsung Galaxy S 5 Unified Development] Jiimmy97:
+1
[Samsung Galaxy S 5 Unified Development] sak0071:
Hi kernel for Los 13 link?
[Samsung Galaxy S 5 Unified Development] tcharlles:
Using on viperos and are flawless, thanks for your work dev.

Keep it up.

Cheers from Brazil.
[Samsung Galaxy S 5 Unified Development] binthe920:
Any thought why Pandora and other apps run in the background would be closing somewhat regularly? It's happening without opening more than one app and doesn't seem to matter what app, low resource, xda for example.

Thank you for any help,

Brad
[Samsung Galaxy S 5 Unified Development] BadToThePhone:
Same issue with Spotify
[Samsung Galaxy S 5 Unified Development] cokeman2010:
What are real differencies between this kernel and venom? Which one is more battery friendly?
[Samsung Galaxy S 5 Unified Development] fbs:
it's the same
[Samsung Galaxy S 5 Unified Development] fbs:
what happens when you try to use it with nethunter? I never used it myself and I can't imagine why it would not work
[Samsung Galaxy S 5 Unified Development] fbs:
I've removed boeffla's touch-booster, and disabled mpdecision (which has a built-in touchbooster) at the default install (I hope you didn't choose mpdecision as the hotplugger)

But yes, there's still ANOTHER touch-booster running somewhere. God, so default LOS has 2 parallel touchboosters running and boeffla has 3.

I'll search the source, I may find it
[Samsung Galaxy S 5 Unified Development] fbs:
thanks.. not working on 15.1 yet
[Samsung Galaxy S 5 Unified Development] fbs:
if I can get the source and it's easily compilable like the cm/los boeffla, yes
[Samsung Galaxy S 5 Unified Development] Henki98:
Thank you dev :) I appreciate your effort. I hope it's possible, otherwise I stay on los for this fantastic kernel
[Samsung Galaxy S 5 Unified Development] saif hussain:
Its working but for nethunter attack like wifi adapter not working its require wlan patch which available in official nethunter site.

Can i gv u link
[Samsung Galaxy S 5 Unified Development] krkhaha:
Hi everyone. Wich app you recommended to menage kernel?
[Samsung Galaxy S 5 Unified Development] Jiimmy97:
Boeffla app config. You don't need to manage its tuned kernal .
[Samsung Galaxy S 5 Unified Development] krkhaha:
I want just change kernel to permissive.
[Samsung Galaxy S 5 Unified Development] Jiimmy97:
Why ? The app provide this seLinux change
[Samsung Galaxy S 5 Unified Development] Atento:
Do you think changing read-ahead from 512 to 1024 would improve i/o performance? Do you see any side effects?
[Samsung Galaxy S 5 Unified Development] binthe920:
Why does it say latest update 1-8-2018 when the newest download available is from December?
[Samsung Galaxy S 5 Unified Development] craP_cillA:
the latest update ist from december, not january.
[Samsung Galaxy S 5 Unified Development] binthe920:
I know but the first post says last updated 2018-01-05 right above the downloads
[Samsung Galaxy S 5 Unified Development] fbs:
yes, I see.

Whenever a process tries to read ONE byte of a file, the Kernel would then read 1,048,575 bytes after that one. While it's reading that file, other i/o operations will be slower, and the calling process may have to wait until it finishes.. Now think hundreds of files are accessed whenever you're using any app and multiply that by the number of apps that can be running simultaneously on yout phone.. :P

That's why I keep 128kb of read-ahead for internal memory. Maybe even lower would be better..
[Samsung Galaxy S 5 Unified Development] craP_cillA:
yes, the thread was last updated then.
[Samsung Galaxy S 5 Unified Development] fipsy:
I wouldn't sign it like that. It only applies if a lot of small files are read or written, but Android apps primarily read and write database files. These are usually larger. And that's why a large read-ahead brings clear advantages here. Ultimately, however, practice is decisive. In my case, the whole system with a read-ahead of 2048 kb for internal memory is noticeably smoother and faster. Especially when starting apps. This is not surprising, however, as sequential reading and writing to the internal memory increases by a factor of 7-10, and the difference is so significant that I think it outweighs all the disadvantages.
[Samsung Galaxy S 5 Unified Development] fbs:
I never ever had any apparent performance benefit, apart from Benchmark BS, which always bias everyone(you included, lol).

Even on HUGE Oracle Servers, with 32GB of RAM and 400GB of database size, no one even touches the read_ahead value. It's always by default 128kb in any monstrous environment. I work with that.
[Samsung Galaxy S 5 Unified Development] SolarMaximus:
Is this work on kltespr or is it only for KLTE devices ?

---------- Post added at 12:19 PM ---------- Previous post was at 12:09 PM ----------

Ohhh.....for the g900f.........sad
[Samsung Galaxy S 5 Unified Development] craP_cillA:
boeffla beta 21 was released a few days ago.
[Samsung Galaxy S 5 Unified Development] fipsy:
However, if benchmarks show performance improvements, this also means that there are working environments where a change in this value brings benefits. And if no one has ever touched this value, it is impossible to know whether a change in this value would bring performance advantages. :) Concerning my device there definitely is a benefit.
[Samsung Galaxy S 5 Unified Development] fbs:
New version based on beta13, with a better algorithm and more optimization in the compiler (overall performance of the kernel) is UP
[Samsung Galaxy S 5 Unified Development] The~Skater~187:
You should start a github
[Samsung Galaxy S 5 Unified Development] fbs:
I'm learning how to. I'm kinda oldschool. I download the source and do a "diff" in it. And I edit using "nano" :)
[Samsung Galaxy S 5 Unified Development] fipsy:
After the first few hours of testing I've got the impression that the fbs kernel beta13 runs a bit faster and more smoothly than the Boeffla kernel. And much more smoothly than the LOS kernel.
[Samsung Galaxy S 5 Unified Development] drewcu:
Definitely a snappy kernel - test driving it also today.

In Boeffla Config Misc 1 there is Android Low Memory Killer - where the default setting is LMK stock settings overwrite turned ON. Should we leave it like that or turn it off since we already have your mod?

Thanks.
[Samsung Galaxy S 5 Unified Development] fipsy:
The switch only refers to overwriting the kernels default values with the values configured below this switch. Boeffla kernel normally uses the stock values as the default. So it doesn't matter if the switch is on or off, as long as you use the default values. You can display the stock value by tapping on the corresponding value for a longer period of time.
[Samsung Galaxy S 5 Unified Development] drewcu:
Thanks for the helpful reply [MENTION=5110154]fipsy[/MENTION].

Any advice for improving battery life with this snappy kernel? Draining with normal usage at 15%/hr which is too high IMHO. Was previously using Boeffla Venom kernel which has very good battery life but a bit laggy especially in comparison to this kernel. Am using the same Boeffla Config profile with both:

CPU Governor : interactive

Governor Profile: standard

Scheduler (Both Internal & External): zen

Readahead Buffer (Internal): 1024

Readahead Buffer (External): 512

Max CPU: 1728MHz

Min CPU: 300MHz

Hotplug Profile: Default

Multicore Powersaving: Aggressive

GPU Governor: powersave

Max GPU: 320MHz

Min GPU: 27MHz

Input Boost Frequency: 1036 MHz

Input Boost Duration: 40ms

TCP Congestion: cubic

Thanks!
[Samsung Galaxy S 5 Unified Development] 10goto10:
My advice would be to disable multicore powersaving (deprecated as noted on the boeffla kernel docs), bump min. gpu to 200mhz (otherwise phone will stutter a bunch, leave it to 27mhz if you can stand the stutter) and switch the GPU governor to the stock one (msm something?), bump up input boost to 1190 MHz (the optimal frequency for SD801 according to the voltage tables), and switch the governor profile to battery.

With max. cpu of 2497 MHz (stock) I'm getting around 6hrs SOT on Wi-Fi, 4,75hrs with cellular data.
[Samsung Galaxy S 5 Unified Development] fipsy:
I would like to add that, contrary to popular opinion, it is not energy-saving to clock the CPU low. Quite the opposite is true. The faster the CPU is finished with its tasks, the more energy-saving the whole thing becomes. It's called race-to-idle. Although the CPU voltage is lowered with decreasing frequency, the principle in my knowledge still applies to the S5: Low clock rate with high demands does not save energy.

By the way: I have about -3%/h with display switched off and GApps installed. But there are also days where I have -12%/h. I've never been able to figure out what the reason is.
[Samsung Galaxy S 5 Unified Development] fbs:
"Governor Profile: standard" change to battery or extreme battery

and "Scheduler (Both Internal & External): zen" I don't have any proof but I think Zen isn't as stable and battery friendly as the default "bfq"

but what really drain batteries is the open apps.. you should close them all by clicking on left button, going to the end of list and "clear all"
[Samsung Galaxy S 5 Unified Development] fipsy:
Isn't it the left button?!