Skip to content

config: enable CONFIG_HIBERNATION_COMP_LZ4 for all variants (closes #857) - #988

Open
mayankmohan1992 wants to merge 1 commit into
CachyOS:masterfrom
mayankmohan1992:config/enable-hibernate-lz4
Open

config: enable CONFIG_HIBERNATION_COMP_LZ4 for all variants (closes #857)#988
mayankmohan1992 wants to merge 1 commit into
CachyOS:masterfrom
mayankmohan1992:config/enable-hibernate-lz4

Conversation

@mayankmohan1992

Copy link
Copy Markdown

Summary

Enables CONFIG_HIBERNATION_COMP_LZ4=y in all 9 variant configs (the hardened variant already had it). Closes #857.

  • LZ4 decompression is ~50% faster than LZO (501 MB/s vs 335 MB/s) with only ~6% larger hibernate image, reducing restore time.
  • LZO remains enabled as the default compressor (CONFIG_HIBERNATION_DEF_COMP="lzo"), so existing hibernate images still restore — purely additive, zero regression.
  • CRYPTO_LZ4 is =y/=m in every variant config (also CRYPTO_LZ4HC), so the option is functional, not a no-op.

Scope / safety

  • Diff is 9 identical one-line config changes, no code or PKGBUILD touched.
  • No behavior change for users who don't hibernate; faster restore for those who do.
  • Verified: after change, all 10 configs have CONFIG_HIBERNATION_COMP_LZ4=y and CONFIG_HIBERNATION_COMP_LZO=y; linux-cachyos-hardened unchanged (was already =y).

Test plan

  • git diff shows only the is not set=y flip in each config
  • Confirmed CRYPTO_LZ4 present in all variants (functional dependency met)
  • Confirmed LZO default compressor retained (backward-compatible images)

Generated from the open-issues triage; this is the only config-level "easy" fix that is both additive and zero-risk. Other hardware-agnostic issues (#985 sched panic, #745/#862 sig/IMA, #427 NVMe builtin, #560/#367/#803 dep/option changes) were deliberately excluded: they either require edits in the separate cachyos/kernel-patches tree, are unresolved upstream bugs, or are behavioral/security-policy decisions that shouldn't be unilaterally flipped.

🤖 Opened via Hermes agent.

…achyOS#857)

LZ4 decompression is ~50% faster than LZO with only ~6% larger image,
reducing hibernate restore time. LZO remains enabled as the default
compressor (CONFIG_HIBERNATION_DEF_COMP="lzo"), so existing hibernate
images still restore - purely additive, zero regression.

CRYPTO_LZ4 is already =y/=m in every variant config, so the option is
functional. CRYPTO_LZ4HC dependency satisfied.
@CherrieTheShifter

Copy link
Copy Markdown

Yes This

@MastaG

MastaG commented Sep 7, 2026

Copy link
Copy Markdown

Is there a reason why this is being held back?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Enable CONFIG_HIBERNATION_COMP_LZ4

4 participants