Re: Correction to comment regarding atomicity of an operation - Mailing list pgsql-hackers

From Noah Misch
Subject Re: Correction to comment regarding atomicity of an operation
Date
Msg-id 20120912200813.GA10429@tornado.leadboat.com
Whole thread Raw
In response to Re: Correction to comment regarding atomicity of an operation  (Gurjeet Singh <singh.gurjeet@gmail.com>)
Responses Re: Correction to comment regarding atomicity of an operation  (Gurjeet Singh <singh.gurjeet@gmail.com>)
List pgsql-hackers
On Wed, Sep 12, 2012 at 06:44:37AM -0400, Gurjeet Singh wrote:
> Thinking a bit more about the need for locks, I guess even the shared
> variables whose read/write ops are considered atomic need to be protected
> by locks so that the effects of NUMA architectures can be mitigated.

src/backend/storage/lmgr/README.barrier has nice coverage of such issues.

NUMA does not change the picture.  CPU architecture specifications define
ordering constraints for instructions that touch memory.  NUMA is a property
of specific system implementations that changes performance characteristics,
but not functional guarantees, of those instructions.



pgsql-hackers by date:

Previous
From: Nathan Wagner
Date:
Subject: Re: ossp-uuid Contrib Patch
Next
From: Gurjeet Singh
Date:
Subject: Re: Correction to comment regarding atomicity of an operation