Setting an environment variable to request large pages

You can use the LDR_CNTRL environment variable to configure an application to use large pages for the application's data and heap segments. The environment variable takes precedence over the blpdata flag in the executable file.

The following options are available with the LDR_CNTRL environment variable:

  • The LDR_CNTRL=LARGE_PAGE_DATA=Y option specifies that the application that is executed should use large pages for its data and heap segments, which is the same as marking the executable file to use large pages.
  • The LDR_CNTRL=LARGE_PAGE_DATA=N option specifies that the application that is executed should not use large pages for its data and heap segments, which overrides the setting in an executable marked to use large pages.
  • The LDR_CNTRL=LARGE_PAGE_DATA=M option specifies that the application that is executed should use large pages in mandatory mode for its data and heap segments.
Note: Set the large page environment variable only for specific applications that might benefit from large page usage. Otherwise, you might experience some performance degradation of your system.