Update information about configuring SysV IPC parameters on NetBSD.
authorTom Lane
Thu, 1 Dec 2011 01:55:10 +0000 (20:55 -0500)
committerTom Lane
Thu, 1 Dec 2011 01:55:10 +0000 (20:55 -0500)
Per Emmanuel Kasper, sysctl works fine as of NetBSD 5.0.

doc/src/sgml/runtime.sgml

index dc474a6c345c0045938287f9ee1e2059e14fafb3..c5c2de00e2f0f3cead4e217a3ae647aed56e2971 100644 (file)
@@ -331,10 +331,11 @@ fi
 
     
      
-      On NetBSDeither use the
+      On NetBSDuse either the
       FreeBSD or
       Linux start scripts, depending on
-      preference. NetBSDstart script
+      preference.
+      NetBSDstart script
      
     
 
@@ -827,17 +828,45 @@ options "SEMMNS=240"
        
 
        
-        FreeBSD versions before 4.0 work like 
-        NetBSD and 
-        OpenBSD (see below).
+        FreeBSD versions before 4.0 work like
+        OpenBSD (see below).
        
       
      
 
      
       NetBSD
-      OpenBSD
       NetBSDIPC configuration
+      
+       
+        In NetBSD 5.0 and later,
+        IPC parameters can be adjusted using sysctl,
+        for example:
+
+$ sysctl -w kern.ipc.shmmax=16777216
+
+        To have these settings persist over reboots, modify
+        /etc/sysctl.conf.
+       
+
+       
+        You might also want to configure your kernel to lock shared
+        memory into RAM and prevent it from being paged out to swap.
+        This can be accomplished using the sysctl
+        setting kern.ipc.shm_use_phys.
+       
+
+       
+        NetBSD versions before 5.0 work like
+        OpenBSD (see below), except that
+        parameters should be set with the keyword options not
+        option.
+       
+      
+     
+
+     
+      OpenBSD
       OpenBSDIPC configuration
       
        
@@ -845,19 +874,17 @@ options "SEMMNS=240"
         to be enabled when the kernel is compiled. (They are by
         default.) The maximum size of shared memory is determined by
         the option SHMMAXPGS (in pages). The following
-        shows an example of how to set the various parameters on
-        NetBSD
-        (OpenBSD uses option instead):
+        shows an example of how to set the various parameters:
 
-options        SYSVSHM
-options        SHMMAXPGS=4096
-options        SHMSEG=256
-
-options        SYSVSEM
-options        SEMMNI=256
-options        SEMMNS=512
-options        SEMMNU=256
-options        SEMMAP=256
+option        SYSVSHM
+option        SHMMAXPGS=4096
+option        SHMSEG=256
+
+option        SYSVSEM
+option        SEMMNI=256
+option        SEMMNS=512
+option        SEMMNU=256
+option        SEMMAP=256
 
        
 
@@ -870,7 +897,6 @@ options        SEMMAP=256
       
      
 
-
      
       HP-UX
       HP-UXIPC configuration