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 (6.2 kernel, Openbox desktop) for general purpose daily PC.
  • PinePhone Pro Explorer Edition, daily driver, rk2aw & U-boot on SPI, Arch/SXMO & Arch/phosh on eMMC
  • PinePhone BraveHeart now v1.2b 3/32Gb, Tow-boot with Arch/SXMO on eMMC
#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
  Armbian 22.02 Release Announcement TRS-80 0 1,408 02-28-2022, 05:08 PM
Last Post: TRS-80
Big Grin Feature Complete Debian Desktop Release Mrfixit2001 158 203,879 05-29-2021, 04:05 AM
Last Post: twilite
  How to reset board to default state? kkdao 4 6,902 09-01-2020, 05:48 AM
Last Post: kkdao
  Official Debian release won't boot!?! Faradn 4 7,586 07-06-2020, 09:29 AM
Last Post: Bullet64
  UART4 in Debian Desktop Release of Mrfixit2001 Gienek 1 3,156 05-19-2020, 02:47 AM
Last Post: Gienek
  New Pre-release 0.10.9 from Ayufan Bullet64 0 2,613 04-09-2020, 06:49 AM
Last Post: Bullet64
  Ayufan 5.4.0 rc1 release - cannot boot Mentaluproar 2 5,806 01-05-2020, 02:39 PM
Last Post: mmiigg
  Release 0.9.14 Ubuntu Mate desktop, LXDE, OMV, Docker CE (container) Luke 1 3,630 12-10-2019, 01:30 PM
Last Post: Helium75
  New Stable release from Ayufan (0.8.3) Luke 13 19,273 08-06-2019, 05:19 PM
Last Post: andyburn
  ayufan 0.7.12 pre-release images (help testing) Luke 11 15,101 03-22-2019, 05:10 PM
Last Post: Luke

Forum Jump:


Users browsing this thread: 1 Guest(s)