I've been using zswap without any issues for a while, but on upgrading from 18.04 to 22.04 (via 20.04) the kernel starting failing to find the modules for lz4hc compression and the z3fold zpool.
I'm at a complete loss. If the modules are there, why can't the kernel find them?
Both modules can be loaded (obviously from a different location – not the initrd) and the relevant parameters changed with startup scripts but this is a workaround not a solution.
I've been using zswap without any issues for a while, but on upgrading from 18.04 to 22.04 (via 20.04) the kernel starting failing to find the modules for lz4hc compression and the z3fold zpool.
$ sudo dmesg | grep -E 'z3fold|lz4hc' /boot/vmlinuz- 6.2.0-37- generic root=PARTUUID= 948a082e- cfd1-43af- bc7b-3e0b9b2037 0e ro console=tty1 console=ttyS0 zswap.enabled=1 zswap.compresso r=lz4hc zswap.max_ pool_percent= 60 zswap.zpool=z3fold transparent_ hugepage= always panic=-1 /boot/vmlinuz- 6.2.0-37- generic root=PARTUUID= 948a082e- cfd1-43af- bc7b-3e0b9b2037 0e ro console=tty1 console=ttyS0 zswap.enabled=1 zswap.compresso r=lz4hc zswap.max_ pool_percent= 60 zswap.zpool=z3fold transparent_ hugepage= always panic=-1
[ 0.000000] Command line: BOOT_IMAGE=
[ 0.021736] Kernel command line: BOOT_IMAGE=
[ 1.099655] zswap: compressor lz4hc not available, using default lzo
[ 1.101349] zswap: zpool z3fold not available, using default zbud
But the modules are in the initrd (as they always have been):
$ lsinitramfs /boot/initrd.img | grep -E 'lz4hc|z3fold' modules/ 6.2.0-37- generic/ kernel/ crypto/ lz4hc.ko modules/ 6.2.0-37- generic/ kernel/ lib/lz4/ lz4hc_compress. ko modules/ 6.2.0-37- generic/ kernel/ mm/z3fold. ko
usr/lib/
usr/lib/
usr/lib/
I'm at a complete loss. If the modules are there, why can't the kernel find them?
Both modules can be loaded (obviously from a different location – not the initrd) and the relevant parameters changed with startup scripts but this is a workaround not a solution.
From: https:/ /askubuntu. com/q/1234721/ 170177
ProblemType: Bug 6.2.0-37- generic 6.2.0-37.38~22.04.1 ature: Ubuntu 6.2.0-37. 38~22.04. 1-generic 6.2.16 esult: unknown 169.254. 169.254) Zone: nova starter- 1-2-20 256color DIR=<set> hwe-6.2
DistroRelease: Ubuntu 22.04
Package: linux-image-
ProcVersionSign
Uname: Linux 6.2.0-37-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckR
CloudArchitecture: x86_64
CloudID: openstack
CloudName: openstack
CloudPlatform: openstack
CloudSubPlatform: metadata (http://
Date: Sun Dec 10 11:22:41 2023
Ec2AMI: ami-0008be8e
Ec2AMIManifest: FIXME
Ec2Availability
Ec2InstanceType: vps2020-
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: linux-signed-
UpgradeStatus: Upgraded to jammy on 2022-08-15 (482 days ago)