Skip to content

Commit a26c4c6

Browse files
johnhubbardtorvalds
authored andcommitted
selftests/vm: 2x speedup for run_vmtests.sh
Each invocation of userfaultfd for "anon" and "shmem" was taking about 6.5 sec to run, contributing to an overall run time of about 22 sec for run_vmtests.sh. Reduce the size and bounce input values to the userfaultfd invocation within run_vmtests.sh, enough to get each invocation down to about 1.0 sec. This should still provide a reasonable smoke test, while staying within a nominal time budget of around 1 second or so per test. And this brings the overall running time of run_vmtests.sh down to 11 second. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: John Hubbard <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: Shuah Khan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent f3a4570 commit a26c4c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/testing/selftests/vm/run_vmtests

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ fi
160160
echo "-------------------"
161161
echo "running userfaultfd"
162162
echo "-------------------"
163-
./userfaultfd anon 128 32
163+
./userfaultfd anon 20 16
164164
if [ $? -ne 0 ]; then
165165
echo "[FAIL]"
166166
exitcode=1
@@ -185,7 +185,7 @@ rm -f $mnt/ufd_test_file
185185
echo "-------------------------"
186186
echo "running userfaultfd_shmem"
187187
echo "-------------------------"
188-
./userfaultfd shmem 128 32
188+
./userfaultfd shmem 20 16
189189
if [ $? -ne 0 ]; then
190190
echo "[FAIL]"
191191
exitcode=1

0 commit comments

Comments
 (0)