<?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: shared memory not released in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-not-released/m-p/2770508#M74512</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Have you done ps -fu daemon?&lt;BR /&gt;&lt;BR /&gt;What does this say?&lt;BR /&gt;&lt;BR /&gt;Chris</description>
    <pubDate>Tue, 23 Jul 2002 15:43:51 GMT</pubDate>
    <dc:creator>Christopher McCray_1</dc:creator>
    <dc:date>2002-07-23T15:43:51Z</dc:date>
    <item>
      <title>shared memory not released</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-not-released/m-p/2770507#M74511</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;I'm looking for q way to trace which deamon has used some shared librairies and never released them. In the attached document there is an outpu of ipcs -a command. You can see that shared memories are overflown because of on deamon which may crash without releasing its associated shared memory.&lt;BR /&gt;If someone has an Idea about how to investigate this problem, I would appreciate.&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Tue, 23 Jul 2002 15:41:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-not-released/m-p/2770507#M74511</guid>
      <dc:creator>Corinne HEINRICH</dc:creator>
      <dc:date>2002-07-23T15:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: shared memory not released</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-not-released/m-p/2770508#M74512</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Have you done ps -fu daemon?&lt;BR /&gt;&lt;BR /&gt;What does this say?&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Tue, 23 Jul 2002 15:43:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-not-released/m-p/2770508#M74512</guid>
      <dc:creator>Christopher McCray_1</dc:creator>
      <dc:date>2002-07-23T15:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: shared memory not released</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-not-released/m-p/2770509#M74513</link>
      <description>&lt;BR /&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;you can release them by ipcrm command.&lt;BR /&gt;ipcrm -m id# You need to remove only thos which has 0 NATTACH..&lt;BR /&gt;&lt;BR /&gt;Goodluck&lt;BR /&gt;-USA..</description>
      <pubDate>Tue, 23 Jul 2002 15:47:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-not-released/m-p/2770509#M74513</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2002-07-23T15:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: shared memory not released</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-not-released/m-p/2770510#M74514</link>
      <description>thanks all,&lt;BR /&gt;&lt;BR /&gt;for ps -fu deamon, there is no result. the list is empty.&lt;BR /&gt;&lt;BR /&gt;For ipcrm, I've tested it before qnd I cannot kill deamon shared memory.&lt;BR /&gt;&lt;BR /&gt;henry</description>
      <pubDate>Tue, 23 Jul 2002 16:00:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-not-released/m-p/2770510#M74514</guid>
      <dc:creator>Corinne HEINRICH</dc:creator>
      <dc:date>2002-07-23T16:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: shared memory not released</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-not-released/m-p/2770511#M74515</link>
      <description>Hi Corinne,&lt;BR /&gt;&lt;BR /&gt;Got a similar problem where the program was killed and the shared memory not released.&lt;BR /&gt;I wrote a script to detect if any of the process attached to the shared memory is still active. This generates a "ipcrm command" into a file that is then executed.&lt;BR /&gt;cf. attached script&lt;BR /&gt;&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Tue, 23 Jul 2002 16:00:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-not-released/m-p/2770511#M74515</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2002-07-23T16:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: shared memory not released</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-not-released/m-p/2770512#M74516</link>
      <description>You should be able to ipcrm daemon memory as superuser.&lt;BR /&gt;&lt;BR /&gt;As far as tracing which daemon - assuming the pids are dead at this time the only thing I can think of would be to have a script running once a second to parse the output of ipcs -ma, get only the daemon lines, cut out the LPID or CPID and do a ps -ef |grep &lt;LPID&gt; (or equivalent). The pid is the only data about the processes that gets embedded in the shared memory descriptor so you'll have to catch one before it dies.&lt;/LPID&gt;</description>
      <pubDate>Tue, 23 Jul 2002 16:21:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-not-released/m-p/2770512#M74516</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2002-07-23T16:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: shared memory not released</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-not-released/m-p/2770513#M74517</link>
      <description>One thing to keep in mind that while NATTACH=0 is a necessary condition; it may not be a sufficient condition. You see, some software is written to expect the presense of a shared memory segment that may well have been created by another process. While at the moment, no processes are attached to that segment, the application might well crash if it can't find the expected shm segment when it is started. It depends on how the software was written.</description>
      <pubDate>Tue, 23 Jul 2002 16:48:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-not-released/m-p/2770513#M74517</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-07-23T16:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: shared memory not released</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-not-released/m-p/2770514#M74518</link>
      <description>As mentioned, once the process is gone (and did not properly release shared memory) there is no way to track it. Shared memory can be created by one process and then used by other processes without the original process staying around.&lt;BR /&gt;&lt;BR /&gt;As you've seen, the daemon is crashing and leaving the segments orphaned. There are two choices:&lt;BR /&gt;&lt;BR /&gt;- fix the daemon so it doesn't crash&lt;BR /&gt;- reboot every day&lt;BR /&gt;&lt;BR /&gt;Sometimes you have weigh the pain associated with getting a broken process fixed versus the pain of rebooting.  For more details (beyond ipcs) about shared memory, get a copy of shminfo from:&lt;BR /&gt;&lt;BR /&gt;ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/shminfo/</description>
      <pubDate>Tue, 23 Jul 2002 22:03:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-not-released/m-p/2770514#M74518</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-07-23T22:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: shared memory not released</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-not-released/m-p/2770515#M74519</link>
      <description>Corinne,&lt;BR /&gt;&lt;BR /&gt;If you have Glance, it may be helpful to use it.&lt;BR /&gt;The attached file is "adviser syntax" which I have used in the past for troubleshooting similar problems.&lt;BR /&gt;&lt;BR /&gt;Instructions:&lt;BR /&gt;&lt;BR /&gt;1.  Save the attachment to your current directory - let's call it shmem.syntax&lt;BR /&gt;&lt;BR /&gt;2.  Run&lt;BR /&gt;&lt;BR /&gt;glance -adviser_only -syntax shmem.syntax -j 60 -f /tmp/glance.out&lt;BR /&gt;&lt;BR /&gt;3.  View the log file:&lt;BR /&gt;&lt;BR /&gt;/tmp/glance.out&lt;BR /&gt;&lt;BR /&gt;Regards ... Mladen</description>
      <pubDate>Wed, 24 Jul 2002 13:43:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-not-released/m-p/2770515#M74519</guid>
      <dc:creator>Mladen Despic</dc:creator>
      <dc:date>2002-07-24T13:43:05Z</dc:date>
    </item>
  </channel>
</rss>

