Setting the preferred page sizes of an application with an environment variable

You can set the preferred page sizes of a process with the LDR_CNTRL environment variable.

As an example, the following command causes the mpsize.out process to use 4 KB pages for its data, 64 KB pages for its text, 64 KB pages for its stack, and 64 KB pages for its shared memory on supported hardware:

$ LDR_CNTRL=DATAPSIZE=4K@TEXTPSIZE=64K@STACKPSIZE=64K@SHMPSIZE=64K mpsize.out

The page size environment variables override any page size settings in an executable's XCOFF header. Also, the DATAPSIZE environment variable overrides any LARGE_PAGE_DATA environment variable setting.