Kbase P121737: How can I set SHMMAX SHMMNI SEMSML SEMMNI SEMOPM on Solaris 10 ?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  04/06/2010 |
|
Status: Verified
GOAL:
Where can I find SHMMAX SHMMNI kernel parameters on Solaris 10 ?
GOAL:
How can I set SHMMAX SHMMNI SEMSML SEMMNI SEMOPM on Solaris 10 ?
GOAL:
Where can I set SEMSML SEMMNI SEMOPM kernel parametes on Solaris 10 ?
FACT(s) (Environment):
Sun Solaris SPARC 10
FIX:
On Solaris 10:
- project.max-sem-ids (Maximum semaphore IDs for a project) replaces SEMMNI
- process.max-sem-nsems (Maximum number of semaphores allowed per semaphore set) replaces SEMMSL
- process.max-sem-ops (Maximum number of semaphore operations allowed per semop) replaces SEMOPM
Solaris 10 only uses the SEMMNI (max-sem-ids), SEMMSL (mx-sem-nsems) and SEMOPM (max-sem-ops) parameters as other parameters are dynamic within the Solaris 10 IPC model.
- project.max-shm-ids (Maximum shared memory IDs for a project) replaces SHMMNI
- project.max-shm-memory (Total amount of shared memory allowed for a project) replaces SHMMAX
In order to change the parameters for the particular user, first we need to identify, what project is the user member of:
1) log to the Solaris box as user you want to use to start database(s) with
2) "id -p"
uid=1057(llaubach) gid=300(support) projid=3(default)
3) log in as a root and use following commands to change the parameter (example:)
projmod -s -K 'process.max-sem-nsems=(privileged,1024,deny)' default
projmod -s -K 'project.max-sem-ids=(privileged,1024,deny)' default
4) RE-LOGIN the user from step 1) and run "prctl $$" in order to verify the settings, rebooting of the box is not required.