<?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: Semaphore Issue in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/semaphore-issue/m-p/3597757#M829136</link>
    <description>hi &lt;BR /&gt;sometimes the application still ownes semaphores.&lt;BR /&gt;you can clean with the ipcrm command &lt;BR /&gt;example &lt;BR /&gt;ipcrm -s 28 &lt;BR /&gt;&lt;BR /&gt;regards.</description>
    <pubDate>Sat, 06 Aug 2005 06:36:09 GMT</pubDate>
    <dc:creator>Henk Geurts</dc:creator>
    <dc:date>2005-08-06T06:36:09Z</dc:date>
    <item>
      <title>Semaphore Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/semaphore-issue/m-p/3597755#M829134</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I would like to take the advise of group members on one of the errors recently recieved on one of the HP-UX 11.11 D330 system.&lt;BR /&gt;&lt;BR /&gt;The error recieved was as below&lt;BR /&gt;&lt;BR /&gt;sem_create(): can't lock&lt;BR /&gt;&lt;BR /&gt;Standard system error call I guess ?&lt;BR /&gt;&lt;BR /&gt;sia: [Fatal System Error; 04/08/2005 14:31:28]&lt;BR /&gt;Can't get/create semaphore. (28; No space left on device)&lt;BR /&gt;&lt;BR /&gt;This is an error recieved when we try to shutdown one application on HP-UX system.&lt;BR /&gt;It seems the system is not able to free semaphores .&lt;BR /&gt;kmtune output is as below&lt;BR /&gt;&lt;BR /&gt;sema                        1  -  1                                            &lt;BR /&gt;semaem                  16384  -  16384                                        &lt;BR /&gt;semmap                    502  -  (SEMMNI+2)                                   &lt;BR /&gt;semmni                    500  -  500                                          &lt;BR /&gt;semmns                   1500  -  1500                                         &lt;BR /&gt;semmnu                     30  -  30                                           &lt;BR /&gt;semmsl                   2048  Y  2048                                         &lt;BR /&gt;semume                     30  -  30                                           &lt;BR /&gt;semvmx                  32767  -  32767  &lt;BR /&gt;&lt;BR /&gt;Also ipcs -sbp gives output as below&lt;BR /&gt;&lt;BR /&gt;T      ID     KEY        MODE        OWNER     GROUP NSEMS    &lt;BR /&gt;Semaphores:                                                   &lt;BR /&gt;s       0 0x412007b2 --ra-ra-ra-      root      root     1    &lt;BR /&gt;s       1 0x4e100002 --ra-ra-ra-      root      root     2    &lt;BR /&gt;s       2 0x41240d47 --ra-ra-ra-      root      root     2    &lt;BR /&gt;s       3 0x00446f6e --ra-r--r--      root      root     1    &lt;BR /&gt;s       4 0x00446f6d --ra-r--r--      root      root     1    &lt;BR /&gt;s       5 0x01090522 --ra-r--r--      root      root     1    &lt;BR /&gt;s       6 0x61240626 --ra-ra-ra-      root      root     1    &lt;BR /&gt;s       7 0x73240626 --ra-ra-ra-      root      root     1                                                                                      &lt;BR /&gt;s       8 0x70240626 --ra-ra-ra-      root      root     1                                                                                      &lt;BR /&gt;s       9 0x69240626 --ra-ra-ra-      root      root     1                                                                                      &lt;BR /&gt;s      10 0x75240626 --ra-ra-ra-      root      root     1                                                                                      &lt;BR /&gt;s      11 0x63240626 --ra-ra-ra-      root      root     1                                                                                      &lt;BR /&gt;s      12 0x64240626 --ra-ra-ra-      root      root     1                                                                                      &lt;BR /&gt;s      13 0x66240626 --ra-ra-ra-      root      root     1                                                                                      &lt;BR /&gt;s      14 0x6c240626 --ra-ra-ra-      root      root     1                                                                                      &lt;BR /&gt;s      15 0x6d240626 --ra-ra-ra-      root      root     1                                                                                      &lt;BR /&gt;s      16 0x6f240626 --ra-ra-ra-      root      root     1                                                                                      &lt;BR /&gt;s      17 0x491c1cad --ra-r--r--      root      root     1                                                                                      &lt;BR /&gt;s      18 0x411001f9 --ra-ra-ra-      root      root     1                                                                                      &lt;BR /&gt;s      19 0x00000001 --ra-ra-ra-      root      root     1                                                                                      &lt;BR /&gt;s    5020 0x52240626 --ra-ra-ra-      root      root     1                                                                                      &lt;BR /&gt;s    8021 0xb57e5548 --ra-ra----    oracle       dba   204                                                                                      &lt;BR /&gt;s    1522 0xb2fe7568 --ra-ra----    oracle       dba    54                                                                                      &lt;BR /&gt;s     523 0x66052000 --ra-ra-ra-    tstdba       dba     3                                                                                      &lt;BR /&gt;s     524 0x66002053 --ra-ra-ra-    tstdba       dba     3                                                                                      &lt;BR /&gt;s     525 0x65052000 --ra-ra-ra-    dcsdba       dba     3                                                                                      &lt;BR /&gt;s     526 0x65002053 --ra-ra-ra-    dcsdba       dba     3                                                                                      &lt;BR /&gt;s      27 0x65012000 --ra-ra-ra-    dcsdba       dba     3                                                                                      &lt;BR /&gt;s      28 0x65012001 --ra-ra-ra-    dcsdba       dba     3     &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Is it possible to free sempahores in any way ?&lt;BR /&gt;I would like to go on for increasing the kernel parameter semmns as a last option.&lt;BR /&gt;&lt;BR /&gt;Thanx,&lt;BR /&gt;Himanshu</description>
      <pubDate>Fri, 05 Aug 2005 18:46:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/semaphore-issue/m-p/3597755#M829134</guid>
      <dc:creator>Himanshu_3</dc:creator>
      <dc:date>2005-08-05T18:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Semaphore Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/semaphore-issue/m-p/3597756#M829135</link>
      <description>Hihimanshu&lt;BR /&gt;&lt;BR /&gt;I have seen my application guys doing ipcs.zap &lt;USERNAME&gt; to release the semaphores used by the process started by that particular user.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;CS&lt;BR /&gt;&lt;BR /&gt;&lt;/USERNAME&gt;</description>
      <pubDate>Fri, 05 Aug 2005 22:02:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/semaphore-issue/m-p/3597756#M829135</guid>
      <dc:creator>saju_2</dc:creator>
      <dc:date>2005-08-05T22:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Semaphore Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/semaphore-issue/m-p/3597757#M829136</link>
      <description>hi &lt;BR /&gt;sometimes the application still ownes semaphores.&lt;BR /&gt;you can clean with the ipcrm command &lt;BR /&gt;example &lt;BR /&gt;ipcrm -s 28 &lt;BR /&gt;&lt;BR /&gt;regards.</description>
      <pubDate>Sat, 06 Aug 2005 06:36:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/semaphore-issue/m-p/3597757#M829136</guid>
      <dc:creator>Henk Geurts</dc:creator>
      <dc:date>2005-08-06T06:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Semaphore Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/semaphore-issue/m-p/3597758#M829137</link>
      <description>It is virtually impossible to determine if a semaphore can really be removed safely. Programs use these as flags for various purposes and since they are so small, you should increase the quantity (double or triple) the current value in the kernel. Also, if you kill any Oracle or other application programs using kill -9 then semaphores (and shared memory segments) will be left behind, but without useful flags as to whether they can be removed.</description>
      <pubDate>Sat, 06 Aug 2005 11:00:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/semaphore-issue/m-p/3597758#M829137</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-08-06T11:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Semaphore Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/semaphore-issue/m-p/3597759#M829138</link>
      <description>Proper way you can 'kill' semaphores is via the ipcrm command.  As Mr. Hassell says, you can't just kill things or even ipcrm kill things and ALWAYS be certain your getting the right application, when you have mutiple Oracle instances running.&lt;BR /&gt;&lt;BR /&gt;The problem is obviously in the application...if your trying to shutdown one application and it won't...then the appl needs to be looked at.  Otherwise, when you need to shut IT down you'll have to shut down everything on that box and reboot, cause your memory will never clean up unless you do.  With that scenario, mgmt may support forcing your developers/DBAs to review that code.&lt;BR /&gt;&lt;BR /&gt;Rgrds,&lt;BR /&gt;Rita</description>
      <pubDate>Sun, 07 Aug 2005 20:02:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/semaphore-issue/m-p/3597759#M829138</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2005-08-07T20:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Semaphore Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/semaphore-issue/m-p/3597760#M829139</link>
      <description>hi himashu&lt;BR /&gt;&lt;BR /&gt;The command:&lt;BR /&gt;&lt;BR /&gt;      ipcs -s&lt;BR /&gt;&lt;BR /&gt;will display information about active semaphores.&lt;BR /&gt;&lt;BR /&gt;Ipcrm(1) will remove one or more specified messages, semaphore or shared memory identifiers:&lt;BR /&gt;&lt;BR /&gt;     ipcrm -s semid&lt;BR /&gt;&lt;BR /&gt;Remove the semaphore identifier semid from the system and destroy the set of semaphores and data structure associated with it.&lt;BR /&gt;&lt;BR /&gt;bye&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Vinod</description>
      <pubDate>Sun, 07 Aug 2005 21:41:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/semaphore-issue/m-p/3597760#M829139</guid>
      <dc:creator>vinod_25</dc:creator>
      <dc:date>2005-08-07T21:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Semaphore Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/semaphore-issue/m-p/3597761#M829140</link>
      <description>hi all &lt;BR /&gt;it wasn't my intention to suggest to "kill semaphores" at random.&lt;BR /&gt;i meant that if an application is shut down in an hard way , there can still be semaphores which are not 'freed'.&lt;BR /&gt;for those the ipcrm command can be used.&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Aug 2005 00:40:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/semaphore-issue/m-p/3597761#M829140</guid>
      <dc:creator>Henk Geurts</dc:creator>
      <dc:date>2005-08-08T00:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Semaphore Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/semaphore-issue/m-p/3597762#M829141</link>
      <description>Rita, &lt;BR /&gt;                                       Do you thing doing a hardware reboot can free the semaphores       &lt;BR /&gt;and the problem would not be repeated in future. Is it an one      &lt;BR /&gt;off event ?                                                         &lt;BR /&gt;In my case, the oracle id is holding the maximum sempahores.       &lt;BR /&gt;Can their be any impact on oracle if I do a force semaphore        &lt;BR /&gt;release using one of the commands listed by forum members.         &lt;BR /&gt;                                                                   &lt;BR /&gt;Thanx,                                                             &lt;BR /&gt;Himanshu                                                           &lt;BR /&gt;</description>
      <pubDate>Mon, 08 Aug 2005 05:14:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/semaphore-issue/m-p/3597762#M829141</guid>
      <dc:creator>Himanshu_3</dc:creator>
      <dc:date>2005-08-08T05:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Semaphore Issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/semaphore-issue/m-p/3597763#M829142</link>
      <description>If you have enough semaphores for Oracle and all the other applications, then a reboot will fix the problem. However, this means that you will not add any more applications to your system that may need semaphores (or shared memory, etc). As mentioned, if anyone used the kill -9 command for programs that used semaphores, then those semaphores could be released--but only if you know that they are not used by any other program--virtuallu impossible to determine.&lt;BR /&gt; &lt;BR /&gt;You never want to release a semaphore that Oracle is using. A semaphore is much like a stop light for cars.  When the semaphore is set, cooperating processes are prevented from making changes to database elements until the semaphore is unset. If you remove the semaphore with ipcrm, the database can be thrown into chaos, possibly requiring hours of checking, or worse, a complete reload from a backup.&lt;BR /&gt; &lt;BR /&gt;Semaphores (and other kernel parameters) are designed to be adjusted to fit the needs of your system. If you don't have enough iinformation to change the kernel parameters, have HP or a consultant help you. It would be unwise to try to live with a shortage of semaphores (or any other kernel parameter)</description>
      <pubDate>Mon, 08 Aug 2005 07:09:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/semaphore-issue/m-p/3597763#M829142</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-08-08T07:09:18Z</dc:date>
    </item>
  </channel>
</rss>

