Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1223184 > unrolled thread

Bug#1089511: zram-tools: Since kernel 6.12 the lz4 algo is not available and zramswap.service fails

Started bymanul <manul91@abv.bg>
First post2024-12-08 09:00 +0100
Last post2024-12-21 23:20 +0100
Articles 3 — 2 participants

Back to article view | Back to linux.debian.bugs.dist


Contents

  Bug#1089511: zram-tools: Since kernel 6.12 the lz4 algo is not available and zramswap.service fails manul <manul91@abv.bg> - 2024-12-08 09:00 +0100
    Bug#1089511: zram-tools: Since kernel 6.12 the lz4 algo is not available and zramswap.service fails Reiner Herrmann <reiner@reiner-h.de> - 2024-12-12 00:50 +0100
    Bug#1089511: zram-tools: Fixed in kernel 6.12.6-1 manul <manul91@abv.bg> - 2024-12-21 23:20 +0100

#1223184 — Bug#1089511: zram-tools: Since kernel 6.12 the lz4 algo is not available and zramswap.service fails

Frommanul <manul91@abv.bg>
Date2024-12-08 09:00 +0100
SubjectBug#1089511: zram-tools: Since kernel 6.12 the lz4 algo is not available and zramswap.service fails
Message-ID<JRkmR-eDjm-1@gated-at.bofh.it>
Package: zram-tools
Version: 0.3.5-1~exp1
Severity: important

Dear Maintainer,

Since installing latest kernel 6.12 (I use sid), the only algos available are lzo-rle and lzo, as can be verified by 
root@siddie:~# cat /sys/block/zram0/comp_algorithm
[lzo-rle] lzo 

However, in the default settings /etc/default/zramswap , the compression algorithm is set as ALGO=lz4 , which makes the zramswap.service to fail with the log as follows:

Dec 08 02:21:06 siddie.localdomain systemd[1]: Starting zramswap.service - Linux zramswap setup...
Dec 08 02:21:06 siddie.localdomain zramswap[4543]: /usr/sbin/zramswap: line 53: echo: write error: Invalid argument
Dec 08 02:21:06 siddie.localdomain root[4550]: Error: setting compression algo to lz4
Dec 08 02:21:06 siddie.localdomain zramswap[4550]: <13>Dec  8 02:21:06 root: Error: setting compression algo to lz4
Dec 08 02:21:06 siddie.localdomain systemd[1]: zramswap.service: Main process exited, code=exited, status=1/FAILURE
Dec 08 02:21:06 siddie.localdomain systemd[1]: zramswap.service: Failed with result 'exit-code'.
Dec 08 02:21:06 siddie.localdomain systemd[1]: Failed to start zramswap.service - Linux zramswap setup.

The problem can be temporarily fixed two ways:
- Manually change ALGO=lz4 in /etc/default/zramswap to one of the supported algorithms, ALGO=lzo (or ALGO=lzo-rle )
or
- Use an earlier kernel (less than 6.12)

I am reporting this because the defaults fail with most recent kernel; and I am not sure if it is just for this kernel, or this is how it is supposed to be in the future.

Thanks,
manul


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.3-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages zram-tools depends on:
ii  bc  1.07.1-4

zram-tools recommends no packages.

zram-tools suggests no packages.

-- Configuration Files:
/etc/default/zramswap changed:
ALGO=lzo-rle
PERCENT=50
SIZE=512
PRIORITY=100


-- no debconf information

[toc] | [next] | [standalone]


#1223670

FromReiner Herrmann <reiner@reiner-h.de>
Date2024-12-12 00:50 +0100
Message-ID<JSECR-gdNH-1@gated-at.bofh.it>
In reply to#1223184
Hi,

it also fails with the zstd algorithm:

> systemd[1]: Starting zramswap.service - Linux zramswap setup...
> zramswap[43437]: /usr/sbin/zramswap: line 53: echo: write error: Invalid argument
> root[43441]: Error: setting compression algo to zstd
> zramswap[43441]: <13>Dec 12 00:28:51 root: Error: setting compression algo to zstd
> systemd[1]: zramswap.service: Main process exited, code=exited, status=1/FAILURE

Is this no longer supported upstream?

Kind regards,
  Reiner

[toc] | [prev] | [next] | [standalone]


#1225140 — Bug#1089511: zram-tools: Fixed in kernel 6.12.6-1

Frommanul <manul91@abv.bg>
Date2024-12-21 23:20 +0100
SubjectBug#1089511: zram-tools: Fixed in kernel 6.12.6-1
Message-ID<JWfZf-1qmT-3@gated-at.bofh.it>
In reply to#1223184
Package: zram-tools
Followup-For: Bug #1089511

Fixed in kernel 6.12.6-1 (but non-default algorithms lzo and lzo-rle are missing):

root@siddie:~# cat /sys/block/zram0/comp_algorithm
[lz4] lz4hc zstd deflate 

See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1086172

Thanks,
manul

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.6-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages zram-tools depends on:
ii  bc  1.07.1-4

zram-tools recommends no packages.

zram-tools suggests no packages.

-- Configuration Files:
/etc/default/zramswap changed:
ALGO=zstd
SIZE=512
PRIORITY=100


-- no debconf information

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web