Re: [PATCH v2 1/5] selftests/mm/guard-regions: skip collapse test when thp not enabled
From: Chunyu Hu
Date: Tue Mar 17 2026 - 02:55:27 EST
On Mon, Mar 16, 2026 at 08:18:40AM +0200, Mike Rapoport wrote:
> On Mon, Mar 16, 2026 at 12:43:31PM +0800, Chunyu Hu wrote:
> > When thp is not available, just skip the collape tests to avoid the false
> > positive.
>
> ... to avoid the false negative
Oops, I missed this one. Will update.
>
> > Without the change, run with a thp disabled kernel:
> > ./run_vmtests.sh -t madv_guard
> > <snip/>
> > # # RUN guard_regions.file.multi_vma ...
> > # # OK guard_regions.file.multi_vma
> > # ok 89 guard_regions.file.multi_vma
> > # # RUN guard_regions.file.basic ...
> > # # OK guard_regions.file.basic
> > # ok 90 guard_regions.file.basic
>
> It would be useful to include output of two failing THP tests rather
> then just the output of the last two test.
Will update in next version.
> You can also add '-n' option to run_vmtest.sh to reduce amount of leading
> #, but for that I don't feel strongly.
Good to know. Thanks.
>
> With that updated
>
> Reviewed-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>
>
> --
> Sincerely yours,
> Mike.
>