Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1718767
| From | Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] zram: add zstd to the supported algorithms list |
| Date | 2017-08-24 03:50 +0200 |
| Message-ID | <uhPrs-8ei-45@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Add ZSTD to the list of supported compression algorithms.
Official benchmarks [1]:
Compressor name Ratio Compression Decompress.
zstd 1.1.3 -1 2.877 430 MB/s 1110 MB/s
zlib 1.2.8 -1 2.743 110 MB/s 400 MB/s
brotli 0.5.2 -0 2.708 400 MB/s 430 MB/s
quicklz 1.5.0 -1 2.238 550 MB/s 710 MB/s
lzo1x 2.09 -1 2.108 650 MB/s 830 MB/s
lz4 1.7.5 2.101 720 MB/s 3600 MB/s
snappy 1.1.3 2.091 500 MB/s 1650 MB/s
lzf 3.6 -1 2.077 400 MB/s 860 MB/s
[1] https://github.com/facebook/zstd
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
---
drivers/block/zram/zcomp.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/block/zram/zcomp.c b/drivers/block/zram/zcomp.c
index 5b8992beffec..cc66daec7bbc 100644
--- a/drivers/block/zram/zcomp.c
+++ b/drivers/block/zram/zcomp.c
@@ -31,6 +31,9 @@ static const char * const backends[] = {
#endif
#if IS_ENABLED(CONFIG_CRYPTO_842)
"842",
+#endif
+#if IS_ENABLED(CONFIG_CRYPTO_ZSTD)
+ "zstd",
#endif
NULL
};
--
2.14.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] zram: add zstd to the supported algorithms list Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2017-08-24 03:50 +0200
Re: [PATCH] zram: add zstd to the supported algorithms list Minchan Kim <minchan@kernel.org> - 2017-08-24 06:40 +0200
Re: [PATCH] zram: add zstd to the supported algorithms list Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2017-08-24 16:10 +0200
Re: [PATCH] zram: add zstd to the supported algorithms list Minchan Kim <minchan@kernel.org> - 2017-08-25 07:00 +0200
Re: [PATCH] zram: add zstd to the supported algorithms list Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2017-08-25 07:10 +0200
Re: [PATCH] zram: add zstd to the supported algorithms list Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2017-08-25 07:30 +0200
Re: [PATCH] zram: add zstd to the supported algorithms list Minchan Kim <minchan@kernel.org> - 2017-08-25 07:40 +0200
Re: [PATCH] zram: add zstd to the supported algorithms list Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2017-08-25 09:50 +0200
Re: [PATCH] zram: add zstd to the supported algorithms list Adam Borowski <kilobyte@angband.pl> - 2017-08-25 10:10 +0200
csiph-web