Manfred Spraul <manfred(at)colorfullife(dot)com> writes:
> That's the price you pay for weakly ordered memory access.
> Linux on ppc uses eieio, on ppc64 lwsync is used. Could you check if
> they are faster?
I recall looking at lwsync and being concerned about portability
problems --- older assemblers will fail to recognize it. I'd want
to see some hard evidence that changing sync to lwsync would be a
significant performance win before taking any portability risk here.
regards, tom lane