Skip to content
  • Ingo Molnar's avatar
    x86: usercopy: check for total size when deciding non-temporal cutoff · 95108fa3
    Ingo Molnar authored
    Impact: make more types of copies non-temporal
    
    This change makes the following simple fix:
    
      30d697fa
    
    : x86: fix performance regression in write() syscall
    
    A bit more sophisticated: we check the 'total' number of bytes
    written to decide whether to copy in a cached or a non-temporal
    way.
    
    This will for example cause the tail (modulo 4096 bytes) chunk
    of a large write() to be non-temporal too - not just the page-sized
    chunks.
    
    Cc: Salman Qazi <sqazi@google.com>
    Cc: Nick Piggin <npiggin@suse.de>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    95108fa3