How to increase RAM on Xiaomi Redmi 9: everything from virtual RAM to deep optimization

Xiaomi Redmi 9 with its 3 or 4 GB of RAM often starts to slow down after a year or two of active use. Apps fly out, games lag, and multitasking turns into anguish. But what if we say that you can increase RAM on this smartphone without a soldering iron and expensive repair? Yes, physically add memory bars to the phone is impossible โ€” but there are at least 5 working ways to โ€œoverclockโ€ existing memory and even create a virtual counterpart.

In this article, we'll look at all the methods available, from the official features of MIUI to the little-known swap-file tricks and zRAM. The important thing is that not all methods are equally effective, and some can even hurt if applied thoughtlessly, so we'll not only tell you how, but also explain why, and also warn you against common mistakes. Start with the simplest, and gradually get to advanced techniques.

1. Virtual memory (RAM Expansion) โ€“ the official way from Xiaomi

With MIUI 12.5 and more, Xiaomiโ€™s firmware has introduced RAM Expansion (or RAM Extension) โ€” not a magical increase in physical memory, but a transfer of some of the data from RAM to embedded storage (ROM) that works as a buffer, essentially a swap file in Linux, but adapted for Android.

How it works on Redmi 9:

  1. The system reserves 1-3 GB of internal memory (depending on the selected settings).
  2. When physical RAM is filled, the least used data is transferred to that reserve.
  3. If necessary, the data is returned to RAM.

Performance is certainly falling (because ROM is slower than RAM), but itโ€™s better than shutting down applications altogether.

To activate the function:

  1. Open the settings โ†’ About the phone โ†’ Memory.
  2. Slip on RAM Extension (or RAM Expansion in English version).
  3. Select the amount of virtual memory: 1 GB, 2 GB or 3 GB (maximum depends on the free space in the ROM).
  4. Reset the device.

โš ๏ธ Warning: If you have less than 10GB of storage space left, donโ€™t turn on the 3GB extension. The system will start aggressively cleaning the cache, which will lead to even larger lags.

๐Ÿ“Š You've tried it before. RAM Expansion on your Redmi 9?
Yeah, it helps.
Yeah, but I didn't notice the effect.
No, I'm afraid of the brakes.
What is it?

2. Optimization of current RAM: what takes away memory and how to free it

Before you "enhance" memory, make sure you use what you have efficiently. 9 modestly 3โ€“4 GB of RAM even background processes can eat up to 50% Here's the top of the resource.-5 Memory Eaters and How to Deal With Them:

  • ๐Ÿ”„ Autoloading applications: MIUI It is a sin because many programs (including system) are launched at the start of the phone. โ†’ Annexes โ†’ Auto-start.
  • ๐ŸŽฎ Background games: Even closed games (e.g, PUBG Mobile or Genshin Impact can leave processes in memory. Use Memory Cleanup in the notification curtain.
  • ๐Ÿ“ฑ Google Duplicate Services: Redmi 9 often runs parallel Google Play services and their counterparts from Xiaomi (for example, com.google.android.gms and com.xiaomi.mipush.sdk). โ†’ Annexes โ†’ All applications.
  • ๐Ÿ“Š Analytics and reports: Functions like Mi Analytics or Usage & Diagnostics are constantly monitoring the system. โ†’ Additionally. โ†’ Confidentiality.
  • ๐Ÿ”„ Animations and visual effects: MIUI He loves smooth transitions that eat up RAM. Scale down the animation in Settings โ†’ The phone. โ†’ Version. MIUI (Tap 7 times, then return to the additional โ†’ For developers โ†’ Scale of animation).

Itโ€™s also worth checking which apps consume the most memory:

  1. Go to Settings โ†’ Applications โ†’ Application Management.
  2. Sort by RAM usage.
  3. Remove or limit background activity for the most voracious (e.g. Facebook, Instagram, TikTok).

โ˜‘๏ธ Optimizing RAM before โ€œincreasingยป

Done: 0 / 5

3.Using zRAM/swap: The Hidden Potential of the Android Kernel

If you're ready for a deeper setup, you should look at zRAM (formerly known as swap), which is a RAM compression technology that allows you to "unload" memory by using it more efficiently. On Redmi 9 with a MediaTek Helio G80 processor and a Linux kernel zRAM, it is already on by default, but its settings can be optimized.

How to check and configure zRAM:

  1. Install Terminal Emulator from Google Play.
  2. Type the command: su -c "cat /proc/swaps" If you see a line with /dev/block/zram0, then zRAM is active.
  3. To increase the size of zRAM (root rights required), use: su -c "echo 2G > /sys/block/zram0/disksize" Here 2G is the size (you can specify 1G, 3G, etc.).

Without root rights, you can try an alternative method through ADB:

  1. Connect your phone to your PC and activate USB Debugging in Settings โ†’ For Developers.
  2. Enter the PC command line: adb shell settings put global swap_frequency 100 This increases the frequency of swap use.

โš ๏ธ Note: Do not set the zRAM size to more than 50% of physical RAM. for example, if you have 3 GB RAM, maximum for zRAM - 1.5 GB. Otherwise, the system will begin to "choke" in data exchanges.

What is zRAM in simple words?
It's a technology that compresses data in RAM, making room for other tasks, for example, if you have 10 tabs open in your browser, zRAM will compress the data of inactive tabs to make room for a new game, but the speed does not drop as much as when using the classic swap on the disk.

4.Alternative firmware: more RAM due to optimization of MIUI

The MIUI stock firmware on Redmi 9 is far from ideal: it is overloaded with unnecessary services, advertising and background processes. Switching to custom firmware (for example, LineageOS, Pixel Experience or Havoc-OS) can free up to 1-1.5 GB of RAM due to:

  • ๐Ÿงน Delete Bloatware (pre-installed applications Xiaomi, Google, Facebook, etc.).
  • โšก Optimized core with better support for zRAM and LMK (Low Memory Killer).
  • ๐Ÿ› ๏ธ The ability to fine-tune build.prop (e.g., parameter) ro.config.low_ram).
  • ๐Ÿ”„ More aggressive memory management (e.g., closing background processes after 5 minutes of inactivity).

Instructions for installing custom firmware:

  1. Unlock the bootloader through Mi Unlock Tool (requires a Xiaomi account binding and wait 7 days).
  2. Install TWRP Recovery for Redmi 9 (the version must match the model: Lancelot for the global version).
  3. Download firmware (e.g. Pixel Experience for lancelot) and GApps (if you need Google services).
  4. In TWRP, run Wipe โ†’ Advanced Wipe (mark Dalvik, Cache, System, Data).
  5. Install firmware and GApps, then restart.

Results after switching to Pixel Experience 12 (based on Redmi 9 user tests):

ParameterMIUI 12.5 (stack)Pixel Experience 12
Free RAM after loading~1.2 GB~1.8 GB
Number of background processes25โ€“3010โ€“15
Time to open applications1.5-2 sec.0.8-1 sec.
Stability of multitaskingApplications are often rebootedApplications stay in memory longer

โš ๏ธ Attention: Installing custom firmware resets the warranty and can lead to a brick of the phone if the wrong version is selected or the sequence of actions is broken. L1 for Netflix HD) They may stop working.

5. Physical increase of RAM: myth or reality?

On the Internet, there are often "instructions" for soldering additional memory chips on the Redmi 9 board.

  • โŒ Impossible for 99% of users: RAM chips on Redmi 9 soldered on the motherboard (model) LPDDR4X), Replacing them requires professional equipment (BGA-Microscope, station, experience with ball grid array).
  • โŒ Cost of work will exceed the price of the phone (on AliExpress, the new Redmi 9 can be bought for the first time) ~10 000 โ‚ฝ, And rations will cost 5,000 to 8,000. โ‚ฝ).
  • โŒ Risky: Even with successful soldering, there is no guarantee that the system will recognize the new memory (requires firmware bootloader and kernel with support for new volume).

The only real way to physically increase RAM is to buy another phone, but if it's critical that you keep the Redmi 9, consider:

  • ๐Ÿ”„ Trade-in:Svyaznoy or MTS offer a discount on a new smartphone when you pass the old one. Redmi 9 in good condition can get up to 5 000 โ‚ฝ.
  • ๐Ÿ› ๏ธ Upgrade repairs: Some service centers offer replacement of the motherboard with an analogue with a large amount of RAM (for example, from 3 GB to 4 GB), but it is worth it. ~3 000โ€“4 000 โ‚ฝ and not always justified.

๐Ÿ’ก

Physically boosting RAM on Redmi 9 is technically possible, but it doesnโ€™t make any economic sense: Itโ€™s better to optimize current memory or consider buying a new phone.

6 Myths about increasing RAM: what not to do

There are a lot of โ€œadviceโ€ that are not only not helpful, but can also harm your Redmi 9.

  • ๐Ÿšซ ยซRAM cleaning applications: Programs like Clean Master or DU Speed Booster doesn't increase memory, it just shuts down processes, and it has the paradoxical effect of spending even more resources restarting applications.
  • ๐Ÿšซ ยซPaging file on SD-Some โ€œgurusโ€ advise creating a swap file on a microSD. This is a very bad idea: the speed of reading / writing a memory card is 10 to 100 times lower than that of the memory card. ROM, And the constant recording operations will quickly kill her.
  • ๐Ÿšซ ยซChange build.prop": You can find instructions on how to edit a file on the network /system/build.prop (For example, add the line dalvik.vm.heapsize=512m). On current versions of Android, this doesnโ€™t work and can lead to bootloop.
  • ๐Ÿšซ ยซShutdown MIUI Optimization: In older versions MIUI This trick has increased productivity, but in MIUI 12.5+ Disabling optimization leads to shell failures (for example, gestures stop working or a dark topic stop working).

If you want to experiment, at least back up your TWRP or ADB Backup:

adb backup -apk -obb -shared -all -f backup.ab

๐Ÿ’ก

Before you manipulate the system, check how much free memory remains after the reboot. If less than 1 GB, optimize your current RAM first, rather than trying to โ€œenhanceโ€ it.

7.Outcomes: What really works and what is a waste of time

To draw a line, of all the methods we've looked at, the real effect is:

MethodEfficiencyDifficultyRisks.
RAM Expansion (official)โ˜…โ˜…โ˜…โ˜†โ˜†โญMinimum (Lags possible)
Optimization of MIUIโ˜…โ˜…โ˜…โ˜…โ˜†โญโญNo.
Setting up zRAMโ˜…โ˜…โ˜…โ˜…โ˜†โญโญโญMedium (requires root)
Custom firmwareโ˜…โ˜…โ˜…โ˜…โ˜…โญโญโญโญHigh (brick risk)
Physical upgradeโ˜…โ˜†โ˜†โ˜†โ˜†โญโญโญโญโญCritical

Our advice is to start by optimizing your current RAM and RAM Expansion. If thatโ€™s not enough, try custom firmware (but only if youโ€™re risk-averse), techniques like swap on SD or magic memory cleaner apps arenโ€™t worth your time.

And remember, the Redmi 9 is a budget smartphone, and its hardware limitations wonโ€™t magically disappear. If you want real multitasking, consider switching to a model with 6โ€“8GB of RAM (like the Redmi Note 11 or the POCO X4 Pro).

FAQ: Frequent questions about increasing RAM on Redmi 9

Can I increase RAM on Redmi 9 without root?
Yes, but the choice is limited: Official RAM Expansion (available in MIUI 12.5+) Optimization of current memory (disable autoboot, clean background processes) Methods like setting up zRAM or installing custom firmware require root rights or an unlocked bootloader.
How much RAM does RAM Expansion really add?
The function does not increase physical memory, but creates a buffer. ROM. Efficiency depends on the task: ๐Ÿ“ฑ Social networks / messengers: almost no effect (apps already weigh so little). ๐ŸŽฎ Games: May help in the background (for example, music will continue to play when rolled up) PUBG), but FPS grow up. ๐Ÿ–ฅ๏ธ Multitasking: The biggest plus is that you can keep 1-2 apps in the background, objectively, 10 to 15 percent increase in stability, but not performance.
Is it true that custom firmware "spoils" the camera?
On Redmi 9 after installing LineageOS or Pixel Experience: โœ… All major modules (wide-angle, macro, main) work). โŒ Xiaomi's signature features may be missing: Movie Frame Mode (filter effects). AI Beauty, video recording at 960 FPS (if it was in a stock firmware). ๐Ÿ”„ Photo/video quality does not deteriorate (if the firmware is ported correctly). To restore all camera functions, you can install Google Camera (GCam) with a config for Helio G80.
How do I check if zRAM works on my Redmi 9?
There are two ways to do this: Terminal Emulator: Cat /proc/swaps If there is a line in the conclusion with /dev/block/zram0 โ€” zRAM is active. CPU-X: Install. CPU-X Go to the Memory tab. See the Swap bar if the value is higher. 0, ZRAM works. You can also check the size of zRAM: cat. /sys/block/zram0/mem_limit_max (output in bytes; divide by 1024ยณ, to get GB).
Can I return the stock firmware after the custom?
Yes, but there are nuances: Download the official firmware for your model (lancelot for the global version of Redmi 9) from Xiaomi. Use the Mi Flash Tool for Fastboot firmware: fastboot flash all [file name].tz If the phone doesn't turn on after firmware, run Wipe All in Fastboot Mode (press Power). + Vol Down). โš ๏ธ Note: When you return to the stock firmware, all data, including photos and messages, will be reassigned to the Xiaomi account (if the bootloader was unlocked).