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.

[email protected]:~$ free
                  total        used        free      shared  buff/cache   available
Mem:        3969104      309332     3161484       26324      498288     3603600
Swap:       1984536           0     1984536
[email protected]:~$ 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
[email protected]:~$ 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
[email protected]:~$ 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
  Reply
#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. Started Bionic minimal - now eoan, Openbox desktop for general purpose daily PC.
* PinePhone BraveHeart on order
  Reply
#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:
 
[email protected]:~$ 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
[email protected]:~$ sudo swapon --show
[sudo] password for jzhang18:
NAME      TYPE SIZE USED PRIO
/swapfile file   6G   0B   -1
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Ayufan 5.4.0 rc1 release - cannot boot Mentaluproar 2 199 01-05-2020, 02:39 PM
Last Post: mmiigg
  Release 0.9.14 Ubuntu Mate desktop, LXDE, OMV, Docker CE (container) Luke 1 471 12-10-2019, 01:30 PM
Last Post: Helium75
Big Grin Feature Complete Debian Desktop Release Mrfixit2001 152 18,042 10-09-2019, 05:42 PM
Last Post: bcnaz
  New Stable release from Ayufan (0.8.3) Luke 13 1,964 08-06-2019, 05:19 PM
Last Post: andyburn
  ayufan 0.7.12 pre-release images (help testing) Luke 11 1,732 03-22-2019, 05:10 PM
Last Post: Luke
Star 0.7.9 Linux release from ayufan Luke 48 17,824 02-25-2019, 02:55 PM
Last Post: Luke
  RETRO-GAMING: ANNOUNCING BETA RELEASE OF RECALBOX FOR THE ROCKPRO64 Mrfixit2001 28 3,539 02-22-2019, 04:03 PM
Last Post: Luke
Big Grin ANNOUNCING RECALBOX FOR THE ROCKPRO64 - ALPHA RELEASE Mrfixit2001 20 5,652 01-10-2019, 11:42 AM
Last Post: Luke
  0.7.11 pre-release Bullet64 0 513 10-25-2018, 01:53 PM
Last Post: Bullet64
  0.7.10 pre-release Luke 29 2,352 10-23-2018, 06:16 AM
Last Post: duckkcud

Forum Jump:


Users browsing this thread: 1 Guest(s)