pgsql: Further reduce the number of semaphores used under --disable-spi - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Further reduce the number of semaphores used under --disable-spi
Date
Msg-id E1asD35-0004Kx-5d@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/21b7f49eb88a6d39acf9569cddf65f1985318056

Modified Files
--------------
src/include/pg_config_manual.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Further reduce the number of semaphores used under --disable-spi
Next
From: Tom Lane
Date:
Subject: pgsql: Further reduce the number of semaphores used under --disable-spi