How to release default swap space
#1
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
#2
(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
  • ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Arch (5.13 kernel, Openbox desktop) for general purpose daily PC.
  • PinePhone BraveHeart now v1.2b 3/32Gb daily driver, dual boot via p-boot with Mobian/f2fs/Phosh on eMMC, Arch/ext4/Phosh on SDcard
  • PinePhone v1.2a 2G/16Gb that needs USB board replaced
#3
(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


Possibly Related Threads…
Thread Author Replies Views Last Post
Big Grin Feature Complete Debian Desktop Release Mrfixit2001 158 74,258 05-29-2021, 04:05 AM
Last Post: twilite
  How to reset board to default state? kkdao 4 1,929 09-01-2020, 05:48 AM
Last Post: kkdao
  Official Debian release won't boot!?! Faradn 4 2,680 07-06-2020, 09:29 AM
Last Post: Bullet64
  UART4 in Debian Desktop Release of Mrfixit2001 Gienek 1 1,170 05-19-2020, 02:47 AM
Last Post: Gienek
  New Pre-release 0.10.9 from Ayufan Bullet64 0 1,137 04-09-2020, 06:49 AM
Last Post: Bullet64
  Ayufan 5.4.0 rc1 release - cannot boot Mentaluproar 2 2,189 01-05-2020, 02:39 PM
Last Post: mmiigg
  Release 0.9.14 Ubuntu Mate desktop, LXDE, OMV, Docker CE (container) Luke 1 2,038 12-10-2019, 01:30 PM
Last Post: Helium75
  New Stable release from Ayufan (0.8.3) Luke 13 8,317 08-06-2019, 05:19 PM
Last Post: andyburn
  ayufan 0.7.12 pre-release images (help testing) Luke 11 5,935 03-22-2019, 05:10 PM
Last Post: Luke
Star 0.7.9 Linux release from ayufan Luke 48 35,908 02-25-2019, 02:55 PM
Last Post: Luke

Forum Jump:


Users browsing this thread: 1 Guest(s)