RAM is one of the key resources of a smartphone that determines its speed and multitasking. On Xiaomi devices running MIUI or HyperOS, the lack of RAM is manifested by slowing down, spontaneous closure of applications or long loading of the interface. But how to understand what exactly eats up memory? In this article, we will examine all the ways, from built-in tools to professional utilities, including hidden firmware functions.
It is important to distinguish between RAM load and memory leakage: in the first case, the system simply actively uses resources (for example, for background processes or games), in the second case, the application or service โforgetsโ to release memory after work, which leads to a critical slowdown. Xiaomi is facing this problem more often due to aggressive optimization MIUI, Sometimes conflicting with user preferences.
We tested all methods on the Redmi Note 12 Pro+, Xiaomi 13 Ultra and POCO F5 models with different firmware versions. Note: on devices with 4 GB of RAM and below, even standard processes can take up to 70-80% of memory, and on flagships with 12 + GB - no more than 30-40% in standby mode.
1. Built-in memory monitor in MIUI/HyperOS
The fastest way is to use a standard task manager that shows the current RAM load and active process list, to open it:
- Unlock your smartphone and swipe up from the bottom edge to open the menu of recent apps.
- Touch the "Three dots" icon" (โฎ) top-right.
- Select Memory Information (or Memory Manager in HyperOS).
Here you'll see:
- ๐ Total RAM and how much of it is occupied/free.
- ๐ List of applications sorted by memory consumption (from more to less).
- โก Clean button โ it forcibly closes the background processes (but it is often not recommended to use it!).
On MIUI 14+ and HyperOS, Deep Cleaning has appeared in this menu, which removes the cache of system processes. It can be run no more than 1 time a day - otherwise you risk resetting some applications (for example, Google Play Services).
๐ก
If you see an unknown application with high RAM consumption (e.g. com.android.XXX), check it out via Virustotal or Malwarebytes โ it could be malware.
2. Section "About the phone" - hidden statistics
Xiaomiโs settings hide a section with detailed information about memory usage, including system processes that are not displayed in Task Manager.
- Open the Settings. โ The phone.
- Tap 5 times in a row on the MIUI version (or HyperOS version) until the notification โYou became a developer!โ appears.
- Go back to the main settings menu and open a new section for developers.
- Scroll down to the Debugging block and select Memory Statistics.
Here you'll see:
- ๐ฑ Total use of real-time RAM (graphics updated every second).
- ๐ ๏ธ Distribution by category: applications, cache, kernel, drivers.
- ๐ List of all processes with indication PID (process identifier) and PPID (parenting).
| Category of process | Typical RAM consumption | Can I close it? |
|---|---|---|
| system_server | 300-800 MB | โ No (critical process) |
| com.miui.home | 200-500 MB | โ No. Launcher) |
| android.process.media | 150-400 MB | โ ๏ธ Unless you use multimedia. |
| com.google.android.gms | 250-600 MB | โ No (Google services) |
โ ๏ธ Warning: Do not close processes called kernel, surfaceflinger or zygote, which will lead to a smartphone reboot or interface crash. >1GB of RAM, This is a Sign of a Firmware Failure.
3. Applications for RAM analysis: top-5 utility
Standard MIUI tools provide basic information, but for deep analysis, it is better to use third-party applications. We selected the 5 most effective ones:
- ๐ DevCheck โ Detailed statistics on each process, including the use of CPU, GPU and RAM. There is a function of exporting logs.
- ๐ Simple System Monitor โ displays RAM load graphs in real time with the ability to filter by application.
- ๐ก๏ธ Greenify not only analyzes memory consumption, but also โfreezesโ unnecessary background processes (requires root for full functionality).
- ๐ CPU Monitor โ in addition to RAM, monitors the temperature of the processor and battery charge, which is useful for diagnosing โgluttonousโ games.
- ๐ง Termux + htop โ for advanced users: terminal emulator with htop utility, which displays a complete list of Linux-style processes.
To install htop in Termux, follow the following commands:
pkg update && pkg upgrade
pkg install htop
htopIn the htop interface, pay attention to the columns:
- MEM% is the percentage of RAM usage by the process.
- TIME+ is the total time of the process (if the value is too high, it may indicate โhangโ).
- COMMAND is the name of the process (you can Google unknown names).
4. Hidden commands for engineering menu
Xiaomi smartphones have a hidden engineering menu that allows you to get memory data at a low level.
- Open the Phone app.
- Enter the combination: ##4636###.
- In the menu that appears, select Usage statistics (or Usage Statistics).
Here you'll see:
- ๐ Time in Foreground โ Application foreground.
- ๐ Time in background โ time in the background (if the value is too large, the application โhangsโ in memory).
- ๐ Memory usage โ current RAM consumption.
For more information, enter another command:
##2664##This will open the RAM test menu, where you can:
- Check the integrity of RAM (useful after falls or overheating).
- See hardware errors (if any, the memory may not work properly).
- View the real frequency of RAM (on some Xiaomi models it is understated to save energy).
โ ๏ธ Warning: Do not change the settings in the engineering menu unless you are sure of their purpose! For example, a forced change in the frequency of RAM can lead to loss of warranty or damage to the memory module.
Launch the command ##4636##
Check the Usage Statistics section
Pay attention to applications with high time in background
Do not change unknown parameters
Reboot the phone after analysis-->
5. Logs of the system: how to find the "culprit" of the brakes
If the smartphone starts to brake suddenly, it could be a memory leak in one of the applications, and to detect it, you need to analyze the system logs.
- Install the Logcat Extreme or MatLog app from Google Play.
- Start log recording (start button).
- Replay the problem (for example, open a โgluttonousโ application).
- Stop recording and filter logs by keywords: OutOfMemoryError is a memory loss error. MemoryLeak is a memory leak. ANR is Application Not Responding.
An example of a log that indicates a problem:
E/AndroidRuntime(12345): FATAL EXCEPTION: main
java.lang.OutOfMemoryError: Failed to allocate a 104857712-byte allocation with 16777216 free bytes and 33MB until OOMIn this case:
- ๐น 12345 โ PID problem-progression.
- ๐น 104857712 bytes (~100 MB โ the amount of memory that the application could not allocate.
- ๐น 33MB until OOM โ free memory before the collapse.
To find the PID application, use the command in Termux:
ps -A | grep 12345How to save logs for analysis by a specialist?
Hardware problems: when the "iron" is to blame
If all software methods did not help, the reason may lie in the physical malfunction of the RAM module.
- ๐ฑ Who fell from a height (especially on concrete or asphalt).
- ๐ฅ which overheated (for example, during charging or playing).
- ๐ง Which came into contact with moisture (even if the phone worked normally after that).
Signs of hardware problem with RAM:
- ๐ The smartphone spontaneously reboots when booting >70% memory memory.
- ๐ข Applications run for a very long time, even after cleaning the RAM.
- ๐ In the engineering menu (#2664##) the memory test shows errors (Fail).
What to do:
- Reset your phone to factory settings (Settings โ About Phone โ Settings Reset) If the problem persists, it's almost certainly hardware.
- Contact Xiaomi Service Center. Diagnostics of the RAM module is worth it ~500โ1000 โฝ, Replacement (if required) โ from 3000 โฝ.
- If the phone is warranty, do not open it yourself - this will cancel the warranty obligations.
๐ก
On Xiaomi models with LPDDR5 (such as Xiaomi 14 or Redmi K70 Pro), hardware failures of RAM are less common than on older LPDDR4X, but they are more difficult to diagnose without special equipment.
7. RAM optimization: how to reduce the load
If the analysis shows that memory is full of unnecessary processes, it can be optimized without root:
- ๐ซ Turn off auto-start applications: Go to Settings โ Annexes โ Application management. Select the application and disable Autorun.
- ๐ Limit background activity: In the same app settings, turn off Background activity. For Google Play Services, this cannot be done - it is critical for the system to work.
- ๐๏ธ Clean the cache regularly: In Settings โ Memory click Clear cache. For individual applications: Settings โ Annexes โ Warehouse โ Clear the cache.
Use "Productivity Mode"
- In Settings โ Battery, select Performance.
- This will reduce background activity but reduce battery life.
โ ๏ธ Note: On HyperOS, manually changing build.prop settings can result in bootloop locking.Before editing, back up through TWRP.