Skip to content

Instantly share code, notes, and snippets.

@bjackman
Created February 20, 2025 14:49
Show Gist options
  • Save bjackman/80dedf1a754f5ade48cb73ea2b9169ed to your computer and use it in GitHub Desktop.
Save bjackman/80dedf1a754f5ade48cb73ea2b9169ed to your computer and use it in GitHub Desktop.
TAP version 13
# ---------------------
# running ./gup_test -u
# ---------------------
# TAP version 13
# 1..1
# # GUP_FAST_BENCHMARK: Time: get:1777 put:239 us#
# ok 1 ioctl status 0
# # Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0
# [PASS]
ok 1 gup_test -u
# ---------------------
# running ./gup_test -a
# ---------------------
# TAP version 13
# 1..1
# # PIN_FAST_BENCHMARK: Time: get:2082 put:386 us#
# ok 1 ioctl status 0
# # Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0
# [PASS]
ok 2 gup_test -a
# -----------------------------------------
# running ./gup_test -ct -F 0x1 0 19 0x1000
# -----------------------------------------
# TAP version 13
# 1..1
# # DUMP_USER_PAGES_TEST: done
# ok 1 ioctl status 0
# # Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0
# [PASS]
ok 3 gup_test -ct -F 0x1 0 19 0x1000
# ----------------------
# running ./gup_longterm
# ----------------------
# # [INFO] detected hugetlb page size: 2048 KiB
# # [INFO] detected hugetlb page size: 1048576 KiB
# TAP version 13
# 1..40
# # [RUN] R/W longterm GUP pin in MAP_SHARED file mapping ... with memfd
# ok 1 Should have worked
# # [RUN] R/W longterm GUP pin in MAP_SHARED file mapping ... with tmpfile
# ok 2 # SKIP Unknown filesystem
# # [RUN] R/W longterm GUP pin in MAP_SHARED file mapping ... with local tmpfile
# not ok 3 ftruncate() failed (2)
# # [RUN] R/W longterm GUP pin in MAP_SHARED file mapping ... with memfd hugetlb (2048 kB)
# ok 4 Should have worked
# # [RUN] R/W longterm GUP pin in MAP_SHARED file mapping ... with memfd hugetlb (1048576 kB)
# ok 5 # SKIP need more free huge pages
# # [RUN] R/W longterm GUP-fast pin in MAP_SHARED file mapping ... with memfd
# ok 6 Should have worked
# # [RUN] R/W longterm GUP-fast pin in MAP_SHARED file mapping ... with tmpfile
# ok 7 # SKIP Unknown filesystem
# # [RUN] R/W longterm GUP-fast pin in MAP_SHARED file mapping ... with local tmpfile
# not ok 8 ftruncate() failed (2)
# # [RUN] R/W longterm GUP-fast pin in MAP_SHARED file mapping ... with memfd hugetlb (2048 kB)
# ok 9 Should have worked
# # [RUN] R/W longterm GUP-fast pin in MAP_SHARED file mapping ... with memfd hugetlb (1048576 kB)
# ok 10 # SKIP need more free huge pages
# # [RUN] R/O longterm GUP pin in MAP_SHARED file mapping ... with memfd
# ok 11 Should have worked
# # [RUN] R/O longterm GUP pin in MAP_SHARED file mapping ... with tmpfile
# ok 12 Should have worked
# # [RUN] R/O longterm GUP pin in MAP_SHARED file mapping ... with local tmpfile
# not ok 13 ftruncate() failed (2)
# # [RUN] R/O longterm GUP pin in MAP_SHARED file mapping ... with memfd hugetlb (2048 kB)
# ok 14 Should have worked
# # [RUN] R/O longterm GUP pin in MAP_SHARED file mapping ... with memfd hugetlb (1048576 kB)
# ok 15 # SKIP need more free huge pages
# # [RUN] R/O longterm GUP-fast pin in MAP_SHARED file mapping ... with memfd
# ok 16 Should have worked
# # [RUN] R/O longterm GUP-fast pin in MAP_SHARED file mapping ... with tmpfile
# ok 17 Should have worked
# # [RUN] R/O longterm GUP-fast pin in MAP_SHARED file mapping ... with local tmpfile
# not ok 18 ftruncate() failed (2)
# # [RUN] R/O longterm GUP-fast pin in MAP_SHARED file mapping ... with memfd hugetlb (2048 kB)
# ok 19 Should have worked
# # [RUN] R/O longterm GUP-fast pin in MAP_SHARED file mapping ... with memfd hugetlb (1048576 kB)
# ok 20 # SKIP need more free huge pages
# # [RUN] R/W longterm GUP pin in MAP_PRIVATE file mapping ... with memfd
# ok 21 Should have worked
# # [RUN] R/W longterm GUP pin in MAP_PRIVATE file mapping ... with tmpfile
# ok 22 Should have worked
# # [RUN] R/W longterm GUP pin in MAP_PRIVATE file mapping ... with local tmpfile
# not ok 23 ftruncate() failed (2)
# # [RUN] R/W longterm GUP pin in MAP_PRIVATE file mapping ... with memfd hugetlb (2048 kB)
# ok 24 Should have worked
# # [RUN] R/W longterm GUP pin in MAP_PRIVATE file mapping ... with memfd hugetlb (1048576 kB)
# ok 25 # SKIP need more free huge pages
# # [RUN] R/W longterm GUP-fast pin in MAP_PRIVATE file mapping ... with memfd
# ok 26 Should have worked
# # [RUN] R/W longterm GUP-fast pin in MAP_PRIVATE file mapping ... with tmpfile
# ok 27 Should have worked
# # [RUN] R/W longterm GUP-fast pin in MAP_PRIVATE file mapping ... with local tmpfile
# not ok 28 ftruncate() failed (2)
# # [RUN] R/W longterm GUP-fast pin in MAP_PRIVATE file mapping ... with memfd hugetlb (2048 kB)
# ok 29 Should have worked
# # [RUN] R/W longterm GUP-fast pin in MAP_PRIVATE file mapping ... with memfd hugetlb (1048576 kB)
# ok 30 # SKIP need more free huge pages
# # [RUN] R/O longterm GUP pin in MAP_PRIVATE file mapping ... with memfd
# ok 31 Should have worked
# # [RUN] R/O longterm GUP pin in MAP_PRIVATE file mapping ... with tmpfile
# ok 32 Should have worked
# # [RUN] R/O longterm GUP pin in MAP_PRIVATE file mapping ... with local tmpfile
# not ok 33 ftruncate() failed (2)
# # [RUN] R/O longterm GUP pin in MAP_PRIVATE file mapping ... with memfd hugetlb (2048 kB)
# ok 34 Should have worked
# # [RUN] R/O longterm GUP pin in MAP_PRIVATE file mapping ... with memfd hugetlb (1048576 kB)
# ok 35 # SKIP need more free huge pages
# # [RUN] R/O longterm GUP-fast pin in MAP_PRIVATE file mapping ... with memfd
# ok 36 Should have worked
# # [RUN] R/O longterm GUP-fast pin in MAP_PRIVATE file mapping ... with tmpfile
# ok 37 Should have worked
# # [RUN] R/O longterm GUP-fast pin in MAP_PRIVATE file mapping ... with local tmpfile
# not ok 38 ftruncate() failed (2)
# # [RUN] R/O longterm GUP-fast pin in MAP_PRIVATE file mapping ... with memfd hugetlb (2048 kB)
# ok 39 Should have worked
# # [RUN] R/O longterm GUP-fast pin in MAP_PRIVATE file mapping ... with memfd hugetlb (1048576 kB)
# ok 40 # SKIP need more free huge pages
# Bail out! 8 out of 40 tests failed
# # 10 skipped test(s) detected. Consider enabling relevant config options to improve coverage.
# # Totals: pass:22 fail:8 xfail:0 xpass:0 skip:10 error:0
# [FAIL]
not ok 4 gup_longterm # exit=1
# SKIP ./on-fault-limit
# ./run_vmtests.sh: line 389: sudo: command not found
# SUMMARY: PASS=3 SKIP=0 FAIL=1
1..4
TAP version 13
# SKIP ./on-fault-limit
# tee: /proc/sys/kernel/yama/ptrace_scope: No such file or directory
# 0
# ----------------------
# running ./memfd_secret
# ----------------------
# page_size: 4096, mlock.soft: 8388608, mlock.hard: 8388608
# TAP version 13
# 1..6
# ok 1 mlock limit is respected
# ok 2 file IO is blocked as expected
# ok 3 vmsplice is blocked as expected with fresh page
# ok 4 vmsplice is blocked as expected with existing page
# page_size: 4096, mlock.soft: 8388608, mlock.hard: 8388608
# TAP version 13
# 1..6
# ok 1 mlock limit is respected
# ok 2 file IO is blocked as expected
# ok 3 vmsplice is blocked as expected with fresh page
# ok 4 vmsplice is blocked as expected with existing page
# ok 5 process_vm_read is blocked as expected
# page_size: 4096, mlock.soft: 8388608, mlock.hard: 8388608
# TAP version 13
# 1..6
# ok 1 mlock limit is respected
# ok 2 file IO is blocked as expected
# ok 3 vmsplice is blocked as expected with fresh page
# ok 4 vmsplice is blocked as expected with existing page
# ok 5 process_vm_read is blocked as expected
# ok 6 ptrace is blocked as expected
# # Totals: pass:6 fail:0 xfail:0 xpass:0 skip:0 error:0
# [PASS]
ok 1 memfd_secret
# SUMMARY: PASS=1 SKIP=0 FAIL=0
1..1
TAP version 13
# -----------------------------
# running ./map_fixed_noreplace
# -----------------------------
# TAP version 13
# 1..9
# # mmap() @ 0x7fc0d512b000-0x7fc0d5130000 p=0x7fc0d512b000 result=Success
# ok 1 mmap() 5*PAGE_SIZE at base
# # mmap() @ 0x7fc0d512c000-0x7fc0d512f000 p=0x7fc0d512c000 result=Success
# ok 2 mmap() 3*PAGE_SIZE at base+PAGE_SIZE
# # mmap() @ 0x7fc0d512b000-0x7fc0d5130000 p=0xffffffffffffffff result=File exists
# ok 3 mmap() 5*PAGE_SIZE at base
# # mmap() @ 0x7fc0d512d000-0x7fc0d512e000 p=0xffffffffffffffff result=File exists
# ok 4 mmap() 2*PAGE_SIZE at base+PAGE_SIZE
# # mmap() @ 0x7fc0d512e000-0x7fc0d5130000 p=0xffffffffffffffff result=File exists
# ok 5 mmap() 2*PAGE_SIZE at base+(3*PAGE_SIZE)
# # mmap() @ 0x7fc0d512b000-0x7fc0d512d000 p=0xffffffffffffffff result=File exists
# ok 6 mmap() 2*PAGE_SIZE bytes at base
# # mmap() @ 0x7fc0d512b000-0x7fc0d512c000 p=0x7fc0d512b000 result=File exists
# ok 7 mmap() PAGE_SIZE at base
# # mmap() @ 0x7fc0d512f000-0x7fc0d5130000 p=0x7fc0d512f000 result=File exists
# ok 8 mmap() PAGE_SIZE at base+(4*PAGE_SIZE)
# ok 9 Base Address unmap() successful
# # Totals: pass:9 fail:0 xfail:0 xpass:0 skip:0 error:0
# [PASS]
ok 1 map_fixed_noreplace
# SKIP ./on-fault-limit
# ----------------------
# running ./map_populate
# ----------------------
# TAP version 13
# 1..2
# ok 1 MAP_POPULATE COW private page
# ok 2 The mapping state
# # Totals: pass:2 fail:0 xfail:0 xpass:0 skip:0 error:0
# [PASS]
ok 2 map_populate
# tee: /proc/sys/kernel/yama/ptrace_scope: No such file or directory
# 0
# SUMMARY: PASS=2 SKIP=0 FAIL=0
1..2
TAP version 13
# -------------------------
# running ./uffd-unit-tests
# -------------------------
# Testing UFFDIO_API (with syscall)... done
# Testing UFFDIO_API (with /dev/userfaultfd)... done
# Testing register-ioctls on anon... done
# Testing register-ioctls on shmem... done
# Testing register-ioctls on shmem-private... done
# Testing register-ioctls on hugetlb... done
# Testing register-ioctls on hugetlb-private... done
# Testing zeropage on anon... done
# Testing zeropage on shmem... done
# Testing zeropage on shmem-private... done
# Testing zeropage on hugetlb... done
# Testing zeropage on hugetlb-private... done
# Testing move on anon... done
# Testing move-pmd on anon... skipped [reason: CONFIG_TRANSPARENT_HUGEPAGE is not set]
# Testing move-pmd-split on anon... skipped [reason: CONFIG_TRANSPARENT_HUGEPAGE is not set]
# Testing wp-fork on anon... done
# Testing wp-fork on shmem... done
# Testing wp-fork on shmem-private... done
# Testing wp-fork on hugetlb... done
# Testing wp-fork on hugetlb-private... done
# Testing wp-fork-with-event on anon... done
# Testing wp-fork-with-event on shmem... done
# Testing wp-fork-with-event on shmem-private... done
# Testing wp-fork-with-event on hugetlb... done
# Testing wp-fork-with-event on hugetlb-private... done
# Testing wp-fork-pin on anon... done
# Testing wp-fork-pin on shmem... done
# Testing wp-fork-pin on shmem-private... done
# Testing wp-fork-pin on hugetlb... done
# Testing wp-fork-pin on hugetlb-private... done
# Testing wp-fork-pin-with-event on anon... done
# Testing wp-fork-pin-with-event on shmem... done
# Testing wp-fork-pin-with-event on shmem-private... done
# Testing wp-fork-pin-with-event on hugetlb... done
# Testing wp-fork-pin-with-event on hugetlb-private... done
# Testing wp-unpopulated on anon... done
# Testing minor on shmem... done
# Testing minor on hugetlb... done
# Testing minor-wp on shmem... done
# Testing minor-wp on hugetlb... done
# Testing minor-collapse on shmem... skipped [reason: MADV_COLLAPSE failed]
# Testing sigbus on anon... done
# Testing sigbus on shmem... done
# Testing sigbus on shmem-private... done
# Testing sigbus on hugetlb... done
# Testing sigbus on hugetlb-private... done
# Testing sigbus-wp on anon... done
# Testing sigbus-wp on shmem... done
# Testing sigbus-wp on shmem-private... done
# Testing sigbus-wp on hugetlb... done
# Testing sigbus-wp on hugetlb-private... done
# Testing events on anon... done
# Testing events on shmem... done
# Testing events on shmem-private... done
# Testing events on hugetlb... done
# Testing events on hugetlb-private... done
# Testing events-wp on anon... done
# Testing events-wp on shmem... done
# Testing events-wp on shmem-private... done
# Testing events-wp on hugetlb... done
# Testing events-wp on hugetlb-private... done
# Testing poison on anon... done
# Testing poison on shmem... done
# Testing poison on shmem-private... done
# Testing poison on hugetlb... done
# Testing poison on hugetlb-private... done
# Userfaults unit tests: pass=63, skip=3, fail=0 (total=66)
# [PASS]
ok 1 uffd-unit-tests
# --------------------------------
# running ./uffd-stress anon 20 16
# --------------------------------
# nr_pages: 5120, nr_pages_per_cpu: 160
# bounces: 15, mode: rnd racing ver poll, userfaults: 534 missing (39+46+37+30+29+32+26+43+38+25+18+30+17+20+8+18+9+14+9+7+6+13+4+7+3+3+2+0+1+0+0+0+) 2682 wp (123+120+127+116+120+108+113+113+110+105+104+100+105+95+101+97+89+88+77+72+73+65+65+61+57+55+52+42+40+36+30+23+)
# bounces: 14, mode: racing ver poll, userfaults: 82 missing (9+11+4+8+6+2+2+2+5+4+3+3+2+0+2+2+2+3+3+3+2+1+1+2+0+0+0+0+0+0+0+0+) 2085 wp (89+79+90+88+90+85+75+82+79+72+63+68+70+74+71+73+64+63+69+58+62+53+60+56+46+54+56+44+44+39+35+34+)
# bounces: 13, mode: rnd ver poll, userfaults: 487 missing (40+39+33+33+35+20+24+23+22+40+26+24+20+13+4+19+9+13+10+6+10+7+5+1+4+3+1+2+0+1+0+0+) 2540 wp (120+108+116+100+102+101+96+107+103+97+101+97+87+89+102+89+81+84+81+78+67+70+66+60+52+55+52+41+38+36+35+29+)
# bounces: 12, mode: ver poll, userfaults: 79 missing (6+5+9+11+6+5+2+2+4+4+6+3+2+2+1+0+0+4+1+2+0+2+1+1+0+0+0+0+0+0+0+0+) 2884 wp (131+127+127+118+127+122+125+125+117+108+110+110+98+98+102+106+95+91+90+90+76+78+74+72+65+63+46+53+41+37+34+28+)
# bounces: 11, mode: rnd racing poll, userfaults: 491 missing (37+36+50+29+30+22+23+23+21+24+17+20+23+16+18+13+16+19+9+6+13+6+8+4+0+3+1+1+1+1+1+0+) 2422 wp (110+121+102+114+97+103+97+97+103+96+98+90+81+89+87+83+76+69+71+70+65+68+58+57+52+46+49+44+33+36+31+29+)
# bounces: 10, mode: racing poll, userfaults: 64 missing (10+6+3+5+3+4+4+4+2+1+2+4+1+2+5+1+2+0+2+2+1+0+0+0+0+0+0+0+0+0+0+0+) 2121 wp (86+78+89+87+89+78+74+74+78+70+75+70+81+67+71+61+70+59+68+65+62+58+63+53+54+59+56+57+51+47+38+33+)
# bounces: 9, mode: rnd poll, userfaults: 451 missing (33+32+28+33+36+30+30+25+18+20+18+19+17+15+17+20+10+4+11+6+8+8+4+6+1+0+1+0+0+1+0+0+) 2350 wp (113+98+107+98+94+107+91+97+106+89+89+94+85+87+84+72+77+65+70+66+69+67+49+48+54+47+41+42+45+37+35+27+)
# bounces: 8, mode: poll, userfaults: 71 missing (8+6+7+3+7+5+4+3+3+2+3+3+2+3+2+0+1+0+1+2+2+2+1+1+0+0+0+0+0+0+0+0+) 2800 wp (132+127+125+128+118+117+122+124+123+110+110+111+105+96+83+90+90+83+74+72+76+72+76+66+64+58+52+49+40+40+35+32+)
# bounces: 7, mode: rnd racing ver read, userfaults: 623 missing (56+53+48+46+39+31+36+28+38+30+25+25+23+19+25+15+12+13+12+8+11+5+7+6+4+2+2+1+2+0+1+0+) 2986 wp (128+145+135+130+140+126+127+137+121+120+110+114+108+106+103+99+104+83+84+82+82+78+77+63+60+59+57+50+48+41+38+31+)
# bounces: 6, mode: racing ver read, userfaults: 140 missing (15+14+15+8+5+13+6+8+6+2+9+4+7+4+2+5+2+7+1+2+1+1+2+0+1+0+0+0+0+0+0+0+) 2115 wp (87+104+86+87+92+89+89+89+81+78+89+82+66+70+64+75+62+59+59+62+54+48+56+49+46+48+46+43+43+42+37+33+)
# bounces: 5, mode: rnd ver read, userfaults: 581 missing (49+32+40+45+44+34+29+30+22+24+26+25+25+24+19+18+13+13+14+15+8+6+3+10+5+5+1+1+0+1+0+0+) 2941 wp (136+138+129+125+128+130+118+120+127+117+116+98+110+101+104+84+92+88+84+85+80+71+72+66+69+66+59+54+55+44+39+36+)
# bounces: 4, mode: ver read, userfaults: 109 missing (17+14+6+8+5+8+3+3+6+3+3+3+9+1+2+2+1+1+1+5+2+0+1+1+1+2+0+1+0+0+0+0+) 3066 wp (156+150+151+145+142+141+131+128+128+130+120+117+106+92+114+99+97+90+84+81+78+70+64+68+58+61+53+52+50+41+37+32+)
# bounces: 3, mode: rnd racing read, userfaults: 563 missing (50+48+46+30+31+32+37+32+24+23+20+20+25+18+21+21+17+18+11+4+5+8+6+3+7+2+2+1+1+0+0+0+) 2869 wp (126+127+131+128+122+124+126+109+116+117+108+111+100+104+96+94+96+87+86+80+81+74+71+72+57+60+51+54+47+42+36+36+)
# bounces: 2, mode: racing read, userfaults: 182 missing (12+15+12+11+14+11+9+8+5+7+8+9+6+3+12+9+2+7+6+4+5+5+0+1+0+1+0+0+0+0+0+0+) 2800 wp (128+112+122+126+112+108+104+109+102+99+110+95+94+94+96+97+86+95+91+89+79+82+70+71+70+63+65+57+54+47+40+33+)
# bounces: 1, mode: rnd read, userfaults: 637 missing (35+55+41+40+42+51+38+33+49+40+32+18+27+19+13+16+14+16+12+11+7+7+3+8+4+2+2+0+1+1+0+0+) 2889 wp (152+150+138+134+130+121+115+113+113+118+119+101+106+99+108+94+83+88+84+75+76+70+69+62+63+56+55+50+40+40+35+32+)
# bounces: 0, mode: read, userfaults: 76 missing (11+8+9+5+2+3+4+6+5+1+1+2+3+2+1+2+1+1+1+0+3+0+1+0+1+1+1+0+0+1+0+0+) 3403 wp (165+161+169+160+153+158+156+138+134+137+132+131+118+125+114+113+108+86+101+92+81+85+79+71+70+66+63+59+49+42+47+40+)
# [PASS]
ok 2 uffd-stress anon 20 16
# -----------------------------------
# running ./uffd-stress hugetlb 64 32
# -----------------------------------
# nr_pages: 32, nr_pages_per_cpu: 1
# bounces: 31, mode: rnd racing ver poll, userfaults: 29 missing (4+5+5+4+5+2+2+2+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 291 wp (20+26+23+16+15+19+19+15+12+8+12+11+10+13+11+9+9+5+5+5+5+3+3+3+2+3+2+2+3+1+1+0+)
# bounces: 30, mode: racing ver poll, userfaults: 29 missing (4+4+4+3+3+5+1+0+0+0+1+0+2+0+1+0+0+0+1+0+0+0+0+0+0+0+0+0+0+0+0+0+) 402 wp (20+23+24+28+27+24+20+21+14+19+17+18+13+15+16+13+10+10+11+4+10+7+10+5+5+6+3+4+3+1+1+0+)
# bounces: 29, mode: rnd ver poll, userfaults: 26 missing (9+7+4+2+3+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 287 wp (19+19+28+20+18+14+13+10+12+16+10+12+9+7+9+9+7+7+4+6+8+4+5+4+3+1+4+3+2+2+1+1+)
# bounces: 28, mode: ver poll, userfaults: 27 missing (5+4+2+1+3+2+1+0+2+0+2+2+0+1+1+0+0+0+0+1+0+0+0+0+0+0+0+0+0+0+0+0+) 717 wp (45+38+41+39+37+37+37+28+26+33+27+27+30+24+22+23+26+21+25+19+28+16+18+15+7+7+5+6+3+3+3+1+)
# bounces: 27, mode: rnd racing poll, userfaults: 27 missing (7+9+5+4+1+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 259 wp (24+19+22+19+17+11+14+14+6+8+12+11+8+8+9+9+2+6+6+5+6+4+3+4+2+2+4+1+1+1+0+1+)
# bounces: 26, mode: racing poll, userfaults: 25 missing (8+3+6+0+2+3+0+1+0+1+0+0+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 418 wp (24+30+21+19+27+26+22+26+17+19+19+17+16+12+16+17+10+11+10+7+9+7+7+5+7+5+2+4+1+3+2+0+)
# bounces: 25, mode: rnd poll, userfaults: 28 missing (7+6+7+3+1+2+2+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 277 wp (20+17+20+21+22+16+13+9+8+13+12+9+10+11+11+7+6+8+7+8+3+7+5+5+3+2+1+1+0+1+1+0+)
# bounces: 24, mode: poll, userfaults: 23 missing (4+3+3+1+1+2+5+1+0+0+0+0+1+0+0+1+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 606 wp (30+33+31+26+30+29+31+33+32+26+24+29+24+19+27+26+21+20+24+18+17+11+5+8+7+7+5+5+3+1+3+1+)
# bounces: 23, mode: rnd racing ver read, userfaults: 28 missing (11+6+5+4+2+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 337 wp (17+29+18+28+17+18+10+13+14+17+9+12+9+13+13+10+11+10+10+7+7+5+8+6+5+2+4+2+5+3+2+3+)
# bounces: 22, mode: racing ver read, userfaults: 21 missing (5+5+4+0+1+0+1+1+0+1+1+0+2+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 413 wp (25+20+27+26+29+27+20+24+28+19+18+19+14+18+16+8+10+9+10+7+7+8+5+2+3+4+3+3+2+1+1+0+)
# bounces: 21, mode: rnd ver read, userfaults: 28 missing (7+11+6+1+1+2+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 354 wp (19+22+25+30+16+17+16+17+14+12+13+9+15+16+13+9+11+9+10+9+8+6+8+4+6+4+4+3+3+3+1+2+)
# bounces: 20, mode: ver read, userfaults: 19 missing (5+3+5+3+0+1+1+0+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 471 wp (31+36+30+26+30+33+29+23+28+23+25+15+18+15+20+11+10+9+8+9+6+10+4+2+6+2+3+4+4+0+0+1+)
# bounces: 19, mode: rnd racing read, userfaults: 28 missing (5+6+9+5+1+2+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 302 wp (23+27+26+21+15+14+12+7+13+14+13+7+9+7+11+7+9+8+7+9+7+7+4+7+6+2+3+2+2+1+1+1+)
# bounces: 18, mode: racing read, userfaults: 18 missing (3+3+2+1+3+0+4+2+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 412 wp (27+28+25+35+17+22+22+26+22+26+21+18+17+12+12+7+11+8+6+3+6+4+9+5+4+4+5+3+2+2+1+2+)
# bounces: 17, mode: rnd read, userfaults: 28 missing (8+7+4+6+3+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 343 wp (31+23+26+19+21+18+17+18+16+14+13+12+12+9+9+9+12+9+8+7+6+7+4+8+4+2+2+2+2+3+0+0+)
# bounces: 16, mode: read, userfaults: 19 missing (7+5+0+2+1+0+1+2+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 474 wp (29+39+21+31+30+24+33+21+16+27+24+25+16+15+15+13+11+12+14+8+5+7+7+7+4+5+4+4+3+2+2+0+)
# bounces: 15, mode: rnd racing ver poll, userfaults: 30 missing (12+5+4+4+3+2+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 342 wp (20+30+18+17+17+18+14+15+15+12+13+13+12+11+12+10+9+11+12+8+9+10+5+5+4+5+5+4+4+2+2+0+)
# bounces: 14, mode: racing ver poll, userfaults: 19 missing (4+1+5+1+2+2+1+0+2+0+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 469 wp (32+31+28+32+34+30+25+24+22+20+22+21+21+16+11+12+10+12+12+7+6+7+8+4+5+3+4+4+4+1+1+0+)
# bounces: 13, mode: rnd ver poll, userfaults: 29 missing (6+8+6+5+1+1+2+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 302 wp (23+21+21+20+17+17+14+12+12+13+13+9+7+10+11+9+8+10+8+6+5+4+3+6+6+3+4+3+2+3+1+1+)
# bounces: 12, mode: ver poll, userfaults: 20 missing (4+3+1+3+0+0+2+0+2+1+1+0+0+1+0+1+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 403 wp (31+29+23+27+24+26+13+19+25+21+19+16+10+12+15+14+11+7+8+7+7+7+8+5+3+2+4+4+3+1+1+1+)
# bounces: 11, mode: rnd racing poll, userfaults: 27 missing (7+5+5+6+3+0+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 312 wp (19+22+21+15+18+20+17+14+13+12+8+11+11+8+12+11+8+7+10+7+7+5+6+7+3+3+2+4+4+3+4+0+)
# bounces: 10, mode: racing poll, userfaults: 24 missing (6+6+1+2+0+0+4+1+1+1+0+0+0+1+0+0+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 381 wp (22+31+22+24+20+20+18+20+15+12+13+16+13+10+11+12+14+11+12+8+6+9+8+6+6+5+5+5+3+2+1+1+)
# bounces: 9, mode: rnd poll, userfaults: 28 missing (9+7+5+4+3+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 316 wp (26+22+23+24+22+18+19+9+15+12+11+9+10+9+13+9+9+6+9+8+6+5+3+2+4+4+4+3+0+2+0+0+)
# bounces: 8, mode: poll, userfaults: 27 missing (5+3+5+3+4+1+1+0+2+1+0+1+0+0+0+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 395 wp (30+27+27+27+26+23+19+17+20+20+16+14+18+13+14+8+7+8+8+7+6+7+5+7+4+4+3+4+3+3+0+0+)
# bounces: 7, mode: rnd racing ver read, userfaults: 28 missing (7+4+6+7+3+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 328 wp (21+29+24+16+17+22+17+16+14+12+11+9+9+9+8+9+10+7+8+6+6+9+7+5+6+3+4+3+3+3+2+3+)
# bounces: 6, mode: racing ver read, userfaults: 25 missing (8+2+1+1+1+1+4+1+0+2+0+2+0+0+1+0+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 456 wp (29+31+29+26+28+17+26+22+25+17+19+17+18+20+16+14+12+9+10+9+11+9+8+6+6+6+7+4+1+2+2+0+)
# bounces: 5, mode: rnd ver read, userfaults: 29 missing (7+9+4+4+3+2+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 297 wp (8+28+14+27+19+15+14+15+12+13+13+9+11+10+5+11+10+8+7+8+7+7+3+6+6+4+2+2+2+0+0+1+)
# bounces: 4, mode: ver read, userfaults: 30 missing (6+4+3+1+2+2+2+2+1+1+1+0+2+1+1+0+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 377 wp (27+26+26+20+23+18+15+18+14+15+18+10+20+18+11+15+7+9+9+8+5+7+8+7+6+5+3+5+2+1+1+0+)
# bounces: 3, mode: rnd racing read, userfaults: 30 missing (9+7+5+4+3+1+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 321 wp (25+22+25+14+16+15+16+13+10+13+14+9+11+8+10+12+5+9+10+7+8+6+9+5+5+5+5+5+4+3+2+0+)
# bounces: 2, mode: racing read, userfaults: 31 missing (10+4+3+2+1+1+3+0+1+2+0+0+3+0+0+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 436 wp (29+25+29+28+22+31+25+18+21+26+17+16+15+16+14+17+10+9+8+10+9+7+7+6+6+4+3+3+2+2+0+1+)
# bounces: 1, mode: rnd read, userfaults: 28 missing (9+8+6+3+2+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 320 wp (25+19+26+18+20+20+13+11+16+12+13+11+9+12+10+6+6+8+7+7+5+8+5+5+4+6+5+5+4+2+1+1+)
# bounces: 0, mode: read, userfaults: 31 missing (3+4+4+3+2+1+1+3+2+6+1+0+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 652 wp (39+42+37+30+29+35+28+35+36+35+24+20+24+18+28+27+21+21+24+25+20+17+11+7+3+3+3+2+5+1+0+2+)
# [PASS]
ok 3 uffd-stress hugetlb 64 32
# -------------------------------------------
# running ./uffd-stress hugetlb-private 64 32
# -------------------------------------------
# nr_pages: 32, nr_pages_per_cpu: 1
# bounces: 31, mode: rnd racing ver poll, userfaults: 25 missing (3+3+3+5+6+3+1+0+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 352 wp (24+19+23+19+23+23+18+15+19+12+12+13+12+10+9+11+8+7+10+10+7+7+6+5+7+6+5+3+3+3+2+1+)
# bounces: 30, mode: racing ver poll, userfaults: 29 missing (5+1+1+4+3+2+1+2+1+1+5+2+0+0+0+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 398 wp (25+23+25+26+32+28+21+16+22+17+18+23+18+9+14+11+7+9+4+4+4+6+9+7+6+3+4+1+2+1+2+1+)
# bounces: 29, mode: rnd ver poll, userfaults: 26 missing (5+3+7+2+3+3+1+1+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 327 wp (21+23+18+29+23+20+17+14+14+13+15+12+11+13+7+11+7+6+6+9+7+5+6+4+3+4+2+1+2+2+2+0+)
# bounces: 28, mode: ver poll, userfaults: 27 missing (5+3+1+4+4+1+1+1+2+0+2+1+0+0+0+1+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 558 wp (37+36+35+37+29+31+35+29+31+31+23+24+22+18+24+21+21+19+15+10+8+3+2+4+3+2+3+1+2+1+0+1+)
# bounces: 27, mode: rnd racing poll, userfaults: 24 missing (6+6+1+3+3+2+2+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 301 wp (15+14+22+21+14+17+19+14+13+13+12+12+9+12+11+8+9+6+8+9+8+6+6+4+5+3+2+2+2+2+2+1+)
# bounces: 26, mode: racing poll, userfaults: 25 missing (5+0+4+2+1+5+2+1+1+2+2+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 470 wp (38+27+34+30+25+38+21+25+28+23+23+21+21+14+16+10+8+7+8+10+6+4+8+5+6+5+4+1+0+1+2+1+)
# bounces: 25, mode: rnd poll, userfaults: 27 missing (5+3+5+3+4+3+0+2+2+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 349 wp (23+23+21+18+24+23+20+16+20+13+12+13+13+13+10+9+8+8+10+6+7+7+4+4+6+4+4+3+2+3+2+0+)
# bounces: 24, mode: poll, userfaults: 23 missing (8+4+2+2+0+1+2+2+0+2+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 545 wp (33+34+31+26+29+31+27+31+24+25+22+19+23+23+22+23+20+18+17+13+10+4+5+8+8+3+3+4+3+2+2+2+)
# bounces: 23, mode: rnd racing ver read, userfaults: 26 missing (4+4+4+4+4+4+1+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 359 wp (26+17+22+18+18+18+17+20+16+14+15+17+13+13+10+10+9+9+9+7+9+7+6+7+7+5+6+3+3+4+3+1+)
# bounces: 22, mode: racing ver read, userfaults: 21 missing (4+4+3+3+2+1+1+0+0+1+1+0+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 384 wp (24+26+23+22+23+23+19+17+14+21+25+15+20+19+18+10+8+8+7+5+5+2+7+7+4+4+2+2+2+1+1+0+)
# bounces: 21, mode: rnd ver read, userfaults: 26 missing (3+5+5+3+2+3+4+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 390 wp (24+19+22+23+26+19+17+18+19+19+13+18+14+11+13+12+14+11+11+10+10+8+7+6+3+6+3+5+2+3+3+1+)
# bounces: 20, mode: ver read, userfaults: 19 missing (6+2+2+0+2+1+1+1+2+1+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 412 wp (28+33+27+19+24+25+16+20+26+21+23+19+23+12+14+14+9+7+7+6+8+6+6+4+3+3+0+3+1+2+2+1+)
# bounces: 19, mode: rnd racing read, userfaults: 27 missing (4+5+4+5+3+3+3+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 366 wp (22+20+22+26+18+18+20+19+18+17+13+13+15+14+11+9+11+9+9+8+10+6+8+6+4+6+3+3+3+2+2+1+)
# bounces: 18, mode: racing read, userfaults: 17 missing (5+3+2+2+0+2+0+1+1+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 527 wp (34+28+30+29+29+27+27+30+32+30+25+23+20+21+26+17+11+8+8+13+11+10+5+7+7+4+4+4+2+3+2+0+)
# bounces: 17, mode: rnd read, userfaults: 27 missing (5+7+4+5+2+3+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 348 wp (23+20+24+19+24+22+22+15+15+17+11+13+10+11+12+7+12+9+9+8+6+6+7+5+4+5+3+3+2+2+1+1+)
# bounces: 16, mode: read, userfaults: 19 missing (7+2+1+1+2+2+0+2+0+2+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 499 wp (39+37+31+30+33+30+26+24+29+25+28+22+12+14+12+14+10+11+11+7+9+8+7+5+7+4+4+3+2+2+1+2+)
# bounces: 15, mode: rnd racing ver poll, userfaults: 26 missing (4+4+6+4+4+3+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 349 wp (23+25+22+22+18+18+23+20+12+15+14+10+12+13+10+12+10+9+9+8+8+7+4+7+4+3+4+1+2+3+0+1+)
# bounces: 14, mode: racing ver poll, userfaults: 19 missing (5+0+3+3+2+1+2+1+1+0+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 490 wp (27+31+33+28+33+30+26+25+23+26+25+23+19+16+10+15+11+12+9+9+7+6+9+8+5+4+5+4+4+3+2+2+)
# bounces: 13, mode: rnd ver poll, userfaults: 25 missing (7+4+4+2+2+3+1+2+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 349 wp (14+20+22+26+19+19+20+15+17+14+13+16+13+11+13+10+11+9+10+11+6+7+6+6+4+3+4+2+3+3+1+1+)
# bounces: 12, mode: ver poll, userfaults: 22 missing (3+5+3+0+1+1+1+0+2+2+3+0+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 399 wp (26+30+26+30+24+32+27+24+22+22+20+10+16+13+7+6+7+10+6+6+5+5+6+4+4+3+3+0+2+1+1+1+)
# bounces: 11, mode: rnd racing poll, userfaults: 27 missing (5+3+4+4+3+2+2+4+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 373 wp (19+24+18+24+22+24+19+15+21+14+13+13+16+13+13+13+12+10+9+8+10+7+6+6+5+5+4+4+2+2+1+1+)
# bounces: 10, mode: racing poll, userfaults: 22 missing (4+2+2+0+2+2+2+2+3+1+1+0+0+0+0+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 518 wp (29+34+38+31+33+27+28+23+26+20+26+20+19+17+15+15+15+13+14+9+11+11+10+9+6+7+5+0+2+2+2+1+)
# bounces: 9, mode: rnd poll, userfaults: 27 missing (6+4+5+4+4+1+1+1+0+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 290 wp (18+21+17+19+17+19+17+18+12+12+9+8+12+7+11+11+9+7+5+4+6+5+5+4+5+3+3+4+2+0+0+0+)
# bounces: 8, mode: poll, userfaults: 25 missing (4+6+2+3+1+2+3+1+1+1+0+0+0+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 495 wp (29+30+32+35+24+33+32+22+28+23+19+18+22+18+17+13+13+11+9+9+8+10+7+9+4+5+5+3+3+3+1+0+)
# bounces: 7, mode: rnd racing ver read, userfaults: 25 missing (4+6+4+3+2+2+3+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 368 wp (27+18+23+25+20+25+14+18+12+15+13+13+12+14+12+9+9+12+6+10+6+9+9+9+7+5+4+4+2+3+2+1+)
# bounces: 6, mode: racing ver read, userfaults: 24 missing (3+2+1+6+0+1+0+0+7+2+1+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 461 wp (30+25+36+37+32+25+26+24+29+23+23+14+18+16+12+12+8+10+9+10+8+2+6+5+3+3+4+1+5+2+1+2+)
# bounces: 5, mode: rnd ver read, userfaults: 27 missing (6+3+4+5+4+2+3+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 368 wp (17+23+25+16+19+24+18+20+20+16+16+14+14+13+16+12+11+10+7+6+10+4+8+6+3+4+3+4+4+2+2+1+)
# bounces: 4, mode: ver read, userfaults: 30 missing (2+5+4+3+3+1+1+4+0+2+2+1+0+1+0+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 438 wp (22+30+29+23+23+17+29+22+22+17+20+24+22+16+13+15+10+8+13+7+8+8+8+8+5+4+5+2+3+2+1+2+)
# bounces: 3, mode: rnd racing read, userfaults: 25 missing (6+3+5+4+2+2+1+2+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 371 wp (22+24+22+22+26+15+23+13+16+13+16+12+15+13+14+12+9+11+9+10+10+5+8+6+5+4+4+3+3+2+2+2+)
# bounces: 2, mode: racing read, userfaults: 31 missing (4+5+2+1+3+2+3+4+2+0+0+1+1+1+1+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 440 wp (31+30+31+22+32+26+28+31+19+21+20+18+15+7+17+14+7+8+9+7+9+9+5+3+4+4+4+4+1+1+1+2+)
# bounces: 1, mode: rnd read, userfaults: 24 missing (6+5+2+4+2+3+2+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 322 wp (19+17+21+19+23+13+16+16+14+14+12+11+11+11+8+12+10+11+8+7+8+8+5+7+4+5+3+3+2+2+1+1+)
# bounces: 0, mode: read, userfaults: 31 missing (8+5+2+1+2+1+0+4+4+2+0+0+1+1+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+) 646 wp (32+42+36+43+39+29+34+34+36+25+29+27+31+26+27+25+18+22+12+13+11+7+8+9+6+7+3+4+3+4+3+1+)
# [PASS]
ok 4 uffd-stress hugetlb-private 64 32
# ---------------------------------
# running ./uffd-stress shmem 20 16
# ---------------------------------
# nr_pages: 5120, nr_pages_per_cpu: 160
# bounces: 15, mode: rnd racing ver poll, userfaults: 128 missing (15+10+8+6+11+9+11+3+4+7+5+4+7+7+1+3+3+3+2+3+2+1+1+1+0+1+0+0+0+0+0+0+) 1265 wp (44+38+46+49+35+45+43+44+46+41+46+45+44+42+37+32+45+44+44+42+38+30+31+39+31+35+32+35+37+37+34+34+)
# bounces: 14, mode: racing ver poll, userfaults: 50 missing (4+3+6+2+3+4+3+5+2+4+1+1+3+2+1+1+0+2+1+1+0+1+0+0+0+0+0+0+0+0+0+0+) 1388 wp (54+57+53+47+51+55+56+49+51+41+49+46+44+41+38+43+39+45+42+42+34+40+42+47+42+36+36+44+38+27+32+27+)
# bounces: 13, mode: rnd ver poll, userfaults: 151 missing (17+12+10+12+7+7+12+7+5+8+4+3+5+4+9+5+2+1+5+0+2+4+1+1+0+4+0+1+0+2+1+0+) 1737 wp (64+68+58+54+61+70+54+74+63+55+59+65+63+58+54+48+54+42+58+55+52+54+48+42+49+43+49+43+51+43+42+44+)
# bounces: 12, mode: ver poll, userfaults: 107 missing (10+12+7+7+4+6+3+6+4+6+5+6+6+5+0+3+2+3+2+1+3+1+2+1+0+0+0+0+0+0+2+0+) 1604 wp (56+51+60+65+66+50+66+60+54+54+59+48+58+61+56+65+49+55+48+53+41+49+46+38+40+44+41+35+38+34+31+33+)
# bounces: 11, mode: rnd racing poll, userfaults: 115 missing (8+10+10+11+7+3+7+9+6+4+6+6+2+2+2+0+1+4+4+1+2+1+2+1+0+0+1+2+1+0+1+1+) 1478 wp (60+48+49+63+56+57+55+47+48+46+52+48+46+47+46+44+47+43+48+40+48+47+42+45+45+45+39+37+33+36+35+36+)
# bounces: 10, mode: racing poll, userfaults: 55 missing (7+5+5+7+4+4+1+2+4+0+3+2+5+3+1+0+0+0+0+0+0+0+0+1+1+0+0+0+0+0+0+0+) 1819 wp (70+74+73+63+63+57+66+66+69+60+57+58+59+68+57+58+53+58+56+54+52+59+48+59+54+49+59+54+45+36+37+28+)
# bounces: 9, mode: rnd poll, userfaults: 134 missing (10+8+11+10+8+7+2+5+8+10+6+6+11+0+3+0+3+9+6+0+0+2+2+3+1+1+1+0+1+0+0+0+) 1665 wp (54+64+55+58+51+46+55+56+61+64+69+54+59+53+51+54+51+50+61+55+40+50+47+46+38+39+49+47+56+52+44+36+)
# bounces: 8, mode: poll, userfaults: 111 missing (16+10+9+8+8+10+0+6+5+4+3+5+3+3+6+3+3+1+0+0+1+0+2+1+3+0+1+0+0+0+0+0+) 1673 wp (70+69+72+72+60+51+61+79+58+58+51+44+51+56+49+60+54+52+47+37+47+47+48+43+53+49+42+44+40+40+30+39+)
# bounces: 7, mode: rnd racing ver read, userfaults: 267 missing (31+24+20+25+15+18+17+6+17+14+7+8+12+7+7+5+2+8+5+5+4+2+5+1+0+0+1+1+0+0+0+0+) 1965 wp (93+79+88+76+70+83+83+69+70+71+62+62+66+66+58+56+57+72+61+57+53+55+71+55+51+42+43+37+47+36+32+44+)
# bounces: 6, mode: racing ver read, userfaults: 62 missing (8+12+2+9+2+2+5+3+0+0+3+3+5+0+1+1+0+2+2+1+0+0+1+0+0+0+0+0+0+0+0+0+) 1333 wp (58+55+49+54+42+59+42+45+43+49+53+35+44+49+44+44+41+40+46+37+44+36+33+38+40+33+40+33+31+31+21+24+)
# bounces: 5, mode: rnd ver read, userfaults: 252 missing (35+19+14+14+17+12+13+9+14+10+11+11+11+2+1+7+6+15+5+5+5+2+3+3+2+1+2+3+0+0+0+0+) 1964 wp (78+70+95+59+60+64+60+57+72+64+89+74+66+61+63+63+51+76+75+65+59+49+59+55+65+48+50+47+46+38+40+46+)
# bounces: 4, mode: ver read, userfaults: 104 missing (18+12+7+10+8+5+7+1+5+3+4+4+7+2+0+2+2+1+0+2+0+0+2+0+0+0+0+0+1+1+0+0+) 2360 wp (95+126+102+122+104+113+82+86+82+91+93+76+97+76+59+65+67+71+46+52+46+62+62+61+73+70+54+48+65+40+31+43+)
# bounces: 3, mode: rnd racing read, userfaults: 294 missing (29+20+23+7+24+13+19+14+17+14+11+9+14+15+9+11+7+2+6+3+6+8+4+2+4+2+0+0+1+0+0+0+) 1985 wp (89+85+77+85+71+97+61+72+77+76+81+67+78+67+64+56+54+54+50+62+44+56+60+47+53+57+41+50+43+45+30+36+)
# bounces: 2, mode: racing read, userfaults: 98 missing (22+11+7+8+6+9+5+3+3+4+3+3+3+3+2+1+0+2+2+0+0+0+1+0+0+0+0+0+0+0+0+0+) 1677 wp (91+68+65+57+59+74+61+63+65+66+71+60+54+53+39+47+50+52+48+38+44+39+52+45+36+52+50+45+42+31+31+29+)
# bounces: 1, mode: rnd read, userfaults: 336 missing (25+37+26+21+33+13+15+16+13+24+14+22+11+10+10+6+6+3+6+3+7+2+3+4+1+2+1+0+1+0+0+1+) 2269 wp (97+83+98+94+102+107+95+78+97+68+75+81+72+70+61+75+72+70+74+69+64+56+55+53+54+59+62+59+44+52+37+36+)
# bounces: 0, mode: read, userfaults: 50 missing (6+5+5+1+5+0+1+2+3+1+3+2+4+0+2+1+3+2+1+0+0+0+1+1+1+0+0+0+0+0+0+0+) 2477 wp (110+112+127+112+99+117+102+107+97+98+120+87+83+102+83+80+76+72+61+55+67+50+58+45+58+46+38+44+42+45+48+36+)
# [PASS]
ok 5 uffd-stress shmem 20 16
# -----------------------------------------
# running ./uffd-stress shmem-private 20 16
# -----------------------------------------
# nr_pages: 5120, nr_pages_per_cpu: 160
# bounces: 15, mode: rnd racing ver poll, userfaults: 118 missing (7+8+4+12+7+7+10+8+2+8+6+1+5+4+6+3+6+2+2+2+0+3+1+0+0+0+1+0+1+0+1+1+) 1311 wp (51+51+41+42+43+37+40+41+42+39+42+48+46+46+45+49+45+41+46+41+40+38+41+34+40+35+37+35+33+42+30+30+)
# bounces: 14, mode: racing ver poll, userfaults: 48 missing (7+10+3+6+2+2+1+1+1+4+1+0+2+1+1+1+0+1+0+1+1+0+0+0+2+0+0+0+0+0+0+0+) 1121 wp (34+51+37+47+41+36+43+36+37+34+30+45+30+32+33+33+38+34+30+37+33+38+33+37+34+31+33+33+29+28+26+28+)
# bounces: 13, mode: rnd ver poll, userfaults: 169 missing (19+16+9+11+11+9+10+14+12+7+5+6+8+5+4+4+6+4+0+2+0+0+5+0+0+0+0+0+1+0+1+0+) 1721 wp (67+60+61+69+66+67+70+60+51+60+67+68+61+50+60+54+63+52+39+49+41+43+35+44+45+52+39+55+39+45+49+40+)
# bounces: 12, mode: ver poll, userfaults: 108 missing (14+14+10+8+13+5+1+3+8+1+2+0+3+1+3+3+2+0+6+4+0+3+0+0+1+0+0+0+1+2+0+0+) 1633 wp (64+64+54+65+71+50+67+51+52+63+57+53+47+66+48+55+50+52+39+50+49+52+44+47+40+40+40+37+44+37+46+39+)
# bounces: 11, mode: rnd racing poll, userfaults: 171 missing (19+13+17+17+15+7+5+8+9+4+9+3+4+8+6+7+2+4+1+2+0+2+0+3+0+2+0+2+0+1+1+0+) 1450 wp (55+75+59+58+56+45+48+49+46+49+46+48+52+38+46+42+39+50+33+38+46+37+35+45+37+45+39+35+48+38+41+32+)
# bounces: 10, mode: racing poll, userfaults: 65 missing (9+10+4+3+8+3+3+2+4+5+2+1+3+1+1+0+2+0+1+0+2+1+0+0+0+0+0+0+0+0+0+0+) 1321 wp (50+52+55+46+58+49+53+50+41+45+36+46+33+45+37+41+40+40+41+39+38+39+32+39+35+41+37+38+34+36+33+22+)
# bounces: 9, mode: rnd poll, userfaults: 191 missing (23+16+16+12+13+13+10+9+11+7+8+4+5+5+4+4+6+2+1+7+3+3+0+1+5+0+0+1+2+0+0+0+) 1895 wp (62+62+85+58+83+60+66+55+61+72+67+66+66+50+50+49+68+51+56+66+48+56+64+65+63+50+61+61+53+35+43+43+)
# bounces: 8, mode: poll, userfaults: 81 missing (12+7+9+1+7+6+5+3+2+5+2+4+2+4+3+3+1+1+0+0+2+0+0+0+0+1+1+0+0+0+0+0+) 1862 wp (65+77+64+69+64+61+50+58+64+74+65+48+47+69+54+66+64+53+74+58+62+56+62+63+59+58+56+38+50+39+41+34+)
# bounces: 7, mode: rnd racing ver read, userfaults: 273 missing (27+19+27+12+17+11+6+23+11+10+16+11+14+7+8+10+9+1+2+4+6+2+3+7+7+0+1+1+0+0+1+0+) 1930 wp (83+94+91+69+69+65+46+79+89+56+71+68+71+60+59+72+67+52+52+59+70+62+38+48+55+61+45+32+41+37+37+32+)
# bounces: 6, mode: racing ver read, userfaults: 111 missing (8+11+15+13+9+9+5+3+5+8+2+5+3+4+1+1+1+1+0+2+3+0+0+0+2+0+0+0+0+0+0+0+) 1695 wp (71+67+77+81+67+61+59+65+57+57+54+60+62+56+53+46+51+47+51+45+56+43+50+46+46+48+50+45+40+31+32+21+)
# bounces: 5, mode: rnd ver read, userfaults: 315 missing (37+34+21+23+26+13+15+21+10+8+7+19+15+7+11+5+7+6+2+6+1+4+4+5+1+2+3+1+0+0+1+0+) 2291 wp (101+92+91+91+87+84+79+88+82+62+70+80+82+76+81+91+71+57+88+65+72+67+60+55+63+58+55+58+52+44+50+39+)
# bounces: 4, mode: ver read, userfaults: 99 missing (11+8+7+11+2+4+9+5+8+1+3+6+3+2+2+1+3+1+5+1+2+1+0+0+0+1+0+1+1+0+0+0+) 2104 wp (115+103+85+93+96+95+73+75+76+85+70+75+63+68+58+66+63+63+59+53+58+63+58+48+54+53+37+40+41+44+30+44+)
# bounces: 3, mode: rnd racing read, userfaults: 263 missing (15+21+24+22+18+6+19+13+9+11+15+18+9+12+9+7+6+3+4+2+1+4+5+3+2+2+2+1+0+0+0+0+) 1952 wp (84+90+76+79+67+80+76+78+56+77+71+76+60+62+63+64+56+58+59+59+58+60+48+60+56+47+37+42+41+34+38+40+)
# bounces: 2, mode: racing read, userfaults: 65 missing (5+6+10+4+3+5+6+4+8+0+1+2+3+2+0+1+0+1+1+2+0+0+0+1+0+0+0+0+0+0+0+0+) 1341 wp (57+57+49+50+39+60+48+46+45+51+45+42+36+41+50+35+36+46+35+41+40+33+38+41+38+38+39+36+34+34+32+29+)
# bounces: 1, mode: rnd read, userfaults: 205 missing (20+13+15+6+10+7+8+9+8+12+16+16+11+13+6+8+3+6+1+6+1+5+1+2+0+1+0+0+1+0+0+0+) 1818 wp (72+62+54+72+68+54+49+71+65+66+62+79+68+69+74+77+63+72+49+67+41+49+43+40+35+35+49+46+36+41+51+39+)
# bounces: 0, mode: read, userfaults: 37 missing (5+2+3+3+3+2+3+1+0+2+2+0+1+0+1+0+2+1+2+0+0+1+1+1+0+0+0+0+1+0+0+0+) 1948 wp (102+90+88+58+71+90+75+76+61+74+75+51+73+64+67+54+64+49+49+50+63+52+47+59+46+43+41+44+46+46+45+35+)
# [PASS]
ok 6 uffd-stress shmem-private 20 16
# ------------------------
# running ./uffd-wp-mremap
# ------------------------
# # [INFO] detected hugetlb page size: 2048 KiB
# # [INFO] detected hugetlb page size: 1048576 KiB
# 1..8
# # [RUN] test_one_folio(size=4096, private=false, swapout=false, hugetlb=false)
# ok 1 test_one_folio(size=4096, private=false, swapout=false, hugetlb=false)
# # [RUN] test_one_folio(size=4096, private=true, swapout=false, hugetlb=false)
# ok 2 test_one_folio(size=4096, private=true, swapout=false, hugetlb=false)
# # [RUN] test_one_folio(size=4096, private=false, swapout=true, hugetlb=false)
# ok 3 test_one_folio(size=4096, private=false, swapout=true, hugetlb=false)
# # [RUN] test_one_folio(size=4096, private=true, swapout=true, hugetlb=false)
# ok 4 # SKIP MADV_PAGEOUT did not work, is swap enabled?
# # [RUN] test_one_folio(size=2097152, private=false, swapout=false, hugetlb=true)
# ok 5 test_one_folio(size=2097152, private=false, swapout=false, hugetlb=true)
# # [RUN] test_one_folio(size=1073741824, private=false, swapout=false, hugetlb=true)
# not ok 6 alloc_one_folio() failed
# # [RUN] test_one_folio(size=2097152, private=true, swapout=false, hugetlb=true)
# ok 7 test_one_folio(size=2097152, private=true, swapout=false, hugetlb=true)
# # [RUN] test_one_folio(size=1073741824, private=true, swapout=false, hugetlb=true)
# not ok 8 alloc_one_folio() failed
# Bail out! 2 out of 8 tests failed
# # 1 skipped test(s) detected. Consider enabling relevant config options to improve coverage.
# # Totals: pass:5 fail:2 xfail:0 xpass:0 skip:1 error:0
# [FAIL]
not ok 7 uffd-wp-mremap # exit=1
# SKIP ./on-fault-limit
# tee: /proc/sys/kernel/yama/ptrace_scope: No such file or directory
# 0
# SUMMARY: PASS=6 SKIP=0 FAIL=1
1..7

Trying to run some mm selftests on QEMU using virtme-ng

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment