Default to zstd

Bug #1856043 reported by Fábio Lima
22
This bug affects 2 people
Affects Status Importance Assigned to Milestone
zram-config (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

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 1835726

Oibaf (oibaf)
description: updated
Revision history for this message
Oibaf (oibaf) wrote :

It would be nice to test the default vs zstd and lz4.

Revision history for this message
Oibaf (oibaf) wrote :

Actually the default is lzo-rle.
Before changing the default it should be proved that a different algo is preferable.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in zram-config (Ubuntu):
status: New → Confirmed
Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

There is https://github.com/highvoltage/zram-tools project, packages are included in Debian and Ubuntu several years ago, see https://tracker.debian.org/pkg/zram-tools
Maybe it's a time to abandon Ubuntu's own zram-config and instead update zram-tools package?

Another way is to include ~eugenesan improvements to zram-config, see bug #1548424 (Utilize zram built-in multi-threading, config file and /tmp mounting)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.