Illusion Kernel v5.7 | Clang 10 | 4.4.189

Status
Not open for further replies.
Search This thread

ccav2000

Senior Member
Dec 19, 2010
2,057
1,122
0
Manga Cafe
If you dont mind me asking, what can we do with lz4?
It's a compression method developed by Google based on the LZO compression algorithm. It's almost the same in compression but can be almost 4 times faster in decompression. It's main use in Android is for zram. Zram is compressed RAM used as a virtual swap file.

Sparring too many technical details, zram has the effect of holding more apps in RAM thus helping multitasking a lot. These effects are more obvious in low RAM devices but even on my 4GB Redmi Note 5 I can see that it is still being used to store data!
 

void74

Member
Jun 7, 2018
24
8
0
Naples
v2.1 is up!

akhilnarang, you are welcome here in Naples, Italy (world capital and birthplace of pizza) and will be my guest whenever you want to taste an excellent pizza!! :)

It's a compression method developed by Google based on the LZO compression algorithm. It's almost the same in compression but can be almost 4 times faster in decompression. It's main use in Android is for zram. Zram is compressed RAM used as a virtual swap file.

Could you please help us, step-by-step, on how to enable it and where to look if this has benefits in memory usage?
I have the 4GB variant already use about 5-6 app at-a-time, and see no slowness.
Maybe the compression layer can help have more free RAM at the price of a minimal performance and battery impact due to the CPUs doing real time compression?
Thanks! :)
 

ccav2000

Senior Member
Dec 19, 2010
2,057
1,122
0
Manga Cafe
akhilnarang, you are welcome here in Naples, Italy (world capital and birthplace of pizza) and will be my guest whenever you want to taste an excellent pizza!! :)



Could you please help us, step-by-step, on how to enable it and where to look if this has benefits in memory usage?
I have the 4GB variant already use about 5-6 app at-a-time, and see no slowness.
Maybe the compression layer can help have more free RAM at the price of a minimal performance and battery impact due to the CPUs doing real time compression?
Thanks! :)
That's exactly what it does, frees up RAM with minimal performance impact and LZ4 makes that impact even lower. The easiest way to enable ZRAM is to use some kernel management app, I use EX Kernel Manager for example. Users of Magisk can do it with the use of a simple shell script, if someone wants the script I'll share it but you need a file manager with root access and be familiar with Android's file structure. Easiest way for just a test is a kernel manager app.
 
  • Like
Reactions: void74

justinn01

Member
Jun 15, 2016
36
2
0
That's exactly what it does, frees up RAM with minimal performance impact and LZ4 makes that impact even lower. The easiest way to enable ZRAM is to use some kernel management app, I use EX Kernel Manager for example. Users of Magisk can do it with the use of a simple shell script, if someone wants the script I'll share it but you need a file manager with root access and be familiar with Android's file structure. Easiest way for just a test is a kernel manager app.
Can i use kernel adiutor app? And what is the recommended size for zram?
 
Feb 19, 2016
34
14
0
I used to get poor sot on los, even on latest official builds. After flashing derp 2.1, I'm getting significantly better sot on latest build of los. And another interesting thing. I use a2 camera port. But it used to lag while changing from front to rear camera or vice versa. After flashing derp 2.1, a2 camera port is working blazing fast on los. Just like on stock miui. Absolutely no lag while switching modes. A big thanks to the dev for this karnel. Highly recommended, specially if u r using los.
 
  • Like
Reactions: Zanr Zij

stupidfellow1997

Senior Member
Oct 30, 2014
183
33
58
Ipoh
Xiaomi Mi 10T / 10T Pro
I used to get poor sot on los, even on latest official builds. After flashing derp 2.1, I'm getting significantly better sot on latest build of los. And another interesting thing. I use a2 camera port. But it used to lag while changing from front to rear camera or vice versa. After flashing derp 2.1, a2 camera port is working blazing fast on los. Just like on stock miui. Absolutely no lag while switching modes. A big thanks to the dev for this karnel. Highly recommended, specially if u r using los.

Same here , I get much better standby time when using this kernel rather than LOS stock kernel without any performance loss
:eek::cowboy::cowboy:
 

Tisckkytt

Senior Member
Jun 30, 2018
274
85
28
v2.1 is up!
Changelog:

Merged in linux-stable v4.4.148
Merged in new CAF tag LA.UM.6.2.r1-10500-sdm660.0
Enabled LZ4 compression for ZRAM
Updated binder and sdcardfs

https://github.com/akhilnarang/whyred/releases/tag/Derp-v2.1

I know derp meant to be close to stock but if you consider to oc it would be great. I've used noname & rebirth over the time and I've found them pretty stable with oc. So, it shouldn't be a problem if you add just steps and ship with stock settings. That way those who need will use higher freq and rest can enjoy stock.
Anyway, thanks for frequent update.
 

ccav2000

Senior Member
Dec 19, 2010
2,057
1,122
0
Manga Cafe
Do you have the 3Gb version?
No I have the 4GB version but I have the 3GB version of the Redmi Note 4. Zram is even more important for the 3GB version as you have less RAM available and you needed to use it better.

---------- Post added at 11:40 ---------- Previous post was at 11:39 ----------

Do I need ZRam on my 6G variant?
For 6GB I don't think so unless you loaded the phone with too many apps that run in the background!
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 149
    Derp kernel is a minimal kernel based on Xiaomi's source.

    Feature list: (There isn't much for now, more will be added eventually)

    • Always upstreamed to latest linux-stable
    • Compiled with Clang 10
    • Wireguard support
    • Updated to the latest LA.UM.7.2.r1 tag - LA.UM.7.2.r1-07400-sdm660.0
    • KCAL
    • F2FS support

    Before requesting features, read Post #666
    Also, some additional information:-

    There won't be support for any of the below mentioned things, so please don't ask for them or discuss about them.
    1). MIUI
    2). Spectrum
    3). Any messing with voltages/frequency table
    4). EAS
    5). Adding random cpufreq governors and IO schedulers


    Links:
    Download from GitHub Releases, Mirror 1 or Mirror 2
    For Test builds, reporting bugs, please join this telegram chat!
    Credits -
    Thanks to Xiaomi for releasing the kernel source
    Various people whose patches I have picked

    XDA:DevDB Information
    Illusion Kernel for Whyred, Kernel for the Xiaomi Redmi Note 5 Pro

    Contributors
    akhilnarang
    Source Code: https://github.com/akhilnarang/whyred

    Kernel Special Features:

    Version Information
    Status: Stable

    Created 2018-06-16
    Last Updated 2019-08-15
    49
    what in the ****

    - Disable PPP
    POPP?
    - 1000hz (scheduler becomes faster to respond to realtime tasks)
    Linux is not realtime. 1000Hz only causes timing mismatches.

    - Disable RCU Boost (this causes overhead and jitter for realtime tasks)
    No such thing as realtime.
    - Schedutil iowait boost
    You don't even have schedutil...
    - Disable Ethernet
    MSM drivers have round dependencies on it.
    - Disable Audit
    Fair enough
    - Dynamic Schedtune Boosting
    You don't even have EAS...
    - CPU Boost
    Why?
    - Remove MSM Performance
    Used by perfd.
    - Remove Watchdog
    You'd rather have a device hung indefinitely over something that
    reboots to get out of it?
    - Disable IRQ helper
    What is this even?
    - Increase KGSL thread priority
    Fair
    - Proper HZ value for userspace
    Do you even know what you're talking about...
    - Wakelock blocking
    - Adrenoboost
    Absolute garbage.
    - Boost adreno tz work queue priority
    Barely any gain.
    - Disable MASSIVE amounts of logging
    Care to elaborate?
    - Remove MENU idle governor (we use QCOM)
    Really?
    Code:
    ./drivers/cpuidle/Kconfig:7:    select CPU_IDLE_GOV_MENU if (NO_HZ || NO_HZ_IDLE)
    $ grep NO_HZ .config
    CONFIG_NO_HZ_COMMON=y
    CONFIG_NO_HZ_IDLE=y
    # CONFIG_NO_HZ_FULL is not set
    CONFIG_NO_HZ=y
    CONFIG_RCU_FAST_NO_HZ=y
    - QCACLD-3.0 latest tag
    - FW-API latest tag
    - QCA-WIFI-HOST-CMN latest tag
    - Merged latest CAF tags
    Have you EVER looked at the GitHub repository?
    - Child process priority (better for realtime tasks)
    - Use rt_mutex for fbdev
    - Use rt_mutex for fingerprint
    - Use rt_mutex for ashmem
    - Use rt_mutex for ion
    Garbage. These drivers don't need priority inheritence and will only break when forced to use it.
    - Latest stable SDCARDFS
    Again, have you EVER looked at the GitHub repository or you just paste your handy
    dandy list of stinking garbage on every kernel thread you find?
    - I2C/SPI overclock (500mhz-->800mhz)
    NO.
    - Disable DEBUGFS
    Qualcomm drivers love DebugFS.
    ---
    Variations of what I said above apply to all the garbage below too.
    - Extreme binder modification (rt_mutex, removed debugging, cleaned up)
    - Disable debug monitors
    - Tune mm BDI ratios
    - Use flat memory model
    - Disable integrity subsystem
    - Disable NFC remnants
    - Optimize touchscreen driver for latency and performance
    - Disable excessive logging in fingerprint drivers
    - Add brightness flooring interface (use true min brightness)
    - Performance critical IRQs for fingerprint, mdss, kgsl, touchscreen, etc
    - DTS Eagle support
    - Purify LMK from MIUI excecptions
    - Remove unused compiled drivers
    - Display hacks for better latency and sync
    - Disable PSTORE
    - Improve LED animation (kanged from Onyx)
    - Net hacks for better latency
    - Spoof verity and bootloader unlock status (green/locked)
    - Wireguard VPN (latest)
    - Better initial frequency for GPU
    - Anxiety I/O scheduler
    - Disable stack protector
    - Remove some devfreq drivers
    - Disable printk by default
    - Disable gentle fair sleepers
    - Use laptop mode by default (better batt)
    - Disable some unused CGROUPs
    - Enable NEON accelerated
    - Chacha20 random
    - Reduced cache pressure
    - Optimized nr_requests for latency
    - Reduced dirty ratios
    - Disable UFS support
    - Use fq_codel instead of pfifo_fast
    - Optimized readahead (512KB)
    - Spoof fast charging to enable quick charge 4 for all models
    - Disable CABC (don't auto adjust brightness)
    - Analog dimming
    - NTFS R/W
    - KCAL
    - -Ofast
    - Fast math computation

    Would be nice
    44
    @akhilnarang seen that you got poco f1 I'm curious if you could share your plans about whyred support it the near future. Are you planning to "leave" whyred development and focus on poco f1?
    Thank you in advance for all your efforts and work put into whyred!

    No, as of now I will be keeping my whyred as well and continuing my work for it :D
    39
    v5.0 is up!

    Merged in CAF LA.UM.7.2.r1-06500-sdm660.0
    Disabled battery BCL
    Binder updates
    Compiled with Clang 8.0.9

    https://github.com/akhilnarang/whyred/releases/tag/Derp-v5.0
    36
    v3.0 is up!

    Download - https://github.com/akhilnarang/whyred/releases/tag/Derp-v3.0

    Rebased over CAF Pie kernel (LA.UM.7.2.r1)
    Updated to linux-stable v4.4.158
    Added back most things Derp had up until now
    (Let me know if anything is missing)
    Wireguard 25092018 snapshot

    Compiled with Clang 8 and GNU GCC 8

    Also, I've added wayne support in AnyKernel2
    This should allow wayne users to flash the kernel without modifying the zip, as they have reported it works fine.

    Some additional notes in general

    There won't be support for any of the below mentioned things, so please don't ask for them or discuss about them.
    1). MIUI
    2). Spectrum
    3). Any messing with voltages/frequency table
    4). EAS
    5). Adding random cpufreq governors and IO schedulers
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone