aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/backend/port/sysv_sema.c8
-rw-r--r--src/bin/initdb/initdb.c9
2 files changed, 5 insertions, 12 deletions
diff --git a/src/backend/port/sysv_sema.c b/src/backend/port/sysv_sema.c
index f7c8638aec5..423b2b4f9d6 100644
--- a/src/backend/port/sysv_sema.c
+++ b/src/backend/port/sysv_sema.c
@@ -50,14 +50,8 @@ typedef int IpcSemaphoreId; /* semaphore ID returned by semget(2) */
* we allocate. It must be *less than* your kernel's SEMMSL (max semaphores
* per set) parameter, which is often around 25. (Less than, because we
* allocate one extra sema in each set for identification purposes.)
- *
- * The present value of 19 is chosen with one eye on NetBSD/OpenBSD's default
- * SEMMNS setting of 60. Remembering the extra sema per set, this lets us
- * allocate three sets with 57 useful semaphores before exceeding that, which
- * is enough to run our core regression tests. Users of those systems will
- * still want to raise SEMMNS for any sort of production work, though.
*/
-#define SEMAS_PER_SET 19
+#define SEMAS_PER_SET 16
#define IPCProtection (0600) /* access/modify by user only */
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
index aefe8130a68..62bbd08d9f6 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -1128,15 +1128,14 @@ test_config_settings(void)
* for a given max_connections value. Note that it has been carefully
* crafted to provide specific values for the associated values in
* trial_conns. We want it to return autovacuum_worker_slots's initial
- * default value (16) for the maximum value in trial_conns (100), and we
- * want it to return close to the minimum value we'd consider (3, which is
- * the default of autovacuum_max_workers) for the minimum value in
- * trial_conns (25).
+ * default value (16) for the maximum value in trial_conns[] (100), while
+ * it mustn't return less than the default value of autovacuum_max_workers
+ * (3) for the minimum value in trial_conns[].
*/
#define AV_SLOTS_FOR_CONNS(nconns) ((nconns) / 6)
static const int trial_conns[] = {
- 100, 50, 40, 30, 25
+ 100, 50, 40, 30, 20
};
static const int trial_bufs[] = {
16384, 8192, 4096, 3584, 3072, 2560, 2048, 1536,