Public bug reported:

Package zram-config now defaults compression algorithm to lzo.
What about to change to zstd?

Even better: refactor the script and use zramctl, that manages in a better way.
init-zram-swapping can be like below. I changed this at my machine and works 
fine.

#!/bin/bash
# Calculate memory to use for zram (1/4 of ram)
modprobe zram 1
zram=$(zramctl --find --algorithm zstd --size $(($(cat /proc/meminfo | grep 
MemTotal | awk -F' ' '{print $2}') / 4))KiB)
mkswap $zram
swapon $zram

PS: I also suggest considering bug report #1835726

** Affects: zram-config (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1856043

Title:
  Default to zstd

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zram-config/+bug/1856043/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to