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

Appearance settings

Commit 75c24d0

Browse filesBrowse files
committed
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.
1 parent 8ce8307 commit 75c24d0
Copy full SHA for 75c24d0

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/include/pg_config_manual.h

Copy file name to clipboardExpand all lines: src/include/pg_config_manual.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
* may improve performance, but supplying a real spinlock implementation is
5858
* probably far better.
5959
*/
60-
#define NUM_SPINLOCK_SEMAPHORES 1024
60+
#define NUM_SPINLOCK_SEMAPHORES 128
6161

6262
/*
6363
* When we have neither spinlocks nor atomic operations support we're

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.