8.6. Malloc'ed Memory

For the “C” language, process private and thread global memory can be allocated via the malloc() library call. HP-UX will allocate the requested memory using the largest pages possible based on the general large page parameters set up in the kernel or via the process's large page parameters. HP-UX provides the mallopt() call and environment variables to control the performance of the malloc() routine.

8.6.1. Mallopt

The mallopt call allows the application to modify the way the malloc() function works. The important options that can be set via mallopt() are M_MXFAST, M_NMBLKS, and M_GRAIN, which control a feature known as small block allocation.

  • Setting the M_MXFAST option indicates that all requests below M_MXFAST bytes ...

Get HP-UX 11i Tuning and Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.