<?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: viewing semaphore usage in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/viewing-semaphore-usage/m-p/5061745#M436902</link>
    <description>Excuse me while I go bang my head against a wall.  That is exactly it.  If I sum up that NSEMS column, I see 2905 semaphores in use.  Now I know what is hitting me.</description>
    <pubDate>Mon, 06 Aug 2007 15:53:45 GMT</pubDate>
    <dc:creator>Ben Dehner</dc:creator>
    <dc:date>2007-08-06T15:53:45Z</dc:date>
    <item>
      <title>viewing semaphore usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/viewing-semaphore-usage/m-p/5061743#M436900</link>
      <description>I have a system running 16 Oracle instances.  I tried to start up another instance, and got the following message:&lt;BR /&gt;&lt;BR /&gt;ORA-27300: OS system dependent operation:semget failed with status: 28&lt;BR /&gt;ORA-27301: OS failure message: No space left on device&lt;BR /&gt;&lt;BR /&gt;Apparently, a semget() call failed with ENOSPC.  I had run out of semaphores.&lt;BR /&gt;&lt;BR /&gt;Here's where I get confused.  On this system (HPUX 11.11), semmni = 2600, and semmns = 3000.  If I do ipcs -s, I see 74 semapohres, and glance likewise shows me 74 semaphores.  This just doesn't add up.  Where have all my semaphores gone, or what other parameter/resource am I exhausting? If I am near a threshold where I can't start up any more instances without re-configuring the kernel, is there some way (other than trial and error) to see what resource I need to increase?</description>
      <pubDate>Mon, 06 Aug 2007 15:19:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/viewing-semaphore-usage/m-p/5061743#M436900</guid>
      <dc:creator>Ben Dehner</dc:creator>
      <dc:date>2007-08-06T15:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: viewing semaphore usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/viewing-semaphore-usage/m-p/5061744#M436901</link>
      <description>Ben,&lt;BR /&gt;&lt;BR /&gt;Are you sure you're looking at the right column, cos I have a little workstation with 2 oracle databases on it and I'm using well over 100 semaphores.&lt;BR /&gt;&lt;BR /&gt;Are you confusing semaphore sets (semmni) for which you see one line per set in 'ipcs -s' (that's what glance -t shows you as well), with individual semaphores (semmns), for which there can be up to 500 (IIRC) in a set. Individual semaphores you only see with 'ipcs -sa' - look at the NSEMS column. &lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Mon, 06 Aug 2007 15:43:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/viewing-semaphore-usage/m-p/5061744#M436901</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2007-08-06T15:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: viewing semaphore usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/viewing-semaphore-usage/m-p/5061745#M436902</link>
      <description>Excuse me while I go bang my head against a wall.  That is exactly it.  If I sum up that NSEMS column, I see 2905 semaphores in use.  Now I know what is hitting me.</description>
      <pubDate>Mon, 06 Aug 2007 15:53:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/viewing-semaphore-usage/m-p/5061745#M436902</guid>
      <dc:creator>Ben Dehner</dc:creator>
      <dc:date>2007-08-06T15:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: viewing semaphore usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/viewing-semaphore-usage/m-p/5061746#M436903</link>
      <description>See above.   Thanks.</description>
      <pubDate>Mon, 06 Aug 2007 15:56:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/viewing-semaphore-usage/m-p/5061746#M436903</guid>
      <dc:creator>Ben Dehner</dc:creator>
      <dc:date>2007-08-06T15:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: viewing semaphore usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/viewing-semaphore-usage/m-p/5061747#M436904</link>
      <description>Actually part of your confusion is not your fault because the man 2 shmget page is in error. It states that errno is set to ENOSPC when the maximum number of allowed sema4 identifiers is exceeded (semmni). That statement is certainly true but no mention is made if the system-wide maximum number of sema's (semmns) is exceeded. The SAM help for semmns does indicate that errno can be set to ENOSPC eventhough the semget man page does not. In any event, you really need to bump semmns up to something in the 32-64Ki range.&lt;BR /&gt;&lt;BR /&gt;I'm going to open a support case about the man page.</description>
      <pubDate>Mon, 06 Aug 2007 16:44:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/viewing-semaphore-usage/m-p/5061747#M436904</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-08-06T16:44:13Z</dc:date>
    </item>
  </channel>
</rss>

