Re: [PATCH v1] fsck.erofs: implement thread-safe global LRU metadata cache

Gao Xiang <[email protected]>
Newsgroups org.ozlabs.lists.linux-erofs
Message-ID <[email protected]>

On 2026/6/13 18:10, Nithurshen wrote:
> Hi Xiang,
> 
> What if rather than caching the raw metadata bytes, the userspace
> cache will focus on caching the parsed structures (such as the
> computed erofs_map_blocks mappings) to save the worker threads
> from redundantly parsing chunk indexes and calculating offsets.
> 
> Can I replace this malloc-based raw buffer approach and focus v3
> patch on an LRU cache for the parsed block mappings to reduce the
> CPU overhead during the concurrent directory traversal?

I don't think it's worth unless you provide enough number to show
which really reduces the CPU overhead.

decompressed metadata cache is only useful for metabox, but I don't
think it's prioritized for now.

Thanks,
Gao Xiang

> 
> Thanks,
> Nithurshen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.