How to increase the amount of free RAM on Xiaomi: the complete guide

Xiaomi smartphones based on MIUI often face the problem of lack of RAM (RAM), especially on budget models with 3-4 GB of RAM. Even powerful flagships like Xiaomi 14 Ultra or Redmi Note 13 Pro+ eventually begin to โ€œbrakeโ€ due to overloaded memory. The reason is not only small volume, but also in the peculiarities of Android and MIUI: the system actively caches applications, background processes eat up resources, and some services (for example, mipush or miui.analytics) work in hidden mode.

In this article, you will find 7 proven ways to free RAM, from basic settings to advanced tricks with ADB and shutdown of system services. We will discuss how to reduce memory consumption without loss of functionality, which applications eat up RAM the most, and why manual memory management through the developer settings can harm performance by 30%. All methods tested on MIUI 14/15 and are relevant for models from 2020 to 2026.

1. Diagnosis: Which apps eat up memory?

Before you optimize, you need to identify the culprits. MIUI has a built-in memory monitor, but it hides some of the data.

Open Settings โ†’ About Phone โ†’ MIUI version and tap 7 times on the line to activate Developer Mode. Then go to Settings โ†’ Additional โ†’ Developer โ†’ Memory. Here you will see:

  • ๐Ÿ“Š Average expenditure RAM in the last 3 hours (normal: 40-60% of the total volume).
  • ๐Ÿ” Top.-5 Applications for consumption (often Facebook, TikTok, MIUI Launcher).
  • โšก Background processes โ€“ system services such as com.xiaomi.midrop (file transfer) or com.miui.cleanmaster may be hidden here.

For detailed analysis, use third-party utilities:

Simple System Monitor (represents real-time consumption)

DevCheck (displays the distribution of memory by categories: system, applications, cache);

ADB (the adb shell dumpsys meminfo team will produce a full report).

โš ๏ธ Note: If the consumption is constantly hanging in the top of the process system_server (more 1 GB), this may indicate a memory leak in the firmware, in which case only flashing or resetting to factory settings will help.

๐Ÿ“Š What kind of Xiaomi model do you have?
Redmi Note 12/13
POCO X5/F5
Xiaomi 13/14
Redmi 10/11
other

2. MIUI optimization: hidden memory settings

MIUI has several hidden features for managing RAM that are not enabled by default, and activating them can free up to 500-800MB of memory without removing applications.

Method 1: Limitation of background processes

  1. Go to Settings โ†’ Applications โ†’ Application Management โ†’ Autorun.
  2. Turn off auto-run for all applications except instant messengers and system services.
  3. Return to Settings โ†’ Battery and Performance โ†’ Battery Management and select Charge Saving mode (it automatically limits background activity).

Method 2: Configure virtual memory (RAM Expansion)

Starting with MIUI 12.5, Xiaomi added the RAM extension feature to internal memory. It creates a swap file, but only works effectively on UFS 3.1 devices (such as the Xiaomi 12T or POCO F4 GT).

  • ๐Ÿ“ฑ Activated in Settings โ†’ Additionally. โ†’ Expansion of memory.
  • ๐Ÿ”ง Recommended size: 1-2 GB (more is meaningless, as swap on Android is slower than physical size) RAM).
  • โš ๏ธ Cons: increases the wear of the drive with frequent read / write operations.

๐Ÿ’ก

If the phone is slower after activating RAM Expansion, disable the feature โ€“ on weak processors (for example, Snapdragon 6xx) it does more harm than good.

3.Cache cleaning and "junk" processes

Application cache and system temporary files can take up to 1-1.5 GB of RAM in the background. Unlike internal memory, the cache in RAM is cleared automatically when resources are scarce, but sometimes manual cleaning is required.

How to clear the cache without losing data:

  1. Go to Settings โ†’ Storage โ†’ Cleanup (or use the built-in Security app).
  2. Select โ€œDeep Cleanupโ€ and mark the items: ๐Ÿ—‘๏ธ Application cache (safe to remove). ๐Ÿงน Residual files (remains from deleted programs). ๐Ÿ”„ System logs (error logs, up to 200 MB).

"Clean it up."

For advanced users: Use ADB to manually clear the cache of all apps:

adb shell pm trim-caches 1G

This command will forcibly clear the cache larger than 1 GB.

Open the menu of recent apps |Click on the "Clean All" icon (or swipe up) |Click the power button and select "Memory Cleanup" (on some models) |Reboot the phone (releases up to 30% RAM)

-->

4. Disabling unnecessary system services

MIUI is known for its abundance of background services, many of which duplicate Google Services features or work to gather analytics, and disabling them can free up 300-600MB of RAM, but requires caution.

List of safe to disable services (via ADB):

Name of servicePackageWhat's he doing?Risk of shutdown
Mi Push Servicecom.xiaomi.xmsfSends push notifications to system applicationsLow (notifications will be sent via Google FCM)
MIUI Analyticscom.miui.analyticsCollects data on phone useAbsent.
MSA (Xiaomi Service Framework)com.xiaomi.msa.globalSynchronization with Xiaomi accountMedium (Cloud Backups may break)
Mi Videocom.miui.videoSystem video playerLow (you can use VLC or MX Player)

To disable the service, run the command:

adb shell pm disable-user --user 0 com.xiaomi.xmsf

Replace com.xiaomi.xmsf with the desired package. Use:

adb shell pm enable com.xiaomi.xmsf

โš ๏ธ Warning: Disabling com.android.vending (Google Play Services) or com.miui.home (launcher) will cause a critical system failure.

5. Set-up of performance mode

MIUI offers three modes of operation of the processor, directly affecting the RAM consumption:

  • ๐Ÿข Battery savings โ€“ limits background processes, reduces clock frequency CPU (minus: lags in games).
  • โšก Balanced โ€“ default mode, optimal for most tasks.
  • ๐Ÿš€ Performance โ€“ Maximum frequency CPU/GPU, expense RAM increase 20โ€“40%.

To change the regime:

  1. Go to Settings โ†’ Battery and Performance โ†’ Performance Mode.
  2. Select โ€œBattery Savingโ€ to free up RAM or โ€œPerformanceโ€ for gaming (but with manual memory cleaning).

For models with Snapdragon 8 Gen 2 (such as Xiaomi 13T Pro), hidden mode "Game Turbo" is available. Activated via the code:

#4636## โ†’ Battery Information โ†’ Select Performance

๐Ÿ’ก

Battery Savings mode reduces consumption RAM 15-25%, but can cause delays when opening applications. 9A with 2GB of RAM).

Advanced methods: changing the parameters of the kernel

For power users, it is possible to fine-tune RAM by changing the kernel parameters. This method requires an unlocked bootloader and root rights, but allows:

  • ๐Ÿ”ง Lmk (Low Memory Killer) โ€“ an algorithm that kills processes when memory is scarce.
  • ๐Ÿ“ˆ Optimize swappiness โ€“ the parameter responsible for using a swap file.
  • โšก Disable kswapd โ€“ the demon that controls virtual memory.

Example of Lmk setting (requires root):

  1. Install Kernel Adiutor or FrancoKernel Manager from Magisk.
  2. Go to the "Memory" section.
  3. Change the minfree values (e.g. 18432,24576,30720,36864,55296,81920 for 6GB of RAM).
  4. Save the settings and restart the phone.

For devices with MediaTek (for example, Redmi Note 12), you may need to additionally configure zram, compressed virtual memory.

size RAM ร— 0.25 (e.g. for 4GB RAM: 1GB zram)
What happens if you set up the lmk incorrectly?
Incorrect minfree values can lead to spontaneous reboots or freezes when multitasking, for example, if you set too aggressive parameters, the system will kill processes even at 30% free RAM, which will cause lags when switching between applications.

7.Alternative firmware: When MIUI fails

If all of the above methods didnโ€™t work, consider switching to custom firmware. MIUI is known for high RAM consumption due to the abundance of background services and unnecessary features (e.g. Second Space or Game Turbo).

  • ๐Ÿ“ฑ Pixel Experience โ€“ pure Android without โ€œgarbageโ€, the expense RAM 20 to 30 percent lower.
  • ๐Ÿ”ง LineageOS - stable firmware with minimal background consumption.
  • โšก Evolution X โ€“ Optimized for Xiaomi, supports features like RAM Expansion, but without unnecessary services.

How to Switch Custom Firmware:

  1. Unlock the bootloader through the Mi Unlock Tool (requires a wait of 7 days for new accounts).
  2. Install TWRP Recovery for your model (this version is suitable for POCO X3 Pro, for example).
  3. Download the firmware (e.g. Pixel Experience for Redmi Note 10 Pro here).
  4. Sweat through TWRP by doing wipe dalvik/cache.

โš ๏ธ Note: Custom firmware voids warranty and may cause the device to blink if you make an error. Before the procedure, check the firmware compatibility with your model (for example, Pixel Experience for Redmi Note 9 Pro and Redmi Note). 9S โ€” file!).

FAQ: Frequent questions about RAM release on Xiaomi

โ“ Why is it cleaned up after cleaning? RAM Memory is filled again in 5 minutes?
This is normal Android behavior: it tries to fill free RAM with cached processes to speed up work. Empty RAM is an inefficient use of resources. Cleaning RAM only makes sense if the phone starts to slow down.
โ“ Can we increase it? RAM on Xiaomi with a memory card?
No, it's a myth. MIUI's RAM Expansion feature uses internal memory (UFS) rather than microSD. Memory cards (even UHS-I) are too slow to work as RAM.
โ“ Which apps are most loaded RAM?
Top.-5 ยซMemory eaters on Xiaomi: Facebook (before) 500 MB in the background. TikTok (up to) 400 MBT even after closing). MIUI Launcher (200โ€“300 MB, especially with weather widget. @Google Play Services (150โ€“250 MB, you can not completely disable. Telegram (up to) 200 MB with active use).
โ“ Why After Updating MIUI There is less free space. RAM?
New versions MIUI (particularly MIUI 14/15) add background services to: ๐Ÿ”’ Security (e.g. com.miui.guardprovider for virus protection). ๐ŸŽฎ Game functions (service com.miui.gameturbo). ๐Ÿ“Š Analytics (data collection to improve firmware) To return the previous level of free memory, disable new features in Settings โ†’ Special facilities โ†’ Functions MIUI.
โ“ How to check how much RAM Realistically available for applications?
Use the adb shell cat /proc/meminfo command. Look for the lines: MemTotal is the total amount of RAM. MemAvailable is the memory available for new processes (this is "free" RAM with cache in mind). For example, if MemAvailable is 1500000 kB, then free is ~1.5 GB.