Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc6a5b66

Browse files
committed
Further reduce the number of semaphores used under --disable-spinlocks.
Per discussion, there doesn't seem to be much value in havingNUM_SPINLOCK_SEMAPHORES set to 1024: under any scenario where you arerunning more than a few backends concurrently, you really had better have areal spinlock implementation if you want tolerable performance. And 1024semaphores is a sizable fraction of the system-wide SysV semaphore limiton many platforms. Therefore, reduce this setting's default value to 128to make it less likely to cause out-of-semaphores problems.
1 parente2c183e commitc6a5b66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/include/pg_config_manual.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
* may improve performance, but supplying a real spinlock implementation is
6363
* probably far better.
6464
*/
65-
#defineNUM_SPINLOCK_SEMAPHORES1024
65+
#defineNUM_SPINLOCK_SEMAPHORES128
6666

6767
/*
6868
* When we have neither spinlocks nor atomic operations support we're

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp