Re: [PATCH] selftests/mm: run_vmtests.sh: Fix hugetlb mem size calculation
From: Muchun Song
Date: Thu Mar 21 2024 - 23:51:43 EST
> On Mar 22, 2024, at 05:50, peterx@xxxxxxxxxx wrote:
>
> From: Peter Xu <peterx@xxxxxxxxxx>
>
> The script calculates a mininum required size of hugetlb memories, but
> it'll stop working with <1MB huge page sizes, reporting all zeros even if
> huge pages are available.
>
> In reality, the calculation doesn't really need to be as comlicated either.
^
complicated?
> Make it simpler and work for KB-level hugepages too.
>
> Cc: Muhammad Usama Anjum <usama.anjum@xxxxxxxxxxxxx>
> Cc: David Hildenbrand <david@xxxxxxxxxx>
> Cc: Nico Pache <npache@xxxxxxxxxx>
> Cc: Muchun Song <muchun.song@xxxxxxxxx>
> Signed-off-by: Peter Xu <peterx@xxxxxxxxxx>
Reviewed-by: Muchun Song <muchun.song@xxxxxxxxx>
Thanks.