You are not logged in.

#1 2017-12-08 18:12:26

probackup-nl
Member
From: Delft
Registered: 2017-11-15
Posts: 83
Website

[solved]4.14: no xxhash, zstd_compress, zstd_decompress; in initramfs?

Since kernel 4.14 the mkinitcpio generated initramfs files do include these 3 new modules:

1. xxhash
2. zstd_compress
3. zstd_decompress

These modules are related to the new (Facebook) Zstandard compression algo.

Initramfs here uses lz4.

Can these 3 modules be removed/excluded from the mkinitcpio mechanism?
Or does boot fail without them?

In case zstd is removable from initramfs, how to remove the zstd modules (permanently)?

Last edited by probackup-nl (2017-12-24 09:49:12)

Offline

#2 2017-12-08 18:24:13

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved]4.14: no xxhash, zstd_compress, zstd_decompress; in initramfs?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-12-08 18:56:05

loqs
Member
Registered: 2014-03-06
Posts: 17,323

Re: [solved]4.14: no xxhash, zstd_compress, zstd_decompress; in initramfs?

Perhaps you could investigate what is pulling the modules in.

$ bsdcpio -it < /boot/initramfs-linux.img | grep zstd
63704 blocks

Online

#4 2017-12-08 19:18:19

probackup-nl
Member
From: Delft
Registered: 2017-11-15
Posts: 83
Website

Re: [solved]4.14: no xxhash, zstd_compress, zstd_decompress; in initramfs?

@Ioqs Btrfs file system is pulling in these modules: see compress_zstd at https://btrfs.wiki.kernel.org/index.php … M_FEATURES

# bsdcpio -it < /boot/initramfs-linux-tiny.img | grep zstd
usr/lib/modules/4.14.4-1-ARCH/kernel/zstd_decompress.ko
usr/lib/modules/4.14.4-1-ARCH/kernel/zstd_compress.ko

Offline

#5 2017-12-08 19:26:18

loqs
Member
Registered: 2014-03-06
Posts: 17,323

Re: [solved]4.14: no xxhash, zstd_compress, zstd_decompress; in initramfs?

So the same answer as to your previous btrfs question https://bbs.archlinux.org/viewtopic.php?id=231884 if you need btrfs then you need those modules.
You also seem to have a habit of not marking any of your topics as solved.

Online

#6 2017-12-09 10:48:59

probackup-nl
Member
From: Delft
Registered: 2017-11-15
Posts: 83
Website

Re: [solved]4.14: no xxhash, zstd_compress, zstd_decompress; in initramfs?

I don't need the Zstandard neither RAID modules, because I don't use disk compression neither RAID. The raid6_pq  module does slow down my boot and this kernel release 4.14 zstd module does increase initramfs size after lz4 compression by 12% (+0.6 MiB on 5.2 MiB before).

$ modinfo /usr/lib/modules/4.14.4-1-ARCH/kernel/fs/btrfs/btrfs.ko.gz | grep depends
depends:        zstd_compress,zstd_decompress,raid6_pq,xor

Where to reach the developers that are able to minify btrfs module loading (and soften the btrfs dependencies) on Arch Linux?

Last edited by probackup-nl (2017-12-09 10:51:53)

Offline

#7 2017-12-09 11:02:02

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [solved]4.14: no xxhash, zstd_compress, zstd_decompress; in initramfs?

Patches welcome.

If you come up with a good solution and post it on the relevant mailing list, you might get the devs attention.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#8 2017-12-09 11:05:44

probackup-nl
Member
From: Delft
Registered: 2017-11-15
Posts: 83
Website

Re: [solved]4.14: no xxhash, zstd_compress, zstd_decompress; in initramfs?

Offline

Board footer

Powered by FluxBB