Gavin Sherry <swm@linuxworld.com.au> writes:
> What about padding the LWLock to 64 bytes on these architectures. Both P4
> and Opteron have 64 byte cache lines, IIRC. This would ensure that a
> cacheline doesn't hold two LWLocks.
I tried that first, actually, but it was a net loss. I guess enlarging
the array that much wastes too much cache space.
regards, tom lane