summaryrefslogtreecommitdiff
path: root/src/include/pg_config_manual.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-04-18 13:33:06 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-04-18 13:33:06 -0400
commit75c24d0f7491f77dfbc0acdf6c18439f288353ef (patch)
tree3db8025de40a5597fe8f909d691cf6daf6d66f03 /src/include/pg_config_manual.h
parent8ce8307bd4d6028371c6e8b51bdc6ad260baa03a (diff)
downloadpostgresql-75c24d0f7491f77dfbc0acdf6c18439f288353ef.tar.gz
Further reduce the number of semaphores used under --disable-spinlocks.
Per discussion, there doesn't seem to be much value in having NUM_SPINLOCK_SEMAPHORES set to 1024: under any scenario where you are running more than a few backends concurrently, you really had better have a real spinlock implementation if you want tolerable performance. And 1024 semaphores is a sizable fraction of the system-wide SysV semaphore limit on many platforms. Therefore, reduce this setting's default value to 128 to make it less likely to cause out-of-semaphores problems.
Diffstat (limited to 'src/include/pg_config_manual.h')
-rw-r--r--src/include/pg_config_manual.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/pg_config_manual.h b/src/include/pg_config_manual.h
index ef895211da..8d5a378387 100644
--- a/src/include/pg_config_manual.h
+++ b/src/include/pg_config_manual.h
@@ -57,7 +57,7 @@
* may improve performance, but supplying a real spinlock implementation is
* probably far better.
*/
-#define NUM_SPINLOCK_SEMAPHORES 1024
+#define NUM_SPINLOCK_SEMAPHORES 128
/*
* When we have neither spinlocks nor atomic operations support we're