Xiaomi magazine buffer: appointment, cleaning and problem solving

If you've ever looked at the memory settings of your Xiaomi smartphone, you've probably noticed a strange item called a log buffer, which takes anywhere from a few megabytes to hundreds of megabytes, but what is it and can it be removed? In this article, we'll go into detail about why you need a log buffer, how it affects your phone, and what happens if you clean it.

Many users mistakenly believe that the log buffer is just a β€œjunk file” that can be deleted, but it is actually a system component that stores debugging information about how Android and MIUI work. Without it, it becomes almost impossible to diagnose crashes, but the buffer can grow to an unnecessarily large size, especially on devices with custom firmware or after frequent use of the developer mode.

In this article, you will find not only the theoretical part, but also practical instructions: how to safely clean the magazine buffer when it is really necessary, and what to do if after cleaning problems arise. POCO F3) The magazine buffer takes up much more space than the others.

What is a magazine buffer and why is it needed?

Log buffer is a special memory area where Android and the MIUI shell store logs of system events.

  • πŸ”„ Starting and stopping applications (including crashes and forced closures)
  • πŸ“± Iron: processor, memory, battery, sensors
  • πŸ”Œ Network activity: Wi-Fi connections, mobile network, Bluetooth
  • πŸ”§ System errors and preventable critical failures
  • πŸ”„ Software updates and configuration changes

These logs are primarily used for debugging. When a phone is unstable (like spontaneously restarting or "lagging"), Xiaomi engineers or custom firmware developers analyze the log buffer to find the cause of the problem, and without that data, diagnostics becomes guesswork.

On most smartphones, the magazine buffer takes from 5-20 MB, but on some devices (especially with an unlocked bootloader or custom recavator), its size can reach 500 MB or more (ADB Developer Options: The system starts recording advanced logs that are usually hidden from the user.

πŸ“Š How often do you clean up your Xiaomi cache and garbage?
Once a week.
Once a month
Only when memory ends
Never clean.
I don't know how to do that.

Where is the magazine buffer on Xiaomi and how to find it?

Unlike a regular app cache, the log buffer doesn't appear in the standard file manager, so you need to go to the memory settings to see it:

  1. Open Settings β†’ Memory (or Settings β†’ Storage on new versions of MIUI).
  2. Scroll down to the Other Files or System Data section.
  3. Tap on the item Buffer log (may be called Log Buffer or System Logs).

On some firmware (e.g. MIUI Global or MIUI China), this item may be hidden, in which case it can be found through the developer mode:

  1. Activate Developer Options (7 times tap the MIUI version in Settings β†’ About Phone).
  2. Go back to the Settings β†’ Additional β†’ Developer settings.
  3. Find the Log Warehouse or Log Buffer item.

If you use custom recaps (TWRP), the log buffer can appear as a separate section in the Mount or Advanced menu, usually called /dev/log or /data/log.

Why can a magazine buffer take up hundreds of megabytes?
On devices with unlocked bootloaders or custom firmware (like LineageOS or Pixel Experience), the system runs advanced logging. This is necessary for debugging, but leads to the buffer growing to 300-800 MB. This is especially noticeable if you often connect your phone to ADB or use tools like MatLog to read logs.

Can I clean the magazine buffer and what happens if I do it?

Yes, the log buffer can be cleaned, but with reservations. Unlike the application cache, removing it won't free up a lot of space permanently -- the system will just start writing new logs on top of old ones.

  • πŸ“‰ Buffer takes over >200 MB and prevents system updates (lack of space in the section) /data).
  • πŸ”„ The phone is unstable after firmware or reset settings.
  • πŸ› οΈ You are preparing your device for sale and want to remove all traces of use.
  • πŸ“‘ Before sending the phone to the service (so that the logs do not interfere with the diagnosis).

What happens after cleaning:

  • βœ… 5-500 MB of memory (depending on buffer size).
  • ⚠️ Disappeared logs of recent failures β€” if the phone is bugged, it will be more difficult to diagnose the cause.
  • ⚠️ Some system applications (such as Mi Fit or Mi Home) can restart once.
  • ❌ The application cache will not be deleted – this is a separate operation.

⚠️ Note: If you clear the log buffer before contacting the Xiaomi service center, tell the wizard. Without the logs, the diagnosis will take longer, and you may be denied warranty repairs because of "insufficient data for analysis".

How to Clean a Magazine Buffer on Xiaomi: 3 Ways

There are several ways to clean up the log buffer – from the simplest (through settings) to the most advanced (through settings). ADB). Choose the method according to your model and version MIUI.

Method 1: Using standard settings (without root)

This is the safest method that works on most devices:

  1. Open Settings β†’ Memory β†’ Buffer of the magazine.
  2. Then, put it in the sleeve (or remove).
  3. Confirm the action.

On some firmware (MIUI 12.5+), this item may be hidden. In this case, use method 2.

Method 2: Recovery mode (Recovery)

If the log buffer is not cleared through the settings, try doing so through stock Recovery:

  1. Turn off the phone.
  2. Press the Power button + Volume up to enter Recovery Mode.
  3. Select Wipe & Reset β†’ Wipe Cache (on some versions of Advanced Wipe β†’ Log Buffer).
  4. Confirm the cleanup and restart the device.

⚠️ Note: If you have a custom recap (TWRP), Do not use the Wipe option. β†’ Advanced Wipe β†’ Log is unnecessary.This can cause system applications to crash if they depend on logs to work.

Method 3: Through ADB (for advanced users)

If the first two methods did not work, you can clear the log buffer through the command line:

adb shell


su




logcat -c




rm -rf /data/log/*




rm -rf /dev/log/*

This method requires an unlocked bootloader and root rights, and without them, commands won't work.

Make a backup copy of important data|Check the battery charge (>50%)|Disable two-factor authentication (if used)|Close all background applications|Make sure your phone is not connected to the PC.-->

Why the magazine buffer is filling up again quickly

Many users complain that after cleaning the log buffer grows back to its previous size in a few days, which is normal behavior of the system, but there are factors that speed up its filling:

Reason.How it manifests itselfDecision
Active use of ADB or FastbootBuffer grows by 50–100 MB/dayDisable USB debugging in Developer Settings
Brushing Firmware (LineageOS, Pixel Experience)The buffer takes >300 MB continuouslyInstall the kernel with extended logging disabled
Frequent application failuresLogs are filled with error recordsUpdate problematic apps or reset their settings
Developer mode is on.Buffers grow even without active actionDisable unnecessary options in Developer Settings
Viruses or malwareUnknown processes are written in logsCheck your phone with an antivirus (Malwarebytes or Dr.Web)

If the log buffer fills up too quickly (for example, 100 MB per hour), this may indicate a hardware problem, such as a memory module malfunction or driver conflict, in which case it is better to contact the service.

πŸ’‘

If you often clean the log buffer but it grows back, try disabling the extended logging via the adb shell setprop log.tag.DEBUG false command. This will reduce the amount of data being written, but may hide important debugging messages.

What to do if after cleaning the log buffer, the phone began to work worse

In rare cases, after cleaning the log buffer, problems may arise:

  • πŸ”„ Spontaneous reboots (the system cannot write critical logs).
  • πŸ“± Freezes when starting a camera or heavy apps.
  • πŸ”Œ Network problems (Wi-Fi or mobile internet not connected).
  • πŸ”‹ Fast battery discharge (the system is constantly trying to recover logs).

Here's what we can do:

  1. Reboot your phone – often this solves temporary crashes.
  2. Reset network settings (Settings) β†’ SIM-maps and mobile networks β†’ Resetting network settings).
  3. Clear the /data partition cache through the recavers (Wipe β†’ Wipe Cache).
  4. Reverse to the previous version of MIUI if the problem has occurred after the update.
  5. Perform reset to factory settings (last resort).

⚠️ Warning: If after cleaning the log buffer, the phone stopped turning on or stuck on the logo MI, Don't try to stitch it yourself. This could be a sign of damage to the partition. /data. Contact the service center with an indication that you cleared logs before the crash.

πŸ’‘

If there was a major malfunction after cleaning the log buffer, it's probably not the logs that were the problem, but the system itself, and the logs were just masking it, and after cleaning it, it showed up, so you'd better back up and reflash the phone.

Xiaomi models, on which the magazine buffer behaves unusually

On some Xiaomi devices, the magazine buffer works differently than on most smartphones, due to the peculiarities of hardware or firmware.

ModelFeature of the magazine bufferRecommendations
Redmi Note 8 ProBuffer can take up to 1 GB due to conflict with the chip Mediatek Helio G90TUpdate your firmware to MIUI 13+ or disable logging via ADB
POCO F3 / Redmi K40After upgrading to Android 12, the buffer won’t be cleared through the settingsUse ADB or TWRP for cleaning
Xiaomi Mi 11 UltraThe buffer is divided into two sections: /data/log and /persist/log.Clean both sections through Fastboot
Redmi 9A / 9CThe log buffer is reset with each MIUI update.Don’t clean it manually – the system will do it automatically.

If you have one of these models, make sure to check the relevant information on forums (e.g. 4PDA or XDA Developers) before cleaning the log buffer.

FAQ: Frequent questions about magazine buffer on Xiaomi

Can I turn off the log record completely so that the buffer does not fill up?
Technically, yes, but it's highly discouraged. Without logs, you can't diagnose crashes, and some system applications (Mi Fit, Mi Home) can stop working. If you really need to disable logging, use the command: adb shell setprop log.tag.DEBUG false adb shell setprop log.tag.INFO false But remember: after that, Xiaomi's service center may refuse warranty repairs.
Why is there not enough space left after cleaning the magazine buffer?
The fact is that the log buffer is not a normal file, it's a partition in memory. When you clean it, the system simply marks the space as free, but the physical data can remain until the next rewrite, and some of the logs are stored in /cache and /data, and they also need to be cleaned separately.
The magazine buffer takes 0 bytes, but the phone is slowing down.
If the buffer is empty, but the device is unstable, the problem is not the logs: πŸ”‹ Worn-out battery (check through AccuBattery). πŸ“± Overheating of the processor (use) CPU Monitor). 🧹 Dalvik Cache Completed (clean through) TWRP). 🐞 Virus or malware (scan through Malwarebytes).
How to transfer the log buffer to the memory card?
On most Xiaomi devices, this is not possible without modifying the firmware. Log buffer is a system partition that needs to be in internal memory for quick access. However, you can change the storage location of user logs (for example, for applications) through the system. ADB: adb shell setprop persist.logd.size 16m adb shell setprop persist.logd.logpersistd false This will reduce the size of the buffer, but will not transfer it to the SD-map.
Do I need to clean the magazine buffer before the firmware?
Yes, but not always. If you install an official update through Updater, no cleaning is required, the system will do it itself. If you are running custom firmware through TWRP, it is better to manually clean the log buffer (Wipe β†’ Advanced Wipe β†’ Log) to avoid conflicts.