<?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: Lost Shared Memory Segments in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lost-shared-memory-segments/m-p/2645436#M44704</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;I'm not sure that I understand your question. Did you set these up as IPC_PRIVATE? You might use ftok to set up a key and then recovery becomes simple. If you will post just a bit of the code or outline the process better, I or someone else can probably help more.&lt;BR /&gt;</description>
    <pubDate>Tue, 15 Jan 2002 17:11:20 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2002-01-15T17:11:20Z</dc:date>
    <item>
      <title>Lost Shared Memory Segments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lost-shared-memory-segments/m-p/2645435#M44703</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I just wanted to ask all here, if anyone had some good suggestions as how to go about recovering lost shared memory segments.  i.e. segments that we allocated and then not returned by an application.  Thanks, if more detail is need, I can supply it.</description>
      <pubDate>Tue, 15 Jan 2002 16:54:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lost-shared-memory-segments/m-p/2645435#M44703</guid>
      <dc:creator>Alex Green</dc:creator>
      <dc:date>2002-01-15T16:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Lost Shared Memory Segments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lost-shared-memory-segments/m-p/2645436#M44704</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;I'm not sure that I understand your question. Did you set these up as IPC_PRIVATE? You might use ftok to set up a key and then recovery becomes simple. If you will post just a bit of the code or outline the process better, I or someone else can probably help more.&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jan 2002 17:11:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lost-shared-memory-segments/m-p/2645436#M44704</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-01-15T17:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Lost Shared Memory Segments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lost-shared-memory-segments/m-p/2645437#M44705</link>
      <description>Start with:&lt;BR /&gt;&lt;BR /&gt;ipcs -bmop&lt;BR /&gt;&lt;BR /&gt;Look for NATTCH = 0 and determine if that segment is no longer necessary. Then use ipcrm to remove that segment.&lt;BR /&gt;&lt;BR /&gt;To get a better picture of shared memory, get a copy of shminfo from:&lt;BR /&gt;&lt;BR /&gt;ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/shminfo&lt;BR /&gt;&lt;BR /&gt;You'll also get a copy of a simple program to test shared memory allocation.</description>
      <pubDate>Tue, 15 Jan 2002 20:08:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lost-shared-memory-segments/m-p/2645437#M44705</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-01-15T20:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Lost Shared Memory Segments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lost-shared-memory-segments/m-p/2645438#M44706</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;I will add that NATTACH = 0 is a necessary but not always sufficient condition to detach a shared memory segment. It may be that a process created the segment for a group of processes to utilize. Just because no processes have it attached at the moment does not mean that it is always safe to remove.  A critical process could die or fail to start if it could not find the segment. I was reluctant to mention ipcrm until I knew a few more details. As usual with things UNIX, the answer is it depends.&lt;BR /&gt;&lt;BR /&gt;I will certainly concede that most of the time the NATTACH = 0 condition indicates that it is okay to blow this guy away.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jan 2002 20:18:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lost-shared-memory-segments/m-p/2645438#M44706</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-01-15T20:18:06Z</dc:date>
    </item>
  </channel>
</rss>

