[LTP] Fix hugeshmat05 test failure on lpar with 1GB hugepages.
linuxtestproject.agent@gmail.com
linuxtestproject.agent@gmail.com
Mon Apr 20 12:53:42 CEST 2026
Hi Pavithra,
On Mon, 20 Apr 2026, Pavithra wrote:
> Fix hugeshmat05 test failure on lpar with 1GB hugepages.
>
> Modified the test to detect large hugepage sizes (≥1GB) and adjust test sizes accordingly.
The commit body describes what changed but not why the test was failing.
Is shmget failing because N*hpage_size=4GB exceeds what the LPAR can
allocate in one call, or is it a pool exhaustion issue? Please document
the root cause in the commit message.
> + if (hpage_size >= 1024 * 1024 * 1024)
> + multiplier = N / 2;
> + else
> + multiplier = N;
With multiplier=2 for 1GB pages the test needs at most 2 hugepages at
peak, but .hugepages = {N+1, TST_NEEDS} still requires 5 free 1GB pages
(5 GB). On an LPAR with 2–4 free 1GB hugepages the test still cannot
run. Update .hugepages to match the reduced requirement.
---
Note:
Our agent completed the review of the patch. The agent can sometimes
produce false positives although often its findings are genuine. If you
find issues with the review, please comment this email or ignore the
suggestions.
Regards,
LTP AI Reviewer
More information about the ltp
mailing list