[lkml]   [2005]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] mm/slab.c : prefetchw the start of new allocated objects

    * Eric Dumazet <> wrote:

    > local_irq_restore(save_flags);
    > objp = cache_alloc_debugcheck_after(cachep, flags, objp, __builtin_return_address(0));
    > + prefetchw(objp);
    > return objp;

    the idea is good, but i'd suggest to do the prefetchw a bit earlier,
    right where we calculate objp. Furthermore, it might make sense to only
    trigger the prefetchw in the alloc-miss (non-per-CPU cache) case. There
    it's almost surely a win, in the per-CPU cache case it's not always.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-07-29 12:19    [W:0.021 / U:15.168 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site