Re: [PATCH v3] iomap: add allocation cache for iomap_dio

Christoph Hellwig
2026-03-17T09:13:01Z

On Tue, Mar 17, 2026 at 04:33:24PM +0800, changfengnan wrote:
> > IO is not my area but getting from 1.19M to 1.20M doesn't look like it's
> > worth the custom code? (possibly from 1.17M to 1.20M it also wasn't).
> Yes, at least for now, there’s no need for a per-CPU.
> It might be better to replace kmalloc with a new cache, but my tests so far
> haven’t shown any performance improvements.  I’ll look into it further.

Does using a kmem_cache help? That should generally be a nice win
anyway due to keeping the objects together.