linux-xiaomi-chiron/tools/testing/selftests/vm
John Hubbard 2559653091 selftests/vm: 10x speedup for hmm-tests
This patch reduces the running time for hmm-tests from about 10+ seconds,
to just under 1.0 second, for an approximately 10x speedup.  That brings
it in line with most of the other tests in selftests/vm, which mostly run
in < 1 sec.

This is done with a one-line change that simply reduces the number of
iterations of several tests, from 256, to 10.  Thanks to Ralph Campbell
for suggesting changing NTIMES as a way to get the speedup.

Suggested-by: Ralph Campbell <rcampbell@nvidia.com>
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: SeongJae Park <sj38.park@gmail.com>
Cc: Shuah Khan <shuah@kernel.org>
Link: https://lkml.kernel.org/r/20201003011721.44238-1-jhubbard@nvidia.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-10-18 09:27:09 -07:00
..
.gitignore
charge_reserved_hugetlb.sh
compaction_test.c selftests/vm: 8x compaction_test speedup 2020-10-13 18:38:34 -07:00
config selftests: vm: add fragment CONFIG_GUP_BENCHMARK 2020-09-01 14:29:20 +02:00
gup_benchmark.c linux-kselftest-fixes-5.10-rc1 2020-10-14 14:23:51 -07:00
hmm-tests.c selftests/vm: 10x speedup for hmm-tests 2020-10-18 09:27:09 -07:00
hugepage-mmap.c
hugepage-shm.c
hugetlb_reparenting_test.sh
khugepaged.c
Makefile selftests/vm: fix incorrect gcc invocation in some cases 2020-10-13 18:38:31 -07:00
map_fixed_noreplace.c
map_hugetlb.c selftests/vm: fix display of page size in map_hugetlb 2020-09-19 13:13:39 -07:00
map_populate.c
mlock-random-test.c
mlock2-tests.c
mlock2.h
mremap_dontunmap.c
on-fault-limit.c
pkey-helpers.h
pkey-powerpc.h
pkey-x86.h
protection_keys.c
run_vmtests
test_hmm.sh
test_vmalloc.sh
thuge-gen.c
transhuge-stress.c
userfaultfd.c tools: Avoid comma separated statements 2020-10-02 10:36:36 -06:00
va_128TBswitch.c
virtual_address_range.c
write_hugetlb_memory.sh
write_to_hugetlbfs.c