Hi. First of all thank you for the amazing distribution.
I was trying out Porteus 5.1 alpha2 and I set the zram parameter at boot. However, the algorithm gets set to lzo-rle.
This seems to come from the kernel, since version 6.12. You need to set the flags:
CONFIG_ZRAM_BACKEND_ZSTD=y
CONFIG_ZRAM_BACKEND_LZ4=y
To be able to use those algorithms.
I found the information here:
https://bugs.gentoo.org/946547
https://github.com/void-linux/void-pack ... sues/53580
Thanks!
Porteus 5.1 enable zstd for zram
- Blaze
- DEV Team
- Posts: 3996
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
Porteus 5.1 enable zstd for zram
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
Porteus 5.1 enable zstd for zram
Oh wow, that was quick! Thanks, I'll try it out!
Porteus 5.1 enable zstd for zram
I just tried it out, it boots by default using zstd.
When I do:
It returns:
So both zstd and lz4 are available for choosing.
lzo, lzo-rle are not there anymore. I personally do not mind, as I would either use lz4 or zstd. But there may be users that prefer lz0.

Code: Select all
cat /sys/block/zram0/comp_algorithm
Code: Select all
lz4 [zstd]
lzo, lzo-rle are not there anymore. I personally do not mind, as I would either use lz4 or zstd. But there may be users that prefer lz0.
- Blaze
- DEV Team
- Posts: 3996
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
Porteus 5.1 enable zstd for zram
I think no coz Porteus are must be lightweight.
zstd and lz4 it's better choice.
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16