- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Memory allocation limit
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
Discussions
Discussions
Forums
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
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
тАО12-08-2003 02:03 PM
тАО12-08-2003 02:03 PM
I am experiencing an unusual problem in that, I cannot allocate memory of size ~ 67 MB on a machine having 512 MB main memory. I am using the standard C routine malloc() to allocate the memory. BTW this is a 32 bit application.
Could it be some system setting that has some limitation set to the memory allocation?. I would apperciate any pointers to resolve this problem.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2003 02:13 PM
тАО12-08-2003 02:13 PM
Re: Memory allocation limit
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=210579
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2003 03:21 PM
тАО12-08-2003 03:21 PM
Re: Memory allocation limit
The problem will be kernel tunable maxdsiz for malloc requests for 32bit processes. You haven't mentioned the OS but the default on 10.20 and 11.00 is 67MB, defined in /usr/conf/master.d/core-hpux ;
# grep MAXDSIZ core-hpux
maxdsiz MAXDSIZ 0x04000000
# echo 0x04000000=D|adb
67108864
On 11i the default is raised to 256MB.
Cheers,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2003 07:16 PM
тАО12-08-2003 07:16 PM
SolutionSo do a grep of maxdsiz in /stand/system. If it is not there, your limit is probably 64Mb (or 67108864) and you should start sam to change it if you are allowed to.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 06:06 AM
тАО12-10-2003 06:06 AM
Re: Memory allocation limit
Thanks for all your replies. Once I increased the value of maxdsiz to 256MB, using sam, the memory allocation went through fine.