lkml.org 
[lkml]   [2018]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v10 01/25] mm: introduce CONFIG_SPECULATIVE_PAGE_FAULT
    Date
    This configuration variable will be used to build the code needed to
    handle speculative page fault.

    By default it is turned off, and activated depending on architecture
    support, SMP and MMU.

    Suggested-by: Thomas Gleixner <tglx@linutronix.de>
    Suggested-by: David Rientjes <rientjes@google.com>
    Signed-off-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
    ---
    mm/Kconfig | 22 ++++++++++++++++++++++
    1 file changed, 22 insertions(+)

    diff --git a/mm/Kconfig b/mm/Kconfig
    index d5004d82a1d6..5484dca11199 100644
    --- a/mm/Kconfig
    +++ b/mm/Kconfig
    @@ -752,3 +752,25 @@ config GUP_BENCHMARK
    performance of get_user_pages_fast().

    See tools/testing/selftests/vm/gup_benchmark.c
    +
    +config ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT
    + def_bool n
    +
    +config SPECULATIVE_PAGE_FAULT
    + bool "Speculative page faults"
    + default y
    + depends on ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT
    + depends on MMU && SMP
    + help
    + Try to handle user space page faults without holding the mmap_sem.
    +
    + This should allow better concurrency for massively threaded process
    + since the page fault handler will not wait for other threads memory
    + layout change to be done, assuming that this change is done in another
    + part of the process's memory space. This type of page fault is named
    + speculative page fault.
    +
    + If the speculative page fault fails because of a concurrency is
    + detected or because underlying PMD or PTE tables are not yet
    + allocating, it is failing its processing and a classic page fault
    + is then tried.
    --
    2.7.4
    \
     
     \ /
      Last update: 2018-04-17 16:48    [W:4.185 / U:0.840 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site