GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SHM Memory Management
Operating System - HP-UX
1854684
Members
31166
Online
104102
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
back
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
01-12-2006 02:12 AM
01-12-2006 02:12 AM
I'need to know how can be manage a SHM memory problem:
On the same HP Superdome machine I need to generate two different Shared Areas for two different users by using executable programs (32 bit compiled). I have set the attributes of each program at SHMEM MAGIC (chatr -M). Each pogram requires to allocate about 3,7 GB of SHM memory size. The problem is that I don't manage allocate the two shared memory areas at the same time. If the first of them is allocated the program runned by the second user don't found enough memory size free to allocate the second SHM area.
How can I resolve the problem?
In this case it's possible use the memory windows option? If yes how can I set the sistem to use that feature?
Thanks
GM200
On the same HP Superdome machine I need to generate two different Shared Areas for two different users by using executable programs (32 bit compiled). I have set the attributes of each program at SHMEM MAGIC (chatr -M). Each pogram requires to allocate about 3,7 GB of SHM memory size. The problem is that I don't manage allocate the two shared memory areas at the same time. If the first of them is allocated the program runned by the second user don't found enough memory size free to allocate the second SHM area.
How can I resolve the problem?
In this case it's possible use the memory windows option? If yes how can I set the sistem to use that feature?
Thanks
GM200
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2006 02:16 AM
01-12-2006 02:16 AM
Re: SHM Memory Management
You definitely need to be using memory windows otherwise all 32-bit processes share a common 4GB address space; with memory windows, each group of releated processes gets a separate 4GB address space.
Just go to docs.hp.com and search on "Memory Windows" -- you should find plenty of information.
Just go to docs.hp.com and search on "Memory Windows" -- you should find plenty of information.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2006 02:16 AM
01-12-2006 02:16 AM
Re: SHM Memory Management
You definitely need to be using memory windows otherwise all 32-bit processes share a common 4GB address space; with memory windows, each group of related processes gets a separate 4GB address space.
Just go to docs.hp.com and search on "Memory Windows" -- you should find plenty of information.
Just go to docs.hp.com and search on "Memory Windows" -- you should find plenty of information.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2006 02:24 AM
01-12-2006 02:24 AM
Solution
32bit programs are severely limited in memory addressing based on today's standards. The shared memory area is a single map so all shared memory segments must frit into the maximum space available. Thus, your two programs can only run at the same time if their shared memory segments total less than 3.7Gb. The best solution is to recompile the code as a 64bit application in which case your limit will now be in the terabytes.
For memory windows, make sure you are up to date on patches, change the kernel to allow some windows (perhaps 5 or 10) and then start the programs with setmemwindow. Note that ALL programs that will use the same shared memory area must be started with setmemwindow.
What happens is that the kernel creates a new memory map for each window, so each program now has a private area for shared memory. See the man pages for setmemwindow and max_mem_window.
Bill Hassell, sysadmin
For memory windows, make sure you are up to date on patches, change the kernel to allow some windows (perhaps 5 or 10) and then start the programs with setmemwindow. Note that ALL programs that will use the same shared memory area must be started with setmemwindow.
What happens is that the kernel creates a new memory map for each window, so each program now has a private area for shared memory. See the man pages for setmemwindow and max_mem_window.
Bill Hassell, sysadmin
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
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP