SUMMARY: Mismatch in semaphore values in /etc/system and sysdef -i

From: Vinay Sequeira <vinay.sequeira_at_maine.edu>
Date: Mon Mar 07 2005 - 14:26:08 EST
Hi ,

John Leadeham,Bernd Schemmer and Bruce Kirkland, thanks for your quick
response. 

The suggestions were : 

1)  Modules are not loaded until you try to use them
    (by running Oracle, for example) and until then,
    sysdef correctly reports the "unchanged" values. 

   To get round this, you could use the modload command
   (at the command line, before running sysdef) or you
   could use forceload in /etc/system

2) check for duplicate entries and syntax in /etc/system and remove
them.

3) use init or shutdown after making changes to /etc/system.

The problem turned out to be a root disk mirroring issue. I was using
Sun's Volume Manager to mirror the root disk. The changes were not
propagating to the second submirror.   After unencapsulating the root
disk and re-encapsulating  it again, sysdef was able to report the
updated values for SHMMAX. 

Thanks, Vinay 



<----- Original Message ----->

Hi Sunmanagers, 

I am running Solaris 9 9/04 on a v440 with 16G of RAM. I am trying to
run a Oracle 10G server on it.  After adding the recommended shmsys and
semsys parameters  in /etc/system, and doing a reboot -r (also tried
/reconfigure and  boot -r), it doesn't show the new values using sysdef
-i 

/etc/system: 

*Oracle required params
* forceload: misc/ipc
* forceload: sys/shmsys
* forceload: sys/semsys
* forceload: sys/msgsys
set noexec_user_stack=1
set semsys:seminfo_semmni=100
set semsys:seminfo_semmns=1024
set semsys:seminfo_semmsl=256
set semsys:seminfo_semvmx=32767
set shmsys:shminfo_shmmax=4294967295
 
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=10
*
*end oracle

sysdef -i
 
*
* IPC Messages
*
  2048  max message size (MSGMAX)
  4096  max bytes on queue (MSGMNB)
    50  message queue identifiers (MSGMNI)
    40  system message headers (MSGTQL)
*
* IPC Semaphores
*
    10  semaphore identifiers (SEMMNI)
    60  semaphores in system (SEMMNS)
    30  undo structures in system (SEMMNU)
    25  max semaphores per id (SEMMSL)
    10  max operations per semop call (SEMOPM)
    10  max undo entries per process (SEMUME)
 32767  semaphore maximum value (SEMVMX)
 16384  adjust on exit max value (SEMAEM)

*
* IPC Shared Memory
*
   8388608      max shared memory segment size (SHMMAX)
   100  shared memory identifiers (SHMMNI)

Tried using adb to change the values:

sequeira at ginger # adb -kw /dev/ksyms /dev/mem
physmem 1f3746
shminfo_shmmax/D
shminfo_shmmax:
shminfo_shmmax: 0
shminfo_shmmax/W 0t394967295
shminfo_shmmax: 0               =       0x178ab8ff
shminfo_shmmax/D
shminfo_shmmax:
shminfo_shmmax: 394967295
 
 sysdef -i output after change: is the same

*
* IPC Messages
*
  2048  max message size (MSGMAX)
  4096  max bytes on queue (MSGMNB)
    50  message queue identifiers (MSGMNI)
    40  system message headers (MSGTQL)
*
* IPC Semaphores
*
    10  semaphore identifiers (SEMMNI)
    60  semaphores in system (SEMMNS)
    30  undo structures in system (SEMMNU)
    25  max semaphores per id (SEMMSL)
    10  max operations per semop call (SEMOPM)
    10  max undo entries per process (SEMUME)
 32767  semaphore maximum value (SEMVMX)
 16384  adjust on exit max value (SEMAEM)
*
* IPC Shared Memory
*
   8388608      max shared memory segment size (SHMMAX)
   100  shared memory identifiers (SHMMNI)
*
* Time Sharing Scheduler Tunables
*
60      maximum time sharing user priority (TSMAXUPRI)
SYS     system class name (SYS_NAME)
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon Mar 7 14:26:49 2005

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:44 EST