On Wed, 31 Jul 2024 17:01:31 +0800, Chenliang Li wrote: > Registered buffers are stored and processed in the form of bvec array, > each bvec element typically points to a PAGE_SIZE page but can also work > with hugepages. Specifically, a buffer consisting of a hugepage is > coalesced to use only one hugepage bvec entry during registration. > This coalescing feature helps to save both the space and DMA-mapping time. > > However, currently the coalescing feature doesn't work for multi-hugepage > buffers. For a buffer with several 2M hugepages, we still split it into > thousands of 4K page bvec entries while in fact, we can just use a > handful of hugepage bvecs. > > [...] Applied, thanks! [1/2] io_uring/rsrc: store folio shift and mask into imu commit: cbca98cb933728bb5eee39ba6bfe184932931e3d [2/2] io_uring/rsrc: enable multi-hugepage buffer coalescing commit: 04eedfc93ea1121bb6b00f27b14c58973f7de1c9 Best regards, -- Jens Axboe