Download Latest Version 2.3 source code.tar.gz (22.0 kB)
Email in envelope

Get an email when there's a new version of magisk-swapspace

Home / 2.0
Name Modified Size InfoDownloads / Week
Parent folder
magiskswapspace.zip 2024-07-19 27.2 kB
README.md 2024-07-19 1.6 kB
Totals: 2 Items   28.8 kB 0

Release 2.0

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 (?)

Changelog

  • Reword the add command to crerate
  • Reword the keep option to preserve
  • Allow setting swappiness to 0 for some reason (not recommended)
  • Fix wrong command ranges with create
  • Make the usage block more understandable
  • Add a free space check
  • Optimize the code

GitHub Releases SourceForge

Source: README.md, updated 2024-07-19