How to clean RAM on Xiaomi Android smartphones: the full guide

Your Xiaomi smartphone is slowing down, apps are spontaneously closing, and animations are twitching? The reason most often lies in overloaded RAM. Even the flagship Redmi or POCO models with 8-12 GB of RAM eventually begin to β€œsuffocate” from the background processes. In this article, we will examine 7 proven ways to clean RAM β€” from standard MIUI tools to hidden features for power users.

It's important to understand that cleaning RAM is not a panacea for all lags. If the phone brakes because of a weak processor or a crowded drive, freeing RAM will only have a temporary effect. But in 80% of cases, properly optimizing RAM returns the smartphone to speed without drastic measures like resetting.

We have tested all methods on devices with MIUI 14 and HyperOS (including Xiaomi 13 Pro, Redmi Note 12 and POCO F5), and the methods will also work for older models on MIUI 12/13 if they receive security updates after 2022.

1. Built-in memory cleaner in MIUI/HyperOS

The easiest way is to use Xiaomi’s regular tool, which requires no additional apps installed and works on all the brand’s devices, including the budget Redmi A2 and POCO M6 Pro.

To start the cleanup:

  1. Open the Settings. β†’ The phone.
  2. Tap 5-7 times on the line MIUI Version (or HyperOS Version) until the notification β€œYou became a developer” appears.
  3. Return to the main settings menu and go to Additional β†’ For developers.
  4. Find the Memory Cleanup option and activate it.
  5. Return to the home screen and add the Memory Cleanup widget to the notification panel (swipe down from the top edge of the screen and click Edit).

Now you can clean RAM with one tap on the widget, but here's the caveat: this method only removes the app cache, not the background processes. It takes additional steps to clean it completely.

πŸ’‘

If the memory cleanup widget doesn't show up, restart the phone. On some firmware, it only appears after the reboot.

2. Manual cleaning through the menu "Last Appendices"

The method works on all versions of MIUI and HyperOS, but the efficiency depends on the model of the smartphone. On devices with 6 GB of RAM and less (for example, Redmi 9A or POCO M4 Pro), manual cleaning gives a noticeable increase in performance, while on flagships with 12+ GB, the difference will be minimal.

Instructions:

  • πŸ“± Press the square navigation button (or swipe up from the bottom edge of the screen and hold your finger).
  • 🧹 At the bottom of the screen will appear the button Clean all (or icon basket) – tap it.
  • πŸ”„ For deep cleaning, hold the Clean All 2-3 Seconds button until a menu with the option Clear Background Processes appears.

On smartphones with HyperOS (Xiaomi 14, POCO F6 and later), instead of the β€œClear All” button, you can display a lock icon. Slip on it, then select β€œClose all applications” and confirm the action.

πŸ“Š How often do you clean up your Xiaomi RAM?
Every day.
Once a week.
Only when the phone is slowing down.
Never clean.

3. Optimization through Security App

Security is a Swiss knife for Xiaomi smartphones, pre-installed on all devices of the brand and allows you not only to clean RAM, but also to manage autoload, cache and even viruses.

How to use:

  1. Open the Security app (the shield icon).
  2. Go to the Optimization tab (or Boost in global firmware).
  3. Press Memory Boost (or Memory Boost).
  4. Wait for the analysis and tap the Clean.
  5. For deep cleaning, go to Deep Cleaning and select Background Cleanup.

In the same menu you can configure automatic cleaning:

  • πŸ”„ Enable the Auto Cleanup option.
  • πŸ•’ Set a schedule (we recommend every day at 3:00).
  • ⚑ Select the cleaning level: Fast (removes only the cache) or Deep (close background processes).
What is a deep cleanup in MIUI?
Not only does this feature close applications, it also resets some system processes that normally remain active even after manual cleaning, such as stopping Google Play services that consume up to 200-300MB of RAM in the background. However, after deep cleaning, the first 1-2 minutes of a phone’s life may be less smooth until the systems are rebooted.

4. Disable autoloading of unnecessary applications

Many apps (especially social networks and instant messengers) automatically start when the phone is turned on and hang in the background, consuming RAM. Shutting down autoboot can free up to 1-1.5 GB of memory on devices with 6-8 GB of RAM.

How to turn off autoboot:

  1. Go to Settings β†’ Applications β†’ Application Management.
  2. Select an app (like Facebook or AliExpress).
  3. Slip AutoRun and turn off the slider.
  4. Repeat for all unnecessary applications.

For mass blackout:

  • πŸ“Š Open Security. β†’ Optimization β†’ Auto-start.
  • πŸ” Include filters that are recent or frequently used.
  • ❌ Tick unneeded apps and click Disable.

⚠️ Note: Do not disable auto-start for system applications (e.g. Google Play Services, MIUI Daemon or Security: This can cause smartphone malfunctions, including push notifications and synchronization issues.

AnnexRAM consumption in the backgroundCan I turn off the autostart?
Facebook300-500 MBYes.
Instagram250-400 MBYes.
AliExpress150–250 MBYes.
Google Play Services200-600 MBNo.
MIUI Daemon100–150 MBNo.

5.Use of ADB-Teams for experienced users

If standard methods do not help, you can resort to ADB-This requires you to connect your phone to your computer, but you can manually control your processes and free up RAM without root rights.

What you need:

  • πŸ’» Computer with Windows/macOS/Linux.
  • πŸ”Œ USB-cable (preferably original).li>
  • πŸ“₯ Google Platform Tools (download and unpack).
  • πŸ”§ Included debugging by USB phone-on.

Instructions:

  1. Enable Developer Mode (as in the first method) and activate Debugging over USB.
  2. Connect the phone to your computer and select File Transfer mode.
  3. Open the command line (or Terminal) in the Platform Tools folder.
  4. Enter the command to check the connection: Adb devices should appear the name of your device.
  5. Execute the command to clean RAM: adb shell am broadcast -a android.intent.action.CLOSE_SYSTEM_DIALOGS This team will close all system dialogues and background processes.

For more aggressive cleaning, use:

adb shell am kill-all

This command will forcefully close all user applications, but will not affect system processes.

⚠️ Note: Do not use the adb shell kill or adb shell pkill commands without understanding the consequences. Incorrect completion of system processes (for example, surfaceflinger or zygote) can lead to a crash of the interface and the need to restart.

USB | Installed Xiaomi | Drivers Downloaded Platform Tools | Phone connected in file transfer mode | Command line open on behalf of administrator-->

6.Configuring the limitation of background processes

MIUI and HyperOS allow you to limit the number of background processes, which reduces the load on RAM. This feature is hidden in the menu for developers and can significantly improve performance on devices with 4-6 GB of RAM.

How to set up:

  1. Activate Developer Mode (as in the first method).
  2. Go to Settings β†’ Additional β†’ For developers.
  3. Find the option Background Process Limit (or Background Process Limit).
  4. Choose one of the values: πŸ›‘ No background processes – radical mode, suitable only for weak devices (Redmi) 8A, POCO C31). ⚠️ Maximum 1 process – optimal for 4-6 GB of RAM. βœ… Process Maximum 2 – Balance between performance and multitasking (recommended for 8GB of RAM). πŸš€ Standard Limit – Default value (4 processes).

After changing the setting, restart the phone. The effect will be noticeable after 10-15 minutes of active use: applications will be less likely to reboot when switching between them, and free memory will be 20-30% more.

πŸ’‘

Limiting background processes to 1-2 significantly increases battery life, as it reduces the CPU load, but it can lead to longer applications loading when first opened.

7. reset partition cache (without data loss)

If all previous methods failed, try resetting the partition cache, which does not delete user data (photos, messages, apps), but clears temporary system files that can take up to 1-2 GB of RAM in the background.

Instructions:

  1. Turn off the phone.
  2. Press the button combination: πŸ”§ For most models: Power button + Loudness up. πŸ“± For POCO F4/F5 Xiaomi 12/13 Series: The Power Button + Loudness up + Loudness down (hold on) 10 seconds).

Recovery

Wipe & Reset

Wipe Cache

Wipe Data

Confirm the action and wait for the completion (it will take 1-3 minutes).

Reboot

After the cache is reset, the system can boot longer than usual (up to 5 minutes). This is normal - MIUI restores optimized files. After 10-15 minutes of work, you will notice that there is more free memory and the phone is more responsive.

⚠️ Warning: Don't confuse Wipe Cache with Wipe Data! The second option will completely reset the phone to factory settings by deleting all your data. If you accidentally chose the wrong option, immediately turn off the phone - sometimes it helps interrupt the reset process.

FAQ: Frequent questions about cleaning up RAM on Xiaomi

❓ Why does the phone stop after 10 minutes after cleaning the RAM?
This is normal Android behavior. The system is designed to fill up free RAM with background processes to speed up multitasking. If the lags come back too quickly after cleaning, the problem may be in the middle of a problem: πŸ”‹ Weak processor (for example, on Redmi) 9C helio G35 Even 4 GB of RAM does not save from brakes). πŸ—ƒοΈ Overflowing storage (if less than 10% of memory is free, the system begins to slow down). πŸ€– Firmware failure (try to update) MIUI In such cases, cleaning the RAM has a temporary effect. Consider resetting your settings or replacing your phone.
❓ Can RAM be cleaned with third-party applications (e.g. CCleaner)?
🚫 Not recommended. Applications like CCleaner, Clean Master or DU Speed Booster not only does not help, but can also help: πŸ•΅οΈβ€β™‚οΈ Collecting your data (many β€œcleaners” are rebranding spyware). πŸ”„ Run unnecessary background processes, consuming even more RAM. πŸ”§ Breaking down optimization MIUI, And that makes the phone slow down even more, except for Greenify, but it's hard for beginners to set up.
❓ How much RAM should be free for normal operation?
It depends on the model: πŸ“± 4 GB of RAM (e.g. Redmi) 10A): It is optimal to have free 500-800 MB. If less than 300 MB, expect lags. πŸ“± 6-8 GB of RAM (POCO X5, Redmi Note 12: Normal – 1–1.5 GB free. πŸ“± 12+ GB of RAM (Xiaomi 13 Ultra, POCO F5 Pro: Even at 2-3 GB of free memory, there should be no brakes. If free memory is constantly below normal, check the applications for viruses or reset the phone settings.
❓ Why after upgrading to HyperOS, the phone became more braked?
HyperOS is more resource-intensive than MIUI 12/13. If after the upgrade appeared lags: πŸ”„ Make a cache reset (as in the cache) 7-m manner). πŸ”§ Turn off animations: go to Settings β†’ Additionally. β†’ For developers and set all three animation scales on Animation disabled. πŸ“‰ Limit the background processes to the maximum 2. πŸ”‹ Check the temperature of the processor (Security) β†’ Optimization β†’ Temperature if it's higher 45Β°C, let the phone cool. If the brakes are still, try to roll back on the MIUI via Fastboot (instructions are available on the forum) XDA Developers).
❓ How to Check Which App Consumes Most RAM?
There are two ways: Method 1. Through Settings: Open Settings β†’ Applications β†’ Application Management. Tap three dots in the upper right corner and select Memory Use. Sort the list by RAM Use. Method 2. Through ADB (exact data): adb shell dumpsys meminfo --package=com.example.app Replace com.example.app with the application batch name (e.g. com.facebook.katana for Facebook).