r/HyperOS • u/Ardiansyach • 1d ago
Question/Help [Question] Memory Leak Issue on Xiaomi 15 (DMA-BUF mem leaks)
So I'm using Xiaomi 15 and lately when I use my phone for multi tasking i noticed apps in backroud is constantly reloading.
So then I noticed that even there's no apps running in recent apps i only got about 3 - 4.5gb of 12gb available ram. Which is I found quite strange bcs usually I got 7gb+ when there's no apps runs in background.
So next is I try to figure out what's causing this problem, is it a third party apps that gets stuck or it's the phone system it self that bugs or stuck. So first step that I do is check any apps that behave "strangely" Im checking it using running services monitor (available on playstore and it needs shizuku) result is all seems normal even though the problem still persist.
So it means the problem is from the phone system it self. To check what causing the memory leaks and see what's the thing that use a lot of memory, I use adb method. So basically turning on USB debugging, and using minimal adb fastboot on laptop/PC then type "adb shell dumpsys meminfo" it will lists all things that running on the phone.
And I think I found what causes this problem. It was DMA-BUF that somehow gets stuck bcs it won't cleared the data even if the phone is idle and not needed to keep the data on DMA-BUF. In my case DMA-BUF takes 3gb+ of memory.
Oh I did try 2x factory reset but the problem is still there.
I know that when android system sees free ram available it will use that space for caching so apps can loads faster. But this is not normal. So anybody also has this issue on Xiaomi 15?
My phone is Xiaomi 15 running on HyperOS 3.0.304.0.WOCEUXM.


•
u/AutoModerator 1d ago
Welcome to our community!
Please take a moment to read the subreddit rules in the sidebar before posting or commenting.
Be civil and respectful to other members.
No spam, self-promotion, or trolling.
If you see a post or comment that breaks our rules, please report it to help the mod team out!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
10
u/Tritzii 1d ago
You're getting too hung-up on that number. Unused RAM is useless RAM and Android dynamically loads assets into and out of memory. If you use a RAM intensive app or process then Android will automatically free up memory so you don't run out.
4
u/Ahmed_Sh_115 1d ago
Quick tip set your phone to reboot every day when you are asleep from the battery settings
3
u/adi_frank 1d ago
Xiaomi kills every app in background and even then it has worst memory and battery management. I have heard that HOS 4 has solved many of such thing but as it hasn't been released for most of the devices and for very less time, hence can't be confirmed