On 4/29/26 2:12 AM, Mike Rapoport wrote: > From: "Mike Rapoport (Microsoft)" <[email protected]> > > thuge-gen skips tests if there are no free huge pages prepared by a wrapper > script and shm liimts in proc are too low. > > Replace custom detection of huge pages with the library functions and add > setup of HugeTLB pages and shm limits to the test and make sure that the > original settings are restored on the test exit. > > Signed-off-by: Mike Rapoport (Microsoft) <[email protected]> > --- I have run the test before and after applying the patch. Before the patch, all test sizes were skipped because hugepages were not preallocated. After the patch, the test correctly allocates the required hugepages and all tests pass, with the original settings restored at exit. Tested-by: Sarthak Sharma <[email protected]>
- Re: [PATCH v3 50/54] selftests/mm: uffd-wp-mremap: ad... Sarthak Sharma
- [PATCH v3 42/54] selftests/mm: hugetlb-soft-online: add se... Mike Rapoport
- Re: [PATCH v3 42/54] selftests/mm: hugetlb-soft-onlin... Sarthak Sharma
- [PATCH v3 51/54] selftests/mm: va_high_addr_switch: add se... Mike Rapoport
- Re: [PATCH v3 51/54] selftests/mm: va_high_addr_switc... Luiz Capitulino
- [PATCH v3 52/54] selftests/mm: va_high_addr_switch.sh: dro... Mike Rapoport
- Re: [PATCH v3 52/54] selftests/mm: va_high_addr_switc... Luiz Capitulino
- [PATCH v3 53/54] selftests/mm: run_vmtests.sh: free memory... Mike Rapoport
- [PATCH v3 54/54] selftests/mm: run_vmtests.sh: drop detect... Mike Rapoport
- [PATCH v3 47/54] selftests/mm: thuge-gen: add setup of Hug... Mike Rapoport
- Re: [PATCH v3 47/54] selftests/mm: thuge-gen: add set... Sarthak Sharma
- Re: [PATCH v3 00/54] make MM selftests more CI friendly Luiz Capitulino

