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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Further reduce the number of semaphores used under --disable-spi
Date: 2016-04-18 17:33:23
Message-ID: E1asD35-0004Kv-5Z@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/c6a5b6677d5f12ccf3c2373117bf630ead30b798

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

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-04-18 22:06:07 pgsql: Make partition-lock-release coding more transparent in BufferAll
Previous Message Tom Lane 2016-04-18 17:20:03 pgsql: Fix --disable-spinlocks in 9.2 and 9.3 branches.