- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- understand ipcs command
Operating System - Linux
1822494
Members
2422
Online
109642
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2008 09:43 PM
тАО03-30-2008 09:43 PM
Gurus,
Could some one help me understand what the coloum status means and what does it mean (dest)in the below output?
#ipcs
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 458752 gdm 600 393216 2 dest
0xa6d143fc 524289 oracle 660 2149580800 22
0x00000000 557058 root 600 196608 2 dest
0x00000000 589827 root 600 196608 2 dest
0x00000000 622596 root 600 196608 2 dest
0x00000000 655365 root 600 196608 2 dest
0x00000000 688134 root 600 196608 2 dest
0x00000000 720903 root 600 196608 2 dest
0x00000000 753672 root 600 196608 2 dest
0x00000000 819210 root 600 196608 2 dest
0x5e069a14 917515 root 600 512 1
------ Semaphore Arrays --------
key semid owner perms nsems
0x71069a02 0 root 666 1
0xf01656e0 131073 oracle 660 154
0x550a01de 163842 root 666 1
------ Message Queues --------
key msqid owner perms used-bytes messages
Could some one help me understand what the coloum status means and what does it mean (dest)in the below output?
#ipcs
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 458752 gdm 600 393216 2 dest
0xa6d143fc 524289 oracle 660 2149580800 22
0x00000000 557058 root 600 196608 2 dest
0x00000000 589827 root 600 196608 2 dest
0x00000000 622596 root 600 196608 2 dest
0x00000000 655365 root 600 196608 2 dest
0x00000000 688134 root 600 196608 2 dest
0x00000000 720903 root 600 196608 2 dest
0x00000000 753672 root 600 196608 2 dest
0x00000000 819210 root 600 196608 2 dest
0x5e069a14 917515 root 600 512 1
------ Semaphore Arrays --------
key semid owner perms nsems
0x71069a02 0 root 666 1
0xf01656e0 131073 oracle 660 154
0x550a01de 163842 root 666 1
------ Message Queues --------
key msqid owner perms used-bytes messages
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2008 05:06 AM
тАО03-31-2008 05:06 AM
Re: understand ipcs command
This output is on RHAS 5.1 and the kernel version is 2.6.18-53.1.6.el5.
I need to know the meaning of the Status coloum and what (dest) means in th ebelow output.
regards,
Pattabhi Raman
I need to know the meaning of the Status coloum and what (dest) means in th ebelow output.
regards,
Pattabhi Raman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2008 12:38 PM
тАО03-31-2008 12:38 PM
Solution
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.
"man 2 shmctl" says this about IPC_RMID:
-----------
IPC_RMID
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.
-----------
So it would seem logical that the "dest" in the status column means that SHM_DEST flag has been set for that memory segment.
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.
MK
"man 2 shmctl" says this about IPC_RMID:
-----------
IPC_RMID
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.
-----------
So it would seem logical that the "dest" in the status column means that SHM_DEST flag has been set for that memory segment.
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.
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2008 12:49 AM
тАО04-02-2008 12:49 AM
Re: understand ipcs command
MK,
Thanks for the information.
Thanks for the information.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP