- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- mallinfo for 64bits
Operating System - Linux
1820274
Members
3296
Online
109622
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
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
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-26-2005 01:57 PM
тАО07-26-2005 01:57 PM
mallinfo for 64bits
Hi,
I was checking the mallinfo struct in /usr/include/malloc.h and it looks like this,
/* structure filled by */
struct mallinfo {
int32_t arena;
int32_t ordblks;
int32_t smblks;
int32_t hblks;
int32_t hblkhd;
int32_t usmblks;
int32_t fsmblks;
int32_t uordblks;
int32_t fordblks;
int32_t keepcost;
};
My question is since all the variables are int32_t how does it track the heap, when heap's size grows bigger that 4GB ?
Thanks,
Mukund
I was checking the mallinfo struct in /usr/include/malloc.h and it looks like this,
/* structure filled by */
struct mallinfo {
int32_t arena;
int32_t ordblks;
int32_t smblks;
int32_t hblks;
int32_t hblkhd;
int32_t usmblks;
int32_t fsmblks;
int32_t uordblks;
int32_t fordblks;
int32_t keepcost;
};
My question is since all the variables are int32_t how does it track the heap, when heap's size grows bigger that 4GB ?
Thanks,
Mukund
- Tags:
- mallinfo
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2005 02:12 PM
тАО07-26-2005 02:12 PM
Re: mallinfo for 64bits
Not possible. That's why the default maximum size for the data area is apx. 960 megs, 1750 megs when the programs is compiled as EXEC_MAGIC, and up to 2700 or 3700 megs with HP-UX 11.11 and latest patches. The only way to reference more memory is to compile your program as a 64bit executable so the data model is 64bits.
Bill Hassell, sysadmin
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2005 10:24 AM
тАО07-29-2005 10:24 AM
Re: mallinfo for 64bits
Unfortunately there is no 64-bit equivalent to the mallinfo data. You would need to use some other malloc analysis tool to get malloc usage data when using more than 4GB of heap.
There are other malloc checking tools like purify, wdb's malloc checker, mpr-2.2, or dmalloc-5.4.2. The last two are available for download from http://hpux.cs.utah.edu/ .
There are other malloc checking tools like purify, wdb's malloc checker, mpr-2.2, or dmalloc-5.4.2. The last two are available for download from http://hpux.cs.utah.edu/ .
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP