Kernel Parameters in Solaris 10


 
Thread Tools Search this Thread
Operating Systems Solaris Kernel Parameters in Solaris 10
# 1  
Old 08-17-2007
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!!
# 2  
Old 08-17-2007
"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 :

Quote:
set msgsys:msginfo_msgmax = 65535
set msgsys:msginfo_msgmnb = 65535
set msgsys:msginfo_msgmni = 7168
set msgsys:msginfo_msgtql = 7168
set msgsys:msginfo_msgssz = 16
set msgsys:msginfo_msgseg = 32767

set semsys:seminfo_semmni = 8192
set semsys:seminfo_semmns = 17204
set semsys:seminfo_semmnu = 8192
set semsys:seminfo_semume = 240
set semsys:seminfo_semmap = 1026
set semsys:seminfo_semopm = 200
set semsys:seminfo_semmsl = 200
set semsys:seminfo_semvmx = 32767

set semsys:seminfo_semmap = 1026
set semsys:seminfo_semopm = 200
set shmsys:shminfo_shmmax = 30074587545
set shmsys:shminfo_shmmax = 15037293773
set shmsys:shminfo_shmmni = 8192
set shmsys:shminfo_shmseg = 240
set shmsys:shminfo_shmmin = 1

set rlim_fd_cur=1024
set rlim_fd_max=34000
Your link doesn't work, here's the one from Sun's site.
# 3  
Old 08-17-2007
FYI:
The Solaris 10 Operating System introduces the following new resource controls to replace the old /etc/system tunables:
Code:
                              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:
Code:
    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.

Quote:
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.
have a look at: "prctl $$"

regards PRESSY
# 4  
Old 08-17-2007
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
# 5  
Old 08-20-2007
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)
# 6  
Old 08-21-2007
? what's wrong with the syntax you used before ?

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

Code:
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
# 7  
Old 08-22-2007
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!!!!!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

What exactly does Kernel parameters do ?

Virtual Machine running on VMWare workstation 9.2 os : RHEL 5.8 RAM : 2.5GB Swap : 2.6gb CPU : 1 virtual CPU Surprizingly I couldn't find much from googling on What exactly does Kernel parameters do ? I was under the impression that kernel parameters just set the limits/maximum for a... (2 Replies)
Discussion started by: John K
2 Replies

2. Solaris

Kernel parameters problem in Solaris 10

please tell me the list of kernel parameters in solaris10. Because we've a requirement in one project. Also tell me the importance of eah kernel parameter if possible. Thanks in Advance.:):cool: (2 Replies)
Discussion started by: vamshigvk475
2 Replies

3. Solaris

Setting kernel parameters in solaris 10

hi guys, Prior to the installation of IBM DB2 database on Solaris 10, i need to set the following parameters: kernel.shmmax (SHMMAX) 1 073 741 824 (64-bit kernel) kernel.sem (SEMMNI) 1 024 kernel.msgmni (MSGMNI) 1 024 kernel.msgmax (MSGMAX) 65 536 kernel.msgmnb ... (2 Replies)
Discussion started by: frum
2 Replies

4. Solaris

Kernel Parameters

Dear All, I have weblogic Portal Installed in the Server solaris 10. How can i verify whether all the kernel parameters are available for this Software and also another question is How to crosscheck a server ( Solaris 10 Sparc ) whether it has all the required kernel parameters. ... (2 Replies)
Discussion started by: jegaraman
2 Replies

5. Solaris

Kernel Parameters

Dear All, I want to check whether all essential kernel parameters are installed in my Solaris 10 System. Is there any way to find it. And also how to tune it. Kindly help. Thanks and Regards Rj (8 Replies)
Discussion started by: jegaraman
8 Replies

6. Solaris

Which file is read by kernel to set its default system kernel parameters values?

Hi gurus Could anybody tell me which file is read by kernel to set its default system kernal parameters values in solaris. Here I am not taking about /etc/system file which is used to load kernal modules or to change any default system kernal parameter value Is it /dev/kmem file or something... (1 Reply)
Discussion started by: girish.batra
1 Replies

7. HP-UX

Kernel parameters.

I've been trying to find out the following parameters of our Unix box: ==>OS version ==> patch level and the following kernel parameters =>maxfiles_lim =>maxvgs =>nproc =>msgmni =>ncsize =>nfile Could someone help me how would I find the above(commands)? Thanks, Bhagat (1 Reply)
Discussion started by: bhagat.singh-j
1 Replies

8. Solaris

How to tune kernel Parameters in Solaris 10,9 & how to measure performance

Hi, I want to tune my SUN servers for best performance. My servers are heavily loaded and used. They have Solaris 10. How to tune Kernel Parameters of solaris ? And How can I measue performance before changing parameters and after changing parameters ? Please help Thanks NeeleshG (2 Replies)
Discussion started by: neel.gurjar
2 Replies

9. HP-UX

Need to look at Kernel parameters

Hello all, Can anyone tell me the command line I can use to look at the following Kernel parameters: nfile maxfile maxfile_lim I'm using the Reflection manager connection to my Unix box so I can't use SAM. (3 Replies)
Discussion started by: impunchdrunk
3 Replies

10. HP-UX

kernel parameters

I want to change some kernel parameters in HP-UX11, to do with Oracle upgrade/install. I know this is done using SAM. I am told SAM will not let you enter values outside the allowable range. Could anyone tell me if they have experienced anything different? In Solaris, I would copy the... (2 Replies)
Discussion started by: malcqv
2 Replies
Login or Register to Ask a Question