Skip to content

Latest commit

 

History

History
executable file
·
46 lines (32 loc) · 1.63 KB

README.md

File metadata and controls

executable file
·
46 lines (32 loc) · 1.63 KB

magisk-swapspace

This module saves memory a bit by swapping some to a disk

Installation:

Usage:

magisk-swapspace by chickendrop89 ⓒ GPLv3 license
usage: magiskswap <COMMAND> <VALUE> [OPTIONAL]

create <size: GB> [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

vfs-cache-pressure <1-∞> [show] [reset] 
  - Controls the tendency of the kernel to reclaim the memory

(?) These commands are presistent across reboots (?)

Notice:

Before tinkering with swappiness and vfs-cache-pressure, you should understand how do they work:

Using on-disk swap on older eMMC or UFS chips is not recomended and could result in highly reduced lifespan ⚠️ Lower the swappiness to make the it less agressive!

Requirements

  • Magisk 27.O+
  • KernelSU v0.9.4+