<?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 / ipcs in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/shared-memory-ipcs/m-p/4098676#M30679</link>
    <description>i do see similar things on my RHEL servers.An appl support person would be able to tell more about the need of that processes.</description>
    <pubDate>Wed, 07 Nov 2007 16:19:39 GMT</pubDate>
    <dc:creator>skt_skt</dc:creator>
    <dc:date>2007-11-07T16:19:39Z</dc:date>
    <item>
      <title>shared memory / ipcs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shared-memory-ipcs/m-p/4098672#M30675</link>
      <description>Linux system running SAP.  Now I'm not a great diagnoser of ipcs output but this seems odd to me.  On my HP-UX systems running large SAP instances the largest NATTCH # is usually &amp;lt;100 and is never more than the total # of processes on the box.&lt;BR /&gt;&lt;BR /&gt;If you notice below (just looking at the shared memory segments without a key) the largest segment has a NATTACH # of 6129.  Is this symptomatic of bad shared memory usage by the applications, or simply a different method than what I'd see with HP-UX?  There's &amp;lt;200 processes running at the moment.&lt;BR /&gt;&lt;BR /&gt;(underlines mine to keep spacing)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HOSTNAME&gt;:~ # ipcs -m | grep 0x00000000&lt;BR /&gt;key_______shmid______owner_____perms____bytes___nattch__status&lt;BR /&gt;0x00000000_147816448__sapadm____701__131072______2                       &lt;BR /&gt;0x00000000_143163393___sapadm____701__131072______2                       &lt;BR /&gt;0x00000000_163844______dr1fenc1____701__23052288____50                      &lt;BR /&gt;0x00000000_294919______sapadm____777__1024________1                       &lt;BR /&gt;0x00000000_10747921____sapadm____777__12582912000_6129__dest         &lt;BR /&gt;&lt;SNIP&gt;&lt;BR /&gt;&lt;/SNIP&gt;&lt;/HOSTNAME&gt;</description>
      <pubDate>Wed, 07 Nov 2007 10:10:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shared-memory-ipcs/m-p/4098672#M30675</guid>
      <dc:creator>Greg Geyer</dc:creator>
      <dc:date>2007-11-07T10:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: shared memory / ipcs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shared-memory-ipcs/m-p/4098673#M30676</link>
      <description>That is more than likely an old SAP instance that was not shutdown properly of failed. The status of dest means that the segment is marked to be destroyed. You remove it like this&lt;BR /&gt;&lt;BR /&gt;# ipcrm shm 10747921&lt;BR /&gt;&lt;BR /&gt;You can also get more info on the segment by running:&lt;BR /&gt;&lt;BR /&gt;# ipcs -m -i 10747921</description>
      <pubDate>Wed, 07 Nov 2007 13:06:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shared-memory-ipcs/m-p/4098673#M30676</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-11-07T13:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: shared memory / ipcs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shared-memory-ipcs/m-p/4098674#M30677</link>
      <description>I guess I could also note that when you run&lt;BR /&gt;&lt;BR /&gt;# ipcs -m -i 10747921&lt;BR /&gt;&lt;BR /&gt;look at the cpid. That should be the process that created the segment. You could then grep ps for that pid to see if it is still running or you could&lt;BR /&gt;&lt;BR /&gt;# kill -0 pid&lt;BR /&gt;&lt;BR /&gt;If it states that there is no such process, you could ipcrm the shm.</description>
      <pubDate>Wed, 07 Nov 2007 13:14:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shared-memory-ipcs/m-p/4098674#M30677</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-11-07T13:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: shared memory / ipcs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shared-memory-ipcs/m-p/4098675#M30678</link>
      <description>Court,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply.  The kicker is that that the PID does exist...it is basically the root SAP process that all the other work processes in SAP spawn from (its the parent of 40 more processes).  It is active and this symptom is exhibited by other SAP on Linux systems we have.&lt;BR /&gt;&lt;BR /&gt;I suspect it is the type of Linux we're using (ZLinux/Suse on a mainframe!).  Yes, IBM product but I'm mostly an HP guy so thought I'd post here.&lt;BR /&gt;&lt;BR /&gt;Shared memory Segment shmid=10747921&lt;BR /&gt;uid=27902       gid=1001        cuid=27902      cgid=1001&lt;BR /&gt;mode=01777      access_perms=0777&lt;BR /&gt;bytes=12582912000       lpid=7190       cpid=2835       nattch=10346&lt;BR /&gt;att_time=Wed Nov  7 11:26:36 2007  &lt;BR /&gt;det_time=Wed Nov  7 11:25:41 2007  &lt;BR /&gt;change_time=Sun Nov  4 13:07:00 2007  &lt;BR /&gt;&lt;BR /&gt;&lt;HOSTNAME&gt;:~ # date&lt;BR /&gt;Wed Nov  7 11:26:39 MST 2007&lt;BR /&gt;&lt;BR /&gt;I wouldn't care but I'm working an issue that may or may not be shm related.  Probably will just let the IBM/SAP people review.&lt;BR /&gt;&lt;BR /&gt;Thanks - G.&lt;/HOSTNAME&gt;</description>
      <pubDate>Wed, 07 Nov 2007 13:29:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shared-memory-ipcs/m-p/4098675#M30678</guid>
      <dc:creator>Greg Geyer</dc:creator>
      <dc:date>2007-11-07T13:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: shared memory / ipcs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shared-memory-ipcs/m-p/4098676#M30679</link>
      <description>i do see similar things on my RHEL servers.An appl support person would be able to tell more about the need of that processes.</description>
      <pubDate>Wed, 07 Nov 2007 16:19:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shared-memory-ipcs/m-p/4098676#M30679</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2007-11-07T16:19:39Z</dc:date>
    </item>
  </channel>
</rss>

