HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- brk system call failed
Operating System - HP-UX
1834756
Members
3224
Online
110070
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
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
06-16-2005 09:58 AM
06-16-2005 09:58 AM
Hi there,
I was tracing a application which failed on memory allocation.
The tusc out shown the following
brk(0x79e20000) .................................................... ERR#12 ENOMEM
Which does the hex value mean? Is the the size in bytes?
The maxdsiz & maxssiz set on the server as belows (HPUX11i)
maxdsiz 0x50000000
maxdsiz_64bit 0x80000000
maxssiz 0x8000000
maxssiz_64bit 0x40000000
maxtsiz 0x8000000
maxtsiz_64bit 0x80000000
Is it necessary to increase any value to make the program works?
Thanks,
Simon
I was tracing a application which failed on memory allocation.
The tusc out shown the following
brk(0x79e20000) .................................................... ERR#12 ENOMEM
Which does the hex value mean? Is the the size in bytes?
The maxdsiz & maxssiz set on the server as belows (HPUX11i)
maxdsiz 0x50000000
maxdsiz_64bit 0x80000000
maxssiz 0x8000000
maxssiz_64bit 0x40000000
maxtsiz 0x8000000
maxtsiz_64bit 0x80000000
Is it necessary to increase any value to make the program works?
Thanks,
Simon
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2005 10:08 AM
06-16-2005 10:08 AM
Solution
The value is a pointer for the end of the data segment. It means that you have bumped into maxdsiz for 32-bit programs or maxdsiz_64bit for 64-bit programs. It could also fail below maxdsiz if no more virtual memory were available (ie out of swap space).
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2005 03:24 PM
06-16-2005 03:24 PM
Re: brk system call failed
brk value is an offset from the start of the second quadrant (Q2) which is at 0x40000000. Subtract these two numbers and you will find out how much memory program tried to allocate. The end of the second quadrant is at 0x80000000.
It looks like you have 32-bit program, so it may be possible for it to allocate more than 1G by using chatr
# chatr +q3p enable +q4p enable
This will allow use of private data in third and forth quadrant, which should give you an extra 2G.
You will also need to bump up maxdsiz and maxdsiz_64bit accordingly.
All of this assumes that you have enough virtual memory (RAM + swap) configured in your system.
It looks like you have 32-bit program, so it may be possible for it to allocate more than 1G by using chatr
# chatr +q3p enable +q4p enable
This will allow use of private data in third and forth quadrant, which should give you an extra 2G.
You will also need to bump up maxdsiz and maxdsiz_64bit accordingly.
All of this assumes that you have enough virtual memory (RAM + swap) configured in your system.
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