https://github.com/chickendrop89/magisk-swapspace
This module allows for creating a persistent swap space on android
https://github.com/chickendrop89/magisk-swapspace
android kernelsu linux magisk magisk-module memory-management pagefile swap swapfile
Last synced: 6 months ago
JSON representation
This module allows for creating a persistent swap space on android
- Host: GitHub
- URL: https://github.com/chickendrop89/magisk-swapspace
- Owner: chickendrop89
- License: gpl-3.0
- Created: 2023-11-26T11:57:28.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-05-05T20:03:57.000Z (12 months ago)
- Last Synced: 2025-05-05T21:22:44.235Z (12 months ago)
- Topics: android, kernelsu, linux, magisk, magisk-module, memory-management, pagefile, swap, swapfile
- Language: Shell
- Homepage:
- Size: 68.4 KB
- Stars: 25
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-android-root - Magisk Swapspace - This module allows for creating a persistent swap space on android. `FOSS` `[M]` (⚡ Performance and Optimization / Memory Management)
README
# magisk-swapspace
This module allows for creating a persistent swap space on android
## Installation:
* [Download the module archive here](https://github.com/chickendrop89/magisk-swapspace/releases/latest/download/magiskswapspace.zip)
* Flash it in magisk app, or using command line
* Run `magiskswap` in your preferred terminal app (as a root user)
## Usage:
```
magisk-swapspace by chickendrop89 ⓒ GPLv3 license
usage: magiskswap [OPTIONAL]
create [priority] [preserve]
- Creates swapfile and swaps-on
(?) [preserve] option enables the previously disabled swapfile
remove [preserve]
- Permanently swaps-off and deletes swapfile
(?) [preserve] option only disables it
status [swapon] [swapoff]
- Prints swapfile size and status
swappiness <0-200> [show] [reset]
- Controls how agressively Linux swaps anonymous memory
() These commands are presistent across reboots ()
```
## ⚠️ Warning ⚠️
- Using on-disk `swap` on flash chips is **not recomended** and could result in highly reduced lifespan.
## Requirements
- Magisk 27.O+
- KernelSU v0.9.4+