PINE64

Full Version: How to release default swap space
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
(08-27-2018, 09:08 AM)jzhang18 Wrote: [ -> ]how to release /dev/zram0 to 5 during boot time? 
Just
sudo apt-get purge zram-config
(08-27-2018, 10:42 AM)dukla2000 Wrote: [ -> ]
(08-27-2018, 09:08 AM)jzhang18 Wrote: [ -> ]how to release /dev/zram0 to 5 during boot time? 
Just
sudo apt-get purge zram-config

Thanks  a lot.   after reboot, looks clean:
 
jzhang18@rockpro64:~$ free -h
              total        used        free      shared  buff/cache   available
Mem:           3.8G        284M        3.2G         23M        292M        3.5G
Swap:          6.0G          0B        6.0G
jzhang18@rockpro64:~$ sudo swapon --show
[sudo] password for jzhang18:
NAME      TYPE SIZE USED PRIO
/swapfile file   6G   0B   -1