Re: [PATCH] sparc64: fix hugetlb for sun4u

From: John Paul Adrian Glaubitz
Date: Fri Jul 25 2025 - 17:10:03 EST


Hi again,

On Fri, 2025-07-25 at 22:46 +0200, John Paul Adrian Glaubitz wrote:
> slbpacaflush (8M: 64): Bad configuration: Atleast online 2 cpus are required
> straddle_4GB_static (8M: 64): PASS
> huge_at_4GB_normal_below_static (8M: 64): FAIL Wrong address with MAP_FIXED normal
> huge_below_4GB_normal_above_static (8M: 64): PASS
> map_high_truncate_2 (8M: 64): PASS
> misaligned_offset (8M: 64): PASS (inconclusive)
> truncate_above_4GB (8M: 64): PASS
> brk_near_huge (8M: 64): Fatal glibc error: malloc.c:2601 (sysmalloc): assertion failed:
> (...)
> fallocate_stress.sh (8M: 64): PASS
> ********** TEST SUMMARY
> * 8M
> * 32-bit 64-bit
> * Total testcases: 0 111
> * Skipped: 0 9
> * PASS: 0 57
> * FAIL: 0 1
> * Killed by signal: 0 1
> * Bad configuration: 0 4
> * Expected FAIL: 0 0
> * Unexpected PASS: 0 0
> * Test not present: 0 39
> * Strange test result: 0 0
> **********
> root@raverin:/home/glaubitz/libhugetlbfs#
>
> Tested-by: John Paul Adrian Glaubitz <glaubitz@xxxxxxxxxxxxxxxxxxx>

Ah, I noticed that huge_at_4GB_normal_below_static fails.

Does that test require at least 4 GB of RAM? If yes, it's not surprising
the test fails as this machine have only 2 GB of physical memory and just
1 GB of swap space:

root@raverin:/home/glaubitz/libhugetlbfs# free -h
total used free shared buff/cache available
Mem: 2.0Gi 591Mi 896Mi 1.1Mi 792Mi 1.4Gi
Swap: 976Mi 3.0Mi 973Mi
root@raverin:/home/glaubitz/libhugetlbfs#

Adrian

--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913