- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- shared memory segments cannot be removed?
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
Discussions
Forums
Discussions
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
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
08-21-2007 07:58 PM
08-21-2007 07:58 PM
one of our server is suffering from inability to remove unowned shared memory segments.
for example:
[... cut ...]
sergey@storm:~$ ipcs -ompb | egrep "ID|0x00000000"
T ID KEY MODE OWNER GROUP NATTCH SEGSZ CPID LPID
m 59375632 0x00000000 D-rw-r----- oracle dba 9 33554432 15139 15740
m 65556 0x00000000 D-rw-r----- oracle dba 6 1112498176 21021 21021
m 196631 0x00000000 D-rw-r----- oracle dba 9 402653184 15139 15740
m 327704 0x00000000 D-rw-r----- oracle dba 9 33554432 15139 15740
m 1467154462 0x00000000 D-rw-r----- oracle dba 9 33554432 15139 15740
m 760610847 0x00000000 D-rw-r----- oracle dba 9 33554432 15139 15740
m 129859616 0x00000000 D-rw-r----- oracle dba 9 33554432 15139 15740
m 1469677601 0x00000000 D-rw-r----- oracle dba 9 33554432 15139 15740
m 1474594 0x00000000 D-rw-r----- oracle dba 9 33554432 15139 15740
m 109183011 0x00000000 D-rw-r----- oracle dba 9 33554432 15139 15740
m 163876 0x00000000 D-rw-r----- oracle dba 9 134217728 15139 15740
m 163877 0x00000000 D-rw-r----- oracle dba 9 83886080 15139 15740
sergey@storm:~$ sudo ipcrm -m 59375632
Password:
ipcrm: shmid(59375632): not found
[... cut ...]
there is no processes with PIDs listed above in system:
[... cut ...]
sergey@storm:~$ ps -ef | egrep "15139|15740|21021" | grep -v grep
sergey@storm:~$
[... cut ...]
but nevertheless ipcs showing non-zero NATTACH.
what can be prblem with? m.b. there is some patch or something else?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2007 08:21 PM
08-21-2007 08:21 PM
Re: shared memory segments cannot be removed?
For 11.11 there is a patch PHKL_27686 (replaced by PHKL_30992) which fix the problem.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2007 09:56 PM
08-21-2007 09:56 PM
Re: shared memory segments cannot be removed?
HP-UX is 11.23 on ia64 platform.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2007 11:37 PM
08-21-2007 11:37 PM
Re: shared memory segments cannot be removed?
when the last process attached to the segment detaches it.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2007 11:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2007 01:00 AM
08-22-2007 01:00 AM
Re: shared memory segments cannot be removed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2007 01:13 AM
08-22-2007 01:13 AM
Re: shared memory segments cannot be removed?
D The associated shared memory segment has been
removed. It will disappear when the last
process attached to the segment detaches it.
In this case memory is not used.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2007 01:44 AM
08-22-2007 01:44 AM
Re: shared memory segments cannot be removed?
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.
thanks anyway.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2007 04:15 AM
08-22-2007 04:15 AM
Re: shared memory segments cannot be removed?
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.)
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.
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:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1136341
Also, here is a link that matches your question:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=611062