lkml.org 
[lkml]   [2024]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v6 17/18] arm64/mm: __always_inline to improve fork() perf
    On Thu, Feb 15, 2024 at 10:32:04AM +0000, Ryan Roberts wrote:
    > As set_ptes() and wrprotect_ptes() become a bit more complex, the
    > compiler may choose not to inline them. But this is critical for fork()
    > performance. So mark the functions, along with contpte_try_unfold()
    > which is called by them, as __always_inline. This is worth ~1% on the
    > fork() microbenchmark with order-0 folios (the common case).
    >
    > Acked-by: Mark Rutland <mark.rutland@arm.com>
    > Signed-off-by: Ryan Roberts <ryan.roberts@arm.com>

    Acked-by: Catalin Marinas <catalin.marinas@arm.com>

    \
     
     \ /
      Last update: 2024-05-27 15:06    [W:4.190 / U:0.372 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site