[lkml]   [2009]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRE: [PATCH RFC] [X86] performance improvement for memcpy_64.S by fast string.
    >Well, so you are running cache hot and it is only a win on huge
    >copies... how common are those?
    Hi Pavel Machek
    Yes, we intend to introduce movsq for huge hot size(over 1024bytes)
    and avoid regression for less 1024bytes. I guess you suggest using
    prefetch instruction for cold data (if I was wrong please correct me).
    memcpy don't know whether data has been in cache or not,
    so only when copy size is over (first level 1 cache)/2 and lower
    (last level cache)/2 , prefetch will get benefit. Currently first
    level cache size of most cpus is around 32KB, so it is useful for prefetch
    when copy size is over 16KB, but as H. Peter Anvin mentioned in last email,
    over 16KB copy in kernel is rare.


     \ /
      Last update: 2009-11-13 06:37    [W:0.030 / U:5.356 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site