- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SHMMAX
Operating System - HP-UX
1820040
Members
3271
Online
109608
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
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
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
тАО07-25-2005 05:18 AM
тАО07-25-2005 05:18 AM
Hi fiends,
I've the parameters in HP-UX 11i:
SHMMX=0x4000000
SHMSEG=32
SHMMNI=512
These determine the maximum of the memory to use ?
How calculate the max memory available ?
Thanks,
I've the parameters in HP-UX 11i:
SHMMX=0x4000000
SHMSEG=32
SHMMNI=512
These determine the maximum of the memory to use ?
How calculate the max memory available ?
Thanks,
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2005 05:23 AM
тАО07-25-2005 05:23 AM
Re: SHMMAX
your question is very obscure. What do you mean by memory available to use ? These parameters are only related to shared memory segments not to the memory but again this may be all you ar einterested in. Please provide more details.
________________________________
UNIX because I majored in cryptology...
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2005 06:07 AM
тАО07-25-2005 06:07 AM
Re: SHMMAX
WE have an program that use 2GB of memory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2005 06:23 AM
тАО07-25-2005 06:23 AM
Solution
SHMMX=0x4000000 means the largest shared memory segment will be limited to 67 megs. You must increase this value in the kernel.
SHMSEG=32 menas that a single program can open up to 32 different shared memory segments.
SHMMNI=512 means you can have up to 512 separate shared memory segments created (system wide).
Since you have a program that wants 2Gb, the first question is: is this a single shared memory segment? If so, your program will always fail if it is a 32bit program. The largest shared memory address space is just over 900megs, or with special compiler options, possibly 1700megs. But a 32bit program must share the same address space with all other programs and includes other shared memory segments, memory mapped files and other IPC (Inter-Process Communication) entries. After a while, this map will become fragmented so your program will have to be re-written to ask for smaller segments.
There is no simple way to avoid these limitations with 32bit programs. If you recompile ytour program as a 64bit program, all these limitations go away. Of course, related programs that share this area must also be recompiled as 64bit programs.
Bill Hassell, sysadmin
SHMSEG=32 menas that a single program can open up to 32 different shared memory segments.
SHMMNI=512 means you can have up to 512 separate shared memory segments created (system wide).
Since you have a program that wants 2Gb, the first question is: is this a single shared memory segment? If so, your program will always fail if it is a 32bit program. The largest shared memory address space is just over 900megs, or with special compiler options, possibly 1700megs. But a 32bit program must share the same address space with all other programs and includes other shared memory segments, memory mapped files and other IPC (Inter-Process Communication) entries. After a while, this map will become fragmented so your program will have to be re-written to ask for smaller segments.
There is no simple way to avoid these limitations with 32bit programs. If you recompile ytour program as a 64bit program, all these limitations go away. Of course, related programs that share this area must also be recompiled as 64bit programs.
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP