CAFE

RHEV/KVM

KVM의 Memory overcommit의 제한은?

작성자이누기|작성시간11.03.15|조회수2,069 목록 댓글 1

우선 RHEV 에서 사용되는 하이퍼바이져 KVM의 경우 몇가지 MOM이라는 memory overcommit manager를 통해서

vm들의 메모리를 관리하고 이를 통해 실제 물리적인 메모리보다 더 많은 메모리들을 가상머신들에 할당할 수 있습니다.

 

기본적으로는 보통 두가지 형태로 Memory Ballooning과 KSM을 사용합니다.

RHEV 2.2에서는 기본적으로 서버 150%, 데스크탑 200% 로 overcommit할 수 있는 메뉴가 제공되며 Administrator Guide를 확인해 보면

500% 까지 설정할 수 있는 것으로 나타나 있습니다.

설정하는 방법은 hyervisor에서 cdrom이나 usb로 부팅하여 파라메터를 인터렉티브하게 변경한 후 적용하면 됩니다.(mem_overcommit 값)

아래는 Admin Guide의 내용입니다.

너무 큰 memory overcommit 설정은 과도한 swap를 유발한다고 나타나 있군요.


Memory overcommit
KVM supports memory overcommit and can store the memory of guests in swap.
A guest will run slower if it is swapped frequently.
When KSM is used, make sure that the swap size is the size of the overcommit ratio.


Max Host Memory Over-Commit(Desktops)
Percentage of memory over-subscription allowed. The default of 150% is used but can be set to 500%.
Higher values of memory over-commitment are possible; however, more CPU is used for the background KSM process.
If virtual machines are not reasonably similar, the possibility of excessive swapping can occur.


Max Host Memory Over-Commit(Servers)
Percentage of memory over-subscription allowed. The default of 150% is used but can be set to 500%.
Higher values of memory over-commitment are possible; however, more CPU is used for the
background KSM process.
If virtual machines are not reasonably similar, the possibility of excessive swapping can occur

 

관련 사이트
http://www.linuxtopia.org/online_books/rhel6/rhel_6_virtualization/rhel_6_virtualization_sect-Virtualization-Tips_and_tricks-Overcommitting_with_KVM.html
http://www.linuxtopia.org/online_books/rhel6/rhel_6_virtualization/rhel_6_virtualization_sect-Virtualization-Virtualization_limitations-KVM_limitations.html

 

 

다음검색
현재 게시글 추가 기능 열기

댓글

댓글 리스트
  • 작성자orion | 작성시간 12.11.06 VMware와 마찬가지로 KVM에서도 memory over-commit이 지원되는군요. VMware에서는 VM이 부팅이 될 경우 할당된 물리적인 메모리 크기와 동일한 크기의 swap파일이 생성되며 이것이 메모리로 활용이 됩니다. 메모리가 부족할 경우 swap 공간을 활용하지만 swap이 많을수록 성능에 문제가 생기므로 메모리 사용량이 많은 VM을 매우 많이 사용하는 환경에서는 너무 과도하게 over-commite을 하지 않는게 좋다고 합니다. VMware에서도 할당된 메모리 크기의 약 50%까지만 권장을 하고 있다고 합니다.
댓글 전체보기
맨위로

카페 검색

카페 검색어 입력폼