- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Shared Memory Issue
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
04-25-2006 10:58 PM
04-25-2006 10:58 PM
Shared Memory Issue
The only option seen was to reboot the host so that all shared memory was release and refreshed. The application started fine after the reboot. Is there any other way to do this other than rebooting the host?? Especially when the segment in question does not show up via 'ipcs' ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2006 11:19 PM
04-25-2006 11:19 PM
Re: Shared Memory Issue
ipcs -m
ipcs -s
It is possible that the shared memory was taken off the table listing but not actually released.
There may be something in the /var/adm/syslog/syslog file on this problem.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2006 11:28 PM
04-25-2006 11:28 PM
Re: Shared Memory Issue
I assume the application did not report what segment is was trying to access when it failed. Otherwise you may have been able to use ipcrm -m / -M to clear. If the application is now running, may be worthwhile to log the segment use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2006 11:43 PM
04-25-2006 11:43 PM
Re: Shared Memory Issue
I have seen a similar thing with Oracle from time to time where we had to reboot because the shmem segment was not released.
What type of applicatin is accessing the shmem segment?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2006 11:45 PM
04-25-2006 11:45 PM
Re: Shared Memory Issue
What probably happened is that the aborted program did not delloacate all the segments, or another program asked for a small segment which was assigned a location that reduced the largest contiguous memory area. In other words, the memory map is fragmented but because the map is shared, it cannot be reorganized. To see how the shared memory map is used, get a copy of shminfo:
ftp://hprc.external.hp.com/sysadmin/programs/shminfo
The ipcs utility shows the assigned segments but does not show the empty spaces. And the shared memory map has a number of other components that can significantly contribute to the fragmentation.
There are several solutions:
1. Using ipcs -bmop, find all applications that are still running and shut them down normally. Then start the problem app followed by any other programs that are needed.
2. Using shminfo, look for the largest areas of unused space and see if elements that border the segment can be released by the applications.
3. Move the applications to 64bit versions where addressing limits are essentially removed.
4. Reboot the server.
Another solution is to create memory windows for the 32bit applications. This requires patches for old 11.00 systems, and some startup scripting to ensure all related programs start in the same window. See:
http://docs.hp.com/en/943/memwn1_4.pdf
Bill Hassell, sysadmin