Kernel Parameters in Solaris 10

Hello,

Can anyone point me out as to how to set the following parameters in Solaris Kernel: set semsys:seminfo_semmni=16384, set semsys:seminfo_semmns=32768,set semsys:seminfo_semmsl=1024,
set semsys:seminfo_semmnu=16384,set semsys:seminfo_semume=1024,
set shmsys:shminfo_shmmax=4294967295,set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=16384,set shmsys:shminfo_shmseg=1024,set msgsys:msginfo_msgmax=65536, set msgsys:msginfo_msgmni=1024,set msgsys:msginfo_msgmnb=524288, set msgsys:msginfo_msgtql=107520, set semsys:seminfo_semopm=250, set semsys:seminfo_semvmx=32767, set maxphys=8388608

my problem is that we had a Solaris 8 server, and now was re-done with Solaris 10, and it has some problems with the print queue, the same issue was on Solaris 8 and the mentioned parameters were the ones configured and fixed the problem...

but my issue would be how to prove to my boss that the kernel parameters are ok, and this way he can focus on the Application side (database maybe??).

So maybe you can help me out with the following two questions:

1.-Is there a way to find out the current parameter values in SOLARIS 10, so that I can compare the current parameter values that I have from the old solaris 8.

2.-Were the OBSOLETE parameters in SOLARIS 10 changed for something else (another type of parameter maybe??) or something that equals them??

I'm kind of new, tried finding some info and this is what I was told but no luck, the os is SOLARIS 10:

Just put these settings in /etc/system, however you probably don't need to set most if not all of them.
They are either removed from or obsolete in Solaris 10.
Checked out the following page and found out that most of the paremeters mentioned are either obsolete or removed in solaris 10. so According to Suns Docs, these are the only ones that are not obsolete: set semsys:seminfo_semmni=16384
set semsys:seminfo_semmsl=1024
set semsys:seminfo_semopm=250

docs.sun.com:

Any idea or suggestion will be helpfull.

Thank you!!

"ndd /dev/tcp" to find the current ones. What's written here is still valid for Solaris 10.
The parameters that I'm setting currently on some servers are :

Your link doesn't work, here's the one from Sun's site.

FYI:
The Solaris 10 Operating System introduces the following new resource controls to replace the old /etc/system tunables:

                              Old             Old       New         New
    Resource control          tunable         default   Max value   default
    ----------------------    -------------   -------   ---------   ----------
    process.max-msg-qbytes    msginfo_msgmnb  4096      ULONG_MAX   65536
    process.max-msg-messages  msginfo_msgtql  40        UINT_MAX    8192
    process.max-sem-ops       seminfo_semopm  10        INT_MAX     512
    process.max-sem-nsems     seminfo_semmsl  25        SHRT_MAX    512
    project.max-shm-memory    shminfo_shmmax  0x800000  UINT64_MAX  1/4 physmem
    project.max-shm-ids       shminfo_shmmni  100       2**24       128
    project.max-msg-ids       msginfo_msgmni  50        2**24       128
    project.max-sem-ids       seminfo_semmni  10        2**24       128

As the names suggest, these rctls are attributes of either processes or projects.

The following tunables are now obsolete in the Solaris 10 Operating System:

    Shared Memory        Semaphores             Message-Queue
    --------------       --------------         ---------------
    shminfo_shmseg       seminfo_semmns         msginfo_msgmax 
    shminfo_shmmin       seminfo_semvmx         msginfo_msgssz 
    shminfo_shmmax*      seminfo_semmnu         msginfo_msgmni*
    shminfo_shmmni*      seminfo_semaem         msginfo_msgtql*
                         seminfo_semume         msginfo_msgmnb*
                         seminfo_semusz         msginfo_msgmap
                         seminfo_semmap         msginfo_msgseg
                         seminfo_semmsl*
                         seminfo_semopm*
                         seminfo_semmni*


   values ending in * are technically obsolete, but if they are present
   in the /etc/system file then at boot the kernel will translate the
   values into global resource controls. 

have a look at: "prctl $$"

regards PRESSY

Thank you all for your help,
Just one more question I have checked all that you have told me but what I couldnt find in SUN docs is how to modify the default value of process.max-sem-ops by default is 512 but how do you calculate such value??

Thanks once again

Hello again, still trying to get this to work.

Can anyone help me by telling me if these settings look ok?
and if yes where can I include process.max-sem-ops?

root@myserver# cat /etc/project
system:0::::
user.root:1::::
noproject:2::::
default:3::::
group.staff:10::::
PRD:200:Baan System Kernel Parameters:bsp,oracle:rocess.max-sem-nsems=(priv,2048,deny);project.max-sem-ids=(priv,1024,deny);project.max-shm-ids=(priv,256,deny);project.max-shm-memory=(priv,18446744073709551615,deny)

? what's wrong with the syntax you used before ?

small example, i will add your process.max-sem-ops:

root@mp-wst01 # su - pressy 
pressy@mp-wst01 #
pressy@mp-wst01 # prctl -n process.max-sem-ops $$
process: 16510: -ksh
NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
process.max-sem-ops
        privileged        512       -   deny                                 -
        system          2,15G     max   deny                                 -
pressy@mp-wst01 # exit
root@mp-wst01 # projmod -a -K "process.max-sem-ops=(priv,1024,deny)" user.pressy
root@mp-wst01 # su - pressy 
pressy@mp-wst01 #
pressy@mp-wst01 # prctl -n process.max-sem-ops $$
process: 16574: -ksh
NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
process.max-sem-ops
        privileged      1,02K       -   deny                                 -
        system          2,15G     max   deny                                 -
pressy@mp-wst01 #

should work....

regards PRESSY

pressy, sysgate,

Thank you for your the promt response, the issue was solved, I mispelled a word. And also found that the correct value for such semaphore depends directly from the application. So we must consult with the application vendor to check the semaphores and values.

Thank you all for your great support!!!!!

Hello,

I am getting disk error messages and need to know if the following settings are required settings, and if they are, where are these setting set.

set sd:sd_max_throttle = 20
set sd:sd_io_time = 0x3c

Thank you,
Liz

these settings depends on your storage box, i've often seen different values for them. if these are vendor recommendations i would use them. anyhow, you have to write this scsi-settings into your /etc/system, you will need a reboot to activate them...

regards PRESSY