CachyOS / CachyOS/linux-cachyos

[FEATURE] Enable CONFIG_HIBERNATION_COMP_LZ4

Open
#857 0 comments 2 reactions 2 assignees Claimed by @ptr1337 View on GitHub
enhancement
Dominant language
Shell
Stars
4.5k
Forks
160
Avg merge
2d 12h
Merged PRs (30d)
1

Description

### Pre-flight checklist

- [x] I have searched existing issues/PRs and this has not been requested before.
- [x] I have read the [Contributing Guidelines](https://github.com/CachyOS/linux-cachyos/blob/master/CONTRIBUTING.md).

### Request type

- [ ] New patch / patchset inclusion
- [x] Kernel config change (enable/disable option)
- [ ] New kernel variant
- [ ] Scheduler tuning / addition
- [ ] Compiler / LTO / PGO optimization
- [ ] Security hardening
- [ ] Driver or hardware enablement
- [ ] Other

### Summary

Currently CONFIG_HIBERNATION_COMP_LZ4 is not set in any kernel variant.

CONFIG_HIBERNATION_COMP_LZO=y
# CONFIG_HIBERNATION_COMP_LZ4 is not set

LZ4 offers ~50% faster decompression speed over LZO (501 MB/s vs 335 MB/s)
with minimal size overhead (~6% larger image), reducing hibernate restore time.

Please enable CONFIG_HIBERNATION_COMP_LZ4=y.

### Motivation / use case

LZ4 decompression is ~50% faster than LZO (501 MB/s vs 335 MB/s) with only ~6%
larger hibernate image. On systems where hibernate restore time matters, this is
a meaningful improvement with zero downside for users who don't use hibernate.

### Patch / upstream reference (if available)

_No response_

### Testing / benchmarks

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.