Re: [PATCH bpf-next v6 4/4] selftests/bpf: Add a test for arena fault-in under memory.max

From: Jiayuan Chen

Date: Tue Aug 25 2026 - 07:23:32 EST



On 8/25/26 6:43 PM, Khawar Ahemad wrote:
Addressing the three CI review comments on the v6 series:

---
[Patch 4/4] max_entries comment
---

could the 50000 carry a short note that it just has to outrun
ARENA_BUDGET on the smallest page size
Accepted. Will be fixed in v7 as a proper preceding block comment:

/*
* 50000 pages must exceed ARENA_BUDGET / PAGE_SIZE (64M / 4k = 16384)
* so the fault loop hits memory.max before exhausting the arena itself.
*/
__uint(max_entries, 50000);


Not that simple.

It also make sure the arean not exceed 4G when page size is 64K.


---

Please don't submit further versions of this patchset. I have already prepared a

V6 (the one you sent), and I'm planning to send it myself. Additional submissions

from you would create unnecessary conflicts and confusion.


If you're interested in this series, I'd really appreciate your review and feedback instead.

I'll also be sure to cc you on future versions.


Best regards