- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Errors enabling +q3p option for a program
Operating System - HP-UX
1753971
Members
7926
Online
108811
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
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-21-2008 08:03 AM
тАО07-21-2008 08:03 AM
Hi everyone:
I have a process demanding more than ~1.7 GB available by default in 32bit applications. To achieve this I am trying to enable third quadrant of process memory for private memory, whith "chatr" utility:
chatr +q3p enable sadcagnt
The change is made succesfully, but when application services are started again, the following error shows:
gma_open_file->mmap: Not enough space
sys_setup: mkshm() failed
Anything else I must do in addition to changing the flag? Any hint about what could be causing this error? Thanks in advance for your comments
Jose Enrique Gonzalez
Caracas, Venezuela
I have a process demanding more than ~1.7 GB available by default in 32bit applications. To achieve this I am trying to enable third quadrant of process memory for private memory, whith "chatr" utility:
chatr +q3p enable sadcagnt
The change is made succesfully, but when application services are started again, the following error shows:
gma_open_file->mmap: Not enough space
sys_setup: mkshm() failed
Anything else I must do in addition to changing the flag? Any hint about what could be causing this error? Thanks in advance for your comments
Jose Enrique Gonzalez
Caracas, Venezuela
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2008 10:01 AM
тАО07-21-2008 10:01 AM
Solution
The third quadrant of a 32-bit process is normally used for memory that is shared between different processes - to avoid loading multiple copies of shared libraries, or for inter-process communication.
When you use "chatr +q3p enable", you're expanding the private data space of a program by shrinking the shared memory space.
Those error messages are probably application-specific, but the first one seems to refer to the mmap() system call.
The mmap() system call requests the system to map a file on disk to memory space. Depending on the options given to mmap(), the file may be mapped to either the private space or the shared space. The fact that the error message appears after using "chatr +q3p enable" suggests that this application may be using shared memory for its mmap operation.
The mkshm() does not correspond directly to any system call, but its name suggests it's about to MaKe some SHared Memory. So both error messages may well be related to a lack of shared memory space.
In this situation, looks like your application won't benefit from using the 3rd quadrant as a private space. On the contrary, the shrinkage of the shared memory space that comes with it seems to cause harm to this application.
MK
When you use "chatr +q3p enable", you're expanding the private data space of a program by shrinking the shared memory space.
Those error messages are probably application-specific, but the first one seems to refer to the mmap() system call.
The mmap() system call requests the system to map a file on disk to memory space. Depending on the options given to mmap(), the file may be mapped to either the private space or the shared space. The fact that the error message appears after using "chatr +q3p enable" suggests that this application may be using shared memory for its mmap operation.
The mkshm() does not correspond directly to any system call, but its name suggests it's about to MaKe some SHared Memory. So both error messages may well be related to a lack of shared memory space.
In this situation, looks like your application won't benefit from using the 3rd quadrant as a private space. On the contrary, the shrinkage of the shared memory space that comes with it seems to cause harm to this application.
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2008 10:29 AM
тАО07-21-2008 10:29 AM
Re: Errors enabling +q3p option for a program
Thank you, Matti:
Your explanation is quite clear and precise. But a question arises: if you just "enable" 3th quadrant for private memory and left 4th intact, should not the application be able to address shared memory in 4th quadrant? I know this does not work, as it is the first test I did, but I cannot clearly understand why
Your explanation is quite clear and precise. But a question arises: if you just "enable" 3th quadrant for private memory and left 4th intact, should not the application be able to address shared memory in 4th quadrant? I know this does not work, as it is the first test I did, but I cannot clearly understand why
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2008 10:33 PM
тАО07-21-2008 10:33 PM
Re: Errors enabling +q3p option for a program
>demanding more than ~1.7 GB available by default in 32bit applications.
The default is 1 Gb, not 1.7. Are you linking with -N to get 2 Gb? Or are you talking about the 1.7 Gb limit for shared memory?
Are you mapping the file as private? If not, that +q3p enable is working against you as MK said.
Unfortunately chatr(1) says if you want to use SHMEM_MAGIC, -M, that only works for:
system V shared memory and not other forms of shared memory (like memory mapped files).
>should not the application be able to address shared memory in 4th quadrant?
It depends. That's 1 GB totaled for EVERY user/application on the system. If shared memory is very fragmented, you can't get enough in that one quadrant.
The default is 1 Gb, not 1.7. Are you linking with -N to get 2 Gb? Or are you talking about the 1.7 Gb limit for shared memory?
Are you mapping the file as private? If not, that +q3p enable is working against you as MK said.
Unfortunately chatr(1) says if you want to use SHMEM_MAGIC, -M, that only works for:
system V shared memory and not other forms of shared memory (like memory mapped files).
>should not the application be able to address shared memory in 4th quadrant?
It depends. That's 1 GB totaled for EVERY user/application on the system. If shared memory is very fragmented, you can't get enough in that one quadrant.
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP