Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946547 - >=sys-kernel/gentoo-kernel-6.12.x: missing compression backends
Summary: >=sys-kernel/gentoo-kernel-6.12.x: missing compression backends
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Distribution Kernel Project
URL: https://github.com/projg2/gentoo-kern...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-12-16 11:19 UTC by conflictvegetable
Modified: 2024-12-30 13:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge--info.txt,7.86 KB, text/plain)
2024-12-16 11:19 UTC, conflictvegetable
Details

Note You need to log in before you can comment on or make changes to this bug.
Description conflictvegetable 2024-12-16 11:19:32 UTC
Created attachment 914162 [details]
emerge --info

I'm unable to use zstd as a zram compression algorithm on gentoo-kernel-6.12.5 because not only is zstd missing from the kernel config, but so is every compression algorithm except lzo.

$ zcat /proc/config.gz | grep ZRAM
CONFIG_ZRAM=m
# CONFIG_ZRAM_BACKEND_LZ4 is not set
# CONFIG_ZRAM_BACKEND_LZ4HC is not set
# CONFIG_ZRAM_BACKEND_ZSTD is not set
# CONFIG_ZRAM_BACKEND_DEFLATE is not set
# CONFIG_ZRAM_BACKEND_842 is not set
CONFIG_ZRAM_BACKEND_FORCE_LZO=y
CONFIG_ZRAM_BACKEND_LZO=y
CONFIG_ZRAM_DEF_COMP_LZORLE=y
# CONFIG_ZRAM_DEF_COMP_LZO is not set
CONFIG_ZRAM_DEF_COMP="lzo-rle"
Comment 1 Nowa Ammerlaan gentoo-dev 2024-12-16 15:01:31 UTC
Looks like these CONFIG_ZRAM_BACKEND_* options were newly introduced in 6.12[1]

I think we can enable these in our config. CONFIG_ZRAM_DEF_COMP_* still controls the default, I propose to keep that as it is but enable all CONFIG_ZRAM_BACKEND_* options.

[1] https://lore.kernel.org/all/20240902105656.1383858-9-senozhatsky@chromium.org/T/#u
Comment 2 Nowa Ammerlaan gentoo-dev 2024-12-30 13:32:00 UTC
Will be resolved in the next version per https://github.com/projg2/gentoo-kernel-config/commit/432f79850727c14252447f184616102902d46170