2009年3月16日星期一

手动控制AIX下应用程序可用堆内存大小

export LDR_CNTRL="MAXDATA=0x40000000"; ./app

Working with the LDR_CNTRL environment variable

The LDR_CNTRL environment variable controls the way AIX® handles the memory space available to a 32-bit program and the page sizes used within each segment. The POWER4™ and later PowerPC® processors support the use of 16 MB large pages in addition to the default 4 KB pages. The POWER5+™ and later PowerPC processors add support for two new page sizes, 64 KB and 16 GB.

Controlling the available memory space

The SDK normally sets appropriate LDR_CNTRL=MAXDATA settings automatically for the size of the Java™ heap. However, if you explicitly set the LDR_CNTRL=MAXDATA environment variable the SDK will not override the value you have specified. Do not override the automatic settings unless you have a complete understanding of the AIX memory models. For more information about the AIX memory models and the automatic settings used by the SDK.

没有评论:

发表评论