- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- maxdsiz and mallinfo()
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
тАО04-23-2003 01:35 PM
тАО04-23-2003 01:35 PM
System-tracked memory statistics:
----------------------------------------------------
Total space in arena 359501064 bytes
Number of ordinary blocks 352488
Number of small blocks 0
Space in holding block headers 0 bytes
Number of holding blocks 0
Space in small blocks in use 0 bytes
Space in free small blocks 0 bytes
Space in ordinary blocks in use 359555296 bytes
Space in free ordinary blocks 863208 bytes
Space penalty for keep option 0 bytes
Please help me to understand the result from mallinfo... Specifically, where is maxdsize in the picture???
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2003 02:16 PM
тАО04-23-2003 02:16 PM
Re: maxdsiz and mallinfo()
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2003 09:30 AM
тАО04-24-2003 09:30 AM
Solutionmaxdsiz is one of the limits that could cause a malloc to fail. It could also fail for running out of swap space, or for reaching the start of another memory segment.
You can inquire maxdsiz on 11.11 and later by calling gettune().
To use 1.9GB your process will need to be linked with -Wl,-N. That makes data in a 32-bit process start just above the text area instead of starting at 0x4000000.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2003 10:16 AM
тАО04-24-2003 10:16 AM
Re: maxdsiz and mallinfo()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2003 10:48 AM
тАО04-24-2003 10:48 AM
Re: maxdsiz and mallinfo()
The "small blocks" data from mallinfo refers to the "small block allocator" or SBA. That uses a different strategy to make small block allocations more efficient. It handles malloc requests smaller than M_MXFAST bytes by allocating large groups of those small blocks and then allocating and releasing those smaller blocks within the groups of the same size. That can make malloc/free quite a bit faster. It can also reduce fragmentation caused by small blocks getting in between large free blocks and preventing them from being coalesced for a large request.
The -Wl,-N option is not the default. You need to use that explicitly to get more data area. You can also use "chatr +q3p enable" on 11i or a properly patched 11.00. The more extreme "chatr +q4p enable" can be used on 11i if your process can run without shared memory. Those chatr options can drive maximum data size to almost 3GB or almost 4GB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2003 07:28 AM
тАО04-25-2003 07:28 AM
Re: maxdsiz and mallinfo()
----------------------------------------------------
Total space in arena 632114272 bytes
Number of ordinary blocks 443748
Number of small blocks 0
Space in holding block headers 0 bytes
Number of holding blocks 0
Space in small blocks in use 0 bytes
Space in free small blocks 0 bytes
Space in ordinary blocks in use -352390632 bytes
Space in free ordinary blocks 247702416 bytes
Space penalty for keep option 0 bytes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2003 08:42 AM
тАО04-25-2003 08:42 AM
Re: maxdsiz and mallinfo()
echo '2^32 - 352390632' | bs
which in this case is 3942576664.
That's kind of big.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2003 04:30 AM
тАО04-28-2003 04:30 AM
Re: maxdsiz and mallinfo()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2003 11:49 AM
тАО04-28-2003 11:49 AM
Re: maxdsiz and mallinfo()
"Space in ordinary block in use" is the amount of currently malloc'd memory that was allocated in chunks larger than the M_MXFAST small block limit, and that has not been freed by the application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2003 03:34 PM
тАО04-28-2003 03:34 PM
Re: maxdsiz and mallinfo()
I still don't know how I can interpret the result of mallinfo()... Please help me again
Thanks a lot