[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Semaphore defaults (postgresql)

Hey.  I was wondering if someone could tell me offhand if increasing the
semaphore defaults in the common GENERIC config would cause a significant
resource hit, in relation to the default OpenBSD install.

Currently, the defaults are 10 and 60 for SEMMNI and SEMMNS, respectively.
These values are too low for an install of say, postgresql, from the ports.

I looked briefly at the port, and it didn't look like there was a quick
way to bypass the error it gives.  I have no idea how long the defaults
have been in the kernel.  Is it possible to update them permanently?

Patch follows.  Thanks.

- Rob

--- sys/conf/GENERIC.orig       Sat May 12 09:47:23 2001
+++ sys/conf/GENERIC    Sat May 12 09:48:06 2001
@@ -27,6 +27,9 @@
 option         SYSVSEM         # System V-like semaphores
 option         SYSVSHM         # System V-like memory sharing
+option         SEMMNI=256      # Maximum number of shared memory segments
+option         SEMMNS=2048     # Maximum number of semaphores 
 option         UVM_SWAP_ENCRYPT# support encryption of pages going to swap
 #option                COMPAT_09       # Kernel compatibility with NetBSD 0.9,