>> tools/testing/selftests/mm/droppable.c | 46
>> +++++++++++++++++++---------------
>> 1 file changed, 26 insertions(+), 20 deletions(-)
>>
>> diff --git a/tools/testing/selftests/mm/droppable.c
>> b/tools/testing/selftests/mm/droppable.c
>> index 30c8be37fcb9..57e1b6fc5569 100644
>> --- a/tools/testing/selftests/mm/droppable.c
>> +++ b/tools/testing/selftests/mm/droppable.c
>> @@ -17,10 +17,10 @@
>>
>> int main(int argc, char *argv[])
>> {
>> - size_t alloc_size = 134217728;
>> - size_t page_size = getpagesize();
>> + const size_t alloc_size = 2 * 1024 * 1024;
>
> I guess regardless of page size this suffices as an arbitrary range over which
> to check things work.
Yes, that was my thinking. "some pages".
I was briefly wondering whether to add separate tests for THP vs. !THP, but
decided to leave that for another day :)
--
Cheers,
David