<?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: understand ipcs command in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/understand-ipcs-command/m-p/5100566#M49554</link>
    <description>MK, &lt;BR /&gt;&lt;BR /&gt;Thanks for the information.</description>
    <pubDate>Wed, 02 Apr 2008 07:49:57 GMT</pubDate>
    <dc:creator>Pattabhi</dc:creator>
    <dc:date>2008-04-02T07:49:57Z</dc:date>
    <item>
      <title>understand ipcs command</title>
      <link>https://community.hpe.com/t5/operating-system-linux/understand-ipcs-command/m-p/5100563#M49551</link>
      <description>&lt;!--!*#--&gt;Gurus,&lt;BR /&gt;&lt;BR /&gt;Could some one help me understand what the coloum status means and what does it mean (dest)in the below output?&lt;BR /&gt;&lt;BR /&gt;#ipcs&lt;BR /&gt;&lt;BR /&gt;------ Shared Memory Segments --------&lt;BR /&gt;key        shmid      owner      perms      bytes      nattch     status&lt;BR /&gt;0x00000000 458752     gdm       600        393216     2          dest&lt;BR /&gt;0xa6d143fc 524289     oracle    660        2149580800 22&lt;BR /&gt;0x00000000 557058     root      600        196608     2          dest&lt;BR /&gt;0x00000000 589827     root      600        196608     2          dest&lt;BR /&gt;0x00000000 622596     root      600        196608     2          dest&lt;BR /&gt;0x00000000 655365     root      600        196608     2          dest&lt;BR /&gt;0x00000000 688134     root      600        196608     2          dest&lt;BR /&gt;0x00000000 720903     root      600        196608     2          dest&lt;BR /&gt;0x00000000 753672     root      600        196608     2          dest&lt;BR /&gt;0x00000000 819210     root      600        196608     2          dest&lt;BR /&gt;0x5e069a14 917515     root      600        512        1&lt;BR /&gt;&lt;BR /&gt;------ Semaphore Arrays --------&lt;BR /&gt;key        semid      owner      perms      nsems&lt;BR /&gt;0x71069a02 0          root      666        1&lt;BR /&gt;0xf01656e0 131073     oracle    660        154&lt;BR /&gt;0x550a01de 163842     root      666        1&lt;BR /&gt;&lt;BR /&gt;------ Message Queues --------&lt;BR /&gt;key        msqid      owner      perms      used-bytes   messages&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Mar 2008 04:43:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/understand-ipcs-command/m-p/5100563#M49551</guid>
      <dc:creator>Pattabhi</dc:creator>
      <dc:date>2008-03-31T04:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: understand ipcs command</title>
      <link>https://community.hpe.com/t5/operating-system-linux/understand-ipcs-command/m-p/5100564#M49552</link>
      <description>This output is on RHAS 5.1 and the kernel version is 2.6.18-53.1.6.el5. &lt;BR /&gt;&lt;BR /&gt;I need to know the meaning of the Status coloum and what (dest) means in th ebelow output.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Pattabhi Raman</description>
      <pubDate>Mon, 31 Mar 2008 12:06:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/understand-ipcs-command/m-p/5100564#M49552</guid>
      <dc:creator>Pattabhi</dc:creator>
      <dc:date>2008-03-31T12:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: understand ipcs command</title>
      <link>https://community.hpe.com/t5/operating-system-linux/understand-ipcs-command/m-p/5100565#M49553</link>
      <description>I'm not sure (could not find any documentation that says this explicitly), but I guess it means the segment has been marked as "to be destroyed" using shmctl(shmid, IPC_RMID,...) system call.&lt;BR /&gt;&lt;BR /&gt;"man 2 shmctl" says this about IPC_RMID:&lt;BR /&gt;-----------&lt;BR /&gt;IPC_RMID    &lt;BR /&gt;Mark the segment to be destroyed. The segment will only actually be destroyed after the last process detaches it (i.e., when the shm_nattch member of the associated structure shmid_ds is zero). The caller must be the owner or creator, or be privileged. If a segment has been marked for destruction, then the (non-standard) SHM_DEST flag of the  shm_perm.mode field in the associated data structure retrieved by IPC_STAT will be set.&lt;BR /&gt;-----------&lt;BR /&gt;&lt;BR /&gt;So it would seem logical that the "dest" in the status column means that SHM_DEST flag has been set for that memory segment.&lt;BR /&gt;&lt;BR /&gt;Setting it makes the OS automatically clean up the shared memory segment when it is no longer used, even if the process that is supposed to do the cleanup is kill -9'ed or crashes. So the sysadmin won't need to use ipcrm to manually clean up shared memory segments after an application crash.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Mon, 31 Mar 2008 19:38:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/understand-ipcs-command/m-p/5100565#M49553</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2008-03-31T19:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: understand ipcs command</title>
      <link>https://community.hpe.com/t5/operating-system-linux/understand-ipcs-command/m-p/5100566#M49554</link>
      <description>MK, &lt;BR /&gt;&lt;BR /&gt;Thanks for the information.</description>
      <pubDate>Wed, 02 Apr 2008 07:49:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/understand-ipcs-command/m-p/5100566#M49554</guid>
      <dc:creator>Pattabhi</dc:creator>
      <dc:date>2008-04-02T07:49:57Z</dc:date>
    </item>
  </channel>
</rss>

