slowhyper-v
hyper-v 时间:2021-03-28 阅读:(
)
HyperV_MonAFreeToolFromTMurgentTechnologiesVersion1.
6IntroductionHyperV_MonisaGUItoolforviewingCPUperformanceofasystemrunningHyper-VfromMicrosoft.
VirtualizationaddsalayerofcomplexitytounderstandingtrueCPUusageofavirtualmachine.
Thistoolprovidesasimpletoviewsetofgraphstodepictactualprocessorutilization,including"overhead"processingduetotheuseoftheHypervisor.
HyperV_Monisnotintendedtobearegularmonitoringtoolthatyouuseeveryday.
Thistoolisdesignedtohelpyouunderstandwhatisgoingonwhenyouneedtoknowit.
Thetoolrequiresthatyouhave.
theNET3.
5FrameworkinstalledonthemachinethatyouwishtoruntheGUIon.
Ifyoudidn'tinstallServerCore,youcanplaceitontherootpartitionmachine,buttypicallyyouwanttoplacethisonadesktopthatisnotontheHyper-Vservertominimizeimpactontheserveritself.
ThetoolleveragestheRootPartitionWMIprovider–thesameinterfaceasisusedbySCVMMandthirdpartytools.
SoaslongastheremoteGUIuserhasWMIaccesstotheRootPartitionServeryouaregoodtogo.
SomeofthenewfeaturesinHyperV_MonalsoneedWMIaccesstotheVMsthemselves,butwillreasonablyoperateifaccesstotheVMsarenotavailable.
Thetoolhasnoinstaller.
Justanexewithaconfigurebutton.
Theterm"Overhead"isusedinthisdocumentandintheproductasashorthandtocapturetheconceptofprocessingthatisbeingperformedbytheHypervisoritself.
Technically,thisisnot"overhead"inthesenseofprocessingthatwouldnotbeoccurringifyoudidn'tvirtualize.
Whilesomeofthisprocessingtrulyrepresentsoverhead,someofitrepresentsprocessingthatwouldhaveoccurredindriversofthenon-virtualizedsystem.
SettingUpTheToolAftercopyingtheexeontoasystem,startitandmouseclickthe"Configure"button.
TheConfiguredialogisshowninFigure1.
Youmustenteraqualifiednameforthehostintherootpartitionoftheservertobemonitored.
Anyresolvablenamemaybeused.
TheDebugleveldefaultsto0–meaningnodebugging.
Youcanmovetheslidertotherighttoenabledebuggingandconfigurehowmuchinformationtolog.
Level1providesforerrorsonly.
Thelogfilewillbeappendedtointhecurrentworkingfolder.
Thepollingintervaldefaultsto1second.
Movetheslidertotherighttoslowdownpoling.
ThethreeConfigurationitemsarewrittentotheHKEY_CURRENT_USERhive.
Figure1-ConfigureScreenHyperV_MonrequiresaccesstotheWMIprovidersoftherootpartitionofthetargetmachine.
Thiscanprovetobeaproblemunlessthemachine(anduseraccountyouarerunningunder)thattheGUIisonisinthesamedomainastheRootPartition.
SeetheblogofMicrosoft'sJohnHowardhttp://blogs.
technet.
com/jhoward/default.
aspx(especiallyHyper-VRemoteManagementParts1-5)ifyouarehavingdifficulty.
Basically,ifyoucanrunwbemtestonyourclientmachineandconnecttotherootpartitionmachineyouwillbegoodtogo.
UsingTheToolFigure2showsanexampleoftheGUIinaction.
Atthebottomlayerofthedisplayisthehardware.
Notmuchtotalkaboutthere.
Itdoesn'tmatterwhatyourhardwarelookslike,thegraphicwilllooklikea1Urackserverfrommylab.
Someinformationisdisplayedidentifyingthehardware.
ThenextlayerupistheHypervisor.
OnlyMicrosoftHyper-V,andHyper-VR2aresupported.
Thenumberof"LogicalCPU"physicallyinstalledisdetectedanddepicted.
ActualCPUusageatthephysicallayerisreported.
Inourcase,thiswasasinglequad-coreprocessor.
Intheexample,almostalloftheCPUisrelatedtoGuestusageandisshowninalightershadeofgreen.
CPUusagetiedtoHypervisorFigure2-ASampleoftheGUIinAction!
callsisshownattheloweredgeinadarkergreencolor.
ItiseasiesttothinkoftheHypervisorcallsas"hypervisoroverhead",althoughtechnicallysomeofthat"overhead"isprocessingthatwouldhavebeenperformedtheguestwasonrawmetalhardware.
Thelast60intervalmeasurementsaredisplayed(1secondeach,bydefault)withthemostrecentintervaldisplayedontherightofthegraph.
Thebluespline(curvyline)representsarunninglongertermaverage(eachdotdepictsthemostrecent60-intervalaveragetotalCPUatthetimeoftheinterval)fortrending.
AbovetheHypervisorlayerthedisplayhastwomajorparts,situatedleftandright.
OntheleftistheRootPartitionOS.
ThisistypicallywhereyourServerCoreisrunning.
Intheexamplethiswasafullblown2008withAD,DNS,IIS,TerminalServices,andahostofotherthingstobeinteresting.
TheRootPartitionhas"VirtualProcessors",andHyper-Vwillsupplyoneforoneforeach"LogicalProcessor"intheHypervisor.
TheHypervisorwillscheduletheRootPartitionvirtualprocessors(alongwithguestvirtualprocessors)intologicalprocessorsasitseesfit.
Thinkofthisasround-robinscheduling.
IfranasinglethreadedappontherootpartitionandusedprocessoraffinitywithintheRootpartitionOS,youwouldseealloftheCPUforthatapprunninginoneoftherootpartitionvirtualprocessors–justasyouwouldseefromthetaskmanagerinsidetherootpartition.
ButlookingattheHypervisorlayeryouwillseethattheloadwasactuallyspreadoutamongthelogicalprocessors!
Figure3-ExampleshowingHypervisorcallsOntheright,intheyellowarea,aretheactiveGuestVirtualMachines.
ThesealsohaveVirtualProcessors.
BoththeRootPartitionandGuestVMsvirtualprocessordisplaysshowCPUusagebrokenbetweenappropriateOSandHypervisorusage.
SeeFigure3foranexampleofthisYoushouldnotethatthetaskmanagerinsideguestOSmachineslies.
Thisisn'tthetaskmanager'sfault.
IntheexampleshowninFigure3,theWindowsTaskManagerwithintheguestoswouldbeshowing100%CPUutilizationwhereoursnapshotshowsonly90%.
Microsoftreferstothisasclockslew,butbasicallytheHypervisorispullingtherugoutfromundertheOS'snose(de-schedulingthevirtualprocessor)andtheOSdoesn'tknowit.
Thisiswhywemustpullinformationoutofthehypervisortoknowwhatisreallygoingon.
AlsonotehowtheheavyprocessinginsideofoneVMisbeingspreadbetweenmultiplevirtualprocessors.
ThiswilloccurevenifprocessoraffinityisusedintheVM,asisintheexampleFigure4.
Inthiscase,afullyconsumingsinglethreadedprocessstartedintheVMw7Beta-9-1,adual-processorVM.
Afterrunningforabout10seconds,weappliedprocessoraffinitytothesingle-threadedprocessFigure4-ExamplewithProcessorAffinityinsidetheVM,assigningitto(virtual)processor0.
AscanbeseenintheVMgraphs,theloadchangesfrombeingsplitbetweentheVMsvirtualprocessorstoconsumingonlyvirtualprocessor0,andyetatthehypervisorlevelweseenoeffectontheloadingofphysical(logical)processors.
ThishasimplicationsonrunningHyper-VonaNUMA(Non-UniformMemoryAccess)system.
IfyouareusingaNUMAhardwareplatformyoumightwanttoconsiderreadinguponappropriatetechniquestoassociateVMsandVMmemorytospecificNUMAgroups(c.
f.
"WindowsServer2008Hyper-VResourceKit",MicrosoftPress).
Withthistool,itiseasytounderstandwhyWindowsXPandearlierOSssignificantlyunderperformsonHyper-VincomparisontoWindowsServer2003,orVista,orabove.
Youwillseesignificantlymorehypervisor"overhead"processingwiththeolderoperatingsystemsbecauseMicrosoftmademodificationstotheneweroperatingsystemstobehypervisor(andprocessorVT)aware.
ThosenewerOSsdonotdisplaysuchbehavior.
Itisallintheenlightenments!
Inmysetup,itiscommontoseeheavyhypercallCPUusagewithheavyIOusageintheXPVMsasisseeninFigure5.
TheamountofoverheadyouseewithWindowsXPisnotlikelytobeashighasisshowninthisexample.
Thisisunderinvestigation(theremaybeaCPU/chiprevisionlevelinvolvedinmysetup),andiswhyImadethistoolinthefirstplace!
Figure5-WindowsXPHypervisorLoadExampleNewStuffInadditiontomakingthegraphsshowhistoricalinformationandtherollingaverageblueline,youcannowhoverthemouseoverbothgraphsandthemanytextsectionstoseemoredetailinformationin"tooltips".
Memoryrelatedinformationhasbeenadded,bothfortherootpartitionandtheVMs(whenWMI/RPCaccessisallowed).
ThisinformationisfocusedonthreekeyvaluestohelpyoudecideifyouhavetoomuchortoolittlememoryinstalledintheVM.
InstallindicatesthenumberofMegabytesphysicallyinstalledinthecaseoftherootpartition,orallocatedtotheVMinthecaseofVMs.
Availablememoryistheportionoftheinstalledmemoryconsidered"available"bytheOS(thetechnicaldefinitionofavailablememoryvariesinsomeOSs,butconsideritasmemoryavailabletoanapplicationondemandwithoutrequiringexistingmemorytobepagedout).
NotethatMemoryallocatedtorunningVMsarealsoshownasconsumedmemoryinthehostpartitionOS.
ThehostandVMpartitionsalsoshowthekeystatistic"PgIn/S".
Thisrepresentsthenumberofbytespersecondreadinfromthediskduetohardpagefaults.
Heavypagingactivityinthiscounterindicatestheneedformorememory.
Finally,someFileandTCPI/Ocountershavebeenaddedtotherootpartitiondisplay.
FileandnetworkI/Otogetherrepresentthethirdmajorperformanceconcernfortheserver(afterCPUandMemory).
LegaleseTheproductisfree;hasnosupport;isnotwarrantedforanyuse.
Feedbackisencouraged.
Giftsacceptedgratefully.
iON Cloud怎么样?iON Cloud今天发布了7月份优惠,使用优惠码:VC4VF8RHFL,新购指定型号VPS半年付或以上可享八五折!iON的云服务器包括美国洛杉矶、美国圣何塞(包含了优化线路、CN2 GIA线路)、新加坡(CN2 GIA线路、PCCW线路、移动CMI线路)这几个机房或者线路可供选择,有Linux和Windows系统之分,整体来说针对中国的优化是非常明显的,机器稳定可靠,比...
webhosting24决定从7月1日开始对日本机房的VPS进行NVMe和流量大升级,几乎是翻倍了硬盘和流量,当然前提是价格依旧不变。目前来看,国内过去走的是NTT直连,服务器托管机房应该是CDN77*(也就是datapacket.com),加上高性能平台(AMD Ryzen 9 3900X+NVMe),这样的日本VPS还是有相当大的性价比的。官方网站:https://www.webhosting...
对于一般的用户来说,我们使用宝塔面板免费版本功能还是足够的,如果我们有需要付费插件和专业版的功能,且需要的插件比较多,实际上且长期使用的话,还是购买付费专业版或者企业版本划算一些。昨天也有在文章中分享年中促销活动。如今我们是否会发现,我们在安装宝塔面板后是必须强制我们登录账户的,否则一直有弹出登录界面,我们还是注册一个账户比较好。反正免费注册宝塔账户还有代金券赠送。 新注册宝塔账户送代金券我们注册...
hyper-v为你推荐
网络访问最近电脑老是连不上网 提示说 无网络访问 无INTERNET访问是怎么回事啊。sonicchat苹果手机微信显示WeChat地陷裂口地陷前期会有什么征兆吗?se95se.com现在400se就是进不去呢?进WWW怎么400se总cOM打开一半,?求解www.se222se.comhttp://www.qqvip222.com/baqizi.cc誰知道,最近有什麼好看的電視劇www.15job.com南方人才市场有官方网站是什么?sodu.tw台湾人看小说的网站是机器蜘蛛挑战或是生存Boss是一只巨型机器蜘蛛的第一人称射击游戏叫什么www.1diaocha.com请问网络上可以做兼职赚钱吗?现在骗子比较多,不敢盲目相信。请大家推荐下
网站虚拟主机空间 西安服务器租用 香港cdn typecho 商务主机 绍兴高防 微信收钱 刀片式服务器 电信虚拟主机 dnspod 华为云建站 小夜博客 google搜索打不开 免费获得q币 reboot 傲盾代理 俄勒冈州 crontab 主机游戏 kosskeb79 更多