8th May 2017, 12:54
(8th May 2017, 11:09)leszek Wrote: ... I personally recommend you to just install the package zram-config just in case so that if you exceed RAM usage it will at least have something to swap to
This fascinated me; i did not know of this package. I've now researched it, then tested it in my 2 Maui VMs, to help me decide if i will take the plunge to actually install it into my real Mauis in Lappy & Tower [& maybe also then use gparted & fstab to remove my existing Swap partitions]. The VM results seem remarkable:
System [VB VM]
Base Memory 4096
Processor(s) 2
Code:
kdemeoz@Maui-VM:~$ cat /proc/swaps
Filename Type Size Used Priority
/dev/sda2 partition 2097148 0 -1
/dev/zram0 partition 1011520 0 5
/dev/zram1 partition 1011520 0 5
All that looks great, but i have one question: does zram in any way conflict with / steal memory from tmpfs [in which as you can see i run /tmp; pls note -- all the following is from my VM, but i do use a similar arrangement in my real Mauis]:
Code:
kdemeoz@Maui-VM:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 2.0G 0 2.0G 0% /dev
tmpfs 396M 6.3M 389M 2% /run
/dev/sda1 17G 12G 4.0G 76% /
tmpfs 2.0G 160K 2.0G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
tmpfs 2.0G 8.0K 2.0G 1% /tmp
/dev/sda3 8.8G 7.2G 1.1G 87% /home
VM_Share_Folder 168G 39G 130G 23% /media/sf_VM_Share_Folder
temp_(Seagate) 1.8T 755G 1.1T 43% /media/sf_temp_(Seagate)
tmpfs 396M 0 396M 0% /run/user/118
tmpfs 396M 12K 396M 1% /run/user/1000
kdemeoz@Maui-VM:~$