From: Gao Xiang <xiang@kernel.org>
To: linux-erofs@lists.ozlabs.org
Cc: Chao Yu <chao@kernel.org>, LKML <linux-kernel@vger.kernel.org>,
Yue Hu <zbestahu@gmail.com>, Gao Xiang <xiang@kernel.org>
Subject: [PATCH v2 0/3] erofs: some decompression improvements
Date: Sat, 9 Oct 2021 04:08:36 +0800 [thread overview]
Message-ID: <20211008200839.24541-1-xiang@kernel.org> (raw)
Hi folks,
This patchset is mainly intended for the upcoming LZMA preparation,
but they still have some benefits to the exist LZ4 decompression.
The first patch looks up compression algorithms on mapping instead
of in the decompression frontend, which is used for the rest patches.
The second patch introduces another compression HEAD (HEAD2) so that
each file can be compressed with two different algorithms at most,
which can be used for the upcoming LZMA compression and LZ4 range
dictionary compression for different data/access patterns.
The third patch introduces a new readmore decompression strategy
trying to improve randread for large LZ4 big pcluster and the upcoming
LZMA decompression. It mainly addresses the previous issue mentioned
in the original big pcluster patchset [1]:
FIO randread
Testdata: enwik9
Kernel: Linux 5.15.0-rc2
pclustersize Vanilla Patched
4096 54.6 MiB/s 56.1 MiB/s
16384 117.4 MiB/s 145.6 MiB/s
32768 113.6 MiB/s 203.4 MiB/s
65536 72.8 MiB/s 236.1 MiB/s
The latest version can also be fetched from
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/linux.git -b erofs/readmore
[1] https://lore.kernel.org/r/20210407043927.10623-1-xiang@kernel.org
Thanks,
Gao Xiang
Changes since v1:
- correct the function name to z_erofs_map_blocks_iter() in the commit
message pointed out by Yue;
- fix the readmore logic which mainly impacts the LZMA approach later,
therefore test the Patched version again.
Gao Xiang (3):
erofs: get compression algorithms directly on mapping
erofs: introduce the secondary compression head
erofs: introduce readmore decompression strategy
fs/erofs/compress.h | 5 --
fs/erofs/erofs_fs.h | 8 ++-
fs/erofs/internal.h | 25 +++++++-
fs/erofs/zdata.c | 111 +++++++++++++++++++++++++++--------
fs/erofs/zmap.c | 55 +++++++++++------
include/trace/events/erofs.h | 2 +-
6 files changed, 151 insertions(+), 55 deletions(-)
--
2.20.1
next reply other threads:[~2021-10-08 20:09 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-08 20:08 Gao Xiang [this message]
2021-10-08 20:08 ` [PATCH v2 1/3] erofs: get compression algorithms directly on mapping Gao Xiang
2021-10-09 1:52 ` Yue Hu
2021-10-17 15:25 ` Chao Yu
2021-10-08 20:08 ` [PATCH v2 2/3] erofs: introduce the secondary compression head Gao Xiang
2021-10-09 3:50 ` Yue Hu
2021-10-09 4:47 ` Gao Xiang
2021-10-09 18:12 ` [PATCH v3 " Gao Xiang
2021-10-10 0:53 ` Yue Hu
2021-10-17 15:27 ` Chao Yu
2021-10-17 15:32 ` Gao Xiang
2021-10-17 16:57 ` [PATCH v4 " Gao Xiang
2021-10-19 12:56 ` Chao Yu
2021-10-08 20:08 ` [PATCH v2 3/3] erofs: introduce readmore decompression strategy Gao Xiang
2021-10-17 15:34 ` Chao Yu
2021-10-17 15:42 ` Gao Xiang
2021-10-19 12:58 ` Chao Yu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211008200839.24541-1-xiang@kernel.org \
--to=xiang@kernel.org \
--cc=chao@kernel.org \
--cc=linux-erofs@lists.ozlabs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=zbestahu@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox