<?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 segments cannot be removed? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-segments-cannot-be-removed/m-p/4058239#M737136</link>
    <description>&amp;gt;In this case memory is not used.&lt;BR /&gt;i guess you're not quite right here. memory usage dropped to 50% after killing all discovered processes (according to swapinfo). it was about 80% before.&lt;BR /&gt;&lt;BR /&gt;thanks anyway.</description>
    <pubDate>Wed, 22 Aug 2007 08:44:54 GMT</pubDate>
    <dc:creator>-error</dc:creator>
    <dc:date>2007-08-22T08:44:54Z</dc:date>
    <item>
      <title>shared memory segments cannot be removed?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-segments-cannot-be-removed/m-p/4058232#M737129</link>
      <description>hi&lt;BR /&gt;one of our server is suffering from inability to remove unowned shared memory segments.&lt;BR /&gt;for example:&lt;BR /&gt;[... cut ...]&lt;BR /&gt;sergey@storm:~$ ipcs -ompb | egrep "ID|0x00000000"&lt;BR /&gt;T         ID     KEY        MODE        OWNER     GROUP NATTCH      SEGSZ  CPID  LPID&lt;BR /&gt;m   59375632 0x00000000 D-rw-r-----    oracle       dba      9   33554432 15139 15740&lt;BR /&gt;m      65556 0x00000000 D-rw-r-----    oracle       dba      6 1112498176 21021 21021&lt;BR /&gt;m     196631 0x00000000 D-rw-r-----    oracle       dba      9  402653184 15139 15740&lt;BR /&gt;m     327704 0x00000000 D-rw-r-----    oracle       dba      9   33554432 15139 15740&lt;BR /&gt;m 1467154462 0x00000000 D-rw-r-----    oracle       dba      9   33554432 15139 15740&lt;BR /&gt;m  760610847 0x00000000 D-rw-r-----    oracle       dba      9   33554432 15139 15740&lt;BR /&gt;m  129859616 0x00000000 D-rw-r-----    oracle       dba      9   33554432 15139 15740&lt;BR /&gt;m 1469677601 0x00000000 D-rw-r-----    oracle       dba      9   33554432 15139 15740&lt;BR /&gt;m    1474594 0x00000000 D-rw-r-----    oracle       dba      9   33554432 15139 15740&lt;BR /&gt;m  109183011 0x00000000 D-rw-r-----    oracle       dba      9   33554432 15139 15740&lt;BR /&gt;m     163876 0x00000000 D-rw-r-----    oracle       dba      9  134217728 15139 15740&lt;BR /&gt;m     163877 0x00000000 D-rw-r-----    oracle       dba      9   83886080 15139 15740&lt;BR /&gt;sergey@storm:~$ sudo ipcrm -m 59375632&lt;BR /&gt;Password:&lt;BR /&gt;ipcrm: shmid(59375632): not found&lt;BR /&gt;[... cut ...]&lt;BR /&gt;there is no processes with PIDs listed above in system:&lt;BR /&gt;[... cut ...]&lt;BR /&gt;sergey@storm:~$ ps -ef | egrep "15139|15740|21021" | grep -v grep&lt;BR /&gt;sergey@storm:~$&lt;BR /&gt;[... cut ...]&lt;BR /&gt;but nevertheless ipcs showing non-zero NATTACH.&lt;BR /&gt;what can be prblem with? m.b. there is some patch or something else?</description>
      <pubDate>Wed, 22 Aug 2007 02:58:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-segments-cannot-be-removed/m-p/4058232#M737129</guid>
      <dc:creator>-error</dc:creator>
      <dc:date>2007-08-22T02:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: shared memory segments cannot be removed?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-segments-cannot-be-removed/m-p/4058233#M737130</link>
      <description>What is your OS version ? &lt;BR /&gt;&lt;BR /&gt;For 11.11 there is a patch PHKL_27686 (replaced by PHKL_30992) which fix the problem.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Wed, 22 Aug 2007 03:21:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-segments-cannot-be-removed/m-p/4058233#M737130</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2007-08-22T03:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: shared memory segments cannot be removed?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-segments-cannot-be-removed/m-p/4058234#M737131</link>
      <description>ouch. my fault.&lt;BR /&gt;HP-UX is 11.23 on ia64 platform.</description>
      <pubDate>Wed, 22 Aug 2007 04:56:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-segments-cannot-be-removed/m-p/4058234#M737131</guid>
      <dc:creator>-error</dc:creator>
      <dc:date>2007-08-22T04:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: shared memory segments cannot be removed?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-segments-cannot-be-removed/m-p/4058235#M737132</link>
      <description>Actually the memory segment is removed - see D flag. It will disappear&lt;BR /&gt;when the last process attached to the segment detaches it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Wed, 22 Aug 2007 06:37:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-segments-cannot-be-removed/m-p/4058235#M737132</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2007-08-22T06:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: shared memory segments cannot be removed?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-segments-cannot-be-removed/m-p/4058236#M737133</link>
      <description>And forgot this one - check which process is using segment(s) with shminfo. This is unsupported tool - ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Wed, 22 Aug 2007 06:43:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-segments-cannot-be-removed/m-p/4058236#M737133</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2007-08-22T06:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: shared memory segments cannot be removed?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-segments-cannot-be-removed/m-p/4058237#M737134</link>
      <description>you mean thats just a record about shared segment and it does not consume memory?</description>
      <pubDate>Wed, 22 Aug 2007 08:00:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-segments-cannot-be-removed/m-p/4058237#M737134</guid>
      <dc:creator>-error</dc:creator>
      <dc:date>2007-08-22T08:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: shared memory segments cannot be removed?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-segments-cannot-be-removed/m-p/4058238#M737135</link>
      <description>See man page for ipcs :&lt;BR /&gt;&lt;BR /&gt; D    The associated shared memory segment has been&lt;BR /&gt;                               removed.  It will disappear when the last&lt;BR /&gt;                               process attached to the segment detaches it.&lt;BR /&gt;&lt;BR /&gt;In this case memory is not used.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Wed, 22 Aug 2007 08:13:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-segments-cannot-be-removed/m-p/4058238#M737135</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2007-08-22T08:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: shared memory segments cannot be removed?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-segments-cannot-be-removed/m-p/4058239#M737136</link>
      <description>&amp;gt;In this case memory is not used.&lt;BR /&gt;i guess you're not quite right here. memory usage dropped to 50% after killing all discovered processes (according to swapinfo). it was about 80% before.&lt;BR /&gt;&lt;BR /&gt;thanks anyway.</description>
      <pubDate>Wed, 22 Aug 2007 08:44:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-segments-cannot-be-removed/m-p/4058239#M737136</guid>
      <dc:creator>-error</dc:creator>
      <dc:date>2007-08-22T08:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: shared memory segments cannot be removed?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-segments-cannot-be-removed/m-p/4058240#M737137</link>
      <description>&amp;gt;i guess you're not quite right here. memory usage dropped to 50% after killing&lt;BR /&gt;&lt;BR /&gt;That's right.  D just means that one process has removed the shared memory but all of the NATTACH processes are still using it.  (It's like removing a file, the space isn't removed until the last process closes it.)&lt;BR /&gt;&lt;BR /&gt;If you use ipcs -ma, you'll get DTIME of when a shmdt(2) was done.  This maybe close in time to when it was removed.&lt;BR /&gt;&lt;BR /&gt;If you look at this thread, you'll see my program to give the time in terms of date and time to see how long the segment has been in limbo:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1136341" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1136341&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, here is a link that matches your question:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=611062" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=611062&lt;/A&gt;</description>
      <pubDate>Wed, 22 Aug 2007 11:15:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory-segments-cannot-be-removed/m-p/4058240#M737137</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-08-22T11:15:22Z</dc:date>
    </item>
  </channel>
</rss>

