I installed zram-config and created one zram for every CPU core (zram0, and zram1). I also booted to my Kubuntu 18.04 SDD then powered up the 14.04 SDD (unmounted) so I could delete the swap partition and extend the main partition which gave my drive 8GB more space.
Then I modified my fstab file to rem out the swap line and add the two zram virtual drives:
I expected the zram vdrives to show up in the df output.
I'm not confident that the zram drives are active and available to the OS.
Why do I still see swap memory in the above readout?
I know the drives exist:
I also booted to my Kubuntu 18.04 SDD then powered up the 14.04 SDD (unmounted) so I could delete the swap partition and extend the main partition which gave my drive 8GB more space. Is there a way or perhaps something I forgot to do to activate the zram drives so Kubuntu can use them when necessary?
Then I modified my fstab file to rem out the swap line and add the two zram virtual drives:
Code:
# <file system> <mount point> <type> <options> <dump> <pass> # / was on /dev/sdd1 during installation UUID=d8748971-a662-43a1-b178-e9e1dd6eae22 / ext4 noatime,errors=remount-ro 0 1 # # swap was on /dev/sdd5 during installation # UUID=6f9e8a0e-d718-45f0-9b17-318f23225be1 none swap sw 0 0 # # Common Data drive /dev/sdd1 UUID=9d3f1ff1-99b4-418c-8dca-84916431f9d5 /media/Data ext4 noatime 0 1 # # Using ZRAM instead of a Swap file. One zram virtual drive for every cpu core. /dev/zram0 none swap SW,pri=10 0 0 /dev/zram1 none swap SW,pri=10 0 0
Code:
mark@AMD-64:/$ df -h Filesystem Size Used Avail Use% Mounted on udev 3.9G 4.0K 3.9G 1% /dev tmpfs 799M 1.5M 797M 1% /run /dev/sdc1 110G 13G 92G 12% / none 4.0K 0 4.0K 0% /sys/fs/cgroup none 5.0M 0 5.0M 0% /run/lock none 3.9G 27M 3.9G 1% /run/shm none 100M 20K 100M 1% /run/user /dev/sdd1 459G 188G 248G 44% /media/Data
Code:
mark@AMD-64:/$ free -m total used free shared buffers cached Mem: 7983 1478 6504 37 60 669 -/+ buffers/cache: 748 7235 Swap: 3991 0 3991
I know the drives exist:
Code:
mark@AMD-64:/dev$ ll zram* brw-rw---- 1 root disk 251, 0 Oct 28 11:21 zram0 brw-rw---- 1 root disk 251, 1 Oct 28 11:21 zram1
Comment