Skip to content

zram: Optimize LZ4 dictionary compression performance#631

Open
blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
series/1064046=>linus-master
Open

zram: Optimize LZ4 dictionary compression performance#631
blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
series/1064046=>linus-master

Conversation

@blktests-ci
Copy link

@blktests-ci blktests-ci bot commented Mar 10, 2026

Pull request for series with
subject: zram: Optimize LZ4 dictionary compression performance
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1064046

@blktests-ci
Copy link
Author

blktests-ci bot commented Mar 10, 2026

Upstream branch: 1f318b9
series: https://patchwork.kernel.org/project/linux-block/list/?series=1064046
version: 1

Calling `LZ4_loadDict()` repeatedly in Zram causes significant overhead
due to its internal dictionary pre-processing. This commit introduces a
template stream mechanism to pre-process the dictionary only once when
the dictionary is initially set or modified. It then efficiently copies
this state for subsequent compressions.

This optimization improves LZ4 dictionary compression performance by
over 50% in Zram I/O tests.
@blktests-ci
Copy link
Author

blktests-ci bot commented Mar 11, 2026

Upstream branch: None
series: https://patchwork.kernel.org/project/linux-block/list/?series=1064046
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1064046=>linus-master branch from edc3ceb to e13c332 Compare March 11, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants