FORUMS

 View Poll Results: How would you rate my kernel in its current state?

Excellent
 
12 Vote(s)
37.50%
Good
 
6 Vote(s)
18.75%
Average
 
5 Vote(s)
15.63%
Unsatisfactory
 
9 Vote(s)
28.13%

[KERNEL] Draco Kernel for the OnePlus 7 Pro

682 posts
Thanks Meter: 1,512
 
By tytydraco, Recognized Developer on 2nd February 2020, 07:44 AM
Post Reply Email Thread
Hello there! I've been working on a new kernel for the OnePlus 7 Pro that I think our community will enjoy. I hope to bring a new viewpoint to kernel development that hasn't been seen previously in the dev community.

Philosophy
I just wanted to start off with the goal of my kernel. Draco Kernel isn't a feature-rich kernel, nor is it a performance-bias or power-bias kernel. Draco Kernel includes a collection of innovative commits (no backports or upstreams), designed to improve the efficiency of the device. Ideally, I will keep Draco Kernel up-to-date with the OnePlus official source code. The WiFi drivers will be imported from the latest 7.1-r1 CAF tag.

Upstreaming?
The reason I don't upstream is simply because I do not wish to risk instability in the kernel. Most people use their OnePlus as their daily driver, and I wouldn't want any potential panics or data loss due to a bad upstream. I'll leave the upstreaming to CAF and OnePlus, as they have the means for a more in-depth testing method.

Basic Features
Code:
- Minimal debugging and tracing
- No messy upstreams / backports that might cause issues down the line
- Latency focused
- Anxiety I/O scheduler
- Scheduler tweaks and hacks
- CPU governor adjustments
- ZERO in-kernel boosting while maintaining a smooth userspace
Advanced Features

This is just from the first official beta, so this list may change in the future.

Code:
- Remove AVB checks
- Disable SECCOMP (faster syscalls)
- Disable Audit (expensive in Android)
- Use non-blocking random pool
- Target small cluster in Makefile
- Disable IRQ debugging
- Don't use high-priority workqueue for usb policy_engine
- Disable profiling (kdrag0n)
- Anxiety I/O scheduler (sync read priority)
- Schedule last-woken task for better cache locality
- Reduce cache pressure to keep cache valid for longer
- Increase vmstat interval to reduce intermittent jitter
- Adjust dirty ratios to writeback dirty pages later rather than sooner
- Do not collect I/O stats from block subsystem
- Don't dump oom_killed tasks
- Do not use UFS for randomness
- Disable ASLR fully by default (performance not benchmarked)
- Disable JTAG debugging by default
- Inform kcompact of fragmentation moreso than full RAM usage
- Do not compile HIGHMEM (unused by our system)
- Awaken kswapd at 1% (80mb free left) instead of 0.1% (8mb free left)
- Do not compile watchdog (reduces jitter)
- BFP JIT (better networking performance)
- Force block requests to execute on their origin cpu (better cache locality)
- Increase haptic strength
- Allow GPU to sleep / nap
- Do not compile zRAM (unnecessary for this kernels MM settings)
- Do not perform readahead (proven to improve power and performance by 70%)
- Align scheduler timeslices with jiffies
- Overcommit memory for faster Android start times
- Remove a bunch of debug and tracing that is unnecessary for the kernel
- Remove schedutil hispeed boosting
- Remove iowait boosting (saves a large amount of battery)
- Do not expedite RCU
- Halve round-robin timeslices
- Expedite wakelock garbage collection
- Lower I/O request limit for lower latency
- More that I forgot


Downloads
I will be releasing kernel versions on both GitHub Releases and on Telegram in the official group.
GitHub (no sign in): https://github.com/tytydraco/kernel_...amole/releases
Telegram (group): https://t.me/dracokernel
Source code: https://github.com/tytydraco/kernel_oneplus_guacamole

Donate
I am currently seventeen years old, and I am heading to college in the fall. If you appreciate my work and would like to give something back to me, I accept donations via PayPal
paypal.me/LockscreenMods

Contact
I love user feedback; it helps me improve my work for the better.
For kernel feedback or issues, please send a message in the official telegram chat for Draco Kernel: https://t.me/dracokernel.
For personal questions or if you are in need of an urgent response, you can contact me directly on telegram @tytydraco.
For anything else, please email me at [email protected] and we can chat!

Meta
- Toolchain: Clang r365631c (subject to updates)
- Toolchain (companion): GCC 4.9
- Main branch: Android-10.0

Please enjoy my kernel, and join us on the telegram channel!
The Following 32 Users Say Thank You to tytydraco For This Useful Post: [ View ]
3rd February 2020, 12:14 AM |#2  
monkboy24's Avatar
Senior Member
Flag Maryland
Thanks Meter: 1,019
 
More
Ok let's test drive this!
Thanks for your work 👍🏽
The Following User Says Thank You to monkboy24 For This Useful Post: [ View ] Gift monkboy24 Ad-Free
3rd February 2020, 02:00 AM |#3  
OP Recognized Developer
Thanks Meter: 1,512
 
Donate to Me
More
Quote:
Originally Posted by monkboy24

Ok let's test drive this!
Thanks for your work 👍🏽

Let me know how it goes!
The Following User Says Thank You to tytydraco For This Useful Post: [ View ]
3rd February 2020, 03:35 AM |#4  
Member
Jacksonville
Thanks Meter: 17
 
More
Tried this kernel but battery drain is too much and phone is overheating,cluster 3 is stuck at 1841 MHz. Went back to kirisakura.
3rd February 2020, 03:42 AM |#5  
Senior Member
Flag Lahaina
Thanks Meter: 466
 
More
So I tried flashing over EvoX earlier,cause, I seen you ask for someone to test on custom r. Here's the results:
It's a no go. Stuck at bootloader and couldn't get out. Tried terminal to boot twrp and it was a fail. Only way out was msm tool back to stock. Not your fault as I've volunteered to do it.
3rd February 2020, 07:15 AM |#6  
VampireHeart's Avatar
Senior Member
Flag Viterbo
Thanks Meter: 598
 
More
Quote:
Originally Posted by boybkol

Tried this kernel but battery drain is too much and phone is overheating,cluster 3 is stuck at 1841 MHz. Went back to kirisakura.

Solved in new release
The Following User Says Thank You to VampireHeart For This Useful Post: [ View ] Gift VampireHeart Ad-Free
3rd February 2020, 07:22 AM |#7  
OP Recognized Developer
Thanks Meter: 1,512
 
Donate to Me
More
Quote:
Originally Posted by avid_droid

So I tried flashing over EvoX earlier,cause, I seen you ask for someone to test on custom r. Here's the results:
It's a no go. Stuck at bootloader and couldn't get out. Tried terminal to boot twrp and it was a fail. Only way out was msm tool back to stock. Not your fault as I've volunteered to do it.

That is concerning. Does flashing other custom kernels on EvoX cause that issue?
3rd February 2020, 07:25 AM |#8  
Senior Member
Flag Lahaina
Thanks Meter: 466
 
More
Quote:
Originally Posted by tytydraco

That is concerning. Does flashing other custom kernels on EvoX cause that issue?

No
3rd February 2020, 07:41 AM |#9  
OP Recognized Developer
Thanks Meter: 1,512
 
Donate to Me
More
Quote:
Originally Posted by avid_droid

No

I think I found the issue. I didn't disable AVB checks on the /odm partition. I'll add this change right away. Thanks for testing!
3rd February 2020, 07:49 AM |#10  
Senior Member
Thanks Meter: 802
 
More
Does this kernel come with KCAL?
3rd February 2020, 08:12 AM |#11  
ZoiraP's Avatar
Senior Member
Flag Tokyo, Shibuya
Thanks Meter: 211
 
Donate to Me
More
Using Anxiety , better battery than stock. Thanks OP.

---------- Post added at 08:12 AM ---------- Previous post was at 08:02 AM ----------

Would be possible to ad pwrutilx Gov?
The Following User Says Thank You to ZoiraP For This Useful Post: [ View ] Gift ZoiraP Ad-Free
Post Reply Subscribe to Thread

Tags
draco, kernel, latency, op7, op7p

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

Advanced Search
Display Modes