linux_dsm_epyc7002/tools/testing/selftests/vm
Andrea Arcangeli 7ddd8faf43 userfaultfd: selftest: exercise -EEXIST only in background transfer
I was stress testing some backports and with high load, after some time,
the latest version of the selftest showed some false positive in
connection with the uffdio_copy_retry.  This seems to fix it while still
exercising -EEXIST in the background transfer once in a while.

The fork child will quit after the last UFFDIO_COPY is run, so a
repeated UFFDIO_COPY may not return -EEXIST.  This change restricts the
-EEXIST stress to the background transfer where the memory can't go away
from under it.

Also updated uffdio_zeropage, so the interface is consistent.

Link: http://lkml.kernel.org/r/20171004171541.1495-2-aarcange@redhat.com
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Cc: Pavel Emelyanov <xemul@virtuozzo.com>
Cc: Mike Rapoport <rppt@linux.vnet.ibm.com>
Cc: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-10-13 16:18:32 -07:00
..
.gitignore selftests/vm: add test for mlock() when areas are intersected 2016-10-07 18:46:28 -07:00
compaction_test.c selftests/vm: write strlen length instead of sizeof to nr_hugepages 2016-06-27 13:18:26 -06:00
config selftests: vm: add CONFIG_SYSVIPC=y to the config fragment 2017-04-11 09:38:39 -06:00
hugepage-mmap.c mm: move hugepage test examples to tools/testing/selftests/vm 2012-03-28 17:14:37 -07:00
hugepage-shm.c mm: move hugepage test examples to tools/testing/selftests/vm 2012-03-28 17:14:37 -07:00
Makefile selftests/vm: add a test for virtual address range mapping 2017-05-08 17:15:16 -07:00
map_hugetlb.c selftests/vm: Set mmap()'s fd as -1 for MAP_ANONYMOUS flag 2017-04-11 09:41:38 -06:00
mlock2-tests.c selftests/vm: Set mmap()'s fd as -1 for MAP_ANONYMOUS flag 2017-04-11 09:41:38 -06:00
mlock2.h selftest: move seek_to_smaps_entry() out of mlock2-tests.c 2016-10-07 18:46:28 -07:00
mlock-random-test.c selftests: expanding more mlock selftest 2016-10-07 18:46:28 -07:00
on-fault-limit.c selftests/vm: Set mmap()'s fd as -1 for MAP_ANONYMOUS flag 2017-04-11 09:41:38 -06:00
run_vmtests linux-kselftest-4.12-rc1 2017-05-08 20:43:30 -07:00
thuge-gen.c selftests/vm: Set mmap()'s fd as -1 for MAP_ANONYMOUS flag 2017-04-11 09:41:38 -06:00
transhuge-stress.c selftests/vm/transhuge-stress: stress test for memory compaction 2014-10-09 22:26:01 -04:00
userfaultfd.c userfaultfd: selftest: exercise -EEXIST only in background transfer 2017-10-13 16:18:32 -07:00
virtual_address_range.c selftests/vm: Fix test for virtual address range mapping for arm64 2017-06-07 10:07:21 -06:00