mm: add infrastructure for get_user_pages_fast() benchmarking
authorKirill A. Shutemov <[email protected]>
Fri, 17 Nov 2017 23:31:22 +0000 (15:31 -0800)
committerLinus Torvalds <[email protected]>
Sat, 18 Nov 2017 00:10:04 +0000 (16:10 -0800)
commit64c349f4ae78723248c474531d0cbc524fc5ba77
treeb8284ccb8224f9f4023d5b4c1caa6bc053a2c90f
parent15df03c87983660a4d1eedb4541778592bd97684
mm: add infrastructure for get_user_pages_fast() benchmarking

Performance of get_user_pages_fast() is critical for some workloads, but
it's tricky to test it directly.

This patch provides /sys/kernel/debug/gup_benchmark that helps with
testing performance of it.

See tools/testing/selftests/vm/gup_benchmark.c for userspace
counterpart.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Kirill A. Shutemov <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Thorsten Leemhuis <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Huang Ying <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/Kconfig
mm/Makefile
mm/gup_benchmark.c [new file with mode: 0644]
tools/testing/selftests/vm/Makefile
tools/testing/selftests/vm/gup_benchmark.c [new file with mode: 0644]