Re: [PATCH] io_uring/memmap: account the pages a compound region really uses
From: Jens Axboe
Date: Sat Aug 15 2026 - 20:01:27 EST
On Thu, 06 Aug 2026 18:00:44 +0000, Ali Ahmet Memis wrote:
> io_mem_alloc_compound() allocates get_order(size) pages, which rounds a
> region size that is not a power of two up to the next order. The pages
> past the region are part of the same allocation and cannot be used for
> anything else, but io_create_region() accounts reg->size >> PAGE_SHIFT,
> so they are never charged against RLIMIT_MEMLOCK. For a ring with 4096
> SQ entries and the default CQ size the region is 37 pages while the
> allocation is 64.
>
> [...]
Applied, thanks!
[1/1] io_uring/memmap: account the pages a compound region really uses
commit: f12f0234cc14886bcfd53ffb7c8df4216dad51f1
Best regards,
--
Jens Axboe