- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem with mallopt()
Operating System - HP-UX
1822732
Members
3742
Online
109644
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-05-2003 10:12 PM
06-05-2003 10:12 PM
Problem with mallopt()
Hi,
the call int mallopt(int cmd, int value); in malloc.h it defines a cmd M_ENABLE_MMAP, plz can any body tell me what it means and why it is used?? is documentation/help available on it any where??
Thanks
Sunil.
the call int mallopt(int cmd, int value); in malloc.h it defines a cmd M_ENABLE_MMAP, plz can any body tell me what it means and why it is used?? is documentation/help available on it any where??
Thanks
Sunil.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2003 03:15 PM
06-06-2003 03:15 PM
Re: Problem with mallopt()
It tells malloc to switch from brk calls to mmap of shared memory segments when brk calls stop working. That lets a 32-bit process malloc more memory than it could with brk alone. It was not officially documented. It is not a good general solution because it uses up the system-wide shared memory address space. Even two processes using M_ENABLE_MMAP could interfere with eachother. Many processes using it would very quickly reach the point where they couldn't get substantially more memory. And that would also interfere with the allocation of shared memory for interprocess communication.
Current PA-RISC HP-UX releases have better solutions. Use "ld -N", chatr +q3p, and chatr +q4p for 32-bit processes. Or use 64-bit processes.
Current PA-RISC HP-UX releases have better solutions. Use "ld -N", chatr +q3p, and chatr +q4p for 32-bit processes. Or use 64-bit processes.
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