erofs: some decompression improvements
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 7 repliesIn review
- v13 patches 2 repliesSuperseded
Changes in v2 from the cover letter
- 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.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | erofs: get compression algorithms directly on mappingfs/ fs/ fs/ +2 more | +26 | 2 replies | |
| 2/3 | erofs: introduce the secondary compression headfs/ fs/ | +32 | 8 replies | |
| 3/3 | erofs: introduce readmore decompression strategyfs/ fs/ | +93 | 3 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Yue Hu | Chao Yu |
|---|---|---|
| 1/3 | R-b | R-b |
| 2/3 | R-b R-b | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/3] erofs: some decompression improvements
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 fromgit://git.kernel.org/pub/scm/linux/kernel/git/xiang/linux.git -b erofs/readmore
[1] https://lore.kernel.org/r/[email protected]
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(-)
Signature · 1 line
2.20.1