yadavnikhil03

SwapBoost-Pro

v1.1guide

A magisk module that optimizes your device's memory performance through persistent zRAM + Swapfile optimization with VM tweaks.

★22 stars
•Performance & Kernel•by yadavnikhil03•Proprietary•Updated Jun 16, 2026
Platforms:
✓ Magisk

Overview

Managing virtual memory on Android often involves a difficult trade-off: relying strictly on physical RAM can lead to abrupt app closures when multitasking between heavy games and cameras, while relying heavily on slow flash-based swapfiles causes severe UI lag and storage wear.

Developed by yadavnikhil03, SwapBoost Pro is an intelligent memory optimization module for Magisk. It establishes a smart two-tier paging hierarchy: Android aggressively utilizes high-speed compressed zRAM (priority 100) for active background apps, while keeping a secondary disk-based swapfile at low priority (-2) solely as an emergency safety net to prevent Out-Of-Memory (OOM) crashes.

Core Mechanisms

  1. High-Priority zRAM: Directs Linux kernel page eviction algorithms to compress pages into fast RAM first. Because zRAM resides in physical memory, decompressing pages takes nanoseconds compared to reading flash storage.
  2. Fallback Safety Net: If zRAM becomes completely saturated under extreme loads, the kernel spills overflow pages onto the disk swapfile instead of abruptly killing background processes.
  3. SELinux Compatibility: Automatically applies necessary SELinux policy rules at startup, ensuring that low-level swapping routines execute without policy denials on strict Enforcing builds.

Installation & Configuration

  1. Download the latest SwapBoost-Pro-v*.zip from GitHub releases.
  2. Flash the module in Magisk.
  3. Reboot your device.
  4. (Optional): Fine-tune swapfile size or swappiness in /data/adb/modules/SwapBoost-Pro/ if desired.