Re: [PATCH v1] fsck.erofs: implement thread-safe global LRU metadata cache
Nithurshen <[email protected]>
| Newsgroups | org.ozlabs.lists.linux-erofs |
|---|---|
| Message-ID | <[email protected]> |
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? Thanks, Nithurshen