The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Kernel parameters. bhagat.singh-j HP-UX 1 01-28-2008 05:58 AM
tuning kernel parameters JamesByars UNIX for Advanced & Expert Users 4 01-13-2008 05:25 PM
How to tune kernel Parameters in Solaris 10,9 & how to measure performance neel.gurjar SUN Solaris 2 09-18-2007 09:42 AM
Need to look at Kernel parameters impunchdrunk HP-UX 3 07-04-2007 03:12 AM
kernel parameters malcqv HP-UX 2 11-27-2006 08:09 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-17-2007
AQG AQG is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 12
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 (permalink)  
Old 08-17-2007
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,322
"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 (permalink)  
Old 08-17-2007
pressy's Avatar
pressy pressy is offline Forum Staff  
solaris cultist
  
 

Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 726
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 (permalink)  
Old 08-17-2007
AQG AQG is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 12
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 (permalink)  
Old 08-20-2007
AQG AQG is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 12
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 (permalink)  
Old 08-21-2007
pressy's Avatar
pressy pressy is offline Forum Staff  
solaris cultist
  
 

Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 726
? 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 (permalink)  
Old 08-22-2007
AQG AQG is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 12
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!!!!!
Closed Thread

Bookmarks

Tags
solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:43 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0