On Thu, Aug 25, 2022 at 03:32:25PM +0000, Trond Myklebust wrote: > I'm not talking about the transition of dirty->clean. We already deal > with that. I'm talking about supporting large folios on read-mainly > workloads. > > NFS can happily support 1MB sized folios, or even larger than that if > there is a compelling reason to do so. > > However, having to read in the entire folio contents if the user is > just asking for a few bytes on a database-style random read workload > can quickly get onerous. Ah, we don't do that. If the user is only asking for a few bytes and there's no indication that it's part of a streaming read, we allocate & fill a single page, just as before. We adapt to the user's workload and only allocate multi-page folios when there's evidence that it'll be useful to do so. -- Linux-cachefs mailing list Linux-cachefs@xxxxxxxxxx https://listman.redhat.com/mailman/listinfo/linux-cachefs