[13:28] <five6433> Hello. I am running a RPi 3B with Ubuntu 21.10 arm64. The board has 1GB of RAM. It seems like recently the default initramfs algorithm was changed to zstd. After installing linux-modules-extra-raspi, it seems like the initramfs generation compression stage runs out of memory, because every time the machine hangs at 100% CPU and 100% memory for at
[13:28] <five6433> least 24 hours. I switched the algorithm to gzip and it finishes within seconds. Is this expected?
[13:29] <waveform> five6433, interesting -- I hadn't seen this on the 1GB Pis but it is a known issue on the zero 2 (and presumably 3A+) with 512MB. The bug tracking the issue (with an alternate workaround of using lz4) is here: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1950214
[13:35] <five6433> To be honest, I have a few more initramfs packages, so that's likely why
[13:37] <waveform> five6433, ah -- well it's definitely an issue anyway! For now, gzip or lz4 are a good workaround; for jammy I'm intending to add an override to ubuntu-raspi-settings to force lz4 (as in hirsute) instead of the zstd default (which will also have to introduce a dep on lz4, and I have some admin hoops to jump thru there). I should be able to SRU that to impish shortly after but you've already discovered a decent workaround anyway :)
[13:56] <five6433> yeah, I tried lz4 first, but mkinitramfs complained that it's not installed and defaulted to gzip
[13:56] <five6433> I appreciate the proactive efforts in fixing it though!