[PATCH 1/5] kselftests: vm: Add mremap tests

John Hubbard jhubbard at nvidia.com
Thu Oct 1 14:36:25 EDT 2020


On 10/1/20 8:46 AM, Kalesh Singh wrote:
> On Thu, Oct 1, 2020 at 3:24 AM John Hubbard <jhubbard at nvidia.com> wrote:
>> On 9/30/20 3:21 PM, Kalesh Singh wrote:
...
> The bulk of the test time comes from setting and verifying the byte
> pattern in 1GB
> or larger regions for testing the HAVE_MOVE_PUD functionality. Without testing
> 1GB or larger regions the test takes 0.18 seconds on my x86_64 system.
> 
> One option I think would be to only validate to a certain threshold of the remap
> region. We can have a flag to specify a threshold or to validate the
> full size of the
> remapped region. I did some initial testing with a 4MB threshold and
> the total time
> dropped to 0.38 seconds from 1:12 minutes (for verifying the entire
> remapped region).
> The 4MB threshold would cover the full region of all the tests
> excluding those for the
> 1GB and 2GB sized regions. Let me know what you think.
>

That sounds beautiful.

thanks,
-- 
John Hubbard
NVIDIA



More information about the linux-arm-kernel mailing list