From: Nithurshen <nithurshen.dev@gmail.com>
To: nithurshen.dev@gmail.com
Cc: hsiangkao@linux.alibaba.com, linux-erofs@lists.ozlabs.org,
xiang@kernel.org
Subject: Re: [PATCH v2 2/2] fsck.erofs: implement concurrent directory traversal
Date: Fri, 24 Jul 2026 20:17:13 +0530 [thread overview]
Message-ID: <20260724144713.85393-1-nithurshen.dev@gmail.com> (raw)
In-Reply-To: <20260724143556.80914-1-nithurshen.dev@gmail.com>
Hi Xiang,
I have implemented the concurrent directory traversal and ran
the benchmarks to compare it against our single-threaded baseline.
All integrity checks passed successfully. Note that this data is an
average of 5 runs of extraction of the same file with purging all
cache before each extraction.
Here is the extraction time breakdown and performance improvement:
| Alg | Cluster | ST Baseline | MT Traversal | Improvement |
|-------|---------|-------------|--------------|-------------|
| lz4hc | 4096 | 4.17s | 3.62s | 13.2% |
| lz4hc | 8192 | 6.02s | 3.73s | 38.0% |
| lz4hc | 16384 | 5.34s | 4.61s | 13.7% |
| lz4hc | 32768 | 5.24s | 3.79s | 27.7% |
| lz4hc | 65536 | 4.23s | 3.61s | 14.7% |
| zstd | 4096 | 4.63s | 4.62s | 0.2% |
| zstd | 8192 | 4.78s | 3.95s | 17.4% |
| zstd | 16384 | 4.29s | 3.68s | 14.2% |
| zstd | 32768 | 4.33s | 3.68s | 15.0% |
| zstd | 65536 | 4.34s | 3.82s | 12.0% |
| lzma | 4096 | 56.37s | 36.57s | 35.1% |
| lzma | 8192 | 64.48s | 45.00s | 30.2% |
| lzma | 16384 | 69.83s | 52.34s | 25.0% |
| lzma | 32768 | 74.88s | 55.37s | 26.1% |
| lzma | 65536 | 80.66s | 63.64s | 21.1% |
Average Improvements:
* LZMA: ~27.5% improvement overall.
* LZ4HC: ~21.5% improvement overall.
* ZSTD: ~11.8% improvement overall.
Regarding bottlenecks:
There is a bottleneck regarding the extraction logic which I think can
be solved by parallelizing the decompression logic. We can adapt our
existing Phase 1 parallel decompression design (the dynamic pcluster
batching worker queue) to handle this. By integrating that existing
design with this concurrent traversal, I hope we can effectively
decouple the CPU-heavy decompression from the I/O-bound extraction.
Please let me know your thoughts on this patch.
Thanks,
Nithurshen
next prev parent reply other threads:[~2026-07-24 14:47 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-21 12:01 [PATCH 0/2] fsck.erofs: implement multi-threaded extraction Nithurshen
2026-06-21 12:01 ` [PATCH 1/2] fsck.erofs: add multi-threaded decompression Nithurshen
2026-06-22 2:08 ` Gao Xiang
2026-06-29 9:55 ` [PATCH 1/2 v2] " Nithurshen
2026-07-05 14:00 ` Gao Xiang
2026-07-06 6:05 ` [PATCH 1/2 v3] " Nithurshen
2026-07-06 6:10 ` Nithurshen
2026-07-08 2:31 ` Gao Xiang
2026-07-13 7:02 ` [PATCH 1/2 v4] " Nithurshen
2026-06-21 12:01 ` [PATCH 2/2] fsck.erofs: implement concurrent directory traversal Nithurshen
2026-07-05 14:05 ` Gao Xiang
2026-07-14 1:10 ` [PATCH v5] fsck.erofs: add multi-threaded decompression Nithurshen
2026-07-14 1:18 ` Nithurshen Karthikeyan
2026-07-24 14:35 ` [PATCH v2 2/2] fsck.erofs: implement concurrent directory traversal Nithurshen
2026-07-24 14:47 ` Nithurshen [this message]
2026-07-24 15:28 ` Gao Xiang
2026-07-24 15:32 ` Nithurshen Karthikeyan
2026-07-24 15:45 ` Gao Xiang
2026-07-24 15:53 ` Gao Xiang
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=20260724144713.85393-1-nithurshen.dev@gmail.com \
--to=nithurshen.dev@gmail.com \
--cc=hsiangkao@linux.alibaba.com \
--cc=linux-erofs@lists.ozlabs.org \
--cc=xiang@kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.