Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,782,554 Members 36,279 Now Online
XDA Developers Android and Mobile Development Forum
Announcement from TripRex: This Thread is only for Cyanogenmod 11 Project Engine Kernel

[DEV] [AOSP] [HYBRID] [4.4+] Project Engine Kernel [CORTEX-A9] [1.2]

Tip us?
TripRex Old
#1  
Guest
Thanks Meter 0
Posts: n/a
Default [DEV] [AOSP] [HYBRID] [4.4+] Project Engine Kernel [CORTEX-A9] [1.2]



Disclaimer:I am not responsible for whatever happens to your phone and if you are willing to try it,then go ahead

What is Project Engine Kernel?: Project Engine Kernel is a kernel that is optimised for performance and battery.It unlocks the full potential of the phone and keeps the phone as safe as possible from any unnecessary bricking and reboots.Compiling this kernel is to let users feel comfortable with the battery life and performance
Of course, your feedback, as always, are welcome and appreciated


The main features are the following:
- Linux Kernel 3.0.101 Sneaky Weasel
- Compiled with latest Linaro GCC 4.7 ARM Cortex A-9 Optimised with NeonVFP3 Technology Toolchain
- Hybrid Updates and Backports from Latest Linux Kernel
- Selinux Optimisations
- CPU boost driver
- Reduce logger to free more RAM size
- Low-memory killer ported from 3.4 Kernel(Credits to k2wl)
- Timer slack controller added with custom tuning available for users
- ARM Topology Optimisations
- Fast frandom Generator(Linked to dev/random)
- Dynamic FileSync Control by faux123
- Dirty-page writeback by Christopher83
- Cross Memory Attach
- CK3 Tweaks by Con Kolivas
- Increase default entropy settings
- Frequency steps to 1.5Ghz
- Ultra Kernel Samepage Merging
- SLQB Memory Allocator
- ARM bug fixes
- Proportional TCP Rate Reduction(Click here for more details)

CPU governors:
- Adaptive
- Conservative
- Interactive
- InteractiveX
- LionHeart
- OnDemand (default)
- Performance
- Powersave
- SmartAssV2
- SmartAssH3

I/O schedulers:
- BFQ
- CFQ
- Deadline
- Noop
- SIO (default)
- V(R)

Kernel Downloads for KitKat:
The Project Engine Website is coded and designed by Triprex and Ashish Bansal a.k.a mr.phantom
Click on the Baffin Folder and download the zip file:Click Here to Download

How to install the kernel:
1) Download the preferred kernel zip file to sdcard or external sdcard
2) Reboot to recovery mode
3) Flash the kernel zip file
4) Wipe cache and dalvik cache if you're coming from another kernel
5) Reboot the system

Kernel sources (on GitHub):

Development branch of Project Engine Kernel


Changelog:
These are all taken from git log because i have 100+ commits
Code:
d56fbf2 (HEAD, origin/cm11, cm11) Revert "thp: mremap support and TLB optimization"
* 8aa65eb sysctl: add support for poll()
* b0fc53c mm: restrict access to slab files under procfs and sysfs
* b5461b3 (master) thp: mremap support and TLB optimization
* 549fa86 lib/string: use glibc version
* f2a49e8 lib/memcopy: use glibc version
* 5d813c8 Proportional Rate Reduction for TCP.
* c9a43a9 lib: Improve the performance of string.c
* 29e62cc make register_disk() static
* 5988d2f power: Front buffer early suspend draw delay sysfs control
* 005d0ef Clean up codes
* e6905db ARM: Add optimised swahb32() byteswap helper for v6 and above
* 968129c Cleaning up residue files
* 547a1bf Added building scripts and update toolchain path
* faa65f4 Revert "fix linaro memset"
* d298a3d fix linaro memset
* 7ae0867 Revert "Update to 3.1.1"
* 82c7fe9 Revert "Update to 3.1.2"
* efbb39e Revert "Add some mfd drivers"
* 77c96b5 Modified VC version
* 4bee175 block: introduce the BFQ-v5r1 I/O sched for 3.0
* 437673c block: introduce the BFQ-v5r1 I/O sched for 3.0
* 439a713 Update defconfig to support exfat
* 1b5218c add exfat support
* 9b5c013 timer: optimize apply_slack()
* 9c9cf7c Revert "kernel: Prevent unnecessary rfkill event generation."
* 84a2dd8 Squashed update of BFQ-v6r1 to BFQ-v6r2
* 85c2b2a block: Squashed update of BFQ-v6 to BFQ-v6r1
c9402e4 Rebase back to BFQVR
* 4926547 Revert "Squashed update of BFQ-v6r1 to BFQ-v6r2"
* bc933b4 Squashed update BFQ
* 264d2ce ARM: disable preemption in machine_shutdown
* f863375 block: introduce the BFQ-v5r1 I/O sched for 3.0
* b595d07 block: cgroups, kconfig, build bits for BFQ-v5r1-3.0
* 65bd617 block: prepare I/O context code for BFQ-v5r1 for 3.0
* 21043f4 Revert "lib/string: use glibc version"
* b3a172d Revert "lockdep: remove task argument from debug_check_no_locks_held"
* 6d37bb9 Revert "lib/memcopy: use glibc version"
* 8486b2b lockdep: remove task argument from debug_check_no_locks_held
* ff0ef66 fixed autosleep and enabled it
* 84b58cb kernel/power/powersuspend: new PM kernel driver for Android w/o earlysuspend (faux123). Backported to 3.0.10
* 50d2250 Enable UNALIGNED_ACCESS for the new LZO algorithm to use. LZO decrompression is used on QCACHE so we benefit
* c79c949 kernel: Prevent unnecessary rfkill event generation.
* 51c7801 ext4: fixup 64-bit divides in 3.0-stable backport of upstream fix
* c0434dd ext4: use atomic64_t for the per-flexbg free_clusters count
* f7951a1 ext4: fixup 64-bit divides in 3.0-stable backport of upstream fix
* cc1ab54 kernel: Disabled Gentle Fair Sleepers for better performance
* 5c309ab lib/string: use glibc version
* c212f2c lib/memcopy: use glibc version
* e657a26 rwsem: check counter to avoid cmpxchg calls
* fc293ca rwsem: no need for explicit signed longs
* b4868a6 Revert "cpufreq: interactive: handle errors from cpufreq_frequency_table_target"
* 356ca4c cpufreq: interactive: handle errors from cpufreq_frequency_table_target
* b324d73 Update toolchain path for ARM-EABI-Linaro 4.7 toolchain
* 0ab6ac1 ARM: 7670/1: fix the memset fix
* eeb403a ARM: 7668/1: fix memset-related crashes caused by recent GCC (4.7.2) optimizations
* For more info,check out my github for commits

Version 1.1
* Remove O3 Optimisations
* For more info,check out my github for commits
Credits and Thanks to:
k2wl,pawitp,xenon92,akiratoriyama,CoolDevelopment, thewadegeek,Christopher83,mr.phantom,Galaxy Grand Hangout Group,faux123,boype,Linux Devs,Samsung,Kernel.org,Linaro GCC,Cyanogenmod,Linux Kernel Newbies,educk,AriesDevConnection Team





XDA:DevDB Information
[DEV] [AOSP] [4.4+] Project Engine Kernel [CORTEX-A9], Kernel for the Samsung Galaxy Grand Duos i9082

Contributors
TripRex, mr.phantom
Kernel Special Features:

Version Information
Status: Stable

Created 2014-04-27
Last Updated 2014-05-11
The Following 21 Users Say Thank You to For This Useful Post: [ Click to Expand ]
TripRex Old
(Last edited by TripRex; 27th April 2014 at 09:59 AM.)
#2  
Guest
Thanks Meter 0
Posts: n/a
Default Reserved

Special features and sysfs settings (Part 2):

Timer slack controller and dynamic management of the minimal timer slack value
The timer slack controller is a feature developed by Kirill Shutemov and it allows to set the minimal timer slack value for every process contained within a control group (cgroup).
A timer slack allows the kernel to manage processes wakeup requests at some future time.
Thanks to this feature, the kernel can set a specific timer slack for the involved processes, minimizing the number of wakeups and allowing a lower system's power consumption.
For further info: Timer slack for slacker developers

I also implemented a new feature in addition to the above one that allows the dynamic management of the minimal timer slack value.
So, it's possible to use different minimal timer slack value when the system is active and when has been suspended.

How to customize the dynamic timer slack controller feature:
 

Three new cgroup parameters are exposed inside each processes hierarchy contained in /dev/cpuctl path:
- timer_slack.min_slack_ns is the timer slack used when the system is active for the current processes hierarchy
- timer_slack.min_slack_suspend_ns is the timer slack used when the system is suspended for the current processes hierarchy
- timer_slack.effective_slack_suspend_ns is the timer slack currently used

At the moment, the values chosen and used by K^Kernel are the following:
- core processes (/dev/cpuctl), 0 ns when the system is active, 50000 ns when the system is suspended
- foreground apps/processes (/dev/cpuctl/apps), 0 ns when the system is active, 250000 ns when the system is suspended
- background non interactive apps/processes (/dev/cpuctl/apps/bg_non_interactive), 100000000 ns when the system is active, 250000000 ns when the system is suspended

1) By directly editing one of the file written above inside /dev/cpuctl and inside each hierarchy subfolder, by setting the preferred value (note that set value will be lost after a reboot/shutdown)
2) By using Terminal Emulator (note that set value will be lost after a reboot/shutdown)
- Open Terminal Emulator
- Run these commands to set the minimal timer slack for generic and core apps/processes
Code:
su
echo 0 > /dev/cpuctl/timer_slack.min_slack_ns
echo 50000 > /dev/cpuctl/timer_slack.min_slack_suspend_ns
- Run these commands to set the minimal timer slack for apps/processes in foreground
Code:
su
echo 0 > /dev/cpuctl/apps/timer_slack.min_slack_ns
echo 100000 > /dev/cpuctl/apps/timer_slack.min_slack_suspend_ns
- Run these commands to set the minimal timer slack for apps/processes in background and non interactive
Code:
su
echo 100000000 > /dev/cpuctl/apps/bg_non_interactive/timer_slack.min_slack_ns
echo 250000000 > /dev/cpuctl/apps/bg_non_interactive/timer_slack.min_slack_suspend_ns

LowMemoryKiller management of not killable processes
This feature allows to define processes and system processes white-lists filled with the preferred process names and to not be killed by lowmemorykiller, unless it is absolutely necessary.

This feature exposes four new lowmemorykiller parameters:
- donotkill_proc, is the flag to enable / disable this feature for the processes chosen by the user
- donotkill_sysproc, is the flag to enable / disable this feature for the system processes chosen by the user
- donotkill_proc_names, is the list of process names (comma separated) chosen by the user to be preserved from killing
- donotkill_sysproc_names, is the list of user system process names (comma separated) chosen by the user to be preserved from killing

When the lowmemorykiller needs to free ram, it will first kill the processes not included inside the two process name lists chosen by the user.
If there are no more standard killable processes, then it will be necessary to kill one of the processes included inside one of the two white-lists, to prevent system hangs, slowdowns, etc.

How to customize the white lists of processes to preserve from killing:
 

On K^Kernel the feature is enabled by default and the provided processes white lists are the following:
- donotkill_proc_names = "com.cyanogenmod.trebuchet,com.anddoes.launcher,co m.teslacoilsw.launcher,org.adwfreak.launcher,gtp.n extlauncher,android.inputmethod.latin,com.touchtyp e.swiftkey"
this means that Trebuchet Launcher, Apex Launcher, Nova Launcher, ADW Launcher, Next Launcher, stock keyboard and SwiftKey keyboard will be preserved from killing
- donotkill_sysproc_names = "android.process.acore,com.android.phone,com.bel.a ndroid.dspmanager"
this means that the system process, the phone process and DSP Manager will be preserved from killing

1) By using a customized init.d script (the custom value will be always restored after a reboot, if you don't format the system partition)
- Download the script named 80dnkp
- If the file has been saved with .txt extension (stock browser), rename it by removing the .txt extension
- Edit the file by setting your preferred status and processes list
- Copy the new file inside /etc/init.d
- Give the rwxr-xr-x permissions to the file (read, write, execution for owner, read and execution for group users, read and execution for others)
- Reboot
2) By directly editing the files inside /sys/module/lowmemorykiller/parameters (note that set values will be lost after a reboot/shutdown)
3) By using Terminal Emulator (note that set values will be lost after a reboot/shutdown)
- Open Terminal Emulator
- Run these commands if you want to enable the feature
Code:
# To enable this feature for the processes chosen by the user
echo 1 > /sys/module/lowmemorykiller/parameters/donotkill_proc
# To enable this feature for the system processes chosen by the user
echo 1 > /sys/module/lowmemorykiller/parameters/donotkill_sysproc
- Run these commands if you want to disable the feature
Code:
# To disable this feature for the processes chosen by the user
echo 0 > /sys/module/lowmemorykiller/parameters/donotkill_proc
# To disable this feature for the system processes chosen by the user
echo 0 > /sys/module/lowmemorykiller/parameters/donotkill_sysproc
- Run this command if you want to add, for example, Trebuchet Launcher (CM default launcher) and the default keyboard to the processes white list
Code:
echo "com.cyanogenmod.trebuchet,android.inputmethod.latin" > /sys/module/lowmemorykiller/parameters/donotkill_proc_names
- Run this command if you want to add, for example, the system process, the phone process and DSP Manager to the system processes white list
Code:
echo "android.process.acore,com.android.phone,com.bel.android.dspmanager" > /sys/module/lowmemorykiller/parameters/donotkill_sysproc_names



Credits to:Christohper83 for this guide
I picked out the ones that is only able to used with this kernel so follow these steps to tweak the kernel because not all tweaks written by Christopher83 can work on our device
The Following 6 Users Say Thank You to For This Useful Post: [ Click to Expand ]
TripRex Old
(Last edited by TripRex; 27th April 2014 at 09:58 AM.)
#3  
Guest
Thanks Meter 0
Posts: n/a
Default Reserved

Here i will explain why i created a new thread.As you can see,my previous thread was supposed to be for Stock 4.2.2 kernel then i jumbled it all up with CM11 and stock 4.2.2 and so it is better for me to create a new thread for better management for my kernels
The Following 2 Users Say Thank You to For This Useful Post: [ Click to Expand ]
 
Kishan14
Old
#4  
Kishan14's Avatar
Senior Member
Thanks Meter 232
Posts: 272
Join Date: Nov 2013
Location: mumbai
Great features trippy... Congo dude..

Sent from my GT-I9082 using Tapatalk
MY WORK
[ROM]Thinking Bridge
[ROM] **C-ROM**
[ROM] OSE - I9082
Press button if I helped you somehow
The Following 2 Users Say Thank You to Kishan14 For This Useful Post: [ Click to Expand ]
 
RIPPER
Old
#5  
RIPPER's Avatar
Senior Member
Thanks Meter 311
Posts: 658
Join Date: Sep 2012
Location: From Heavens
Killer stuffff




Device Owned-

-Xiaomi Mi3 (Mr. Dragon)
-Samsung Galaxy Grand

Projects
- Mahdi ROM
- CandyKat Rom
- More to come


Hit Thanks if you like my work
The Following User Says Thank You to RIPPER For This Useful Post: [ Click to Expand ]
 
supersaayuj
Old
#6  
supersaayuj's Avatar
Senior Member
Thanks Meter 27
Posts: 112
Join Date: Apr 2014
Location: Mumbai
Only for CM11? or all AOSP ROMS !!
Using LiquidSmooth ROM on Galaxy Grand Duos i9082 by @jackeagle & @rutvikrvr

TripRex Old
#7  
Guest
Thanks Meter 0
Posts: n/a
Quote:
Originally Posted by supersaayuj View Post
Only for CM11? or all AOSP ROMS !!

Our AOSP is only CM11 LOL


Sent from my iPad using Tapatalk
The Following 2 Users Say Thank You to For This Useful Post: [ Click to Expand ]
 
supersaayuj
Old
#8  
supersaayuj's Avatar
Senior Member
Thanks Meter 27
Posts: 112
Join Date: Apr 2014
Location: Mumbai
Quote:
Originally Posted by TripRex View Post
Our AOSP is only CM11 LOL


Sent from my iPad using Tapatalk
I didn't meant that.. I mean this kernel can be used on Resurrection Remix..
Using LiquidSmooth ROM on Galaxy Grand Duos i9082 by @jackeagle & @rutvikrvr

TripRex Old
#9  
Guest
Thanks Meter 0
Posts: n/a
Quote:
Originally Posted by supersaayuj View Post
I didn't meant that.. I mean this kernel can be used on Resurrection Remix..

It can work on all CM 11 ROM except roms with f2fs support


Sent from my iPad using Tapatalk
The Following 2 Users Say Thank You to For This Useful Post: [ Click to Expand ]
 
supersaayuj
Old
#10  
supersaayuj's Avatar
Senior Member
Thanks Meter 27
Posts: 112
Join Date: Apr 2014
Location: Mumbai
Quote:
Originally Posted by TripRex View Post
It can work on all CM 11 ROM except roms with f2fs support


Sent from my iPad using Tapatalk
Can't download bro..zip file is only 213 bytes and its damaged!
Using LiquidSmooth ROM on Galaxy Grand Duos i9082 by @jackeagle & @rutvikrvr


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes