lkml.org 
[lkml]   [2009]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: cli/sti vs local_cmpxchg and local_add_return
* David Miller (davem@davemloft.net) wrote:
> From: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
> Date: Tue, 17 Mar 2009 12:06:35 -0400
>
> > But powerpc has non-maskable interrupts, so for less than 4 cycles, I
> > think it's better to stay with the local_t variant to be NMI-safe.
>
> Sparc64 has non-maskable interrupts too btw.
>

OK, this alone is a strong argument to favor NMI-safe lockless algorithm
even if it is a bit slower. We should see what kind of performance
impact it has on overall tracing performance to find out if it will make
a measurable difference anyway.

Mathieu

> _______________________________________________
> ltt-dev mailing list
> ltt-dev@lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>

--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68


\
 
 \ /
  Last update: 2009-03-17 20:39    [W:0.050 / U:0.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site