Re: [PATCH] io_uring/memmap: account the pages a compound region really uses

Jens Axboe <[email protected]>
Newsgroups org.kernel.vger.io-uring,org.kernel.vger.linux-kernel
Message-ID <178683846555.1984124.1583533999449071565.b4-ty@b4>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.