magisk-swapspace by chickendrop89
usage: magiskswap <NAME> <VALUE> [OPTIONAL]
add <size in GB> [priority] [keep]
- Creates swapfile and swaps-on
remove [keep]
- Permanently swaps-off and deletes swapfile
status [swapon] [swapoff]
- Prints swapfile size and status
swappiness <1-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
Notes:
- [remove keep, add keep]:
Instead of deleting, swap-off permanently but keep the file,
Later, use "magiskswap add keep" to use the old swapfile