I want to release the default swap space and use my own swap space created on NVMe SSD.
jzhang18@rockpro64:~$ free
total used free shared buff/cache available
Mem: 3969104 309332 3161484 26324 498288 3603600
Swap: 1984536 0 1984536
jzhang18@rockpro64:~$ sudo swapon --show
[sudo] password for jzhang18:
NAME TYPE SIZE USED PRIO
/dev/zram0 partition 323M 0B 5
/dev/zram1 partition 323M 0B 5
/dev/zram2 partition 323M 0B 5
/dev/zram3 partition 323M 0B 5
/dev/zram4 partition 323M 0B 5
/dev/zram5 partition 323M 0B 5
how to release /dev/zram0 to 5 during boot time?
Really appreciated
After adding my own swap file in /etc/fstab, /dev/zram0 -5 is not useful to me. want to release them
jzhang18@rockpro64:~$ free -h
total used free shared buff/cache available
Mem: 3.8G 581M 2.8G 34M 423M 3.2G
Swap: 7.9G 0B 7.9G
jzhang18@rockpro64:~$ sudo swapon --show
[sudo] password for jzhang18:
NAME TYPE SIZE USED PRIO
/swapfile file 6G 0B -1
/dev/zram0 partition 323M 0B 5
/dev/zram1 partition 323M 0B 5
/dev/zram2 partition 323M 0B 5
/dev/zram3 partition 323M 0B 5
/dev/zram4 partition 323M 0B 5
/dev/zram5 partition 323M 0B 5
jzhang18@rockpro64:~$ free
total used free shared buff/cache available
Mem: 3969104 309332 3161484 26324 498288 3603600
Swap: 1984536 0 1984536
jzhang18@rockpro64:~$ sudo swapon --show
[sudo] password for jzhang18:
NAME TYPE SIZE USED PRIO
/dev/zram0 partition 323M 0B 5
/dev/zram1 partition 323M 0B 5
/dev/zram2 partition 323M 0B 5
/dev/zram3 partition 323M 0B 5
/dev/zram4 partition 323M 0B 5
/dev/zram5 partition 323M 0B 5
how to release /dev/zram0 to 5 during boot time?
Really appreciated
After adding my own swap file in /etc/fstab, /dev/zram0 -5 is not useful to me. want to release them
jzhang18@rockpro64:~$ free -h
total used free shared buff/cache available
Mem: 3.8G 581M 2.8G 34M 423M 3.2G
Swap: 7.9G 0B 7.9G
jzhang18@rockpro64:~$ sudo swapon --show
[sudo] password for jzhang18:
NAME TYPE SIZE USED PRIO
/swapfile file 6G 0B -1
/dev/zram0 partition 323M 0B 5
/dev/zram1 partition 323M 0B 5
/dev/zram2 partition 323M 0B 5
/dev/zram3 partition 323M 0B 5
/dev/zram4 partition 323M 0B 5
/dev/zram5 partition 323M 0B 5