Kernel panic ram-oops, active (anon) memory reaches 0 KB
## after factory resetting my phone from recovery (due to me freezing fused-location service) I flashed lineageos 23.2 as a fresh start but there were severe regressions in performance, I tried reflashing dtbo, vendorboot, boot.img and tried to use my phone unrooted still there has been problem with memory behavior ## Expected Behavior non-aggressive LMK behavior, active (anon) memory is filled with nominal range, apps not getting killed while in split-screen mode, non-critical memory pressure, no random reboot/kernel panics and no ram-oops ## Current Behavior After few moments active (anon) memory after boot reaches 0KB (this doesn't cause problems at first but until a few hours) apps aggressively start to get killed by low memory killer, trying to use ironfox and youtube in split-screen mode leads to one of the processes to terminate so the other survive (this wasn't the case in lineageos 22.2) device becomes extremely sluggish and freezes then kernel panic. ## Possible Solution From what I've experimented `swapoff /dev/block/zram0` seems to make both active and inactive (anon) memories to be normal again (this causes inactive (anon) memory to be 0kb as swap memory reduces gradually sometimes this is not the case), from also what I researched and someone mentioned in another issue with related kernel/device that MGLRU **(Multi-Gen LRU)** might be the culprit in the anomalous behavior of the swap memory, It's supported by device config and is enabled (`/sys/kernel/mm/lru_gen/enabled` and `/proc/config.gz` prove it despite the kernel being older than 6.1) so in short, I believe disabling MGLRU might fix the issue temporarily as i'm trying this right now. ## Steps to Reproduce 1. boot normally to phone 2. wait a few moments 3. check `/proc/meminfo` and monitor active (anon) memory 4. use the phone for 10+ hours or use heavy processes 5. wait for kernel panic /device capri /version lineage-23.2 /date 2026-4-16 /kernel 4.19.325-cip128-st12-perf-g39992a488db2 /baseband HAK10_18.534.02.73.21R,HAK10_18.534.02.73.21R /mods NikGapps-stock-arm64-16-20260222 / Magisk 30.7 (sideload as .zip) I have read the directions.
issue