- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ipcs ipcrm
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
12-11-2001 06:12 AM
12-11-2001 06:12 AM
ipcs ipcrm
my user has one application which alocates some space in shared memory and if failed doesnt dealocate those space and because this reason cannot be restarted. Is it posible to recognize this space with ipcs and release it with ipcrm command. Thanks. Hrvoje
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2001 06:17 AM
12-11-2001 06:17 AM
Re: ipcs ipcrm
if you do an ipcs -m
and look up the memory id, if there is a D in front of the address, that means there is something still attached and you cannot remove the shmem until that processes is killed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2001 06:25 AM
12-11-2001 06:25 AM
Re: ipcs ipcrm
You can find the unused memory with ipcs -ma .
If NATTCH is 0, the memory isn't used anymore.
You can free it with ipcrm -m
Fr??d??ric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2001 06:44 AM
12-11-2001 06:44 AM
Re: ipcs ipcrm
ipcs -moba will display all the application with shared memory.
you can release shared memeory those have 0 NATTACH by ipcrm -m followed by ID number of ipcs -moba output.
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2001 07:08 AM
12-11-2001 07:08 AM
Re: ipcs ipcrm
here is an example:
#ipcs -am
IPC status from /dev/kmem as of Tue Dec 11 10:01:29 2001
T ID KEY MODE OWNER GROUP CREATOR CGROUP NATTCH SEGSZ CPID LPID ATIME DTIME CTIME
Shared Memory:
m 0 0x4118061a --rw-rw-rw- root root root root 0 348 2120 2120 12:06:28 12:06:28 12:06:21
m 1 0x4e0c0002 --rw-rw-rw- root root root root 1 31040 2120 2120 12:06:24 12:06:28 12:06:21
m 2 0x411c0774 --rw-rw-rw- root root root root 1 8192 2120 2132 12:06:24 12:06:21 12:06:21
m 5123 0x0c6629c9 --rw-r----- root root root root 2 23754620 2699 24610 3:27:09 3:27:40 12:07:07
m 4 0x06347849 --rw-rw-rw- root root root root 1 77384 2699 2742 12:07:17 12:07:07 12:07:07
m 2053 0xffffffff --rw-r--rw- root root root root 0 22908 2685 2685 12:07:14 12:07:14 12:07:14
m 612358 0x87380382 --rw------- controlm controlm controlm controlm 1 21475328 15019 15019 12:43:36 no-entry 12:43:36
m 46812 0x00000000 D-rw------- oracle oracle oracle oracle 18 8000008 20539 20640 15:00:28 no-entry 15:00:30
***
To remove a specific shared memory segment do,
ipcrm -m
Be sure, before you do this!!
Check to see whether the NATTCH associated with the segment is 0.
Also, if the first bit on the mode is D , then you wouldnt need to do ipcrm, since it is already removed.
HTH
raj