[Kernel][3.0.84][CK3] Mangekyou-Kernel V3 [03-07-2013] - Galaxy S II I9100G Android Development

​
In this thread you may find my customized kernel 3.0.x for JB 4.2.2 rom (CM10.1 and derivatives).
I hope it will be useful, and ensures better performance and battery life.
Of course, your feedback, as always, are welcome and certainly valuable.
Main Features:
-- Kernel 3.0.86
-- Compiled with Linaro 4.7.4 modded by christopher83
-- Sources synched with Cm10.1 branch
-- Built with Cortex-A8 and NEON VFP optimization flags
-- Kernel is very Stable
-- 374 mb of free RAM
-- Init.d support
-- Battery Life eXtender support ( thanks ezekeel and ryuinferno)
-- Optimized AES and SHA1 routines for ARM cpu architecture
-- Optimized ARM RWSEM (read/write semaphore) algorithm
-- Optimized asynchronous I/O latency on solid state disks
-- Optimized string and memcopy libs
--Fast Random generator (frandom) support
-- optimized LPDDR RAM timings (~10% throughput increase)
-- Dynamic management of dirty page writebacks
-- Added optimized CRC32 algorithm.
-- Voku and Dorimanx Tweak for LowMemoryKiller
-- Disable Gentle Fair Sleep for better perfomance
-- Asynchronous I/O latency
-- Lower swappiness 600----->45
-- Add -O3 optimization for modules
-- CK3 con Kolivas Tweaks
Avaible Cpu Governors
-- PegasusQ
-- ZenX
-- Nightmare
-- Ktoonservative
-- Sakuractive
-- HYPER
-- LagFree
-- AbyssPlug
-- Wheatley
-- HotPlug
-- Conservative
-- Perfomance
-- UserSpace
-- PowerSave
-- Ondemand
-- Interactive
Avaible I/O schedular
-- VR
-- Sio
-- Row
-- CFQ
-- DeadLine
-- Noop
Demon-Kernel MediaFire Folder
Sources : My sources of DemonProjects and other projects
CREDITS:
BIG THANKS FOR CHRISTOPHER FOR HIS HELP !!
Mnazim
fuss
Codeworkx for all
Ryuinferno
DOOMSDAY94
Diablo55 for helped my
Christopher83 for his toolchain and his source
voku to vokulmk
cyanogen team =D
and other =))

ChangeLog :
Code:
[B]Mangekyou-Kernel V2 03-07-2013[/B]
adjustes some file
fix name of kernel in defconfig
add [B]CK3[/B] Con Kolivas Tweaks !
[B]Mangekyou-Kernel 02-07-2013[/B]
- Change name of kernel ( because i use mangekyou image in my github and i like this name :P )
- Update LMK
- Voku and Dorimanx Tweak for LowMemoryKiller
- Disable Gentle Fair Sleep for better perfomance with good battery status
- Asynchronous I/O latency to a solid-state disk greatly increased
- Lower swappiness 600----->45
- Add -O3 optimization for modules
[B]Demon-Kernel 01-07-2013[/B]:
-Initial Release

wow first rep........
is it inspired from vampire diaries character........:silly:
just kidding.......
only on 4.2.2 aosp roms???????

for the moment...yes

biagio7xD said:
for the moment...yes
Click to expand...
Click to collapse
whokay then its time to flash new rom after a neat's release.........:silly:
will give feebback by tom may be with screenies.......
will flash on mokee......

I like the sharingan icon so much
Mangekyo sharingan of Itachi
Sent from my GT-I9100G using xda premium

Project Nexus kernel is dead?

Whats the different between this n nexus kernel??
Sent from my GT-I9100G using xda app-developers app

cyelanius said:
Whats the different between this n nexus kernel??
Sent from my GT-I9100G using xda app-developers app
Click to expand...
Click to collapse
nexus kernel have more features and nexus is a perfomance kernel.....not battery friendly...this kernel is more stable and more battery friendly...this is better than nexus
EDIT: release version 20130702.... Mangekyou kernel

I had just installed your damon kernel and was ready to thank you, but saw that there was already a new version. Whooow, if you're speaking of fast, this is fast. So thanks man, and do so on I would say. Doing well. BTW, downloading Mangekyou kernel now!
Verstuurd van mijn GT-I9100G met Tapatalk

wackowizzard said:
I had just installed your damon kernel and was ready to thank you, but saw that there was already a new version. Whooow, if you're speaking of fast, this is fast. So thanks man, and do so on I would say. Doing well. BTW, downloading Mangekyou kernel now!
Verstuurd van mijn GT-I9100G met Tapatalk
Click to expand...
Click to collapse
It is just a rename, no changes yet...as seen from his GitHub...expect if he did not update it before releasing as per real world law...
Hi, at first I wanted to congratulate you on releasing your kernel, but you disappointed me again:
Misconception:
-- Init.d support [all AOSP kernel supports this, it is a feature in stock but not AOSP, already told you before]
-- Add -O3 optimization for modules [not done anywhere]
Below are the features from Slim kernel:
-- Optimized AES and SHA1 routines for ARM cpu architecture
-- Optimized ARM RWSEM (read/write semaphore) algorithm
-- Optimized asynchronous I/O latency on solid state disks
-- Optimized string and memcopy libs
-- Voku and Dorimanx Tweak for LowMemoryKiller
-- Disable Gentle Fair Sleep for better perfomance
-- Asynchronous I/O latency
-- Lower swappiness 600----->45 [it's 60]
What you did:
Compiled with Linaro 4.7.4
optimized LPDDR RAM timings (~10% throughput increase)
add Frandom v2
Added NEON compilation flag
mm: Dynamic management of dirty page writebacks
Battery Life eXtender (BLX)
add New Governor From Nexus Kernel
Added optimized CRC32 algorithm
So this kernel is very based on Slim kernel...and why didn't you state it and credit @mnazim properly?
And, removal of sources of the old Nexus kernel means you cannot share it in public anymore...didn't you learn anything since the Semaphore kernel incident?

Ryuinferno said:
It is just a rename, no changes yet...as seen from his GitHub...expect if he did not update it before releasing as per real world law...
Hi, at first I wanted to congratulate you on releasing your kernel, but you disappointed me again:
Misconception:
-- Init.d support [all AOSP kernel supports this, it is a feature in stock but not AOSP, already told you before]
-- Add -O3 optimization for modules [not done anywhere]
Below are the features from Slim kernel:
-- Optimized AES and SHA1 routines for ARM cpu architecture
-- Optimized ARM RWSEM (read/write semaphore) algorithm
-- Optimized asynchronous I/O latency on solid state disks
-- Optimized string and memcopy libs
-- Voku and Dorimanx Tweak for LowMemoryKiller
-- Disable Gentle Fair Sleep for better perfomance
-- Asynchronous I/O latency
-- Lower swappiness 600----->45 [it's 60]
What you did:
Compiled with Linaro 4.7.4
optimized LPDDR RAM timings (~10% throughput increase)
add Frandom v2
Added NEON compilation flag
mm: Dynamic management of dirty page writebacks
Battery Life eXtender (BLX)
add New Governor From Nexus Kernel
Added optimized CRC32 algorithm
So this kernel is very based on Slim kernel...and why didn't you state it and credit @mnazim properly?
And, removal of sources of the old Nexus kernel means you cannot share it in public anymore...didn't you learn anything since the Semaphore kernel incident?
Click to expand...
Click to collapse
this is based on cyanogen source....nexus is based on slim....not this

biagio7xD said:
this is based on cyanogen source....nexus is based on slim....not this
Click to expand...
Click to collapse
You said Nexus was based on CyanogenMod before this...your sources on GitHub is not supporting your speech...your old repo is gone too...

Real law means intellectual property right? Well then i have to state my opinions. One, this kernel is not earning any money or use ad like someone. Second, original creator of such code is also not earning money frm his creation so i can only see a moral intellectual property rights which is to demand this thread to credits those people properly. Third intellectual property rights is not so easy to be claim as you think. There are few principle such as improvising or this op did expanded his labour work n time to compile and the extent of his own work to actually produce this piece of kernel.
Sent from my GT-I9100G using xda app-developers app

cyelanius said:
Real law means intellectual property right? Well then i have to state my opinions. One, this kernel is not earning any money or use ad like someone. Second, original creator of such code is also not earning money frm his creation so i can only see a moral intellectual property rights which is to demand this thread to credits those people properly. Third intellectual property rights is not so easy to be claim as you think. There are few principle such as improvising or this op did expanded his labour work n time to compile and the extent of his own work to actually produce this piece of kernel.
Sent from my GT-I9100G using xda app-developers app
Click to expand...
Click to collapse
Nope...real law as in GPL...it is different from what you are saying...I did not say he broke it just yet (athough he did before), I was just saying he has to follow GPL, that's all...faux123 got penalised a few times for not adhering to GPL...
Even there is no such law (which is not the case), can't an innocent "user" like me know what's being modified and done to my device? :angel:

Ryuinferno said:
Nope...real law as in GPL...it is different from what you are saying...I did not say he broke it just yet (athough he did before), I was just saying he has to follow GPL, that's all...faux123 got penalised a few times for not adhering to GPL...
Even there is no such law (which is not the case), can't an innocent "user" like me know what's being modified and done to my device? :angel:
Click to expand...
Click to collapse
:thumbup::thumbup: on the GPL point but well xda is at own risk afterall for what you flash isnt it?
Sent from my GT-I9100G using xda app-developers app

cyelanius said:
:thumbup::thumbup: on the GPL point but well xda is at own risk afterall for what you flash isnt it?
Sent from my GT-I9100G using xda app-developers app
Click to expand...
Click to collapse
On your own risk, but what's the point of sharing if people do not know what's going on?

And what is the point with such restriction that will reduce development in xda which was meant to promote n encourage people to develop and introduce ways to put our device to better use? Op since last time in s plus thread got good reputation in his works and even now in s2. I hope this wil not stop people from giving their time n energy working on their works.
Sent from my GT-I9100G using xda app-developers app

cyelanius said:
And what is the point with such restriction that will reduce development in xda which was meant to promote n encourage people to develop and introduce ways to put our device to better use? Op since last time in s plus thread got good reputation in his works and even now in s2. I hope this wil not stop people from giving their time n energy working on their works.
Sent from my GT-I9100G using xda app-developers app
Click to expand...
Click to collapse
*facepalm*...I'm not gonna argue anymore...the fact is, things can be done, but get your path right... That's all I want to convey...

cyelanius said:
And what is the point with such restriction that will reduce development in xda which was meant to promote n encourage people to develop and introduce ways to put our device to better use? Op since last time in s plus thread got good reputation in his works and even now in s2. I hope this wil not stop people from giving their time n energy working on their works.
Sent from my GT-I9100G using xda app-developers app
Click to expand...
Click to collapse
I do not care if the op has a good reputation. The op isn't going to buy me a new device if I brick mine due to this kernel now would he? A kernel is far more important to how a device functions rather than a ROM. If there's little to no CORRECT information given, how would I know what I'm flashing is safe. You may tell me to just skip this and not flash this. But what about other people who sees the stuff in the op but isn't getting what they came for. Complying to GPL is a lot more than what you may think it is. It also helps learning and experienced people know exactly what they're getting.
Sent from my Nexus 7

Related

[KERNEL][codename:BFS returns 0.09][Jul.24][Based on Air kernel 4.4][BFS][UKSM]

Q: Are you Dead?
A: No. But on these day, I'm do something else (learning C/Python). I will come back in some day.
This is an experimental kernel based on the latest Air kernel(v4.4). I patched and re-config the kernel for testing and/or for fun.
My patches will never ever comes into other kernels.
1. using ext4 subsystem for ext2/3.
A very funny thing is Air kernel enabled "using ext4 subsystem for ext2/3", but independent ext2 support enabled, too.
I know It is insignificant for the performance. But that makes me feel sick So I disabled independent ext2 support to get a smaller(0.5kb lower?) kernel.
2. using the BFS scheduler.
For small systems, the default scheduler - CFS, is a very complex things, and complex code cause a low performance in embedded systems. BFS is a simple scheduler for embedded systems. It can makes the CPU go faster. In fact, some people think it makes Android UI slower than before.
BFS is written by Con Kolivas.
For more information, you can visit Con Kolivas blog: http://ck-hack.blogspot.com/
3. UKSM
Linux kernel uses KSM to merging same pages for KVM virtual machine. Cyanogenmod modified Android, so KSM can work with Dalvik too. And we can get more RAMs. UKSM is a new project, it more powerful than KSM. It works without any modify. UKSM will scan all data in memory and merge them.
UKSM is a Chinese project, and it's still in development.
You can visit http://http://kerneldedup.org/en to learn more. But there only one page is available in English now.
Usage of UKSM: http://kerneldedup.org/en/projects/uksm/uksmdoc/usage/
4.Deadline for default I/O scheduler. (In v0.06)
CFQ cause low boot performance and missing app icons on my phone. So I set deadline for default scheduler.
WARNING: Don't use it with Jelly Bean, if you do it, your phone will unable to boot, unless you flash a Jelly Bean's kernel.
Latest version
The latest version is v0.09.
All version (included broken/buggy kernel) downloads: http://biergaizi.info/pub/
Voodoo color
It has Voodoo color only(no 65fps or blue color)
Download: http://biergaizi.info/pub/[BFS returns][Air kernel 4.4][0.09][voodoo-color].zip
65fps+Blue color
It has 65fps + blue color.
Download: http://biergaizi.info/pub/[BFS returns][Air kernel 4.4][0.09][65fps+blue].zip
Known Issue:
1.Random crashes/reboots.
Note1: I think it's a upstream issue.
Note2: Issue 1 was no longer exist in v0.06
Found a bug?
If you phone is crashed or auto-rebooted, please type this command after you first reboot:
cat /proc/last_kmsg > /sdcard/kernel_log.txt
Then you can find a file in your sdcard(usb mass storage) and its name is kernel_log.txt
Please reply and upload it for attach file, it can help me to solve the problem.
The source code is available from patches, sources on Github will remove soon:
http://biergaizi.info/pub/sources/
About the version number:
My zips' name are follow these rules:
[BFS returns][Air kernel x.x][x.x][voodoo-color]
.......^...............^.............^...........^
..Codename..Based on what...Main.....voodoo-color or
.....................version of....version....65fps+blue color
.....................Air kernel.....number
For example, [BFS returns][Air kernel 4.4][0.05][voodoo-color] is stand for:
the kernel's codename is 'BFS returns', based on Air kernel 4.4, the main version number is 0.05, and this kernel is a voodoo-color-kernel.
And I must talk about the main version number:
...x.........................xx..................x...............-...x.
...^..........................^..................^..................^
."Milestone".............times of.............small fix for.....complied version or zipped
version with major.....small changes......this release...version (changed kernel
....changes..........................................................config, version of gcc,
.........................................................................or fixed a broken zip file)
For example:
0.05 is stand for no major changes, and the fifth time of release with small changes, no small fix for it, just complied one time.
Q&A:
What is a scheduler?
Your computer often has 1-8 CPUs only, a CPU can do one thing in one time only. But you can run 500 processes on it. Why? Because scheduler switches processes. For example, You have 1 CPU only, and you opened 100 processes, scheduler will let one process run some time, and interrupt it, then let the next process run. So, there is a single process running only. But CPU is very fast, and scheduler switches them quickly, so you can't feel it.
How long does the scheduler let one process run? Different schedulers have different answers. But all of them are using algorithms to schedule process rational.
The history of CFS & BFS?
5 years ago, there was a scheduler called CFS. It's a very high performance scheduler, so it replaced O(1) scheduler when it merged. Facts have proved that, it is really high performance, because it can use on a supercomputer with 4096 CPUs.
On a supercomputer, a priority is very important and useful. Because many people are connecting to the supercomputer and work on it, so, you must specify the priority to people, to share the resources fairly. CFS is this kind of scheduler: it has advanced priority system. Such as group scheduled, so we can specify the priority to every single user & usergroup.
But, Does the most people use the supercomputer??
For me, I still use a computer with legacy device: a Pentium M CPU sometimes. And I use SCMs, such as a MP3 player, or devices with ARM chips, such as routers, iDevices, and my Nexus S smartphone.
By design, CFS will use on everywhere. So, it can't optimize for the device you are use. For example, we still use a supercompuer to elaborate it: priority is important on the supercomputer, but how about on the SCMs or smartphones? There are only one user at the same time. But, CFS is trying to compute the priority of the users every second!! These things are useless on low-performance-devies, and cause the low performance. It really not optimized for the low-performance-devices.
So, Con Kolivas, the designer of CFS (he just wrote some paper for it, the developer is Ingo Molnár. He also is the developer of O(1), wroto CFS before Con Kolivas. Con Kolivas is very angry for that) wrote a new scheduler for low-performance-devices, called BFS, Brain **** Scheduler. Why Brain ****? Because it very easy and simple, and kind of stupid scheduler, but it can improve performance on low-performance-devices. It removed some "awesome" design, such as advanced priority, but a stupid and simple one, etc.
It really a bad scheduler for 8-core-systems, and a terrible scheduler for 16-core-systems. But a great system with single-core and dual-core. Con Kolivas said it will never be in to the mainline Linux kernel, because it isn't a general scheduler, but I will keep update for it outside the mainline kernel code.
But now, CFS is better than before too. Lots of people think, CFS is the winner now.
Tell me something about UKSM.
This is an improvement upon KSM.
Its new features:
1. Full system scan:
It automatically scans all user processes' anonymous VMAs. Kernel-user
interaction to submit a memory area to KSM is no longer needed.
2. Rich area detection:
It automatically detects rich areas containing abundant duplicated
pages based. Rich areas are given a full scan speed. Poor areas are
sampled at a reasonable speed with very low CPU consumption.
3. Ultra Per-page scan speed improvement:
A new hash algorithm is proposed. As a result, on a machine with
Core(TM)2 Quad Q9300 CPU in 32-bit mode and 800MHZ DDR2 main memory, it
can scan memory areas that does not contain duplicated pages at speed of
627MB/sec ~ 2445MB/sec and can merge duplicated areas at speed of
477MB/sec ~ 923MB/sec.
4. Thrashing area avoidance:
Thrashing area(an VMA that has frequent Ksm page break-out) can be
filtered out. My benchmark shows it's more efficient than KSM's per-page
hash value based volatile page detection.
5. Full Zero Page consideration(contributed by Figo Zhang)
Now uksmd consider full zero pages as special pages and merge them to an
special unswappable uksm zero page.
How to tweak UKSM?
http://kerneldedup.org/en/projects/uksm/uksmdoc/usage/
You are just add BFS patch to Air kernel, the kernel is useless, everyone can do it!!!
Yes, I am a patcher and a compiler. Some kernel in XDA, also just add some patch and small hack to improve proformance. And users will not compile their own kernels, right? I'm doing the same thing. I will do more work soon.
Catalog:
Jul.24.2012 | 0.09:
1. Backported Codel queue management algorith from Linux 3.5.
Jul.23.2012 | 0.08:
1. Updated kernel source to Linux 3.0.38!
P.S: This time I didn't just copy r_data's code, I did it by myself. Because r_data is working on Jelly Bean's kernel and forgot to update this kernel!
Jul.15.2012 | 0.07:
1. New UKSM patchset.
2. r_data just updated him version information.
Jun.28.2012 | 0.06:
1. New UKSM patchset.
2. Deadline for default I/O scheduler.
3. Based on real Air kernel 4.4, not 4.3 weekly.
Jun.23.2012 | 0.05:
1.Updated kernel source code to Air kernel 4.4.
2.ext2/3 mounted by ext4 subsystem.
3.UKSM replaced KSM.
Apr.09.2012 | 0.03:
1.Update kernel source code to Air kernel 3.9.5.
2.There are not High Bigmem/Non-High Bigmem versions, because I don't want to build 4 versions. And I don't know my kernel is a what version. I think it's a High Bigmem version.
3.Source code are not on Github yet.
Apr.08.2012 | 0.02:
1.Use r_data's config, a major update!
2.Based on Air Kernel 3.9
3.Fix a BFS of bug.
4.Source code are not on Github yet!
5.[Apr.09]Quickfix: Fix the bad zip file.
Apr.05.2012 | 0.01:
1.First release.
2.Based on Air Kernel 3.8
3.BFS kernel.
biergaizi said:
Catalog
Apr.05.2012 | 0.01:
1.First release.
2.Based on Air Kernel 3.8
3.BFS kernel.
Click to expand...
Click to collapse
I'm a huge fan of Air. I don't really get the idea of how BFS can improve an already awesome kernel, but I'll give it a try, and report back asap. Thanks for your work.
EDIT: Sorry, still not as smooth as Air. Going back to v3.8. Good job anyway. Cheers!
Sent from my Nexus S
apatal said:
I'm a huge fan of Air. I don't really get the idea of how BFS can improve an already awesome kernel, but I'll give it a try, and report back asap. Thanks for your work.
EDIT: Sorry, still not as smooth as Air. Going back to v3.8. Good job anyway. Cheers!
Sent from my Nexus S
Click to expand...
Click to collapse
I'm sorry for that. Because I just want to add latest BFS to the kernels for somebody who want to try it (included me). And I use Linux a long time, I just want to learn how to compile Android kernel.
But I can't get r_data's kernel config file, and I don't know his Email address. So, I write a terrible one. This kernel has lots of bugs. I think you was saw the version number of it, 0.01
I will still improve it.
Thanks.
I did a comparison of the performance of bfs and cfs a while back using the two kernels that provided both, Matr1x and GlaDOS. CPU scores improved with bfs but graphics deteriorated and i noticed UI lags with bfs. The results are still available to view on the kernel spreadsheet (see link in my signature).
kernels ; battery ; ROM ; gov/sched
Now with summaries in the first posts. Convenient for XDA app users!
Because BFS use interrupts for multitasking, so it cause UI lags. But the overall performance should improved I think.
Your test proved it. Thanks
biergaizi said:
because bfs use interrupts for multitasking, so it cause ui lags. But the overall performance should improved i think.
Your test proved it. Thanks
Click to expand...
Click to collapse
终于! 有个中国人开始写内核了, 支持支持~~~
biergaizi said:
Because BFS use interrupts for multitasking, so it cause UI lags. But the overall performance should improved I think.
Your test proved it. Thanks
Click to expand...
Click to collapse
I am curious... You said earlier you wanted to develop a kernel to use BFS... but then you said you "found" r_data's config file.... meaning he didn't give it to you, so you haven't actually "developed" anything... so that you can add a scheduler for users who typically don't use BFS.
By Bedalus' own own testing, the BFS causes some lags in UI functions, but "may improve overall system performance".
So I am curious; when there are well developed, and tested kernels like Matr1x, Glados, Steve Garon's, and the official Air Kernel with amazing performance, speed, smoothness and responsiveness, what benefit does your kernel offer?
I am a consummate kernel flasher, and guess I would like to know your sales pitch. You know benefits, etc.
While I try many kernels, I try none without some research first. and so far, sooner than later I return to Air Kernel for it's stability and responsiveness.
Thanks
Steviemac12 said:
I am curious... You said earlier you wanted to develop a kernel to use BFS... but then you said you "found" r_data's config file.... meaning he didn't give it to you, so you haven't actually "developed" anything... so that you can add a scheduler for users who typically don't use BFS.
.......
So I am curious; when there are well developed, and tested kernels like Matr1x, Glados, Steve Garon's, and the official Air Kernel with amazing performance, speed, smoothness and responsiveness, what benefit does your kernel offer?
Click to expand...
Click to collapse
C'mon, give the kid a break, he's got his heart in the right place
It's open source and on a git somewhere; he is also crediting r_data.
So although it still isn't a very compelling kang of the Air kernel, he hasn't done anything sleazy.
Sent from my Nexus S using xda premium
motorator said:
C'mon, give the kid a break, he's got his heart in the right place
It's open source and on a git somewhere; he is also crediting r_data.
So although it still isn't a very compelling kang of the Air kernel, he hasn't done anything sleazy.
Sent from my Nexus S using xda premium
Click to expand...
Click to collapse
My apology... never said he did anything "sleazy". Re-reading now, It came off a bit... well not exactly as I intended.
Just trying to understand where he is going with his project.
Again... biergaizi no offense intended. I think I am having sour grapes (jealous) because I wish I could learn to do what you guys do.
will give this one a try and maybe I can be more constructive.
Thanks Motorator for the kick in the pants..
I'm in the same boat as you in that I wish I knew how to code or at least compile some of this stuff.
Don't take it the wrong way. I didn't mean anything harsh; I just don't want young'uns like the OP to get discouraged.
Maybe this gets traction, or maybe it goes the way of most hobby coding projects. Whichever it is, we should at least let him try
Sent from my Nexus S using xda premium
motorator said:
I'm in the same boat as you in that I wish I knew how to code or at least compile some of this stuff.
Click to expand...
Click to collapse
+1 on this.
I've been hanging out in this forums and I'm getting an itch to start contributing as well, that is, contributing beyond merely test-driving their creations and actually coming out with something useful myself.
I even have the beginnings of a plan on how to go about it. Wish me luck!
apatal said:
I even have the beginnings of a plan on how to go about it. Wish me luck!
Click to expand...
Click to collapse
All the best with your plan. I hope you succeed and motivate us all to also take part :thumbup:
Sent from my Nexus S using xda premium
Nice try, and keep on going.
Steviemac12 said:
I am curious... You said earlier you wanted to develop a kernel to use BFS... but then you said you "found" r_data's config file.... meaning he didn't give it to you, so you haven't actually "developed" anything... so that you can add a scheduler for users who typically don't use BFS.
By Bedalus' own own testing, the BFS causes some lags in UI functions, but "may improve overall system performance".
So I am curious; when there are well developed, and tested kernels like Matr1x, Glados, Steve Garon's, and the official Air Kernel with amazing performance, speed, smoothness and responsiveness, what benefit does your kernel offer?
I am a consummate kernel flasher, and guess I would like to know your sales pitch. You know benefits, etc.
While I try many kernels, I try none without some research first. and so far, sooner than later I return to Air Kernel for it's stability and responsiveness.
Thanks
Click to expand...
Click to collapse
In Linux community, there are lots of people don't develop anything, but just compile the source code into binary. And do you know Zen Kernel? It just add other hacker's(not in mainline kernel)patches into it.
Why I can't do the same thing in XDA
qtwrk said:
终于! 有个中国人开始写内核了, 支持支持~~~
Click to expand...
Click to collapse
谢谢支持。看来Unicode还是很强大的。
-------------------------
Unicode is really a great characterset.
biergaizi said:
In Linux community, there are lots of people don't develop anything, but just compile the source code into binary. And do you know Zen Kernel? It just add other hacker's(not in mainline kernel)patches into it.
Why I can't do the same thing in XDA
Click to expand...
Click to collapse
Please accept my apology. Sometimes I talk out of my ass and this was one of those times.
Wish I could do what you are doing.
Sent from my Nexus S using xda premium
Just flashed this kernel and I think it's pretty snappy, I think basing it on Air Kernel is a good idea. I would say that this is something we're missing here in the NS forums is a Kernel based on BFS, I know most kernels come with the option of either, but a focused BFS kernel is certainly not a bad thing, I used to love it back in my days on the Desire.
I remember the days of compiling kernels for my Linux boxes when I was younger, I now just let updates decide what's best since I was constantly tinkering and getting it wrong.
toyface said:
Just flashed this kernel and I think it's pretty snappy, I think basing it on Air Kernel is a good idea. I would say that this is something we're missing here in the NS forums is a Kernel based on BFS, I know most kernels come with the option of either, but a focused BFS kernel is certainly not a bad thing, I used to love it back in my days on the Desire.
I remember the days of compiling kernels for my Linux boxes when I was younger, I now just let updates decide what's best since I was constantly tinkering and getting it wrong.
Click to expand...
Click to collapse
I'm using Linux everytime. And I'm carzy, I think install from source will get a high performance(because I was had a laptop with legacy hardware, compile packages with march= is really works). So, I using Gentoo, compile everything.
But I'm also a funs of Fedora.
If today I'm lazy to compile:
I will boot Fedora
Else:
I will boot Gentoo

[KERNEL][3.0.30] Matt's kernel v0.8 - 29/04/2012

Hi!
This is my first kernel for Nexus S. It is based on _thalamus 3.0.29_r1 kernel.
Matt's kernel don't have OC, LiveOC or similar features.
Original changelog/features from _thalamus:
*Second stable release based on AOSP 3.0.8 source, merged up to 3.0.29 from mainline kernel.org
*PM Fast for wifi
*Deadline I/O scheduler tweaked for flash for lowest I/O latencies
*Ondemand governor tweaked to sample less at higher frequencies to reduce overhead
*Config: CFS CPU scheduler, Deadline I/O scheduler, Ondemand CPU governor, SLUB allocator, Tiny Preempt RCU, Tun/Tap, IP advanced routing and CIFS built in
*Various compiler warnings and section mismatches fixed
*Disabled a stack of debug options resulting in a slightly faster kernel.
*Built with latest Linaro toolchain (GCC 4.6-2012.03)
Click to expand...
Click to collapse
* Changelog/features for v0.8 (29/04/2012):
Stock Display Freq
Added BLD & BLN
block: limit default readahead size for small devices
BLD Enabled (3000ms)
BLN Enabled (I need test)
KSM tweaked
Added modified liblights for BLN
Changelog/features for v0.6 (29/04/2012):
Optimized compiler flags
Increased HZ to 1000
Added optimized CRC32 algorithm
Increased default readahead value to 1024KB
Changelog/features for v0.5 (29/04/2012):
Gzip
Enabled KSM for page merging
Disabled "Debug Filesystem"
Disabled "Kernel debugging"
Patched from 3.0.29 to 3.0.30
65FPs panel
Little tweak for Deadline
Added ARM RWSEM algorithm
Added SLQB memory allocator
Build with 4.6-2012.04 Linaro
I have high performance but I don't know yet about battery drain.
Remember to wipe Dalvik cache.
DOWNLOAD: http://dl.dropbox.com/u/20742004/MattsKernelv0.8.zip
SOURCES: https://bitbucket.org/MattScherbatsky/matt-nexuss_kernel
Benchmarks: zirka 2300 Quadrant Score - 3075 Antutu
Thanks to: _thalamus, franciscofranco, rcrdbrt, Ezekeel, Google, my parents.
This is for me.
Welcome to Nexus forum
Sent from my Nexus S using xda premium
Wellcome to Nexus S world, good luck with your kernel!
Updated to v0.6.
Changelog in first post.
If you can add voodoo sound, fast charge, Bld. This will be perfect for me.
Sent from my Nexus S
Welcome to nexus s man . Great to have another kernel dev
Is it possible to add the high bigmem in next release? (404MB RAM)
Sent from my Nexus S using Tapatalk 2
mixtapes08 said:
If you can add voodoo sound, fast charge, Bld. This will be perfect for me.
Sent from my Nexus S
Click to expand...
Click to collapse
Same here
Welcome Matt & hoping for improvements . Good luck .
Sent from my Crespo
Hey Matt, sup. I know you since the development in Optimus One, hope you gonna do great in Nexus.
Sent from my Nexus S using Tapatalk 2
Welcome to the nexus s community
Sent from my Nexus S using Tapatalk 2
Hoping to see bln
Sent from my Nexus S using xda premium
only thing i'm missing is bln, i'd really love to give this a try if you could incorporate this
I'll implement soon BLN, I need it.
For another things, I don't know. For now I need tests for this kernel.
Hope!
MattScherbatsky said:
I'll implement soon BLN, I need it.
For another things, I don't know. For now I need tests for this kernel.
Hope!
Click to expand...
Click to collapse
Tested, its fine everything working. Except! I cant underclock to 800mhz...
Sent from my Nexus S using Tapatalk 2
DaXmax said:
Tested, its fine everything working. Except! I cant underclock to 800mhz...
Sent from my Nexus S using Tapatalk 2
Click to expand...
Click to collapse
Wait for future releases!
Increased Hz to 1000? What is it?
Sent from my Nexus S using XDA
Welcome to the Nexus S community.
I`ve used your kernel for a couple of hours now. Like the other folks, I miss also BLN, and also Voodoo sound/colors.
Besides, the only downside till now has was the laggy 3D performance in games. I thought that it was only the game, but tested 3d in Quadrant Advance, and it was still the case.
Overall, your Kernel is snappy and stable-no random reboots till now. I`ll be waiting impatiently for your next release
v0.8 released.
Changelog in first post.
darkchaos7 said:
Welcome to the Nexus S community.
I`ve used your kernel for a couple of hours now. Like the other folks, I miss also BLN, and also Voodoo sound/colors.
Besides, the only downside till now has was the laggy 3D performance in games. I thought that it was only the game, but tested 3d in Quadrant Advance, and it was still the case.
Overall, your Kernel is snappy and stable-no random reboots till now. I`ll be waiting impatiently for your next release
Click to expand...
Click to collapse
using root explorer, go to /system/lib/egl/ and delete the libGLES_android.so file. reboot, then try quadrant again. any difference?
simms22 said:
using root explorer, go to /system/lib/egl/ and delete the libGLES_android.so file. reboot, then try quadrant again. any difference?
Click to expand...
Click to collapse
I am actually on ICS, not GB.

[Kernel] MetalliKernel CM9-HWA a6 [150-1380mhz] [384mhz GPU] [7/5 - Feature List]

This kernel is built for and from codeworkx's CM9 with hardware acceleration.
Again this is for codeworkx's cm9.
One more time, this is for codeworkx's cyanogenmod 9.
Finally, this is for cm9 and cm9 only!
Don't let the "alpha" title fool you into thinking it's not stable... it is... It's only alpha because it's still in the "testing" phase.
Works on the P31XX. I don't know about other models.
FEATURES/CHANGES
Overclockable to 1.38GHz
Underclockable to 150MHz
GPU overclocked to 384MHz (highest possible without bottlenecking and battery waste)
Tuned OnDemand Governor (recommended)
Interactive Governor with time view concept (learns from your use and adjust parameters accordingly)
Wheatley Governor (optimized use of C4 state)
Hotplug Governor (turns of one of the cpus to save power when load is very low)
Pegasusq Governor (A better version of Hotplug, but experimental and not designed for our devices)
SIO scheduler for speed/performance with flash storage
Linaro Toolchain
Linaro optimizations and patches
Linaro makefile compiler flags
Makefile Optimizations to boost performance
Optimized CRC32
Optimized ARM RWSEM algorithm
Tiler Memory increased to 32MB (linaro)
Other Tiler patches/tweaks to improve 2D gpu performance
SLQB allocator
lib/string use glibc version for speed
lib/memcopy use glibc version for speed
lib/sha1: use the git implementation of SHA-1 and removed ARM sha1 routines
I/O backport from 3.2 linux kernel for less dirty throttling
Tweak CPUIDLE to enter deep sleep faster thus saving battery
LowMemoryKiller backported from 3.4 kernel
Disable GENTLE_FAIR_SLEEPERS for improved performance
Allow Deep Sleep to occur when media decoder is active allowing the cpu to shut off when playing music or video.
Allow MPU logic to power down when in deep sleep to save power.
Increased default readahead value to 1024KB for faster sdcard reads
A lot of stuff I probably forgot I did.
Also includes a ridiculous amount of bugfixes, patches, and tweaks that can found on my github commit log.
***Read Me***
DO NOT, UNDER ANY CIRCUMSTANCE, USE SETCPU PROFILES OF ANY KIND OR ANYTHING SIMILAR WITH THIS DEVICE. Things like screen off max frequency, temperature throttling, and others are already built in to the OMAP architecture. Using ANY profiles will ONLY lead to problems, instabilities, and battery drain.
***************
Let me know how it "feels" especially by default without overclocking or underclocking. Also I'd be interested in how the battery treats you. Thanks!
DOWNLOAD
a1 - http://goo.im/devs/Metallice/Tab2/MetalliKernel_CM9_a1.zip
a2 - http://goo.im/devs/Metallice/Tab2/MetalliKernel_CM9_a2.zip - Changes to: Wifi, GPU, Low Memory Killer, others
a3 - http://goo.im/devs/Metallice/Tab2/MetalliKernel_CM9_a3.zip - Changes to: ondemand, interactive, add wheatley, add pegasusq, deep idle, compiler flags, SDcard read, others
a4 - http://goo.im/devs/Metallice/Tab2/MetalliKernel_CM9_a4.zip - Changes to: Compiler flags, CPUidle, RCU, others.
a5 - http://goo.im/devs/Metallice/Tab2/MetalliKernel_CM9_a5.zip - reverts and bugfixes, use 10.1 ramdisk in 10.1 version
a6 - http://goo.im/devs/Metallice/Tab2/MetalliKernel_CM9_a6.zip - CLASSIFIED change, NEED feedback on speed, slowness, smoothness, and lag compared to stock and a5. Reverted some revets. Reverted changes to RCU to fix SODs. Graphics. For 10.1 fixed overclocking.
If you would like to overclock but your device can't handle it... and are willing to suffer through extreme battery drain to try this - Link
Thanks go out to - CodeworkX, Ezekeel, Francisco Franco, Imoseyon, Faux123, Fugumod, Sonicxml, Texas Instruments, Samsung, Google, and all the others I probably forgot about. Sorry!
Source
https://github.com/Metallice
______________________________________________________________________________________________________________________
So, I'm a broke college student without a job this summer - instead taking extra classes and studying like crazy for the MCAT. If you like my work and want to thank me, feel free to buy a coffee or an energy drink so I can continue to stay up late studying and working on Android stuff (or help me pay for med school ). I don't want to have to choose! Thanks and I appreciate your support!
I like this format, just like Trinity kernel. Much less placebo for added things. Like, "zOmg, linaro made my phone fly! Thanks for including it, it rocks!!!!!" With the things being changed kept hidden, I'd LOVE for you to release a couple builds, with different compile dates, without changing a thing, but telling people you did. Watch the placebo roll in, ha
Thank god you released this. Seriously the only thing this ROM was missing was a little OC. You guys are really making this purchase (Getting the GTab 2) a really good idea!
Sent from my GT-P3113 using Tapatalk 2
Will this kernel work on p3100 becaise all i see around here all the custom roms and kernels are for p3113 so please just confirm the models on whicj it would be flashable.
Thanx
Sent from my GT-P3100 using Tapatalk 2
tapan15in said:
Will this kernel work on p3100 becaise all i see around here all the custom roms and kernels are for p3113 so please just confirm the models on whicj it would be flashable.
Thanx
Sent from my GT-P3100 using Tapatalk 2
Click to expand...
Click to collapse
I don't know. I have no way of testing.
Sent from my GT-P3113 using xda premium
Oh yeah. You da man!
Just flashed... will give updates on how it is running.. so far so good!!
Sent from my GT-P3113 using xda app-developers app
cannt wait for this, thank u so much
I will tell my feeling about this after I flashed it
Sent from my GT-P3110 using Tapatalk 2
Runs smooth and stable at 1380mhz on my 3113. Thank you for your hard work! On a related note, what governor do you recommend? In your experience, does using hotplug actually save battery?
yes it is working with 3100. great job.
Flashed this on my P3110, and it bricked it NOT.
Thanks for this. Waiting to see what more you will add to the kernel.
Cheers.
I've got a question. Does the tab 2 not have a CPU temp Senser?
Sent from my GT-P3113 using xda premium
Been using this since last night and so far no RR or SOD's. Everything is running smooth without any errors, glitches, etc. Great work, as always, Metallice!
---------- Post added at 11:37 AM ---------- Previous post was at 11:37 AM ----------
Kidney Poker said:
I've got a question. Does the tab 2 not have a CPU temp Senser?
Sent from my GT-P3113 using xda premium
Click to expand...
Click to collapse
I don't know, but wander why you would ask?
miketoasty said:
Been using this since last night and so far no RR or SOD's. Everything is running smooth without any errors, glitches, etc. Great work, as always, Metallice!
---------- Post added at 11:37 AM ---------- Previous post was at 11:37 AM ----------
I don't know, but wander why you would ask?
Click to expand...
Click to collapse
CPU controllers have a temp read out. I like having one. I know most apps pull the info from kernel. Was trying to find out if we have the hardware built in and the kernel isn't passing info or if the hardware is just not there.
Sent from my GT-P3113 using xda premium
Maybe it's just my tablet, but I can't get any clock speed greater than stock to work. Tried it on this kernel and one I did myself.
Kidney Poker said:
I've got a question. Does the tab 2 not have a CPU temp Senser?
Sent from my GT-P3113 using xda premium
Click to expand...
Click to collapse
Yeah the omap does. Not sure if I turned it on or not. If its on you can get the temp from dmesg I believe.
Sent from my Galaxy Nexus using xda premium
imnuts said:
Maybe it's just my tablet, but I can't get any clock speed greater than stock to work. Tried it on this kernel and one I did myself.
Click to expand...
Click to collapse
I can try adding a 1.1ghz slot?
Sent from my Galaxy Nexus using xda premium
Kidney Poker said:
CPU controllers have a temp read out. I like having one. I know most apps pull the info from kernel. Was trying to find out if we have the hardware built in and the kernel isn't passing info or if the hardware is just not there.
Sent from my GT-P3113 using xda premium
Click to expand...
Click to collapse
Most apps actually pull their info from the battery temp and are unreliable.
Sent from my Galaxy Nexus using xda premium
nphil said:
Runs smooth and stable at 1380mhz on my 3113. Thank you for your hard work! On a related note, what governor do you recommend? In your experience, does using hotplug actually save battery?
Click to expand...
Click to collapse
OnDemand. I don't bother with hot plug as I don't see any benefit. If you do a lot of non interactive activities like reading or music it may be helpful, but I would try the 200mhz min before I try hot plug.
Sent from my Galaxy Nexus using xda premium
Have you flashed on cm9 or stock rom??
Sent from my GT-P3100 using Tapatalk 2

[KERNEL][SPR][4.4.3] ★☆ Kangaroo Kernel ☆★ 04 OCT | v068

Kangaroo Kernel for the HTC One GSM: Sense ROMs
Linux 3.4.104+, with many features and improvements from Linux 3.12 and 3.14
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
For android 4.4.3 Sense ROMs
Based off HTC 6.09.401.5 sources for 4.4.3 Sense
Code:
* Standard disclaimer:
* Your warranty is now void. Use at your own risk.
* In other words: It is your choice to use this software,
* I am not responsible for any damage or problems!
Naming convention
KANGAROO KERNEL MKIV IS FOR 4.4.3 ONLY (it will have _443 at the end of the filename)
JOEY AOSP CM (ckxxx): AOSP/CM based ROMs depreciated
JOEY GPE (post 4): sense based 4.4.2 and GPE 4.4.2 depreciated
KANGAROO KERNEL SENSE (kkxxx): sense based 4.4.2 ROMs and GPE only depreciated
Click to expand...
Click to collapse
Features:
Compiled with latest Linaro Christopher83 Linaro 4.9.1 toolchain
Better performance and battery savings due to the use of more efficient algorithms and updated, optimized code
Kernel is aimed at reducing heat while saving battery and increasing performance over stock
IN DEPTH FEATURE LIST IN CHANGELOG AND ON GIT
Better to look at changelog cause I miss things when I try to condense it
CPU governors (italics for default): ondemand, performance, userspace, msm-dcvs, powersave
io sched: no-op, deadline, CFQ
KANGAROO CONTROL SCRIPT IN POST #3
Can be used to control all options, plus more
Click to expand...
Click to collapse
Installation:
1. Download kernel
2. Reboot to recovery
3. Backup
*if you come from faux or tbalden please reflash your rom, you don''t need a wipe. They have some trickery with their own hotplugs so they have reomved mpdecision, so without reflashing your phone will be stuck on quad core*
4. Flash kernel
5. Reboot
*Please let it sit for ~10 mins before judging as it will need to settle down. Do not judge battery life unless you've run it through at least 3+ cycles after flashing*
Click to expand...
Click to collapse
DISCLAIMERS:
1) Excessive under/overvolting can cause damage to the internal parts of your phone. It can cause the phone's lifespan to deteriorate quickly so make sure you know boundaries
2) If you OC'ed/OV'ed/UV'ed and now are in a boot loop or your phone is slow, or acting weird or just died - it means your phone does not like the changes. Voltage control is for those who know what the risks are, know what they are doing and know how to fix it. Perhaps when you change these, test them for an hour or so before setting on boot
3) Any changes to the phone, including flashing the kernel itself is done at your own risk.
4) Every phone is differentt
5) Please DO NOT use any task killers (or additional init.d scripts), they DO NOT improve performance/battery. The kernel is designed to be used with stock settings: my settings and anything else can cause problems
Click to expand...
Click to collapse
Download latest version:
http://forum.xda-developers.com/showthread.php?t=2768222&page=53#post55839886
If you want logo options:
http://forum.xda-developers.com/showpost.php?p=54759427&postcount=5140
All previous versions:
Can now be found in changelog posts.
All older versions:
http://www.androidfilehost.com/?w=files&flid=15247
Sauce: https://github.com/poondog/kangaroo-m7-mkIV
*Please do not re upload without permission, I like to count downloads*
Changelog will be in post 2
What is not coming via requests:
- replacement for mpdecision
- additional useless governors
- aroma
- anything useless: this kernel was made for me and I shared it with a few people until now
Click to expand...
Click to collapse
With thanks to (in no particular order)
franciscofranco
faux123
anarkia1976/ak
imoseyon
flar2
teamseven
n3ocort3x
morfic
maxwen
labodj
ktoonsez
tpbklake
janarp
szezso
Synthetic.Nightmare
ZeroInfinity
Sabermod team
Stratosk
Lens-F
Savoca
tiny4579
neniick
geko95gek
brymaster
buckmarble
Click to expand...
Click to collapse
XDA:DevDB Information
Kangaroo Kernel, Kernel for the Sprint HTC One
Contributors
poondog
Kernel Special Features:
Version Information
Status: Stable
Created 2014-05-31
Last Updated 2014-10-05
Reserved
Changelog will go here
4.4.3 Sense kernel:
Code:
*****v058*****14 September
.shorten some wakelocks (for better sleeping)
.some more tweaks for better overall battery and performance
.upstream fixes and improvements to TOPOLOGY drivers (to do with queuing of tasks to individual cores, from Linaro)
.optimize TOPOLOGY further for Krait devices (neobuddy89)
.introduce BFQ IOSCHED v7r5
.introduce FIOPS IOSCHED (default)
.enable ILLINOIS to be set as default, and set it default for TCP
.introduce LINARO POWER EFFICIENT WORKQUEUES (heaps of battery savings)
.some fixes to bluetooth
.upstream backports to EVENTPOLL subsystem from 3.14+ (Efficient event retrieval implementation, thx neobuddy)
.fix some more compile warnings for better optimized code (cl3kener)
.drop i2c clock a bit more (to save battery, ref. @zeroblade1984/Samsung/OPPO
.remove some more debug (less energy waste)
.strip most debug from modules, reduce size by 90%
.enable all sleep states, based on 4.4.2 kernel tests (for better battery especially in sleep)
.remove depreciated sched sysfs since they are removed up upstream kernels and don't really do anything
.some LINARO ARM code improvements
.update to HTC 6.09.401.5 kernel source (not much really lol, a few internet related fixes)
.introduce USB FAST CHARGE (flar2, off by default)
.cleanup some HTC junk
.some improvements to LOWMEMORYKILLER from moto/upstream (to do with multitasking)
.some improvements to ONDEMAND governor for better power savings with no smoothness loss
.fixed USB DAC audio (Thanks @hq5 for testing)
.introduce KEXEC_HARDBOOT aka MULTIROM (still needs patched RAMDISK, I do not include this)
.fix compass on Sprint and Verizon (brymaster5000)
.add some more doge
http://forum.xda-developers.com/showpost.php?p=55423362&postcount=5983
*****v045*****6 September*****
.2w: change feedback slightly, now it doesn't vibrate heaps on sweep2sleep
.further updated workqueue (for better battery and efficiency)
.some network tweaks
.heaps of "under the hood" improvements (lead to better efficiency for speed/battery)
.reduce internal USB wakelocks to improve battery
.patched kernel futex vulnerability (from CM, for security)
.compress with LZ4 for faster boot speeds and built with latest binary
.updated all compressors to latest versions
.add lower GPU frequencies and scale to them (for better battery)
.upstream backports to OOM handler from 3.16+ (related to memory use, see here https://www.kernel.org/doc/gorman/ht...rstand016.html)
.optimized deadline scheduler for better use on flash
.quad core cpu stats (faux123)
.lower max i2c clock to 384MHz to save some juice, no negative effects in testing
.some general code fixes and improvements
.enable ILLINOIS tcp algorithm and set default
.enable NTFS r/w support
http://forum.xda-developers.com/showthread.php?t=2564895&page=582#post55259490
*****v027*****30 August*****
.massive improvements to the workqueue, synced with AOSP+ (franciscofranco)
.BCM4335: attempt to decrease wakelocks
.signature tweaks to SLIMBUS (me/zeroinifity)
.msm: memutils: memcpy, memmove, copy_page optimization from motorola
.use freezable blocking calls kernel wide (for more efficiency and less waste of resources, comes from upstream android)
.slimmed down kernel, stripped of some things it doesn't need
.removed some more debugging
.much under the hood tweaks (wow)
http://forum.xda-developers.com/showpost.php?p=55136831&postcount=5636
*****v021*****22 August*****
.2w: default to sweep2wake and doubletap2wake on
.backport RANDOM and RANDOM32 drivers from Linux 3.16. FULL port, not just a few patches
.patch all the way to Linux 3.4.103 latest. These include bugfixes, enhancements that have been seen fit to be merged into the mainline 3.4.y kernel
.scale L2 and CPU in sync, up to 1134MHz where the L2 maxes out. Results in smoothness at higher freqs and battery saving at lower
.begin to work on workqueue, for now just a few fixes
.drop all CPU voltages by 50mV for battery improvement and heat reduction
.begin to tweak kernel to be cooler and leaner
http://forum.xda-developers.com/showthread.php?p=54976133#post54976133
*****v006*****5 August*****
.patch upstream to 3.4.25
.introduce all 2w features from Kangaroo Kernel 4.4.2, including dt2w, s2w, bi-directional etc
.button backlight notifications (tbalden)
.tweak makefile flag optimizations based on our testing on 4.4.2 Sense
.some minor fixes and enhancements
.disabled systemrw protection (Tiny4579)
http://forum.xda-developers.com/showthread.php?p=54619213&highlight=update#post54619213
*****v001*****29 July*****
.few compiler tweaks based on what worked well on 4.4.2 kernel
.some minor code optimizations and fixes
.compile with Christopher83 Linaro 4.9.1 2014.07 toolchain
.vfp with neon hard optimization levelz
http://forum.xda-developers.com/showpost.php?p=54454303&postcount=4973
Reserved
24 August: kangaroo Kernel control script with modified mountpoints for SPRINT
Thanks for sharing.
Get out of here!!! I've been waiting on the kernel like forever. Thanks poondog!!
SENT FROM MY SENSE 6 SPRINT HTC ONE
THADDIUS25 said:
Get out of here!!! I've been waiting on the kernel like forever. Thanks poondog!!
SENT FROM MY SENSE 6 SPRINT HTC ONE
Click to expand...
Click to collapse
ok I will get out
Running nice so far
Sent from my HTCONE using XDA Free mobile app
YAYAYAYAYAYAY; I found your kernel for the gpe edition a month ago and hoped someday it will be ported for sprint, looks like my prayers are answered! Thank you!!!:laugh:
Nice thanks for sharing!!!
Frigging sweet!
Sent from my HTCONE using Tapatalk
davidkrocks said:
YAYAYAYAYAYAY; I found your kernel for the gpe edition a month ago and hoped someday it will be ported for sprint, looks like my prayers are answered! Thank you!!!:laugh:
Click to expand...
Click to collapse
Lucky you lol
slickrick54 said:
Nice thanks for sharing!!!
Click to expand...
Click to collapse
Thanks for the support, hope you enjoy
FrozenRiff said:
Frigging sweet!
Sent from my HTCONE using Tapatalk
Click to expand...
Click to collapse
Do I remember you from the evo 3d nsfw wallpaper thread?
Sent from my Nexus 7 using XDA Premium 4 mobile app
poondog said:
kangaroo Kernel control script
Click to expand...
Click to collapse
Is this needed, or can I just use something like trickster mod? Also, thanks for supporting this device!
cygnus said:
Is this needed, or can I just use something like trickster mod? Also, thanks for supporting this device!
Click to expand...
Click to collapse
Depends what you want to do most of the time you can use trickster. But, for frequencies you'll need to use the script to cap it since o have pnpmgr enabled
Pnpmgr is HTC power and performance manager and it is responsible for boosting CPU and gou when needed. So its enabled to eliminate any stutter
poondog said:
Depends what you want to do most of the time you can use trickster. But, for frequencies you'll need to use the script to cap it since o have pnpmgr enabled
Pnpmgr is HTC power and performance manager and it is responsible for boosting CPU and gou when needed. So its enabled to eliminate any stutter
Click to expand...
Click to collapse
I just want to set governors and clock speeds, as well as modify screen wake settings and such. Is that possible without the script?
cygnus said:
I just want to set governors and clock speeds, as well as modify screen wake settings and such. Is that possible without the script?
Click to expand...
Click to collapse
Since you say clock speeds, you will need the script
However I am a strong believer in keeping the clock speeds stock. It has great battery already (I always last the day on one charge) and lowering the max freq say to 1.4GHz will extract a bit moer battery, maybe you will end up on 20% instead of 12% at the end of the day. If I want to underclock I will use the poewr saver option for CPU (assuming it works for you on this device, since some roms it doesn't work on) I know viperone has this working
imo, try without the underclocking and if you need it you will need to use teh script. its easy, I can walk you through it if you'd like
Do this got dt2w and ntfs support
Sent from my EVO using XDA Premium 4 mobile app
liljthatbol said:
Do this got dt2w and ntfs support
Sent from my EVO using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Yes
poondog said:
Yes
Click to expand...
Click to collapse
Any reasons to not use SMARTMAX over Ondemand?
Also I am not familiar with FIOS. I always used ROW but looking for best battery life.
Quick question for the kernel guru, I noticed the kernel mentions how it increases the gpu bandwidth, the question I'm wondering if you can elaborate what it is? I googled the feature and I only came up with hits from you!
Two words...luvvv it!
Sent from my HTCONE
numus said:
Any reasons to not use SMARTMAX over Ondemand?
Also I am not familiar with FIOS. I always used ROW but looking for best battery life.
Click to expand...
Click to collapse
personally, i dont notice a lot of difference between different schedulers, but we had a discussion about it in the gsm thread here . as for the governors, i prefer ondemand, because (for me) it has the best combination of battery and performance, but some prefer smartmax or preservative more. you can also find some infos about that in the gps thread

[Kernel] Vindicator [AOE3] [Strict-Aliasing/UberTC/Loop-Nest] [-R3-]

Vindicator Kernel
Intro:
This is the first Samsung kernel I've ever developed. I just started developing on android a few months ago so I'm brand new to this. I don't really consider myself a developer, I'm just good at figuring things out, all credit goes to the real hard workers coming up with original ideas like Franco, Imoseyon, Ktoonsez, etc. I hope you like it and I won't be offended if you hate it. All ideas are welcome and I'll try to help as best I can. If you wish to use this kernel in a rom , feel free! Although I would love it if you let me know just for my own curiosity.​
Goal:​Keep kernel as lean as possible while adding certain, desirable features, upstreaming source, and optimizing for maximum performance and battery life. The default settings should be optimal for a balance of battery and performance without a need to tweak.​
Disclaimer:​If your phone blows up, its not my fault. If your phone somehow gains perpetual battery life, I'll take full responsibility.​
Features:​-AOE3 Source Based
-ONLY TESTED ON TMOBILE VARIANT
-VControl Kernel Control Script(Loosely Based On lkconfig by imoseyon)
-Compiled With Uber ToolChain 4.9
-Compiled With Strict-Aliasing, A53/57 Tweaks, And Loop Nest Optimizations
-Various Other Build Optimizations
-WLAN_RX & WLAN_CTRL Wakelocks Reduced
-Optional GPU OC To 772Mhz
-A53 UnderClockable To 200Mhz, Overclockable To 1.6Ghz
-A57 UnderClockable To 200Mhz, OverClockable To 2.5Ghz
-Slub Allocator Updated To Linux 3.18
-GPU Slightly UnderVolted
-Small CPU Task Packing
-Nvidia Power Efficiency Patches
-GPU Voltage Control
-LED Fade Control
-Deep sleep fix
-Optimized Power Coefficients
-FSync Toggle
-Memory Leak Patches
-Sleep/Suspend Patches
-3X Faster Integer Square Root Operations
-Interactive Wont Scale Up Below 5% Load
-HRTimer Optimizations
-Avoid load Average Moire
-Scheduler Optimizations
-Memcopy and String Optimizations
-Use Compile Time Constants For Jiffies Conversions When Possible(Reduces CPU Overhead)
-Workqueue Updated To Linux 3.18
-Optional Power Efficient Workqueues (Expanded to more modules than normal as well)
-Moto QuickWakeup Driver
-Frandom (Efficient Random Number Generator)
-Cruft Free
-Slimmed Down
-Tons Of Debugging and Tracers Removed
-Many Misc. Optimizations
-FIOPS, CFQ, NOOP & BFQ IO Schedulers
-Tons Of IO Fixes/Performance Boosts
-Voltage Control
-Entropy Optimizations/Tweaks
-Optimized RWSEM
-Many Parts Pulled From Upstream
-Init.D Support
-Installs SU
-Potentially Something I Forgot...
Downloads:
[AFH] Kernel: https://www.androidfilehost.com/?w=files&flid=32684
Credits:
Imoseyon
Ktoonsez
AndreiLux
G.lewarne
Samsung
Flar2
anarkia
hybridmax
Franco
Faux123
Linaro
Code Aurora Foundation
Cl3Kener
Google
Motorola
If I Missed You Lemme Know!​
XDA:DevDB Information
Vindicator Kernel, Kernel for the T-Mobile Samsung Galaxy S6
Contributors
Xileforce
Source Code: https://github.com/XileForce/Vindicator-S6
Kernel Special Features:
Version Information
Status: Stable
Current Stable Version: R3
Created 2015-05-30
Last Updated 2015-05-30
Changelog:
R1:
-Initial Release
R2:
-CPU Task Packing For A53 Cores(Read In FAQ)
-Numerous Patches To HMP From Linaro(This controls how and when tasks are moved from big to LITTLE CPUs)
-CPUIdle Improvements
-GPS Fix(Thanks To Glewarne)
-Increase hash table size on futexs for better performance
-Tweaked Interactive Governor Values A Bit
-Additional Compile Time Optimizations
-Fix VControl Set On Boot
-Add Toggle For Task Packing To VControl(Currently Not Working :/ )
R3:
-Updated To Linux 3.10.67(From .61)
-Made binder mutex instead of rtmutex(less stutter)
-Reduce packing limit. (This will load the CPUs less before spreading load. Actually improves battery and performance)
-Some upstream cpuidle improvements
-Reduce preempt latency
-Optimize scheduler modules with maximum compiler optimizations
-Increase AES interleave to 4x(for encrypted people this showed a performance improvement of 37% on an A57 processor which is our Atlas cores)
-Use high priority workqueue for devfreq which is related to the GPU
-Scheduler considers cost of balancing and doesn't overestimate average anymore
-Small micro optimizations
-Improve Low Memory Killer routines patch from neobuddy89
-Add rbtree optimizations to LMK. (Significantly improves LMK performance)
FAQ's
1. What Is VControl And How Do I Use It?:
VControl is a kernel tweaking "app" built into the ramdisk. It is accessed via terminal emulator. To use it simply download terminal emulator, Type "su" without quotes and hit enter. Grant terminal emulator super user permission and then type "VControl" without quotes. Please note that it is case sensitive. This will bring up a text menu and you navigate by simply entering the option number you want and hitting enter. It is currently a WIP. FSync control and Power Efficient Workqueues don't currently set on boot properly More will be added to VControl over time.
2. You Broke My Phone! Fix It!:
It will be quite hard for me to figure out what is going on if you don't provide details and a log of what happened. To get a log use any file manager with root support and navigate to proc/last_kmsg.
3. What Kernel Tweaking App Should I Use?:
To Tweak the kernel, currently the only app that works well is KTweaker. To get KTweaker simply flash ktoonsez kernel which will install the app, then flash this. You will have the app unless you wipe data. You can also use VControl for a limited number of things
4. What Do Power Efficient Workqueues Do?:
Typically when a task is created, it is bound to the cpu it was created on. This is great for performance due to maintaining cache locality. However its not the best for battery life. Power efficient workqueues attempts to schedule tasks on already awake cpus. A quick note about awake and sleeping cpus. A sleeping cpu doesnt mean the cpu is turned off or not hotplugged, nor does this mean it has to be deep sleeping. A core can be online and still be sleeping which means it uses very little power. This is why we are able to run with all 8 cores on all the time. Most of the time the majority of the cpus are sleeping. With power efficient workqueues, jobs will attempt to schedule on awake cpus which means we dont have to wake up the cpus that are sleeping already. This means we lose cache locality so we suffer a small (very small) performance hit but we potentially save noticeable amounts of battery. Enable for battery, disable if you plan on benchmarking or just want the extra power. They are off by default.
5. What Is Strict Aliasing And Why Should I Care?:
One of the big things Linaro does with improving Android's performance is fixing violations of what's known as "the strict aliasing rule." A pointer is said to alias another pointer when they both refer to the same location of memory. This is OK and not an uncommon thing to do. The strict aliasing rule is that pointers of different types should never refer to the same location of memory (aka alias each other). Strict aliasing allows a compiler to make some assumptions when compiling and optimizing code that it otherwise couldn't. It's actually one of the biggest optimizations you can do and it is fairly hard to add which is why most people don't. Here's a nice read up on it http://cellperformance.beyond3d.com/articles/2006/06/understanding-strict-aliasing.html#benefits
6. What Does Moto QuickWakeup Do?:
QuickWakeup is a driver developed by motorola which increases battery life when the screen is off. It allows for only the modules which need to be woken up during sleep to wake up, thus conserving power.
7. What does Small CPU Task Packing Mean?:
Task packing Is a process done by the scheduler. What it tries to do is pack all tasks onto as few cores as possible. In this case, it only packs tasks for the low power(small) cores as we want to maintain maximum performance and spread the load out on the bigger cores. The advantage of packing tasks is that if we envision a scenario where there is a 40% load and that FETs spread out across the 4 small CPUs at 10% load each all 4 small CPUs are awake and running at a low frequency. With task packing all 40% would be shoved onto 1 core and the other 3 would sleep. This provides energy savings. However there becomes a point where the frequency required to process the extra tasks becomes high enough that it would use less power to run two cores at half the speed rather than 1 core at a very high speed. In this scenario the scheduler will automatically let tasks spill over onto adjacent CPUs in order to maximize power efficiency. One down side to this is a small performance hit due to having to pull the other cores out of a sleep state in the event of needing immediate power. However I would guess most people couldn't notice a difference.
More will be added as they come up and I think of them.
Annndd one more
Please note that this is only tested on the smg920T model. I have no idea if it will work on others
Works well thank you!
guaneet said:
Works well thank you!
Click to expand...
Click to collapse
Happy to hear that sir! You are the only other person to have tried it so far so that's good news. BTW. Idk what AVS# you are but I'm an 11 and I have stably undervolted by 75 for the A53 cores and 50 for the A57s. Maybe that will help someone.
Xileforce said:
Happy to hear that sir! You are the only other person to have tried it so far so that's good news. BTW. Idk what AVS# you are but I'm an 11 and I have stably undervolted by 75 for the A53 cores and 50 for the A57s. Maybe that will help someone.
Click to expand...
Click to collapse
I like your ideology behind this kernel. Totally reminds me of imosyen nice to see another dev here! I tend to keep my volts as is. I always have problems
Would also like to say that this kernel is best one for my phone so far! Haven't noticed anything but stability. Thanks
guaneet said:
I like your ideology behind this kernel. Totally reminds me of imosyen nice to see another dev here! I tend to keep my volts as is. I always have problems
Click to expand...
Click to collapse
Haha. My first kernel I ever made was for nexus 6 based on his lean kernel so that's what I learned on. In fact I believe I've got almost all the stuff removed that he has removed back on nexus 6 plus even more that I've found. I'm a firm believer that less is very often more. Expect more trimming down in the following builds.
Sent from my SM-G920T using XDA Free mobile app
Xileforce said:
Haha. My first kernel I ever made was for nexus 6 based on his lean kernel so that's what I learned on. In fact I believe I've got almost all the stuff removed that he has removed back on nexus 6 plus even more that I've found. I'm a firm believer that less is very often more. Expect more trimming down in the following builds.
Sent from my SM-G920T using XDA Free mobile app
Click to expand...
Click to collapse
Well now I know I'll be in good hands ?
I've been following him since the note 3 days.
Can't wait to see where you take this project!
guaneet said:
Well now I know I'll be in good hands ?
I've been following him since the note 3 days.
Can't wait to see where to take this protect!
Click to expand...
Click to collapse
Well I hope you like it! I'll leave you alone now lol.
Sent from my SM-G920T using XDA Free mobile app
Downloading and testing now. Not really related, but I was wondering if power save overrides cpu clock/gov/anything else? The reason I ask, is that I typically underclock or undervolt a bit to save some battery but keep in normal high performance state with PS off. But if PS mode does this anyway, I shouldn't bother should I?
Wow, that 3rd post (FAQs) was super-informative!
Sent from my SM-G920T using XDA Free mobile app
Edit: Everything seems to be running perfectly fine so far. Charging up so I can see how the battery life is. I'm currently on OZOP's ROM.
welcome to the lonely S6 kernel devs club!
ive sent you a pm
benjmiester said:
Downloading and testing now. Not really related, but I was wondering if power save overrides cpu clock/gov/anything else? The reason I ask, is that I typically underclock or undervolt a bit to save some battery but keep in normal high performance state with PS off. But if PS mode does this anyway, I shouldn't bother should I?
Wow, that 3rd post (FAQs) was super-informative!
Sent from my SM-G920T using XDA Free mobile app
Edit: Everything seems to be running perfectly fine so far. Charging up so I can see how the battery life is. I'm currently on OZOP's ROM.
Click to expand...
Click to collapse
To be honest I dont know specifically what power save mode does. I've only had the phone for like 6 days. Ik ps limits frame rate and stuff like that so You will save additional power beyond Running in normal mode, but I'm not sure how it affects cores and frequencies currently. This phone is a whole different beast than my nexus 6...I would like to add more, lower frequency steps to save more power. Glad to hear you are liking it so far though! And I plan on adding a configuration guide of sorts in my 4th post with more detail on the controls available . I also plan on getting synapse working properly as that will enable significantly easier kernel tweaking.
Sent from my SM-G920T using XDA Free mobile app
g.lewarne said:
welcome to the lonely S6 kernel devs club!
ive sent you a pm
Click to expand...
Click to collapse
Thank you! Your build script and zip file were a massive help to me. This is completely different from building for a nexus. And I'm not too worried yet the device is little over a month old. I'm hopeful we will see more development start to come. I tried to use your new script setup but I couldn't get it booting for some reason. I'll have to revisit it. I'm sure I didn't something wrong. I'm a Noob.
Sent from my SM-G920T using XDA Free mobile app
Oh em gee! Im switching to tmo!!!!!! Lol j/k...Glad to see you here Xile! If anyone here likes bleeding edge performance and stability, Vindicator is the kernel for you!!!
Custodian said:
Oh em gee! Im switching to tmo!!!!!! Lol j/k...Glad to see you here Xile! If anyone here likes bleeding edge performance and stability, Vindicator is the kernel for you!!!
Click to expand...
Click to collapse
Lol once I wrap my head around all these different variants I'll try and get a build working for the edge. Took me days just to get call audio working
Sent from my SM-G920T using XDA Free mobile app
Xileforce said:
Lol once I wrap my head around all these different variants I'll try and get a build working for the edge. Took me days just to get call audio working
Sent from my SM-G920T using XDA Free mobile app
Click to expand...
Click to collapse
I know there's a unified method that ktoonz and a few others use/developed, reach out to him for assistance! However, just out of curiosity I flashed this baby on top of sac and ram deodexed rom for the s6 edge sprint variation and it works lol....only issue ive noticed so far is the "storage message" keeps popping up.
Custodian said:
I know there's a unified method that ktoonz and a few others use/developed, reach out to him for assistance! However, just out of curiosity I flashed this baby on top of sac and ram deodexed rom for the s6 edge sprint variation and it works lol....only issue ive noticed so far is the "storage message" keeps popping up.
Click to expand...
Click to collapse
O_O that's suprising...ik there's some differences...hmm...well then. And I am going to try and get their method working soon. I tried to get it working earlier and got it compiling correctly but couldn't get it to boot sadly I will revisit it.
Sent from my SM-G920T using XDA Free mobile app
Going to give your kernel a run today and see how it goes! Always love to see more options around here.
I'm curious about the memory leak(s) you say you've patched. I wasn't really aware of any on the kernel side, can you give a bit of explanation here?

Categories

Resources