<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Determining Semaphore usage in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/determining-semaphore-usage/m-p/2500398#M882971</link>
    <description>hmmm...seems my keyboard is sticking...where you see fugres...it should be f i g u r e s..&lt;BR /&gt;&lt;BR /&gt;sorry&lt;BR /&gt;/rcw</description>
    <pubDate>Fri, 02 Mar 2001 18:45:24 GMT</pubDate>
    <dc:creator>Rita C Workman</dc:creator>
    <dc:date>2001-03-02T18:45:24Z</dc:date>
    <item>
      <title>Determining Semaphore usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/determining-semaphore-usage/m-p/2500392#M882965</link>
      <description>After a backup in whichour Oracle database is shitdown then started, the start fails. Our DBA says:&lt;BR /&gt;&lt;BR /&gt;On Feb. 22nd, we did reduce  the number of processes (connections ) in Oracle due to the following problem. The  operating system was not able to start the Oracle database after the COLD backup, but the database could be started manually. It was diagnosed to be related to semaphores. Since DBA group could not change the number of semaphores (Brian was out of the office ), we reduced  the number of processes (connections)  from 100 to 90. The number of semaphores on that box was 100. The number of semaphores should be at least 10% more than the number of processes.  &lt;BR /&gt;&lt;BR /&gt;Our semaphore kernel paramaters are:&lt;BR /&gt;&lt;BR /&gt;semaem   16384&lt;BR /&gt;semmap   3202&lt;BR /&gt;semmni   3200&lt;BR /&gt;semmns   6400&lt;BR /&gt;semmnu   1600&lt;BR /&gt;semume   64&lt;BR /&gt;semvmx   32768&lt;BR /&gt;&lt;BR /&gt;To me its sees like we have more than enough semaphore sets and semaphores. While running there are 90 semaphores in use by the Oracle SGA.&lt;BR /&gt;&lt;BR /&gt;Is ther a way to determine how many semaphores are in use other than ipcs -sob, which does not seem to be accurate? &lt;BR /&gt;&lt;BR /&gt;Also does anyone know what may be causing this problem?</description>
      <pubDate>Fri, 02 Mar 2001 15:43:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/determining-semaphore-usage/m-p/2500392#M882965</guid>
      <dc:creator>Tony Williams</dc:creator>
      <dc:date>2001-03-02T15:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Determining Semaphore usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/determining-semaphore-usage/m-p/2500393#M882966</link>
      <description>For monitoring the request/seg for semaphores, with the following command:&lt;BR /&gt;&lt;BR /&gt;sar -m &lt;BR /&gt;&lt;BR /&gt;eg, sar -m 1 10. &lt;BR /&gt;&lt;BR /&gt;MDF</description>
      <pubDate>Fri, 02 Mar 2001 15:47:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/determining-semaphore-usage/m-p/2500393#M882966</guid>
      <dc:creator>Marcelo De Florio</dc:creator>
      <dc:date>2001-03-02T15:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Determining Semaphore usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/determining-semaphore-usage/m-p/2500394#M882967</link>
      <description>You semaphore parameters look fine to me as well.  What was ther error message given when Oracle failed to restart?  Any relevant messages given in the Oracle alert.log?  Does the init.ora file specify "processes = 90"?  That is the parameter which determines how many semaphores are allocated for Oracle.</description>
      <pubDate>Fri, 02 Mar 2001 15:53:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/determining-semaphore-usage/m-p/2500394#M882967</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2001-03-02T15:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Determining Semaphore usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/determining-semaphore-usage/m-p/2500395#M882968</link>
      <description>Yes Jim,&lt;BR /&gt;&lt;BR /&gt;the init.ora processes=90 was changed from processes=100 so that Oracle could start, I do not have the info from the alert.log on this date.</description>
      <pubDate>Fri, 02 Mar 2001 16:05:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/determining-semaphore-usage/m-p/2500395#M882968</guid>
      <dc:creator>Tony Williams</dc:creator>
      <dc:date>2001-03-02T16:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Determining Semaphore usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/determining-semaphore-usage/m-p/2500396#M882969</link>
      <description>I know this&lt;BR /&gt;to calculate the # for SEMMNS, use this formula&lt;BR /&gt;sum the # of processes for each oracle DB except the largest one. then add (2 * the # of processes to the largest processes) then add &lt;BR /&gt;(10 * the number of databases).&lt;BR /&gt;&lt;BR /&gt;This is only for oracle8i, if you have other programs which use shared memory and semaphore you need to adjust the value. &lt;BR /&gt;&lt;BR /&gt;Your backup program/tool is using shared memory and semaphores and that is why the database could not start. You may wanna consider increasing SEMMNS parameter.</description>
      <pubDate>Fri, 02 Mar 2001 17:04:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/determining-semaphore-usage/m-p/2500396#M882969</guid>
      <dc:creator>ajax13</dc:creator>
      <dc:date>2001-03-02T17:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Determining Semaphore usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/determining-semaphore-usage/m-p/2500397#M882970</link>
      <description>Well, different versions of Oracle make more demands (like Oracle 8i..) but the following is the basic formula I use to set up semaphores in our kernels:&lt;BR /&gt;&lt;BR /&gt;1. For each db instance you wish to run list out the processes parm from the init&lt;SID&gt;.ora file.&lt;BR /&gt;2. For MIPS based machines only: add 1 to each of these figures. Kepp this list of gures for use as the 'oraproc' parm in step 4.  &lt;BR /&gt;3. Sum these fugres.&lt;BR /&gt;   The figure you have is the # of semaphores required by Oracle to start ALL db's.  Add to this any other system requirements and sensure SEMMNS is AT LEAST this value.&lt;BR /&gt;  i.e. SEMMS &amp;gt;= SUM of 'processes' for all db's&lt;BR /&gt;                      + 1 per database (MIPS only)&lt;BR /&gt;                       + other system requirements&lt;BR /&gt;4. Semaphores are allocated by Unix in 'sets' of up to SEMMSL semaphores per set.  You can have a MAXIMUM of SEMMNI sets on the system at any one time.  SEMMSL is an arbitrary figure which is best set to a round figure no smaller that the smallest 'processes' figure for any db on the system.  This is not a requirement though.&lt;BR /&gt;&lt;BR /&gt;Note that SEMMSL is not used on all Unix platfors.  eg: hpux does not have a SEMMSL limit on the # of semaphores in any one set.&lt;BR /&gt;&lt;BR /&gt;To determine Oracle requirements for SEMMNI:&lt;BR /&gt;   Take each figure from step 2 &amp;amp; substitue it for ORAPROC below:&lt;BR /&gt;   Sets requred for Instance = (ORAPROC / SEMMSL ) rounded UP.&lt;BR /&gt;&lt;BR /&gt;Sum these fugres for all instances.  This gives you Oracle's SEMMNI requirement.  Add to this any other system requirements.&lt;BR /&gt;&lt;BR /&gt;System requirements are generally 10% above what Oracle requires. however you need to take into account any other programs that require semaphores.&lt;BR /&gt;&lt;BR /&gt;5. On MIPS systems SEMMNU should be set at least equal to SEMMS.&lt;BR /&gt;6. Oracle 8.0.x and 89.1.x try to allocate twice as many semaphores as are in the "init&lt;SID&gt;.ora" file on startup.  For ex: if processes = 200, ORacle will need 400 to startup the SGA. This needs to be part of your calculations.&lt;BR /&gt;Ex: If you have 3 db's and the init.ora files have 100, 150 and 200 processes allocated for ea. db then you add these up = 450 + 30 = 450 and an extra 10 = 480..I would then round this up to 500 . Now you would need to set SEMMS to at twice this number (500 * 2 = 1000 semms).&lt;BR /&gt;And don't forget that semmap you add 2 more to so SEMMAP would be 1000 + 2 = 10002.&lt;BR /&gt;&lt;BR /&gt;If all you using is 90 processes and only running 1 db instance...then I'd relook at those numbers..&lt;BR /&gt;&lt;BR /&gt;Just my 2cents,&lt;BR /&gt;/rcw&lt;/SID&gt;&lt;/SID&gt;</description>
      <pubDate>Fri, 02 Mar 2001 17:09:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/determining-semaphore-usage/m-p/2500397#M882970</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2001-03-02T17:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Determining Semaphore usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/determining-semaphore-usage/m-p/2500398#M882971</link>
      <description>hmmm...seems my keyboard is sticking...where you see fugres...it should be f i g u r e s..&lt;BR /&gt;&lt;BR /&gt;sorry&lt;BR /&gt;/rcw</description>
      <pubDate>Fri, 02 Mar 2001 18:45:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/determining-semaphore-usage/m-p/2500398#M882971</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2001-03-02T18:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Determining Semaphore usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/determining-semaphore-usage/m-p/2500399#M882972</link>
      <description>I would like to thank everyone for the info however, after doing all the math it seems like I need 100 semaphores and at more 200 and my kernel is set to 6400, which should be more than enough, so as of this minute Its a mystery as to why Oracle will not start. Sar -m is about 2 sema/s and ipcs -sob shows 100 semaphores in use. I will create a cron job to look at ipcs and sar while Oracle is starting so I can get a better picture.</description>
      <pubDate>Fri, 02 Mar 2001 19:09:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/determining-semaphore-usage/m-p/2500399#M882972</guid>
      <dc:creator>Tony Williams</dc:creator>
      <dc:date>2001-03-02T19:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Determining Semaphore usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/determining-semaphore-usage/m-p/2500400#M882973</link>
      <description>Tony, please take a look at this thread and check the parms it mentions.....&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support.external.hp.com/cki/bin/doc.pl/sid=ace24a220a8ea2c2d8/screen=ckiDisplayDocument?docId=200000038532536" target="_blank"&gt;http://us-support.external.hp.com/cki/bin/doc.pl/sid=ace24a220a8ea2c2d8/screen=ckiDisplayDocument?docId=200000038532536&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;/rcw</description>
      <pubDate>Fri, 02 Mar 2001 21:44:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/determining-semaphore-usage/m-p/2500400#M882973</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2001-03-02T21:44:15Z</dc:date>
    </item>
  </channel>
</rss>

