Skip to content

erofs-utils: refine tailpcluster compression approach

Gao Xiang linux-erofs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

- fall back to uncompressed data if EOF lcluster inline is no possible;
- fix `ret' signedness.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2erofs-utils: lib: get rid of a redundent compress roundlib/compress.c+3 -80 replies
2/2erofs-utils: lib: refine tailpcluster compression approachinclude/erofs/compress.h include/erofs/internal.h lib/compress.c +1 more+116 -430 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchYue Hu
SeriesT-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] erofs-utils: refine tailpcluster compression approach

Hi,

This patchset refines tailpcluster compression. Firstly, instead of compressing into many 4KiB pclusters, it compresses into 2 pclusters as I already mentioned in the previous comment [1].

Secondly, it fixes up EOF lclusters which was disabled on purpose before in order to achieve better inlining performance for small compressed data, which matches the new kernel fix [2].

Still take linux-5.10.87 as an example (75368 inodes in total):
linux-5.10.87 (erofs, lz4hc,9 4k tailpacking) 391696384 => 331292672
linux-5.10.87 (erofs, lz4hc,9 8k tailpacking) 368807936 => 321961984
linux-5.10.87 (erofs, lz4hc,9 16k tailpacking) 345649152 => 313344000
linux-5.10.87 (erofs, lz4hc,9 32k tailpacking) 338649088 => 309055488

(There is still another improvement working in progress..)

Thanks,
Gao Xiang

[1] https://lore.kernel.org/r/[email protected]
[2] https://lore.kernel.org/r/[email protected]

changes since v1 (reported by Yue Hu):
- fall back to uncompressed data if EOF lcluster inline is no possible;
- fix `ret' signedness.

Gao Xiang (2):
erofs-utils: lib: get rid of a redundent compress round
erofs-utils: lib: refine tailpcluster compression approach

 include/erofs/compress.h |   1 +
 include/erofs/internal.h |   4 +
 lib/compress.c           | 156 +++++++++++++++++++++++++++------------
 lib/inode.c              |   9 ++-
 4 files changed, 119 insertions(+), 51 deletions(-)
Signature · 1 line
2.24.4