mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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]>
This commit is contained in:
parent
15df03c879
commit
64c349f4ae
5 changed files with 202 additions and 0 deletions
|
|
@ -756,3 +756,12 @@ config PERCPU_STATS
|
|||
This feature collects and exposes statistics via debugfs. The
|
||||
information includes global and per chunk statistics, which can
|
||||
be used to help understand percpu memory usage.
|
||||
|
||||
config GUP_BENCHMARK
|
||||
bool "Enable infrastructure for get_user_pages_fast() benchmarking"
|
||||
default n
|
||||
help
|
||||
Provides /sys/kernel/debug/gup_benchmark that helps with testing
|
||||
performance of get_user_pages_fast().
|
||||
|
||||
See tools/testing/selftests/vm/gup_benchmark.c
|
||||
|
|
|
|||
Loading…
Reference in a new issue