'Memory단편화'에 해당되는 글 1건

  1. 2009/05/29 Exchange - The "HeapDecommitFreeBlockThreshold" registry key

Exchange 2003 시스템에서 메모리관리는 상당히 중요한 부분을 차지 한다.

 

Exchange 2003에 속도 저하 이슈 혹은 메모리 부족에 관련된 이슈가 있을 경우 아래 2가지를 체크

해보시길 바랍니다.

 

  1. /3GB  옵션을 사용해라

     관련 KB : /userva 스위치를 /3GB 스위치와 함께 사용해서 사용자 모드 공간을 2GB에서 3GB 사이의 값으로 조정하는 방법

     

  2. 가상메모리 단편화에 따른 메모리 단편화 레지스트리 수정

    관련 KB : The "HeapDecommitFreeBlockThreshold" registry key

       기억속을 날다님의 글 : 골치 아픈 Memory Fragmentation

 

 요약

This article describes the HeapDecommitFreeBlockThreshold registry key.

When memory is freed at a given address, the heap manager checks how many contiguous bytes are free around that address. After that check is complete, the heap manager can do one of two things:

  • Keep the contiguous memory block committed.
  • Decommit the contiguous memory block and mark it as reserved only.

The HeapDecommitFreeBlockThreshold registry key specifies the number of contiguous bytes above which the memory is decomitted (the second option) rather than retained for reuse (the first option).

Note On computers that have one gigabyte or more of RAM, apply the following setting for maximum performance:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager HeapDeCommitFreeBlockThreshold = REG_DWORD 0x00040000

On computers that have less than one gigabyte of RAM, do not use the HeapDecommitFreeBlockThreshold registry key unless intense memory fragmentation is occurring.

 

 추가 정보

 

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:

322756  (http://support.microsoft.com/kb/322756/ ) How to back up and restore the registry in Windows


By default, the heap manager does not necessarily combine all free blocks or make new allocations; therefore, blocks may be de-committed and become useless holes in the virtual address space. The HeapDecommitFreeBlockThreshold registry key provides better control of how the memory is handled as it is freed. To add this key, you need to edit the registry.

To add the HeapDecommitFreeBlockThreshold registry key:

Start Registry Editor (Regedt32.exe).
Locate and click the following key in the registry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
On the Edit menu, click Add Value, and then add the following registry value:
Value name: HeapDecommitFreeBlockThreshold
Data type: REG_DWORD
Radix: Decimal
Value Data: The number of bytes

This value specifies the number of freed bytes above which the heap manager decommits the memory (instead of retaining and reusing the memory). If you set this registry key to a high value (for example, 262144), the heap manager is more effective when making sure that no bytes are decommitted. Therefore, virtual address fragmentation is lessened or even avoided.


Note This value is the number of bytes in decimal. The recommended value is 262144 which corresponds with a hex value of 0x00040000.
Quit Registry Editor.
Restart your computer.

 

단 해당 조정 후 서버 Restart는 필수 사항 입니다.

 

 

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2009/05/29 07:47 2009/05/29 07:47