[lkml]   [2008]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH]: Fix SMP-reordering race in mark_buffer_dirty

On Wed, 2 Apr 2008, Linus Torvalds wrote:
> Core 2 is the outlier in having a noticeably faster "mfence" than atomic
> instructions

Side note: mfence is probably faster than 6 cycles on Core 2. I've seen it
be basically zero-cost. Try adding a few memory ops around it - the timing
will probably change. Core 2 has this odd behaviour that it sometimes does
worse on the *really* trivial things that don't happen in real life.


 \ /
  Last update: 2008-04-02 23:39    [W:0.075 / U:3.444 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site