System configuration for large pages

You must configure your system to use large pages and you must also specify the amount of physical memory that you want to allocate to back large pages.

By default, the system does not have any memory allocated to the large page physical memory pool. You can use the vmo command to configure the size of the large page physical memory pool. The following example allocates 1 GB of memory to the large page physical memory pool:
# vmo -r -o lgpg_regions=64 -o lgpg_size=16777216
To use large pages for shared memory, you must enable the SHM_PIN shmget() system call with the following command, which persists across system reboots:
# vmo -p -o v_pinshm=1
To see how many large pages are in use on your system, use the vmstat -l command as in the following example:
# vmstat -l

kthr     memory             page              faults        cpu      large-page 
                                                                                
----- ----------- ------------------------ ------------ ----------- ------------
 r  b   avm   fre  re  pi  po  fr   sr  cy  in   sy  cs us sy id wa   alp   flp 
 2  1 52238 124523   0   0   0   0    0   0 142   41  73  0  3 97  0     16     16
From the above example, you can see that there are 16 active large pages, alp, and 16 free large pages, flp.