Porteus 5.1 enable zstd for zram

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
agroferia
White ninja
White ninja
Posts: 6
Joined: 02 May 2016, 19:57
Distribution: Ubuntu
Location: Germany

Porteus 5.1 enable zstd for zram

Post#1 by agroferia » 04 Apr 2025, 21:36

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!

User avatar
Blaze
DEV Team
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

Post#2 by Blaze » 05 Apr 2025, 07:07

Hi agroferia.
Try this kernel Porteus Kernel Builder (Пост Blaze #102651)
Thanks for the report.
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

agroferia
White ninja
White ninja
Posts: 6
Joined: 02 May 2016, 19:57
Distribution: Ubuntu
Location: Germany

Porteus 5.1 enable zstd for zram

Post#3 by agroferia » 06 Apr 2025, 09:42

Oh wow, that was quick! Thanks, I'll try it out!

agroferia
White ninja
White ninja
Posts: 6
Joined: 02 May 2016, 19:57
Distribution: Ubuntu
Location: Germany

Porteus 5.1 enable zstd for zram

Post#4 by agroferia » 06 Apr 2025, 10:17

I just tried it out, it boots by default using zstd. :D When I do:

Code: Select all

cat /sys/block/zram0/comp_algorithm
It returns:

Code: Select all

lz4 [zstd]
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.

User avatar
Blaze
DEV Team
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

Post#5 by Blaze » 06 Apr 2025, 13:43

agroferia wrote:
06 Apr 2025, 10:17
But there may be users that prefer lz0
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

Post Reply