Disabling the expansion of RAM on Xiaomi: safe ways and nuances

The RAM Expansion feature in Xiaomi smartphones appeared with the MIUI 12.5 update and is actively used in models based on MIUI 13/14. The technology allows you to use part of the internal drive as a virtual RAM, increasing multitasking by 1-3 GB. However, not all users notice a performance increase, and some face slowdown, overheating or accelerated wear of flash memory. If you decide to return the standard configuration, this instruction will help you do this without errors.

Itโ€™s important to understand that turning off virtual RAM doesnโ€™t always have the expected effect. On weak devices (like the Redmi 9A or Poco M3), it can even make things worse, since the system is initially optimized for memory deficits. On the other hand, on flagships like the Xiaomi 13 Ultra or Black Shark 5 Pro, turning off the function often leads to more stable operation. Before you act, check if the brakes are due to other causes, such as background processes, viruses or overcrowd storage.

In this article, we will discuss:

  • ๐Ÿ” How it works RAM Expansion and why it is worth (or should not be) disabling
  • โš™๏ธ 3 Official Ways to Disable Through Settings MIUI
  • ๐Ÿ› ๏ธ Alternative methods for advanced users (including: ADB)
  • โš ๏ธ Possible risks and how to avoid them
  • โšก What to do if after disconnecting the smartphone became slower
๐Ÿ“Š You're using the extension. RAM on the Xiaomi?
Yeah, it helps a lot.
Yeah, but I don't feel the effect.
No, I turned it off.
I don't know what it is.
I tried it, but I returned it.

What is RAM Expansion and Why Turn It Off

RAM Expansion (sometimes called Memory Extension or Virtual RAM) is a software mechanism that reserves some of the internal memory (UFS/EMMC) for RAM needs. For example, on Xiaomi 12T with 8 GB of RAM, you can add another 3 GB of virtual memory to a total of 11 GB. It sounds tempting, but in practice there are nuances:

First, virtual RAM is much slower than physical RAM. If your smartphoneโ€™s LPDDR5 has a bandwidth of ~50 GB/s, even a fast UFS 3.1 will give you a maximum of 2-3 GB/s. This means that applications moved to virtual memory will open with a delay. Second, frequent overwriting of data to flash memory accelerates wear and tear โ€” especially relevant for budget models with EMMC 5.1.

When to turn off the function:

  • ๐Ÿ“‰ Smartphone slows down when switching between applications, despite the free RAM
  • ๐Ÿ”ฅ The device overheats for no apparent reason (virtual memory increases the load on the processor)
  • ๐Ÿ’พ You use a slow memory (for example, EMMC instead UFS)
  • ๐ŸŽฎ Minimum delay in games (virtual) RAM add lambs)

When it is not recommended to disconnect:

  • ๐Ÿ“ฑ You have less than 6 GB of physical RAM (For example, Redmi Note 10 with 4 GB)
  • ๐Ÿ”„ You often keep in the background a lot of applications (messengers, social networks, navigators)
  • ๐Ÿค– The smartphone works on MIUI 12.5 or older: The algorithm is better optimized in newer versions
How to check the memory type in your Xiaomi?
Open the CIT application (Equipment Integrated Test) or use AIDA64. In the Storage section, see Memory Type. If UFS 2.2/3.1 is specified, wear will be minimal. If EMMC 5.1, it is better to disable RAM Expansion.

Official method: disabling through MIUI settings

The easiest and safest method is to use the built-in MIUI tools. The instructions are relevant for MIUI 12.5-14 versions (including HyperOS for new models). Importantly, on some devices, the path to settings may differ, depending on the firmware version and regional build.

Steps to shut down:

  1. Open Settings (the gear icon on the main screen).
  2. Go to the About Phone section. โ†’ All parameters (or additionally).
  3. Find Memory or Memory Extension (in some versions, Memory Extension).
  4. Slip the slider or disable button (confirmation may be required).
  5. Restart the device to apply the changes.

If the Memory Extension item is not on the menu, try an alternative path:

  1. Open the Settings. โ†’ Special facilities.
  2. Choose Memory and Performance.
  3. Find the Virtual RAM option and deactivate it.

โ˜‘๏ธ Preparation for shutdown RAM Expansion

Done: 0 / 4

What to do if the switch button is inactive?

  • ๐Ÿ”„ Reboot your smartphone โ€“ sometimes resetting temporary files helps.
  • ๐Ÿ“ฑ Check if you have installed system updates (check Settings). โ†’ Update of the PO).
  • ๐Ÿ› ๏ธ If the device is rooted, it may be a conflict with Magisk modules โ€“ try to disable them.

๐Ÿ’ก

On some models (like the Poco F4 GT), RAM Expansion is hidden in the developer menu. To find it, activate Developer Mode: go to Settings โ†’ About Phone and tap the MIUI version 7 times. Then go back to Settings โ†’ Additional โ†’ Developer and look for Memory Extension.

Disconnection through ADB: for advanced users

If the standard method didn't work, you can use Android Debug Bridge (ADB), which requires connecting your smartphone to your computer and basic command line knowledge. Warning: the wrong ADB commands can disrupt your system. Use this method only if you are confident in your actions.

Step-by-step:

  1. Download and install ADB Tools on PC.
  2. Activate USB debugging on your smartphone: Go to Settings โ†’ About Phone โ†’ MIUI Version (tap 7 times to activate Developer Mode). Go back to Settings โ†’ Additional โ†’ Developer. Enable USB Debugging.

File transfer

Command line.

Terminal

ADB

adb devices

(Your device should appear)

adb shell
settings put global virtual_ram_enable 0
reboot

Once you reboot, RAM Expansion will be disabled. To return it, use the same command, replacing 0 with 1.

โš ๏ธ Note: Some firmware (such as custom LineageOS or Pixel Experience) may not work, in which case you need to edit the build.prop file manually, which is fraught with the risk of a device blink.

Resetting to factory settings: an extreme measure

If none of these methods worked, and the virtual RAM continues to work, you have a complete reset, and it's a radical solution that will delete all the data from the device, so use it only as a last resort.

  • ๐Ÿ“Ž Create a backup through Settings โ†’ Google โ†’ Backup or Mi Cloud backup.
  • ๐Ÿ” Take a photo or write down passwords from your accounts (they will be deleted).
  • ๐Ÿ“ฑ Make sure there is enough charge on your smartphone (โ‰ฅ30%).

Resetting instructions:

  1. Go to Settings โ†’ About the phone โ†’ Reset settings.
  2. Choose Delete all data (or Factory Reset).
  3. Confirm the action and wait for the reboot.

Once reset, RAM Expansion will be disabled by default (unless it is activated automatically when you first set it up) to prevent it from being turned on again:

  • ๐Ÿšซ When you initially set up your smartphone, skip the memory optimization point.
  • ๐Ÿ”ง After setting up, immediately go to Settings โ†’ Memory and check function status.

โš ๏ธ Attention: On devices with MIUI Global Stable can automatically install an update after a reset, which activates again. RAM To avoid this, disable auto-update in Settings before resetting. โ†’ Update of the PO โ†’ Settings (โš™๏ธ) โ†’ Auto-update.

What to do if after disconnecting the smartphone became slower

Paradoxically, sometimes turning off virtual RAM results in poor performance, because the system has been optimized for memory expansion, and now it's running out of resources. Here's how to fix it:

Problem.Reason.Decision
Lags when opening applicationsLack of physical RAMClose background processes manually or use Greenify
Long loading gamesCash can't get loaded.Clean the cache in Settings โ†’ Apps โ†’ [Game] โ†’ Storage
High heat.The processor compensates for the lack of memoryLimit FPS in Games or Enable Energy Saving
Fast battery dischargeFrequent application rebootsTurn off Adaptive Brightness and Background Synchronization

If problems persist, try alternative optimization methods:

  • ๐Ÿ”„ Enable Performance Mode in Settings โ†’ Battery.
  • ๐Ÿ—‘๏ธ Clear the system cache through Recover Mode (click Power). + Volume up when the phone is off).
  • ๐Ÿ“ฅ Install a light firmware (for example, MIUI Lite for older models).

๐Ÿ’ก

If the smartphone started to work worse after the RAM Expansion was turned off, it does not mean that the feature was useful. Most often the problem lies in the incorrect optimization of MIUI - try resetting or switching to custom firmware.

Xiaomi models that run the worst on RAM Expansion

Not all Xiaomi devices have the same virtual memory performance, and the following models have the worst performances, according to user and benchmark tests (Geekbench, AnTuTu):

  • ๐Ÿ“ฑ Redmi 9A/9C โ€” weak processor (Helio) G25/G35) load-bearing.
  • ๐Ÿ“ฑ Poco M3 โ€” EMMC 5.1 rapidly degrades when used actively.
  • ๐Ÿ“ฑ Redmi Note 10 (4/64 GB - little physical RAM modern applications.
  • ๐Ÿ“ฑ Mi 10 Lite โ€“ problems with thermothrottle when loaded virtual memory.

On these devices, turning off RAM Expansion often gives you 10-15% increase in performance, especially in games and multitasking. On flagships like Xiaomi 13 Pro or Black Shark 5, the difference is almost invisible โ€“ it is better to leave the function on.

If you are not sure whether to turn off virtual RAM on your model, do a test:

  1. Install AnTuTu Benchmark or Geekbench 6.
  2. Run the test with RAM Expansion enabled.
  3. Turn off the function and repeat the test.
  4. Compare results in the CPU and Multi-Core sections.

๐Ÿ’ก

For objectivity, conduct tests under the same conditions: the same battery level, closed background applications, disabled Performance Mode.

Frequent questions about RAM Expansion on Xiaomi

โ“ Can I turn it off? RAM Expansion without rebooting?
No, once you've shut down through settings or ADB, you've got to reboot, and without that, you're not going to get the changes, and the system can be unstable.
โ“ Does the virtual affect RAM lifetime?
Yes, but the degree of impact depends on the type of memory: UFS 2.1/3.1 is minimal wear (life ~500-1000 rewrite cycles). EMMC 5.1 is significant wear (life ~300 cycles). In practice, with moderate use, the difference will be 1-2 years of use.
โ“ Why after the shutdown RAM Expansion: Some games are coming out?
This is because games lack physical memory. Solutions: Close all background apps before you start the game. Reduce the graphical settings in the game (resolution, FPS). Use Game Turbo (inbuilt in MIUI optimizer).
โ“ Can you increase the virtual? RAM more than the system offers?
Technically, yes, but it requires root rights and editing system files. ro.virtual_ram.size But it's fraught with: unstable system, accelerated memory wear, loss of warranty, not recommended without custom firmware experience.
โ“ How to check if the virtual is actually offline RAM?
There are several ways: Run AIDA64 โ†’ System โ†’ Memory. If the Virtual RAM string is missing or equal to 0 MB, the function is disabled. Use ADB: adb shell cat /proc/meminfo | grep Swap If the output is empty - swap (virtual memory) is not used. Look at Settings โ†’ Memory - there should not be an extension of RAM.