postgresql/src/backend/storage
Kevin Grittner 2201d801b0 Avoid extra locks in GetSnapshotData if old_snapshot_threshold < 0
On a big NUMA machine with 1000 connections in saturation load
there was a performance regression due to spinlock contention, for
acquiring values which were never used.  Just fill with dummy
values if we're not going to use them.

This patch has not been benchmarked yet on a big NUMA machine, but
it seems like a good idea on general principle, and it seemed to
prevent an apparent 2.2% regression on a single-socket i7 box
running 200 connections at saturation load.
2016-04-12 11:48:02 -05:00
..
buffer Use static inline function for BufferGetPage() 2016-04-11 16:47:50 -05:00
file Include portability/mem.h into fd.c for MAP_FAILED. 2016-03-12 12:16:48 -08:00
freespace Modify BufferGetPage() to prepare for "snapshot too old" feature 2016-04-08 14:30:10 -05:00
ipc Avoid extra locks in GetSnapshotData if old_snapshot_threshold < 0 2016-04-12 11:48:02 -05:00
large_object Update copyright for 2016 2016-01-02 13:33:40 -05:00
lmgr Avoid the use of a separate spinlock to protect a LWLock's wait queue. 2016-04-10 20:12:32 -07:00
page Update copyright for 2016 2016-01-02 13:33:40 -05:00
smgr Copyedit comments and documentation. 2016-04-01 21:53:10 -04:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00