FORUMS
Remove All Ads from XDA

[KERNEL] [AOSP] [LINARO 4.9.1] nebula kernel [v3.20]

762 posts
Thanks Meter: 3,481
 
By xenon92, Inactive Recognized Developer on 2nd January 2014, 02:41 PM
Post Reply Email Thread
Announcement from xenon92: v3.20 - Fixes to network related kernel code



nebula kernel is for AOSP based KitKat android 4.4+ ROMs
and AOSP based Lollipop android 5.0+ ROMs





Download the latest PERFORMANCE CONTROL APP to utilize the full potential of the kernel.

Brief explanation of few of the features in nebula can be found in the third post. For more info, use Google.



FEATURES
  • Compiled using the latest Linaro 4.9.1 - 2014-05 toolchain
  • Based on kernel version 3.0.101
  • Additional Governors: SmartassV2, SmartassH3, Lulzactive, LulzactiveQ
  • Additonal I/O Schedulers: ROW, SIO, SIOPLUS, VR, ZEN, BFQ
  • Overclock: 1.3 Ghz, 1.4 Ghz, 1.5 Ghz, 1.6 Ghz
  • F2FS support
  • CPU Boost driver
  • UKSM (Ultra KSM) support (enable it in Performance Control app)
  • Frandom
  • Dynamic Sync Control (enable it in Performance Control app)
  • Asynchronous FSync ported from HTC One
  • Cross Memory Attach
  • Entropy tweaks
  • Increased read-ahead from 16/128 to 32/2048 (can be customized in Performance Control app)
  • Disabled Cyclic Redundancy Checks (CRC) for better performance
  • Many patches, fixes and improvements from codeaurora
  • Many more performance and battery friendly tweaks



INSTALLATION
  • Download the latest nebula zip
  • Flash using CWM recovery
  • Wipe cache
  • Wipe dalvik cache
  • Reboot



NOTE
  • You are free to use kernel as the default kernel in your ROMs
  • Please DO NOT change the kernel name that shows up in Settings > About phone
  • Please link the nebula kernel thread in your ROM thread




DOWNLOADS

nebula kernel

(Please don't make mirror links of the kernel)




SOURCE
Source code of the kernel can be found at my Gihub.




CREDITS
- pawitp - nebula is based on his kernel source for CM11
- to all the developers whose mods I have included in my kernel
- @k2wl - for his extensive guide on kernel compilation. Big thanx to him.
- @CoolDevelopment
- Christopher83 for the Linaro toolchains



XDA:DevDB Information
nebula kernel, Kernel for the Samsung Galaxy Grand Duos i9082

Contributors
xenon92
Source Code: https://github.com/xenon92/android_kernel_nebula

Kernel Special Features: Compiled using Linaro Toolchain to get the best performance. Scroll up for features.

Version Information
Status: Stable
Current Stable Version: v3.20
Stable Release Date: 2014-11-22

Created 2014-04-24
Last Updated 2014-11-22
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-05-17-16-47-46.png
Views:	10063
Size:	91.3 KB
ID:	2748829   Click image for larger version

Name:	Screenshot_2014-11-23-13-02-25.png
Views:	6522
Size:	57.3 KB
ID:	3029287  
The Following 38 Users Say Thank You to xenon92 For This Useful Post: [ View ] Gift xenon92 Ad-Free
 
 
2nd January 2014, 02:41 PM |#2  
xenon92's Avatar
OP Inactive Recognized Developer
Thanks Meter: 3,481
 
Donate to Me
More
CHANGELOG



Changelog is available on nebula kernel wiki too


v3.20

- Fixes to network related kernel code


---x---x---x---

v3.18

- Stability fixes (check source code commits for details)


---x---x---x---


v3.16

- Backport timed General-Purpose Input/Ouput from hammerhead (Nexus 5)
- Improve multi-touch event handling
- Improve compiled kernel code
- Other fixes and improvements


---x---x---x---


v3.14

- Fix CVE-2014-3153


---x---x---x---


v3.12

- New I/O scheduler - BFQ (latest version - v7r4 - released on 18th May 2014)
- Memory Management: pass readahead info down to the I/O scheduler
- lib/memcopy: use glibc version
- Reverted JustArchi's optimization commits


---x---x---x---


v3.11b

This is a beta build. Testing the kernel optimization flags by JustArchi.

- Compiled using the latest Linaro 4.9.1 - 2014.05 toolchain
- Various kernel optimization flags from JustArchi's commit

---x---x---x---


v3.10

- Compiled using the latest Linaro 4.9.1 - 2014.04 toolchain
- Memory management - lazy cache flushing on non-mapped pages
- Many updates to Device Mapper
- Use proper memory barriers for bitops
- softirq: reduce latencies
- sync: don't block the flusher thread waiting on IO
- ext4: Speed up FITRIM by recording flags in ext4_group_info
- ext4: speed up truncate/unlink by not using bforget() unless needed
- vmscan: add customisable shrinker batch size
- Other fixes and performance tweaks


---x---x---x---


v3.04

- CPU Boost driver - decrease aggressiveness
- New governor - LulzactiveQ
- New I/O scheduler - SIOPLUS
- Other fixes and performance tweaks


---x---x---x---


v3.02

- CPU Boost driver - set tunables
- Wait just 1 second, instead of 4 seconds for other CPU core to halt
- Other performance tweaks


---x---x---x---


v3.00

- Added CPU Boost driver
- Reverted updates and based to v2.6
- Other performance tweaks


---x---x---x---


v2.9

- Updated ROW I/O scheduler with many updates and fixes from codeaurora
- Update DEADLINE I/O scheduler by hardcoding values
- Fixed a bug in CFQ I/O scheduler
- Other performance tweaks


---x---x---x---


v2.8

- Full F2FS support merged into main kernel branch
- Reduce latency for I/O schedulers
- Improvements to async I/O
- Update ROW I/O scheduler to v4
- Updates to SIO I/O scheduler
- Stable page writes


---x---x---x---


v2.7.3 - EXPERIMENTAL

- Fixed Wi-Fi issues on F2FS filesystem based ROMs
- Minor update to F2FS support


---x---x---x---


v2.7.1 - EXPERIMENTAL

- Updated F2FS support (read THIS)


---x---x---x---


v2.7 - EXPERIMENTAL

- Added F2FS support (read THIS)


---x---x---x---


v2.6

- Added a new governor - SmartassH3
- Added Dynamic FSync - Dynamic Sync Control (enable it in Performance Control)
- Added Cross Memory Attach (read more about it HERE)
- Fine tuned Deadline I/O scheduler
- Added Asynchronous Fsync from HTC One
- Entropy tweaks
- Many tweaks and improvements...


---x---x---x---


v2.5

- Added new governors - SmartassV2 & Lulzactive
- Added new I/O scheduler - ZEN
- Updates to Conservative governor
- Disabled Cyclic Redundancy Checks (CRC) for better performance
- Fixed few memory leaks
- Other performance tweaks


---x---x---x---


v2.4

- Added I/O schedulers - SIO, ROW and VR
- Performance tweaks


---x---x---x---


v2.3

- Added UKSM (enable it using Performance Control app)
- Enforce governor to stay in sync across CPU cores
- Disables multicast on suspend (less wakelocks)
- Few performance tweaks


---x---x---x---


v2.2

- Added support for ROMs that support dual-SIM (CM11)
- Added AnyKernel support (thanx to Koush, Apache14 and CoolDevelopment)
- Added Frandom
- Reduced Wi-Fi wakelocks by 4 times


---x---x---x---


BETA - v2.1

- Started the kernel from scratch
- Using the latest Linaro 4.7.4 2014-04 build
- OC 1.3 Ghz, 1.4 Ghz, 1.5 Ghz, 1.6 Ghz
- Lowered swappiness from default 60 to 45
- Fixed random reboots (reverted the change causing random reboots)
- Few performance tweaks

---x---x---x---



v1.5

- removed BLX
- reverted dynamic read-ahead to a constant 2048/32 value
- removed a lot of experimental code from the kernel (cleanup)


---x---x---x---


v1.4

- added new I/O scheduler - ZEN
- lowered swappiness
- added dynamic read-ahead instead of a constant read-ahead value (it can still be fixed to a higher value using Performance Control app)
- reduced WiFi wake-locks (better battery)
- few more performance improvement tweaks
- few bug fixes


---x---x---x---


v1.3

You'll have to use some or the other kernel tweaking app (Performance Control app included) for all the future builds to enable/disable tweaks and features to get the most out of the kernel.

- added BLX - Battery Life Extender
- added UKSM support (enable it in the Performance Control app)
- added Dynamic Sync Control (enable it in the Performance Control app)
- added Frandom
- added Performance control app in the kernel zip (credits to h0rn3t and educk for the amazing app)


---x---x---x---


v1.2

- Initial build
- Compiled using Linaro 4.7 toolchain
- Used -O3 optimization flag
- Additional Governors: SmartassV2, SmartassH3, Lulzactive
- Additonal I/O Schedulers: ROW, SIO, VR
- Overclock: 1.3 Ghz, 1.4 Ghz, 1.5 Ghz, 1.6 Ghz
- Increased read-ahead maximum/minimum values from 128/16 to 2048/32


---x---x---x---


v1.0 and v1.1

- Not uploaded as they were my test builds

The Following 15 Users Say Thank You to xenon92 For This Useful Post: [ View ] Gift xenon92 Ad-Free
2nd January 2014, 02:42 PM |#3  
xenon92's Avatar
OP Inactive Recognized Developer
Thanks Meter: 3,481
 
Donate to Me
More
BRIEF EXPLANATION ABOUT KERNEL FEATURES




UKSM
UKSM is about de-duplication of data in system memory rather than being another de-duplicating file-system. This improves RAM usage.

Dynamic Sync Control
The dynamic sync control interface uses Android kernel's unique early suspend / late resume interface. While screen is on, file sync is disabled. When screen is off, a file sync is called to flush all outstanding writes and restore file sync operation as normal.

Frandom
Frandom is a Linux kernel random number generator, which is 10-50 times faster than what you get from Linux' built-in /dev/urandom. It uses very little (/dev/frandom) or none (/dev/erandom) of the kernel's entropy pool, so it is very useful for applications that require a handy source for lots of random data.

CPU Boost driver
When certain bursty and important events take place, it might take a while for the current cpufreq governor to notice the new load and react to it. That would result in poor user experience. To alleviate this, the cpu-boost driver boosts the frequency of a CPU for a short duration to maintain good user experience while the governor catches up.





FAQ



On which ROM can I install nebula?
- nebula can be used on any AOSP kitkat 4.4+ based ROM. (Carbon, SlimKat, CM11)


What is the best and most stable configuration for nebula?
- Configuration depends from user to user. Still, the most stable configuration according to me and that I use is below. It might differ for you.
- Governor: SmartassV2
- Max. freq: 1.2 Ghz (OCing doesn't really have an increased and noticeable performance, rather it heats the processor and wastes battery for a marginal gain in performance as well as creates instability - random reboots etc. Google more about OC.) (Read the description on this commit.)
- I/O Scheduler - SIO
- Enable UKSM (from Performance Control app)
- Enable Dynamic FSync (from Performance Control app)
- I'll update this configuration as more tweaks are added to nebula


I get random reboots, what should I do?
- I am working on the kernel for myself and the kernel is quite stable for me. Still, if you face reboots see below:
- Make sure you followed the installation instruction written in Post #1.
- Make sure you "Fix permissions".
- OCing will always cause instability. Try reducing the max frequency to 1.2 Ghz
- It is quite possible that you don't know how to use a custom kernel. Not everything needs to be set at HIGHEST. Just because an "option" is there doesn't mean you have to select it. Try changing the configuration that meets your needs and satisfies you. If you set up the kernel properly, it would stop giving you random reboots.
- The only way to get things fixed is to provide logs. I cannot fix that I cannot see. Google, how to take logs to find and solve kernel issues. (kmsg/last_kmsg)
- Tell me a way in which I can reproduce the issue on my phone.
The Following 13 Users Say Thank You to xenon92 For This Useful Post: [ View ] Gift xenon92 Ad-Free
2nd January 2014, 03:12 PM |#4  
CoolDevelopment's Avatar
Senior Member
Flag Cologne
Thanks Meter: 1,721
 
Donate to Me
More
Does hotplugging work well with zzmove governor? I remember trying hotplug on s2vep and it freezed almost everytime while deep-sleeping.
2nd January 2014, 03:26 PM |#5  
xenon92's Avatar
OP Inactive Recognized Developer
Thanks Meter: 3,481
 
Donate to Me
More
Quote:
Originally Posted by CoolDevelopment

Does hotplugging work well with zzmove governor? I remember trying hotplug on s2vep and it freezed almost everytime while deep-sleeping.

Same issue on baffin too. That's why I have removed zzmoove from the kernel.
2nd January 2014, 03:27 PM |#6  
Senior Member
Flag Siliguri
Thanks Meter: 247
 
More
hmm... xenon92... already k2wl has made a custom kernel with O.C till 1.8GHz so why have you the max @ 1.6GHz ?
2nd January 2014, 03:29 PM |#7  
parag tetambe's Avatar
Member
Flag Mumbai
Thanks Meter: 46
 
More
Quote:
Originally Posted by Soureen

hmm... xenon92... already k2wl has made a custom kernel with O.C till 1.8GHz so why have you the max @ 1.6GHz ?

Its Oc upto 1.7 Ghz not 1.8

Sent from my GT-I9082
2nd January 2014, 03:35 PM |#8  
Senior Member
Flag Rewari
Thanks Meter: 181
 
More
Quote:
Originally Posted by Soureen

hmm... xenon92... already k2wl has made a custom kernel with O.C till 1.8GHz so why have you the max @ 1.6GHz ?

and he is present new build with new modification

its make wide development of grand
2nd January 2014, 03:36 PM |#9  
xenon92's Avatar
OP Inactive Recognized Developer
Thanks Meter: 3,481
 
Donate to Me
More
Quote:
Originally Posted by Soureen

hmm... xenon92... already k2wl has made a custom kernel with O.C till 1.8GHz so why have you the max @ 1.6GHz ?

Read the description in this commit - Link

There has already been a discussion on CM11 thread about how much does it really benefit by OCing at higher frequencies. Refer to that thread's discussion for more info.

In short - OCing at too high frequency heats up the CPU (obviously) and doesn't necessarily increase performance.

Even though I have added OC till 1.6 Ghz, but even I don't use that setting. 1.2 Ghz is fine for me.
2nd January 2014, 05:13 PM |#10  
Alldroidrider's Avatar
Senior Member
Flag chennai
Thanks Meter: 43
 
More
Talking
Another kernel for AOSP rom.....

Installed the kernel in carbon ROM and is working fine....

ll update more on the battery stat later...

2nd January 2014, 05:26 PM |#11  
raghavsharmaxda's Avatar
Senior Member
Flag mumbai
Thanks Meter: 396
 
More
any FC's anybody facing?....anything at all..during call or anything??..just asking..would have tested myself but my net is limited right now till tomorrow......so can't ..will surely tomorrow onwards download evry single one (as m xenon work fan lets say :P )...but wont risk using mbs if it got any bugs...
Post Reply Subscribe to Thread

Tags
aosp, grand, kernel, kitkat, linaro

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes