- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Shared memory - HP-UX 11.11
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
05-17-2006 06:02 AM
05-17-2006 06:02 AM
Shared memory - HP-UX 11.11
While trying to launch an application that is supposed to create a shared memory segment in which to load two files (actually 3 files, as one is loaded twice) - total size approx 1.5 GB, there is the error message:
SHMGET error: not enough space.
It's not kernel parameters issue as this was checked. Any other suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2006 06:16 AM
05-17-2006 06:16 AM
Re: Shared memory - HP-UX 11.11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2006 06:23 AM
05-17-2006 06:23 AM
Re: Shared memory - HP-UX 11.11
You may wish to increase shmmax parameter.
You can safely increase it to 25% of system memory. That is defined as RAM plus swap.
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
05-17-2006 02:11 PM
05-17-2006 02:11 PM
Re: Shared memory - HP-UX 11.11
The kernel imposes limits on shared memory segments too. SHMMAX is the largest segment a program can request. However, 32bit orograms all share a fixed memory map for all shared resources (shared memory, semaphores, etc) so programs that were improperly terminated (ie, kill -9) will leave unuseable holes. So a large segment may be OK for SHARED_MAGIC, OK for the kernel parameter SHMMAX but fail because there is no contiguous space for the segment.
Start with the ipcs command (ipcs -bmop) to see what is currently assigned in shared memory. If the total is quite small, try rebooting so the map is clean.
Otherwise, recompile the program as 64bits. Then all practical limits disappear.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2006 07:57 PM
05-17-2006 07:57 PM
Re: Shared memory - HP-UX 11.11
Basically there are 3 kernel parameters for the shared memory segments
shmmax - - maximum size (in bytes) for a System V shared memory segment
shmmni - number of System V shared memory segment identifiers in the system
NAME
shmseg - maximum number of System V shared memory segments per process
which control the behaviour of the shared memory.
Thus if a process requests for shared memory it can have a maximum of shmmax * shmseg bytes of shared memory
and the system can have a total of
shmmax * shmmni bytes of shared memory which can be allocated. Ofcourse this limit is often far too high than your system memory.
Regards,
Ninad