<?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: Semaphores in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/semaphores/m-p/3148694#M157178</link>
    <description>I took another look, the system wide limit on semaphores is controlled by the semmns kernel parameter.  Run "kmtune |grep semmns" and you'll see what your limit is now.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
    <pubDate>Thu, 18 Dec 2003 14:20:18 GMT</pubDate>
    <dc:creator>Pete Randall</dc:creator>
    <dc:date>2003-12-18T14:20:18Z</dc:date>
    <item>
      <title>Semaphores</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/semaphores/m-p/3148690#M157174</link>
      <description>I have an N4000 server running 11i.  Databse is Progress.&lt;BR /&gt;&lt;BR /&gt;Question:&lt;BR /&gt;Is there a way to find out how many semaphores an id is using?&lt;BR /&gt;&lt;BR /&gt;Is there a limit or max value for semaphores a system can have?  All replies are appreciated.</description>
      <pubDate>Thu, 18 Dec 2003 14:04:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/semaphores/m-p/3148690#M157174</guid>
      <dc:creator>Global Server Operation</dc:creator>
      <dc:date>2003-12-18T14:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Semaphores</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/semaphores/m-p/3148691#M157175</link>
      <description>The ipcs -s command will show semaphores in use.  There are several semaphore related kernel parameters:&lt;BR /&gt;semmap  &lt;BR /&gt;semmni                    &lt;BR /&gt;semmns                    &lt;BR /&gt;semmnu                    &lt;BR /&gt;semmsl&lt;BR /&gt;&lt;BR /&gt;and possibly others.  I think semmni is the one you're interested in.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 18 Dec 2003 14:08:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/semaphores/m-p/3148691#M157175</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-12-18T14:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Semaphores</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/semaphores/m-p/3148692#M157176</link>
      <description>ipcs -s --&amp;gt;semaphores&lt;BR /&gt;ipcs -q --&amp;gt;message queue&lt;BR /&gt;ipcs -m --&amp;gt;shared memory</description>
      <pubDate>Thu, 18 Dec 2003 14:12:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/semaphores/m-p/3148692#M157176</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2003-12-18T14:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Semaphores</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/semaphores/m-p/3148693#M157177</link>
      <description>I looked at the ipcs -s command.  Is there a max limit on these parameters?</description>
      <pubDate>Thu, 18 Dec 2003 14:14:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/semaphores/m-p/3148693#M157177</guid>
      <dc:creator>Global Server Operation</dc:creator>
      <dc:date>2003-12-18T14:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Semaphores</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/semaphores/m-p/3148694#M157178</link>
      <description>I took another look, the system wide limit on semaphores is controlled by the semmns kernel parameter.  Run "kmtune |grep semmns" and you'll see what your limit is now.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 18 Dec 2003 14:20:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/semaphores/m-p/3148694#M157178</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-12-18T14:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Semaphores</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/semaphores/m-p/3148695#M157179</link>
      <description>The kernel parms already mentionned by Pete are the ones tha tdetermine the limits on the semaphores. &lt;BR /&gt;&lt;BR /&gt;semaem -&amp;gt; Max Value for Adjust on Exit Semaphore&lt;BR /&gt;semmap -&amp;gt; Max number of semaphore map entries&lt;BR /&gt;semmni -&amp;gt; Number of semaphore identifiers&lt;BR /&gt;semmns -&amp;gt; Max Number of semaphores&lt;BR /&gt;semmnu -&amp;gt; Number of semaphores undo structures&lt;BR /&gt;semmsl -&amp;gt; Max number of semaphores per ID&lt;BR /&gt;semume -&amp;gt; Semaphore Undo Entries per process&lt;BR /&gt;semvmx -&amp;gt; Semaphore max value&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Dec 2003 14:20:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/semaphores/m-p/3148695#M157179</guid>
      <dc:creator>Marco Santerre</dc:creator>
      <dc:date>2003-12-18T14:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Semaphores</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/semaphores/m-p/3148696#M157180</link>
      <description>When asked like that the answer is no; however, ipcs -sa will give you the number in the NSEMS columns that the shmid was created with via the semget() system call. The problem is that I could create a shmid with perhaps 64 semaphores but only use 1. There is no way to know how many are actually being "used". Even looking at the values of the semaphores is no real answer because it is up to the programmer as to the meaning of a given value.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The values that are of concern to you are:&lt;BR /&gt;semmni - maximum # of system-wide shmid's &lt;BR /&gt;semmns - maximum # of system-wide sema4's&lt;BR /&gt;semmsl - maximum # of sema4's associated with any single shmid.&lt;BR /&gt;&lt;BR /&gt;If you are having problems with sema4's, you should capture the exit status ,${?}, (hopefully, the programmer was a disciplined individual and return errno as the exit status) and then compare that value to the possible errno values in the semget, semctl, and semop man pages. &lt;BR /&gt;</description>
      <pubDate>Thu, 18 Dec 2003 14:39:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/semaphores/m-p/3148696#M157180</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-12-18T14:39:33Z</dc:date>
    </item>
  </channel>
</rss>

