Re: Is gcc thread-unsafe?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nick Piggin
Date: Wednesday, October 24, 2007 - 8:58 pm

On Thursday 25 October 2007 13:46, Arjan van de Ven wrote:

Well that's exactly right. For threaded programs (and maybe even
real-world non-threaded ones in general), you don't want to be
even _reading_ global variables if you don't need to. Cache misses
and cacheline bouncing could easily cause performance to completely
tank in some cases while only gaining a cycle or two in
microbenchmarks for doing these funny x86 predication things.

I'm not sure about ia64 -- I _hope_ that for most of their
predication stuff, they also predicate the stores, rather than
just store unconditionally and rely on the source operand not
changing in the case they didn't intend the memory to change.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Is gcc thread-unsafe?, Nick Piggin, (Wed Oct 24, 8:24 pm)
Re: Is gcc thread-unsafe?, Arjan van de Ven, (Wed Oct 24, 8:46 pm)
Re: Is gcc thread-unsafe?, Nick Piggin, (Wed Oct 24, 8:58 pm)
RE: Is gcc thread-unsafe?, David Schwartz, (Wed Oct 24, 9:29 pm)
Re: Is gcc thread-unsafe?, Arjan van de Ven, (Wed Oct 24, 9:35 pm)
Re: Is gcc thread-unsafe?, Nick Piggin, (Wed Oct 24, 9:47 pm)
Re: Is gcc thread-unsafe?, Andi Kleen, (Thu Oct 25, 12:15 am)
Re: Is gcc thread-unsafe?, Samuel Tardieu, (Thu Oct 25, 2:44 am)
Re: Is gcc thread-unsafe?, Andi Kleen, (Thu Oct 25, 2:55 am)
Re: Is gcc thread-unsafe?, linux-os (Dick Johnson), (Thu Oct 25, 4:58 am)
Re: Is gcc thread-unsafe?, Andi Kleen, (Thu Oct 25, 5:16 am)
Re: Is gcc thread-unsafe?, Linus Torvalds, (Thu Oct 25, 7:55 am)
Re: Is gcc thread-unsafe?, Pekka Enberg, (Thu Oct 25, 8:12 am)
RE: Is gcc thread-unsafe?, David Schwartz, (Thu Oct 25, 2:42 pm)
Re: Is gcc thread-unsafe?, Ismail , (Thu Oct 25, 3:26 pm)
Re: Is gcc thread-unsafe?, Nick Piggin, (Thu Oct 25, 3:49 pm)
Re: Is gcc thread-unsafe?, Jeff Garzik, (Thu Oct 25, 3:56 pm)
Re: Is gcc thread-unsafe?, Jeff Garzik, (Thu Oct 25, 4:04 pm)
Re: Is gcc thread-unsafe?, Andi Kleen, (Thu Oct 25, 4:09 pm)
Re: Is gcc thread-unsafe?, Linus Torvalds, (Thu Oct 25, 4:14 pm)
Re: Is gcc thread-unsafe?, Andi Kleen, (Thu Oct 25, 4:16 pm)
Re: Is gcc thread-unsafe?, Nick Piggin, (Thu Oct 25, 4:22 pm)
Re: Is gcc thread-unsafe?, Linus Torvalds, (Thu Oct 25, 4:32 pm)
Re: Is gcc thread-unsafe?, Andi Kleen, (Thu Oct 25, 4:42 pm)
Re: Is gcc thread-unsafe?, Nick Piggin, (Thu Oct 25, 4:43 pm)
Re: Is gcc thread-unsafe?, Andi Kleen, (Thu Oct 25, 4:55 pm)
Re: Is gcc thread-unsafe?, Nick Piggin, (Thu Oct 25, 4:57 pm)
Re: Is gcc thread-unsafe?, Linus Torvalds, (Thu Oct 25, 4:57 pm)
Re: Is gcc thread-unsafe?, Zachary Amsden, (Thu Oct 25, 6:15 pm)
Re: Is gcc thread-unsafe?, Willy Tarreau, (Thu Oct 25, 9:57 pm)
Re: Is gcc thread-unsafe?, Andrew Haley, (Fri Oct 26, 4:59 am)
Re: Is gcc thread-unsafe?, Andrew Haley, (Fri Oct 26, 4:59 am)
Re: Is gcc thread-unsafe?, Chris Friesen, (Fri Oct 26, 10:39 am)
Re: Is gcc thread-unsafe?, Phillip Susi, (Wed Oct 31, 3:10 pm)