Performance troubleshooting in Hyper-V

16

description

Prezentacja z Windows Server® Infrastructure Days 2014 na temat "Performance troubleshooting in Hyper-V"

Transcript of Performance troubleshooting in Hyper-V

Page 1: Performance troubleshooting in Hyper-V
Page 2: Performance troubleshooting in Hyper-V
Page 3: Performance troubleshooting in Hyper-V

99% problemów wynika…

Page 4: Performance troubleshooting in Hyper-V
Page 5: Performance troubleshooting in Hyper-V
Page 6: Performance troubleshooting in Hyper-V

Różności

• http://social.technet.microsoft.com/wiki/contents/articles/12

5.hyper-v-survival-guide.aspx

• Aktualizacje! Najlepiej być miesiąc do tyłu ;)

• Istotne są aktualizacje dodatkowe

• Technet Wiki

http://social.technet.microsoft.com/wiki/contents/articles/20

885.hyper-v-update-list-for-windows-server-2012-r2.aspx

• Co mówi producent Twojego sprzętu? Sprzętowe dopalacze*

• Czy sprzęt jest certyfikowany? -

http://www.windowsservercatalog.com/

• Zawsze nowy bios i sterowniki!

Page 7: Performance troubleshooting in Hyper-V

CPU

• Core ratio– ((Get-VM | ? State -eq "Running") | Measure-Object -Property ProcessorCount -Sum).Sum / ((get-wmiobject win32_processor).NumberOfCores * @(get-

wmiobject win32_processor).Count)

– Bazy danych max 2:1, Aplikacje 8:1, VDI 12:1

• HT to nie core!!!

• Trzeba liczyć min 10% core na potrzeby root

partition/Hypervisor

• Jeśli używamy dodatków do replikacji zasobów

dyskowych/Storage Spaces to więcej…

• Antywirus to zło… -

http://social.technet.microsoft.com/wiki/contents/articles/95

3.microsoft-anti-virus-exclusion-list.aspx

Page 8: Performance troubleshooting in Hyper-V

CPU - Performance monitor

• \Process\% Processor time

• \Process\Working Set

• \Hyper-V Hypervisor Logical Processor(_Total)\*

• \Hyper-V Hypervisor Logical Processor(_Total)\% Total Run Time

– < 60% = dobrze

– 60% - 89% = monitoruj

– > 90% = !!!

Page 9: Performance troubleshooting in Hyper-V

HDD

• Testy wydajności – sqlio i iometer/testy obciążeniowe, a nie

konsumenckie zabawki do testów

• Testy wydajności – zapis i odczyt sekwencyjny prawie zawsze to

kłamstwo

• RAID, RAID, RAID…

• VHD, VHDX, stałe, dynamiczne

• Czy masz dobrze skonfigurowany CSV?

• Hyper-V Replica – IOPS Killer

• iSCSI i FC vs MPIO

Page 10: Performance troubleshooting in Hyper-V

HDD - Performance monitor

• \Logical Disk(*)\Avg. sec/Read i \Logical Disk(*)\Avg. sec/Write

– < 15 ms = dobrze

– 15 ms - 25ms = monitoruj

– > 26 ms = !!!

• \Hyper-V Virtual Storage Device\*

• \Hyper-V Virtual IDE Controller(*)\*

• \Physical Disk(*)\Current Disk Queue Length

• \Physical Disk(*)\Disk Bytes / sec

• \Physical Disk(*)\Disk Transfers/sec

Page 11: Performance troubleshooting in Hyper-V

NIC

• VMQ

• NIC Teaming

• Storage po NIC

Page 12: Performance troubleshooting in Hyper-V

NIC - Performance monitor

• \Network Interface(*)\Bytes Total/sec

– < 40% = dobrze

– 41% - 64% = monitoruj

– > 65% = !!!

• \Hyper-V Virtual Network Adapter(*)\Bytes/sec

• \Network Interface(*)\Output Queue Length

• \Network Interface(*)\*

• \Hyper-V Virtual Switch(*)\*

• \Hyper-V Legacy Network Adapter(*)\*

• \Hyper-V Virtual Network Adapter(*)\*

Page 13: Performance troubleshooting in Hyper-V

RAM

• Narzut pamięci:

– „300 MB for the hypervisor, plus 32 MB for the first GB of RAM

allocated to each virtual machine, plus another 8 MB for every

additional GB of RAM”

– 2 GB dla root partition bez klastra, 4 GB z klastrem, z ficzerami 6 i

więcej.

• Na produkcji nie alokować więcej pamięci dynamicznej niż

mamy w hoście.

Page 14: Performance troubleshooting in Hyper-V

RAM - Performance monitor

• \Memory\Available Mbytes

• \Memory\Pages/sec

Page 15: Performance troubleshooting in Hyper-V

Maszyna wirtualna

• Komponenty integracyjne

• Standardowe badanie OS

• Posprzątałeś po P2V?

Page 16: Performance troubleshooting in Hyper-V

Dziękuję!