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

Search This thread

xenon92

Inactive Recognized Developer
May 20, 2013
762
3,469
shubhangrathore.com
OnePlus 9 Pro
New build uploaded. v1.4 - 20140106

- 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

I have made the kernel as I wanted it to be. Now I'll look at the changes that I have made and try to figure out if I missed something during those changes or did something that shouldn't have been done that might be causing issues. In the past 2 days I did find a few things that I missed and I have fixed them. Hopefully I'll find more things to fix. I also need to clean up a few things from the kernel that I added on a testing basis. I have got 1-2 random reboots too in the past 2 days in my testing. I'll try to find the causes. But I can live with that as well, as I have gained much more with this kernel. I feel battery backup to be improved as well.
 
Last edited:

mukeshpacheria

Senior Member
Mar 5, 2013
500
181
Rewari
latest updated is stable as compare to 1.3,,,,,

xenon. i want to know some thing

i want to set my cpu at 1 ghz but in this kernel and other kernel it goes to direct 800 Mhz or 1.2 Ghz

what i do to set on 1 Ghz
 

m.arun_kumar

Senior Member
Jul 17, 2012
158
36
Chidambaram / Chennai
New build uploaded. v1.4 - 20140106

- 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

I have made the kernel as I wanted it to be. Now I'll look at the changes that I have made and try to figure out if I missed something during those changes or did something that shouldn't have been done that might be causing issues. In the past 2 days I did find a few things that I missed and I have fixed them. Hopefully I'll find more things to fix. I also need to clean up a few things from the kernel that I added on a testing basis. I have got 1-2 random reboots too in the past 2 days in my testing. I'll try to find the causes. But I can live with that as well as I have gained much more with this kernel. I feel battery backup to be improved as well.

Hi

Thanks for your gr8 work, (Carbon ROM)
1.3 version hot boot 5-6 times with in 3hrs.
lets see 1.4..

thanks
 

xenon92

Inactive Recognized Developer
May 20, 2013
762
3,469
shubhangrathore.com
OnePlus 9 Pro
Too bad then... I can't help anyone without any logs... Start taking a kmsg log if you know how to make it reboot, ie if you can reproduce the soft reboot.

I think this kernel is just made for my phone as I am happy with it! :D

Anyways, I'll clean up some things in the kernel in a few days when I get some time as college is starting from this week and will keep just the important features. Hopefully then it would be stable for you guys. Let's see. But i'll use v1.4.

11400+ with nebula v1.4

ma3y9a3a.jpg
 
  • Like
Reactions: RIPPER

RIPPER

Senior Member
Sep 5, 2012
972
557
From Heavens
Noo noo...its working fine here also. :D no reboots here till now. May be heavy apps r doin. Everybody clean cache:thumbup::thumbup:

Sent from my GT-I9082 using xda app-developers app
 
  • Like
Reactions: xenon92

Top Liked Posts

  • There are no posts matching your filters.
  • 37
    nebula_logo_monotone_white_small.jpg



    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
    15
    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

    14
    nebula kernel updated to v3.00.

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

    ------

    I was doing some testing and found that recent updates were causing a lot of performance degradation. Phone was giving a good battery backup (which you all have experienced), but performance was degraded in v2.8 and v2.9, but was amazing in 2.6. So I reverted my base to v2.6.

    v3.00 also supports F2FS.

    ------

    I'll be using two digit version numbers from now on. It gives me better control over the versions and releases.
    14
    nebula kernel updated to v3.02. 20140511

    - CPU Boost driver - set tunables
    - Wait just 1 second, instead of 4 seconds for other CPU core to halt
    - Other performance tweaks
    13
    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.