forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: zstd: export API needed for dictionary support
Patch series "zram: introduce custom comp backends API", v6. This series introduces support for run-time compression algorithms tuning, so users, for instance, can adjust compression/acceleration levels and provide pre-trained compression/decompression dictionaries which certain algorithms support. At this point we stop supporting (old/deprecated) comp API. We may add new acomp API support in the future, but before that zram needs to undergo some major rework (we are not ready for async compression). Some benchmarks for reference (look at column #2) *** zstd /sys/block/zram0/mm_stat 1750650880 504575194 514392064 0 514392064 1 0 34204 34204 *** zstd level=-1 /sys/block/zram0/mm_stat 1750638592 591816152 603758592 0 603758592 1 0 34288 34288 *** zstd level=8 /sys/block/zram0/mm_stat 1750659072 486924248 496377856 0 496377856 1 0 34204 34204 *** zstd dict=/home/ss/zstd-dict-amd64 /sys/block/zram0/mm_stat 1750634496 465853994 475230208 0 475230208 1 0 34185 34185 *** zstd level=8 dict=/home/ss/zstd-dict-amd64 /sys/block/zram0/mm_stat 1750650880 430760956 439967744 0 439967744 1 0 34185 34185 *** lz4 /sys/block/zram0/mm_stat 1750663168 664194239 676970496 0 676970496 1 0 34288 34288 *** lz4 dict=/home/ss/lz4-dict-amd64 /sys/block/zram0/mm_stat 1750650880 619901052 632061952 0 632061952 1 0 34278 34278 *** lz4 level=5 dict=/home/ss/lz4-dict-amd64 /sys/block/zram0/mm_stat 1750650880 727180082 740884480 0 740884480 1 0 34438 34438 This patch (of 6): We need to export a number of API functions that enable advanced zstd usage - C/D dictionaries, dictionaries sharing between contexts, etc. Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Sergey Senozhatsky <[email protected]> Cc: Nick Terrell <[email protected]> Cc: Minchan Kim <[email protected]> Cc: Nhat Pham <[email protected]> Cc: Nitin Gupta <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
- Loading branch information
1 parent
25eec29
commit 4afe8ca
Showing
3 changed files
with
252 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters