How Xiaomiโ€™s Memory Expansion Works: A Complete Guide with Instructions

Xiaomi smartphones have long since ceased to be just a budget alternative to flagships, offering innovative solutions, one of which is memory expansion technology (or virtual RAM), which allows you to increase the amount of RAM due to the built-in storage, which is especially important for multitasking and resource-intensive applications. But how does it work? Is it available on all models? And should it be included?

In this article, we will analyze the operation of virtual RAM at the system level, analyze compatibility with different Xiaomi series (from Redmi Note to Mi 12), and give a step-by-step instruction on activation and optimization.

What is Xiaomiโ€™s memory extension and why is it necessary?

Memory Extension (or RAM Expansion) is a software solution that allows a smartphone to use part of the internal memory (UFS/NAND) as an additional RAM. It is essentially the same as a swap file in desktop OSes, but adapted for mobile devices, the main goal is to improve multitasking and reduce the number of forced closures of applications.

How does it work in practice? Imagine: you have a smartphone with 6 GB of RAM and 128 GB of ROM. When you activate the expansion of 2 GB, the system reserves 2 GB from the built-in drive and uses them as a buffer for background processes. Now instead of 6 GB, you have an effective 8 GB โ€” but with an important caveat: virtual memory is slower than physical memory, since the read/write speed of UFS 2.1/3.0 is inferior to LPDDR4X/LPDDR5.

  • ๐Ÿ“ฑ For whom it is relevant: owners of devices with 4-8 GB RAM, which often work with multiple applications at the same time (for example, messengers) + browser + game).
  • โšก What gives: reduces the number of reboots of applications when switching between them, but does not speed up the applications themselves.
  • โš ๏ธ Limitation: does not replace physical RAM โ€” Virtual memory is only suitable for temporary storage of data.

It is important to understand that expanding memory does not increase performance in games or heavy applications (for example, Lightroom or Premiere Rush); it only helps with multitasking. Moreover, on some firmware (MIUI 12.5 and below), the function can work unstable, causing lags when used intensively.

๐Ÿ“Š You are using the memory extension on your Xiaomi?
Yeah, all the time.
I did, but I did.
No, I haven't.
I don't know what it is.

What Xiaomi models support memory expansion

Memory Extension was introduced in MIUI 12.5 and became widely available with MIUI 13, but not all devices support it, depending on the hardware platform and firmware version.

Series/ModelSupport for memory expansionMaximum amount of virtual RAMRequired version of MIUI
Xiaomi 12/12 Pro/12Xโœ… Yes.3GBMIUI 13+
Redmi Note 11/Pro/Pro+โœ… Yes.2GBMIUI 13
POCO F4/F4 GTโœ… Yes.3GBMIUI 13.1+
Xiaomi 11T/11T Proโœ… Yes.3GBMIUI 12.5 EEA
Redmi 10/10A/10CโŒ No (iron restriction)โ€”โ€”

Note that even if your model is on the list, the feature may not be available in some regional versions of the firmware (for example, MIUI Global Stable for the Redmi Note 10 Pro does not have it, but MIUI China does). To check for support, go to Settings โ†’ About Phone โ†’ All Specifications โ†’ Memory and look for RAM Extension.

โš ๏ธ Note: On devices with eMMC memory (e.g. Redmi) 9A or POCO M3) The memory expansion function is missing because of the slow read/write speed. ADB may lead to strong lags.

If your model is not in the table but you are sure it supports UFS 2.1+, try upgrading to the latest version of MIUI. Sometimes the feature appears after an update. For example, the POCO X3 Pro received support only in MIUI 13.0.4.

How to enable memory extension on Xiaomi: step-by-step instructions

Activation of the function takes no more than a minute, but before starting, make sure that:

  • ๐Ÿ”‹ Battery level above 20% (process requires restarting).
  • ๐Ÿ“ฑ There is enough free space on the device (virtual) RAM lay-in ROM).
  • ๐Ÿ”„ Updated to the latest version (check in Settings) โ†’ Updating the system).

Now we move on to the setting:

  1. Open Settings and go to About Phone.
  2. Tap on all characteristics (or characteristics of the device).
  3. Find Memory (or RAM) and select the RAM Extension.
  4. Turn on the slider and select the amount of virtual memory: 1 GB, 2 GB or 3 GB (accessible depends on the model).
  5. Confirm the action and wait for the reboot (it will take ~1-2 minutes).

Backup important data |Close all background applications |Connect charger |Check free disk space-->

After the reboot, check if the changes have applied: open Settings โ†’ Memory and look at the Total RAM string. For example, if you had 6GB and you added 2GB, 8GB should now be displayed.

โš ๏ธ Note: On some firmware (for example, MIUI 12.5 Global) after activation of the memory expansion, the sound in the speakers may disappear. This is a bug that is corrected by resetting the sound settings to Settings. โ†’ Sound. โ†’ Resetting settings.

If the RAM extension is not on the menu, but your model should support the function, try enabling it through ADB:

adb shell settings put global virtual_ram_support 1


adb shell settings put global virtual_ram_size_list "1024,2048,3072"

After you've done the commands, restart the device. Be careful: the wrong ADB commands can disrupt the system.

Pros and cons of memory expansion: should I include

Like any technology, virtual RAM has its advantages and disadvantages, and let's break them down based on tests and user feedback.

Advantages

  • ๐Ÿ‘ Better multitasking: apps are less likely to reboot when switching (e.g., you can keep Telegram open, Chrome with 10 tabs, and YouTube without downloading from memory).
  • ๐ŸŽฎ Stability in light games: in Clash Royale or Brawl Stars, the number of friezes decreases when switching between messengers.
  • ๐Ÿ”„ No data loss: unlike manual cleanup RAM, Virtual memory does not shut down applications.

Deficiencies

  • โš ๏ธ Flash memory wear: Frequent read/write operations reduce resource UFS/NAND (especially in the cheapest models with UFS 2.1).
  • ๐Ÿข Slowing down: if you turn on 3GB of virtual RAM on a weak processor (for example, Snapdragon 660), lags may appear.
  • ๐Ÿ“‰ Reduction of free space: reserved 2-3 GB are taken away from the main drive, which is critical for devices with 64 GB ROM.

Tests show that the optimal amount of virtual RAM is 1-2 GB. Installing 3 GB gives a minimal increase in multitasking, but significantly increases the load on the drive. For example, on the Redmi Note 11 Pro+ with UFS 2.2, the difference between 2 GB and 3 GB of virtual memory in benchmarks was only 5-7% in favor of the latter, while memory wear increased by 15% over six months of use.

๐Ÿ’ก

If you play heavy games (Genshin Impact, Call of Duty Mobile) often, it is better to disable the memory extension โ€“ it will not help with FPS, but will increase the heating of the device.

How to Optimize Your Memory Expansion

Just turning on a function is not enough โ€” you need to configure the system to make it work efficiently.

  1. Limit background processes: Go to Settings โ†’ Applications โ†’ Application Management and turn off auto-run for unnecessary programs (such as Mi Video or Mi Browser).
  2. Use light firmware: If you have custom firmware (like the Pixel Experience), the memory expansion may not work smoothly. MIUI.
  3. Control the temperature: virtual RAM increases the load on the processor. If the device is warming above 45ยฐC, turn off the function.

For advanced users, there is a way to fine-tune through build.prop (root rights are required):

ro.virtual_ram.enable=true


ro.virtual_ram.size=2048

These lines allow you to manually size virtual memory, but changing system files can lead to bootloops โ€” only if you understand the risks.

How to check the actual use of virtual RAM?
Open Settings โ†’ About Phone โ†’ MIUI Version and tap 5 times through the Core to activate Developer Mode. Then go to Settings โ†’ Additional โ†’ For Developers โ†’ Memory and see Swapโ€™s usage schedule (this is virtual RAM).

If after activating the memory expansion, the smartphone began to slow down, try:

  • ๐Ÿ”„ Reduce the virtual volume RAM from 3GB to 1GB.
  • ๐Ÿงน Clear the cache in Settings โ†’ Memory. โ†’ Clear the cache.
  • ๐Ÿ”‹ Calibrate the battery (discharge to 0% and charge to 100% without interruptions).

Frequent problems and their solutions

Despite the simplicity of the technology, users are confronted with bugs, and here are the most common ways to fix them:

Problem.Possible causeDecision
The function is not in the menuOutdated firmware or regional restrictionsUpdate MIUI to the latest version or refashion to MIUI China
The smartphone slows down after activationToo much virtual RAM for a weak processorReduce the volume to 1 GB or turn off the function
The sound in the speakers is missing.Discussion with audio drivers in MIUI 12.5Reset the sound settings or update the firmware
The battery goes down fast.Increased load on the processor and driveTurn off the memory expansion or reduce the brightness of the screen

If after activating the memory expansion, the smartphone began to spontaneously reboot, most likely the problem is the lack of free space on the disk. Virtual RAM reserves some ROM, and if the device has less than 5 GB of free space, the system can crash, the solution is to vacate space or turn off the function.

โš ๏ธ Note: On some devices (e.g. Xiaomi 11 Lite) NE) When you turn off the memory extension, the free disk space is not returned immediately. To return the reserved gigabytes, reset the cache to Recovery (Volume Up). + Power when the phone is turned off).

If none of these methods worked, try resetting to factory settings (Settings โ†’ Additional โ†’ Restore and Reset).

Alternatives to memory expansion: what to do if the function is not available

If your model doesnโ€™t support Memory Extension, but you want to improve multitasking, there are a few alternatives:

  • ๐Ÿ”„ Cleanup RAM manually MIUI There's a built-in memory cleanup utility, swipe down on the home screen and tap on the Clean Up icon, which will temporarily free up memory, but it won't replace the virtual one. RAM.
  • ๐Ÿ“ฑ Use of light firmware: custom firmware like LineageOS or ArrowOS are optimized better than standard firmware MIUI They can reduce the cost RAM.
  • ๐Ÿ”ง Disabling animations: go to Settings โ†’ For developers, and disable Windows animation, transition animation, and animator duration.

For root-enabled devices, there is a more radical solution, which is to install the Virtual RAM Generator module through Magisk, which allows you to create a swap file on a memory card or internal drive.

  • โš ๏ธ The microSD wear is increasing or UFS.
  • โš ๏ธ It can cause unstable operation of the system.
  • โš ๏ธ Requires regular cleaning of the cache.

If you do decide on this method, follow the instructions:

  1. Install Magisk and the Virtual RAM Generator module.
  2. In the file /sdcard/virtual_ram.swap Specify the swap size (for example, 2048M for 2 GB).
  3. Restart the device and check the free memory in AIDA64.

Remember, virtual RAM on a memory card is extremely slow, which is the last option if there are no other ways to improve multitasking.

๐Ÿ’ก

Memory expansion isn't a magic wand. It only helps with multitasking, but it doesn't speed up games or heavy apps. If your smartphone is slowing down in PUBG Mobile, you'd better optimise your graphics settings or buy a model with a lot of physical RAM.

FAQ: Answers to Frequent Questions

Can I enable a memory extension on Xiaomi with 4GB of RAM?
Virtual RAM will help keep 1-2 apps more in the background, but it wonโ€™t solve the problem of lag in games. On weak processors (for example, Snapdragon 636), the function can even worsen performance.
Does memory expansion shorten the life of the drive?
Yes, but not critically. Current UFS 2.2/3.0 is designed for 300-500 rewriting cycles, and virtual RAM uses only a small fraction of memory. Under normal use (non-round-the-clock loads), wear will not be noticeable until 3-4 years later.
Why did the memory extension not return?
It's a bug. MIUI. To return the reserved gigabytes, clear the cache in Recovery or execute a command via ADB: adb shell sm set-force-adoptable true Then restart the device.
Does the memory extension work on POCO F3?
Yes, but only on MIUI 13+ firmware. MIUI 12.5 may not have a feature. If it's not on the menu, update the software or refashion to MIUI China.
Can I use virtual RAM for games?
No. Virtual memory only helps with multitasking, but it doesn't increase FPS or graphics quality. Physical RAM and CPU power are important for games. For example, in Genshin Impact, there won't be a difference between 6 GB and 6 + 2 GB of RAM.