On 11/06/26 4:56 pm, David Hildenbrand (Arm) wrote:
>>> + /*
>>> + * Speculative reference can temporarily prevent some
>>> + * pages from getting dropped. So sleep and retry.
>>> + *
>>> + * If a page is not droppable for 10s, something
>>> + * is seriously messed up and we want to fail.
>>> + */
>>> + if (dropped)
>>> + break;
>>> + sleep(1);
>>> }
>>> - kill(child, SIGTERM);
>>>
>>> - ksft_test_result_pass("MAP_DROPPABLE: PASS\n");
>>> - exit(KSFT_PASS);
>>> + ksft_test_result(dropped, "madvise(MADV_PAGEOUT) behavior\n");
>>
>> You meant "MAP_DROPPABLE" behaviour? Perhaps that can be folded in.
>
> No, I did mean "madvise(MADV_PAGEOUT)" behaves as expected with droppable
> pages.
>
> Reasoning being that we might want to add some other tests in the future that
> trigger reclaim differently.
Makes sense.
>
> Thanks!
>
- [PATCH] selftests: mm: fix and speedup "dropp... David Hildenbrand (Arm)
- Re: [PATCH] selftests: mm: fix and speedup &q... Sarthak Sharma
- Re: [PATCH] selftests: mm: fix and speedu... David Hildenbrand (Arm)
- Re: [PATCH] selftests: mm: fix and sp... Lance Yang
- Re: [PATCH] selftests: mm: fix and sp... Sarthak Sharma
- Re: [PATCH] selftests: mm: fix and speedup &q... Lance Yang
- Re: [PATCH] selftests: mm: fix and speedup &q... Dev Jain
- Re: [PATCH] selftests: mm: fix and speedu... David Hildenbrand (Arm)
- Re: [PATCH] selftests: mm: fix and sp... Dev Jain
- Re: [PATCH] selftests: mm: fix and speedup &q... SeongJae Park
- Re: [PATCH] selftests: mm: fix and speedu... David Hildenbrand (Arm)
- Re: [PATCH] selftests: mm: fix and speedup &q... Lorenzo Stoakes
- Re: [PATCH] selftests: mm: fix and speedu... David Hildenbrand (Arm)
- Re: [PATCH] selftests: mm: fix and sp... Lorenzo Stoakes
- Re: [PATCH] selftests: mm: fix and speedup &q... Jason A. Donenfeld

