HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Allocation of memory greater than 1 GB in an E...
Operating System - HP-UX
1833159
Members
3144
Online
110051
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
Forums
Discussions
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
06-11-2001 04:27 AM
06-11-2001 04:27 AM
Allocation of memory greater than 1 GB in an EXEC_MAGIC binary
2
Hi all,
I have the following piece of code:
ptr = NULL;
ptr = malloc(1024*1024*1024);
if (ptr)
perror("Malloc successful");
else
perror("Malloc unsuccessful");
My maxdsiz is set to 0x7B03A000 which is near about 2GB.
maxdsiz64bit = 0x0000000040000000
maxssiz = 0x00800000
maxssiz_64bit = 0x00800000
I am compiling the given code using the following command line string
cc +DD32 -Q -N
Still the code fails in allocating more than
900 MB of memory on my machine.
Any hint on what I may be missing?
Hi all,
I have the following piece of code:
ptr = NULL;
ptr = malloc(1024*1024*1024);
if (ptr)
perror("Malloc successful");
else
perror("Malloc unsuccessful");
My maxdsiz is set to 0x7B03A000 which is near about 2GB.
maxdsiz64bit = 0x0000000040000000
maxssiz = 0x00800000
maxssiz_64bit = 0x00800000
I am compiling the given code using the following command line string
cc +DD32 -Q -N
Still the code fails in allocating more than
900 MB of memory on my machine.
Any hint on what I may be missing?
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2001 06:12 AM
06-11-2001 06:12 AM
Re: Allocation of memory greater than 1 GB in an EXEC_MAGIC binary
Do you have another free 1GB of virtual memory?
(swapinfo -m will report free vmem).
Klaus
(swapinfo -m will report free vmem).
Klaus
There is a live before death!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2001 06:33 AM
06-11-2001 06:33 AM
Re: Allocation of memory greater than 1 GB in an EXEC_MAGIC binary
do the following command on your binary;
chatr +q3p enable
This enables a memory quadrant area, tested it, works fine now (didnt work without the above command). See man on chatr for more info on it.
Im from Palmerston North, New Zealand, but somehow ended up in London...
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 2025 Hewlett Packard Enterprise Development LP