Search Text         
Search Tips?
Search By   And   Or   Boolean   Exact Match   TA #
Search In   Whole Doc   Keywords Sort By  
Product   Sub Product  

View Technical Articles (sorted by Product) New/Updated in the last:    7 days      14 days      30 days             
TA # Date Created Date Updated Resolved Issue?   Printer Friendly Version of This TA   Print Article
  E-mail This TA   E-mail Article
104877 10/31/1995 11:32 AM 05/03/2001 03:16 PM
Yes No
Undocumented maximums for Inter-Process Communication kernel tunable parameters.
Keywords
maximum semaphore shared memory ipc tune tunable kernel size big large unix open desktop server 30 v42 32v42 doc semmap semmni semmnu semmsl semopm semume semmns shmmax shmmni undoc missing
Release
SCO UNIX System V/386 Release 3.2 Operating System Version 4.2
SCO Open Desktop Lite Release 3.0
SCO Open Desktop Release 3.0
SCO Open Server Network System Release 3.0
SCO Open Server Enterprise System Release 3.0

Problem
          The following Shared Memory and Semaphore kernel tunable 
          parameters do not appear to be documented:

                SEMMAP
                SEMMNI
                SEMMNU
                SEMMSL
                SEMOPM
                SEMUME
                SEMMNS
                SHMMAX
                SHMMNI
                
          What are their maximum values?


Solution
          Maximum values for the above as follows:

            SEMMAP  - No maximum as such, other than the signed integer 
                      limit (2GB). However, the size of the data structure 
                      it controls is limited by the maximum size of the 
                      kernel (8MB), and will therefore be affected by how 
                      the kernel is configured in terms of other tunable 
                      parameters and drivers.

                      When the 8MB limit has been exceeded the kernel link 
                      will fail with the following error: 

                          can't allocate section .bss

            SEMMNI  - Same as SEMMAP
            SEMMNU  - Same as SEMMAP
            SEMMSL  - Same as SEMMAP
            SEMOPM  - Same as SEMMAP
            SEMUME  - Same as SEMMAP
            SEMMNS  - Same as SEMMAP

            SHMMAX  - Again, no maximum, other than signed integer limit. 
                      This is used by the shared memory subsystem only 
                      as a check, and does not control the size of a 
                      data structure.

                      The real limitations for a process using shared 
                      memory are:

                         1. Total available virtual memory (user space + swap
                            space).

                         2. Shared memory's position in the system's virtual
                            address space.

                      In order to avoid 2 (when using shared memory whose
                      address is assigned by the kernel), set SHMMAX to
                      256MB.

            SHMMNI  - Same as SEMMAP

Related Articles
•  How can a process determine how many open files it has?
•  How can I obtain the Compaq Supplement 1.6?
•  What is contained in SLS UOD396A?
•  What is contained in SLS UOD393C, Performance Supplement for MPX 3.0?
•  My kernel is too large to fit on a boot diskette under SCO UNIX 3.2 Version 2.0.
Back to Search ResultsBack to Search Results