Where does RAM leak to Xiaomi: detailed analysis + cleaning methods

Have you noticed that your Xiaomi has slowed down, applications are spontaneously closed, and there is suspiciously little free RAM in the task manager? The reason most often lies in the suboptimal allocation of RAM between background processes, system services and user applications. In this article, we will discuss methods unique to MIUI for diagnosing memory consumption that standard analyzers like Google Play Services or Clean Master will not show.

The โ€œleakageโ€ problem of RAM is especially relevant for devices with 4-6 GB of RAM (for example, Redmi Note 10 Pro, POCO X3 NFC or Mi 11 Lite), where the system aggressively kills tasks to free up resources. But even on flagships like Xiaomi 13 Ultra with 12-16 GB, you can face memory shortages due to errors in MIUI Optimization or conflicts with custom firmware. We will analyze both standard tools and hidden functions of the engineering menu, which will help identify real โ€œeatersโ€ of RAM.

1. Built-in memory monitor in MIUI: what the system hides

So, to start with the obvious, the standard task manager, but most users miss the key details that are displayed there, to open up the extended statistics.

  1. Go to Settings โ†’ About Phone โ†’ MIUI version (shoot 7 times to activate the developer mode, if not already done).
  2. Return to the main settings menu and select Additional โ†’ For developers โ†’ Memory statistics.
  3. Click on the graph Use of RAM and hold for 2 seconds โ€“ a detailed report will open.

Here you will see three critical parameters:

  • ๐Ÿ“Š Available: memory that is ready for new tasks, and if it is below 15-20% of the total RAM, the system will start to suspend applications.
  • ๐Ÿ”„ Cached (Cached) โ€“ Data that MIUI It keeps it in memory to speed up the reopening of applications. It's not free memory, but it's not busy either!
  • ๐Ÿšจ Used by apps โ€” that's where the problem lies, and if it's above 60 to 70 percent, it's time to find the culprit.
adb shell settings put global memory_compression_enabled 1

This will reduce RAM consumption by 10-15% due to compression of inactive processes.-->

Note the Top Memory-Consuming Apps section, where MIUI ranks apps by actual consumption rather than by uptime. For example, Facebook or TikTok can take 300-500 MB in the background, while Telegram or WhatsApp rarely exceeds 150 MB. But beware: sometimes system processes like com.miui.home or com.android.systemui appear on this list, and forced shutdowns will lead to the collapse of the interface.

2. Hidden tools: engineering menu and ADB-team

If standard statistics don't give you the full picture, it's time to dig deeper. Xiaomi's engineering menu (#4636###) contains advanced memory data, but access to it is blocked in the latest versions of MIUI.

Install Activity Launcher from Play Market| Open it and find com.android.settings โ†’ Testing| Select Engineering mode (MTK) or Qualcomm Test Mode depending on the processor | Run Memory Information for detailed stats-->

In the engineering menu, pay attention to:

  • ๐Ÿ” MemTotal โ€“ total RAM (should match the characteristics of the device).
  • ๐Ÿ“‰ MemFree + Cached is really affordable memory. If it's less than 1 GB, the phone is on the verge of failure.
  • ๐Ÿ›‘ Slab is the memory occupied by the Linux kernel (>200 MB) indicate leaks in drivers (especially relevant for POCO F3 Snapdragon 870).

For advanced users, there is another method โ€” ADB-Memory log. Connect your phone to your PC, activate Debugging. USB and do it:

adb shell dumpsys meminfo --oom

This command will output a list of processes sorted by kill priority (OOM score). The higher the value, the more likely MIUI will shut down this process if memory is scarce. For example, adj=9 means that the application will be killed first, and adj=0 means that the process is secure (usually system services).

๐Ÿ“Š What Xiaomi model do you use?
Redmi Note 10/11/12
POCO F3/F4/F5
Mi 11/12/13
Another model

3. Third-party analysis: which is better than Greenify or Simple System Monitor

Standard MIUI tools donโ€™t always show the full picture, especially when it comes to background services or advertising SDKs that consume memory imperceptibly.

AnnexAdvantagesDeficienciesBetter for you.
Simple System MonitorShows real use of RAM (without deception like "cached = free"), supports widgetsNo automatic cleaning, a complex interface for beginnersTechnical users who want to see PSS (real memory consumption)
GreenifyForced hibernation of background applications, works without root on MIUIDoes not show detailed statistics, requires manual adjustmentOptimizing battery and memory for beginners
Developer Quick SettingsAdds RAM monitoring panel to notification curtain, Dalvik Heap showsRequires ADB to activate certain functionsQuick control without deep analysis

Simple System Monitor is especially useful for detecting โ€œzombie processesโ€ โ€” applications that continue to hang in memory even after closing. For example, AliExpress or Wildberries often leave behind services like com.alibaba.android.rimet, which can take up to 200 MB of RAM.

  1. Open Simple System Monitor and go to the Processes tab.
  2. Sort the list by column PSS (MB) by descending.
  3. Find processes marked (dead) or (zombie) - they can be safely stopped.
What is PSS and why is it more important than RSS?
PSS (Proportional Set Size only takes into account the part of memory that is actually used by the process, excluding libraries. libandroid_runtime.so, PSS They will divide their consumption between them. RSS (Resident Set Size will show the full size of the library for each process. MIUI low-down RSS, It is a beautiful display of free memory, but PSS Shows the real load.

Be wary of apps like Clean Master or DU Speed Booster. They often show false memory occupancy by forcibly clearing the cache, which actually slows down the phone. MIUI optimizes the cache itself - don't interfere with it!

4. Top.-5"RAM on Xiaomi: who needs to be stopped first

Analysis of thousands of Xiaomi user logs showed that 80 percent of memory problems are caused by just a few types of applications.

  • ๐ŸŽฎ Games with background processes: Genshin Impact, PUBG Mobile, Honor of Kings. Even after closing, they leave services like com.miHoYo.Yuanshen or com.tencent.ig, which take 200-400 MB.
  • ๐Ÿ“ฑ Social media: Facebook, Instagram, TikTok. Them SDK For tracking activity (com.facebook.katana) can consume up to 300 MB in the background.
  • ๐Ÿ›’ Marketplaces: AliExpress, Wildberries, Ozon. Use aggressive image cache that doesn't clear automatically.
  • ๐Ÿ” Launchers and widgets: Nova Launcher, Microsoft Launcher, Google Discover widgets. can take up to 500 MB due to constant synchronization.
  • ๐Ÿค– Systemic processes MIUI: com.miui.analytics (statistics collection), com.xiaomi.market (app updates), com.miui.securitycenter (security) They can't be killed without root, but you can limit them.

The most insidious case is the ad modules embedded in free apps, UC Browser or Shareit can load ads even when you're not using them. ADB:

adb shell dumpsys meminfo com.uc.browser.en | grep"Native Heap"

If the value exceeds 100 MB, the app is definitely doing something suspicious in the background.

๐Ÿ’ก

Even after the application is forced to stop using MIUI settings, many processes resume after 10 to 30 minutes. To avoid this, use Greenify with the option "Hibernation while locking the screen".

5. How MIUI โ€œcheatsโ€ memory users (and how to fix it)

MIUI is known for masking the actual use of RAM to create the illusion of an "optimized" system, and here are three of the most common tricks:

  1. Cached = Free: In Task Manager, MIUI shows Cached as part of free memory, when in fact it is busy data that can be released if needed.
  2. Hiding System Processes: Applications like com.miui.daemon or com.qualcomm.qti donโ€™t appear on the standard task list, although they can take up to 500MB.
  3. Artificial background restriction: MIUI aggressively kills tasks, but it keeps in mind unnecessary services (e.g., com.xiaomi.midrop for file transfer, even if you donโ€™t use it).

To see the real picture, do this in ADB:

adb shell cat /proc/meminfo

Look for the MemAvailable string, which is the memory that's really available, and if it's less than 1GB, the phone is running at its limit.

adb shell settings put global show_real_memory_usage 1

After the reboot, an Advanced tab with honest data will appear in the Task Manager.-->

Another trick is dynamically allocating memory for games: MIUI reserves up to 50% of the RAM for a running application (like Genshin Impact), but after the game is closed, it doesn't free up the memory completely.

adb shell am broadcast -a android.intent.action.CLOSE_SYSTEM_DIALOGS

6. Optimization of RAM without root: working methods

If you've identified the culprits behind memory loss, it's time to act. Here are 5 proven ways to optimize without getting root rights:

  • โš™๏ธ Turn off Autostart: Go to Settings โ†’ Annexes โ†’ Application management โ†’ Auto-run and disable it for all unnecessary programs (especially instant messengers and games).
  • ๐Ÿ”„ Limit background activity: In the same app settings, select Battery โ†’ Background activity and set Restricted for all but critical (e.g. Telegram or WhatsApp).
  • ๐Ÿ—‘๏ธ Clean the cache regularly: Use Settings โ†’ Warehouse โ†’ Clean, but donโ€™t get carried away โ€“ cache speeds up re-launching apps.
  • ๐Ÿ“ต Disable unnecessary services MIUI: B Settings โ†’ Additionally. โ†’ Special facilities โ†’ Disable MiuiDaemon, Analytics and Services MSA (If you donโ€™t use the Xiaomi cloud).
  • ๐Ÿ”‹ Activate Performance Mode: In Settings โ†’ Battery โ†’ Select Performance Mode High Performance โ€“ This Will Make You MIUI less aggressively kill off.

For devices with 4 GB of RAM (for example, Redmi 9 or POCO M3), there is another life hack - the memory extension via swap file. MIUI does not support it by default, but can be activated via ADB:

adb shell su -c"echo 1048576 > /proc/sys/vm/swappiness"


adb shell su -c"echo 1 > /proc/sys/vm/overcommit_memory"

This will force the system to use the swap zone more actively, but may slightly reduce the speed of operation.

๐Ÿ’ก

On devices with Snapdragon (such as POCO X3), the Force 4x MSAA option is more effective in the developer settings, which reduces the load on the GPU, which indirectly reduces RAM consumption by 5-10%.

7. When you need to reset settings or snoop

If all the optimization techniques didn't work and the phone keeps slowing down, there may be a deeper problem. Here are 3 signs to do a reset or ask questions:

  1. System processes take >50% RAM: If you see a System or Android System constantly using >1.5 GB in Developer Quick Settings, this is a sign of firmware damage.
  2. Apps crash for no reason: For example, Chrome or YouTube shut down with an โ€œOut of memoryโ€ error even at 1 GB of free memory.
  3. MIUI Not updated: If in Settings โ†’ System updates are hung by a "Can't load packet" error, which may indicate partition damage /system.

Before resetting, try cleaning the partition cache (does not delete user data):

  1. Turn off the phone.
  2. Press the Power button + Volume up to enter Recovery.
  3. Choose Wipe & Reset โ†’ Wipe Cache.
  4. Reset the device.

If this doesnโ€™t work, do a full reset (Wipe All Data) but first:

  • ๐Ÿ” Save the data from /sdcard/MIUI/backup/AllBackup (There's backups here. MIUI).
  • ๐Ÿ“ฑ Take screenshots of the main screens (the location of the icons is not saved!).
  • ๐Ÿ“ Sign up for Xiaomi, Google and Mi Cloud accounts.

๐Ÿ’ก

After reset, do not restore applications from the MIUI backup! Install them manually from the Play Market โ€“ this will eliminate the transfer of โ€œbrokenโ€ data that could cause memory leaks.

If the reset didn't work, it's still a flashing experience.

  1. Download the latest stable version of MIUI for your model from the official website.
  2. Use the Mi Flash Tool to run in Clean All mode (remove everything, including the data partition).
  3. After firmware, do not restore data from backups โ€“ set up the phone as new.

FAQ: Frequent questions about memory on Xiaomi

Why is there still not enough free memory after all the applications are closed?
MIUI uses aggressive caching: even after closing applications, their data stays in memory for quick re-runs. That's OK - Android is designed to make the most of RAM. Free memory doesn't equal effective! However, if Available (available) is less than 500 MB, that's a problem.
Can I increase the memory on Xiaomi software?
No, you can't physically increase RAM. However, some devices (like the POCO F4 GT or Black Shark 5) have RAM Expansion, which reserves some of the internal memory under swap. Activates in Settings โ†’ Additional โ†’ Expansion of memory. But this is not real RAM, but only a temporary solution for multitasking.
Why do games lie down, even though memory is enough?
The problem may not be in RAM, but in thermal trottling (performance restriction due to overheating) or in drivers. GPU. Check the temperature through AIDA64 โ€” if CPU/GPU > 70ยฐC, dust cleaning or heatpaste replacement. Also update the driver via Settings โ†’ The phone. โ†’ Firmware update GPU (Not available on all models).
How to disable ads in MIUI that loads memory?
Advertising in MIUI It is downloaded via com.xiaomi.msa.global to disable: Go to Settings โ†’ Memory. โ†’ Autostart and shut down. MSA. B Settings โ†’ Notifications find Recommendations and Ads, disable them. ADB and perform: adb shell pm disable-user --user 0 com.xiaomi.msa.global This will reduce background activity and free up to 100โ€“200 MB RAM.
Why is there less free memory after the MIUI update?
Newer versions of MIUI (especially 13-14) add background services for improved analytics and cloud sync. For example, MIUI 14 introduced the com.xiaomi.xmsf (Xiaomi Mobile Services Framework) process, which can take up to 300 MB. It can not be turned off, but you can limit: adb shell pm disable-user --user 0 com.xiaomi.xmsfkeeper Also, after the update, the Autorun settings are reset - check them manually!

Now you know how to identify and fix memory problems on Xiaomi. Remember: MIUI is optimized for multitasking, so donโ€™t aim for โ€œmaximum freeโ€ memory โ€“ itโ€™s important that Available remains at 15-20% of total RAM. If after all the manipulations the problem remains โ€“ check the phone for viruses (for example, through Malwarebytes) or contact the service center for hardware malfunctions.