Kev tshuaj xyuas ntawm lub tshuab virtual ua haujlwm hauv VMware vSphere. Ntu 1: CPU

Kev tshuaj xyuas ntawm lub tshuab virtual ua haujlwm hauv VMware vSphere. Ntu 1: CPU

Yog tias koj tswj hwm cov txheej txheem virtual raws li VMware vSphere (lossis lwm yam khoom siv thev naus laus zis), tej zaum koj yuav hnov ​​​​cov lus tsis txaus siab los ntawm cov neeg siv: "Lub tshuab virtual qeeb!" Hauv cov kab lus no kuv yuav txheeb xyuas cov kev ntsuas kev ua tau zoo thiab qhia koj tias vim li cas nws qeeb thiab yuav ua li cas kom paub tseeb tias nws tsis qeeb.

Kuv yuav xav txog cov hauv qab no ntawm kev ua haujlwm ntawm lub tshuab virtual:

  • cpu,
  • NCEJ,
  • DISK,
  • Kev Sib Txuas Lus.

Kuv mam li pib nrog CPU.

Txhawm rau txheeb xyuas qhov ua tau zoo peb yuav xav tau:

  • vCenter Performance Counters - cov ntsuas kev ua tau zoo, cov duab uas tuaj yeem pom los ntawm vSphere Client. Cov ntaub ntawv ntawm cov txee no muaj nyob rau hauv ib qho version ntawm tus neeg siv khoom ("tuab" tus neeg siv khoom hauv C #, tus neeg siv lub vev xaib hauv Flex thiab tus neeg siv lub vev xaib hauv HTML5). Hauv cov ntawv no peb yuav siv cov screenshots los ntawm tus neeg siv khoom C#, tsuas yog vim lawv saib zoo dua hauv me me :)
  • ESXTOP - cov khoom siv hluav taws xob uas khiav los ntawm ESXi kab hais kom ua. Nrog nws cov kev pab, koj tuaj yeem tau txais cov txiaj ntsig ntawm kev ua tau zoo hauv lub sijhawm tiag tiag lossis xa cov txiaj ntsig no rau qee lub sijhawm rau hauv .csv cov ntaub ntawv rau kev tshuaj xyuas ntxiv. Tom ntej no, kuv yuav qhia koj ntxiv txog cov cuab yeej no thiab muab ntau yam kev sib txuas rau cov ntaub ntawv thiab cov lus ntawm lub ncauj lus.

Ib qho kev xav ntawm me ntsis

Kev tshuaj xyuas ntawm lub tshuab virtual ua haujlwm hauv VMware vSphere. Ntu 1: CPU

Hauv ESXi, cov txheej txheem sib cais - lub ntiaj teb hauv VMware cov ntsiab lus - yog lub luag haujlwm rau kev ua haujlwm ntawm txhua vCPU (virtual machine core). Kuj tseem muaj cov txheej txheem kev pabcuam, tab sis los ntawm qhov pom ntawm kev txheeb xyuas VM kev ua tau zoo lawv tsis tshua nyiam.

Ib txoj hauv kev hauv ESXi tuaj yeem yog hauv ib ntawm plaub lub xeev:

  • khiav - Cov txheej txheem ua qee yam haujlwm tseem ceeb.
  • tos - cov txheej txheem tsis ua haujlwm (tsis ua haujlwm) lossis tseem tos rau kev tawm tswv yim / tawm.
  • Costop - ib qho xwm txheej uas tshwm sim hauv ntau lub tshuab virtual. Nws tshwm sim thaum lub hypervisor CPU teem sijhawm (ESXi CPU Scheduler) tsis tuaj yeem teem sijhawm ua tiav ib txhij ntawm txhua lub tshuab virtual tshuab cores ntawm lub cev server cores. Nyob rau hauv lub ntiaj teb lub cev, tag nrho cov processor cores ua hauj lwm nyob rau hauv parallel, cov qhua OS nyob rau hauv lub VM xav kom tus cwj pwm zoo sib xws, yog li tus hypervisor yuav tsum qeeb VM cores uas muaj peev xwm ua kom tiav lawv lub moos voj voog sai dua. Nyob rau hauv niaj hnub versions ntawm ESXi, lub CPU teem sij hawm siv ib tug mechanism hu ua so-s teem sij hawm: tus hypervisor txiav txim siab qhov sib txawv ntawm "ces" thiab "slowest" virtual tshuab core (skew). Yog tias qhov sib txawv dhau ntawm qhov chaw pib, qhov ceev ceev nkag mus rau hauv lub xeev costop. Yog tias VM cores siv sijhawm ntau hauv lub xeev no, nws tuaj yeem ua rau muaj teeb meem kev ua haujlwm.
  • npaj - cov txheej txheem nkag mus rau hauv lub xeev no thaum tus neeg saib xyuas tsis tuaj yeem faib cov peev txheej rau nws qhov kev ua tiav. Kev npaj siab siab tuaj yeem ua rau VM teeb meem kev ua haujlwm.

Basic virtual tshuab CPU ua haujlwm txee

Kev siv CPU, %. Qhia qhov feem pua ​​​​ntawm CPU siv rau lub sijhawm.

Kev tshuaj xyuas ntawm lub tshuab virtual ua haujlwm hauv VMware vSphere. Ntu 1: CPU

Yuav txheeb xyuas li cas? Yog tias VM tsis tu ncua siv CPU ntawm 90% lossis muaj qhov siab tshaj 100%, ces peb muaj teeb meem. Cov teeb meem tuaj yeem tshwm sim tsis yog nyob rau hauv kev ua haujlwm "qeeb" ntawm daim ntawv thov hauv VM, tab sis kuj tseem muaj kev nkag tsis tau ntawm VM hauv lub network. Yog tias lub kaw lus saib xyuas pom tau tias VM ib ntus poob, ua tib zoo saib rau qhov siab tshaj plaws hauv CPU Siv daim duab.

Muaj tus qauv tswb uas qhia txog CPU load ntawm lub tshuab virtual:

Kev tshuaj xyuas ntawm lub tshuab virtual ua haujlwm hauv VMware vSphere. Ntu 1: CPU

Kuv yuav ua li cas? Yog tias VM's CPU siv tas li mus dhau lub ru tsev, ces koj tuaj yeem xav txog kev nce tus naj npawb ntawm vCPUs (hmoov, qhov no tsis tas yuav pab) lossis txav VM mus rau lub server nrog cov txheej txheem muaj zog dua.

Kev siv CPU hauv MHz

Hauv cov duab ntawm vCenter Siv hauv % koj tuaj yeem pom tsuas yog rau tag nrho lub tshuab virtual; tsis muaj cov duab kos rau tus kheej cores (hauv Esxtop muaj % tus nqi rau cores). Rau txhua tus tub ntxhais koj tuaj yeem pom Kev Siv hauv MHz.

Yuav txheeb xyuas li cas? Nws tshwm sim hais tias ib daim ntawv thov tsis yog optimized rau ib tug multi-core architecture: nws siv tsuas yog ib tug core 100%, thiab tus so yog idle tsis load. Piv txwv li, nrog lub neej ntawd thaub qab nqis, MS SQL pib cov txheej txheem ntawm ib qho tseem ceeb. Yog li ntawd, cov thaub qab qeeb qeeb tsis yog vim qhov qeeb qeeb ntawm cov disks (qhov no yog qhov uas tus neeg siv pib yws txog), tab sis vim tias lub processor tsis tuaj yeem tiv taus. Qhov teeb meem tau daws los ntawm kev hloov pauv qhov tsis: thaub qab pib ua haujlwm sib luag hauv ntau cov ntaub ntawv (feem ntau, hauv ntau qhov txheej txheem).

Kev tshuaj xyuas ntawm lub tshuab virtual ua haujlwm hauv VMware vSphere. Ntu 1: CPU
Ib qho piv txwv ntawm qhov tsis sib xws ntawm cov cores.

Kuj tseem muaj qhov xwm txheej (raws li hauv daim duab saum toj no) thaum cov cores thauj khoom tsis sib xws thiab qee qhov muaj qhov siab tshaj ntawm 100%. Raws li kev thauj khoom tsuas yog ib qho tseem ceeb, lub tswb rau CPU Siv yuav tsis ua haujlwm (nws yog rau tag nrho VM), tab sis yuav muaj teeb meem kev ua haujlwm.

Kuv yuav ua li cas? Yog hais tias lub software nyob rau hauv lub tshuab virtual loads lub cores unevenly (siv tsuas yog ib tug cores los yog ib feem ntawm lub cores), tsis muaj ib tug taw tes nyob rau hauv nce lawv cov xov tooj. Hauv qhov no, nws yog qhov zoo dua los hloov VM mus rau lub server nrog cov txheej txheem muaj zog dua.

Koj tuaj yeem sim tshawb xyuas cov chaw siv hluav taws xob hauv lub server BIOS. Ntau tus thawj coj ua kom muaj kev ua tau zoo siab hauv BIOS thiab yog li lov tes taw C-xeev thiab P-xeev txuag hluav taws xob thev naus laus zis. Cov txheej txheem Intel niaj hnub siv Turbo Boost thev naus laus zis, uas ua rau cov zaus ntawm ib tus neeg ua haujlwm cores ntawm tus nqi ntawm lwm cov cores. Tab sis nws tsuas yog ua haujlwm thaum lub zog txuag hluav taws xob tau qhib. Yog tias peb lov tes taw lawv, lub processor tsis tuaj yeem txo lub zog siv ntawm cov cores uas tsis thauj khoom.

VMware pom zoo kom tsis txhob cuam tshuam cov cuab yeej txuag hluav taws xob ntawm cov servers, tab sis xaiv cov qauv uas tso cai rau kev tswj hwm hluav taws xob mus rau hypervisor ntau li ntau tau. Nyob rau hauv cov ntaub ntawv no, nyob rau hauv lub hypervisor hwj chim noj chaw, koj yuav tsum xaiv High Performance.

Yog tias koj muaj ib tus neeg VMs (lossis VM cores) hauv koj qhov kev tsim kho uas yuav tsum tau nce CPU zaus, kho kom raug siv fais fab tuaj yeem txhim kho lawv cov kev ua tau zoo.

Kev tshuaj xyuas ntawm lub tshuab virtual ua haujlwm hauv VMware vSphere. Ntu 1: CPU

CPU Npaj

Yog tias VM core (vCPU) nyob rau hauv lub xeev Npaj, nws tsis ua haujlwm tseem ceeb. Qhov xwm txheej no tshwm sim thaum tus hypervisor tsis pom lub cev pub dawb uas lub tshuab virtual vCPU txheej txheem tuaj yeem muab.

Yuav txheeb xyuas li cas? Feem ntau, yog tias lub tshuab virtual lub cores nyob hauv lub xeev Npaj ntau tshaj 10% ntawm lub sijhawm, koj yuav pom cov teeb meem kev ua haujlwm. Yooj yim muab, ntau dua 10% ntawm lub sijhawm VM tos kom muaj peev txheej ntawm lub cev kom muaj.

Hauv vCenter koj tuaj yeem saib 2 lub txee ntsig txog CPU Npaj:

  • kev npaj txhij,
  • Kwv Txhiaj.

Cov txiaj ntsig ntawm ob lub txee tuaj yeem saib ob qho tib si rau tag nrho VM thiab rau tus kheej cores.
Kev npaj qhia tus nqi tam sim ntawd raws li feem pua, tab sis tsuas yog hauv Real-time (cov ntaub ntawv rau lub sijhawm kawg, ntsuas lub sijhawm 20 vib nas this). Nws yog qhov zoo dua los siv cov txee no tsuas yog los tshawb nrhiav cov teeb meem "kub ntawm pob taws".

Npaj counter values ​​kuj tuaj yeem pom los ntawm keeb kwm kev xav. Qhov no yog qhov muaj txiaj ntsig zoo rau kev tsim cov qauv thiab rau kev soj ntsuam tob txog qhov teeb meem. Piv txwv li, yog tias lub tshuab virtual pib muaj teeb meem kev ua haujlwm ntawm ib lub sijhawm, koj tuaj yeem sib piv cov sijhawm ntawm CPU Npaj kom muaj nuj nqis nrog rau tag nrho cov khoom thauj ntawm tus neeg rau zaub mov qhov twg VM no tab tom khiav, thiab ntsuas kom txo cov load (yog tias DRS ua tsis tiav).

Npaj, tsis zoo li Kev Npaj, qhia tsis yog feem pua, tab sis hauv milliseconds. Qhov no yog Summation hom counter, uas yog, nws qhia tau hais tias ntev npaum li cas thaum lub sij hawm ntsuas lub VM core nyob rau hauv lub xeev npaj. Koj tuaj yeem hloov tus nqi no mus rau ib feem pua ​​​​ntawm cov qauv siv yooj yim:

(CPU npaj summation tus nqi / ( daim ntawv hloov tshiab ncua sij hawm nyob rau hauv vib nas this * 1000)) * 100 = CPU npaj %

Piv txwv li, rau VM hauv daim duab hauv qab no, lub ncov Npaj nqi rau tag nrho lub tshuab virtual yuav ua raws li hauv qab no:

Kev tshuaj xyuas ntawm lub tshuab virtual ua haujlwm hauv VMware vSphere. Ntu 1: CPU

Kev tshuaj xyuas ntawm lub tshuab virtual ua haujlwm hauv VMware vSphere. Ntu 1: CPU

Thaum xam qhov Npaj Ua Ntej, koj yuav tsum xyuam xim rau ob lub ntsiab lus:

  • Tus nqi Npaj txhij rau tag nrho VM yog qhov sib npaug ntawm Npaj thoob plaws cores.
  • Kev ntsuas lub sijhawm. Rau Real-time nws yog 20 vib nas this, thiab, piv txwv li, ntawm cov kab kos txhua hnub nws yog 300 vib nas this.

Nrog rau kev daws teeb meem nquag, cov ntsiab lus yooj yim no tuaj yeem plam tau yooj yim thiab lub sijhawm muaj txiaj ntsig tuaj yeem raug nkim ntawm kev daws teeb meem tsis muaj nyob.

Cia peb xam Npaj raws li cov ntaub ntawv los ntawm daim duab hauv qab no. (324474 / (20 * 1000)) * 100 = 1622% rau tag nrho VM. Yog tias koj saib cov cores nws tsis txaus ntshai: 1622/64 = 25% per core. Nyob rau hauv cov ntaub ntawv no, tus catch yog heev yooj yim mus pom: tus nqi npaj yog unrealistic. Tab sis yog tias peb tab tom tham txog 10-20% rau tag nrho VM nrog ob peb cores, ces rau txhua tus tub ntxhais tus nqi yuav nyob rau hauv qhov qub.

Kev tshuaj xyuas ntawm lub tshuab virtual ua haujlwm hauv VMware vSphere. Ntu 1: CPU

Kuv yuav ua li cas? Tus nqi siab Npaj siab qhia tias tus neeg rau zaub mov tsis muaj peev txheej processor txaus rau kev ua haujlwm ntawm cov tshuab virtual. Nyob rau hauv cov xwm txheej zoo li no, txhua yam uas tseem tshuav yog txo qis kev siv nyiaj ntau dhau los ntawm processor (vCPU: pCPU). Pom tseeb, qhov no tuaj yeem ua tiav los ntawm kev txo qis ntawm VMs uas twb muaj lawm lossis los ntawm kev tsiv ib feem ntawm VMs mus rau lwm cov servers.

Co-nres

Yuav txheeb xyuas li cas? Cov txee no kuj yog hom Summation thiab hloov mus rau feem pua ​​​​hauv tib txoj kev npaj:

(CPU co-stop summation tus nqi / ( daim ntawv hloov tshiab ncua sij hawm hauv vib nas this * 1000)) * 100 = CPU co-stop %

Ntawm no koj kuj yuav tsum tau them sai sai rau tus naj npawb ntawm cov cores ntawm VM thiab lub sijhawm ntsuas.
Hauv lub xeev costop, cov ntsiav tsis ua haujlwm tseem ceeb. Nrog rau qhov raug xaiv ntawm VM loj thiab ib txwm thauj khoom ntawm tus neeg rau zaub mov, lub txee co-stop yuav tsum nyob ze rau xoom.

Kev tshuaj xyuas ntawm lub tshuab virtual ua haujlwm hauv VMware vSphere. Ntu 1: CPU
Nyob rau hauv cov ntaub ntawv no, lub load yog kom meej meej txawv txav :)

Kuv yuav ua li cas? Yog tias ob peb VMs nrog ntau tus cores khiav ntawm ib tus neeg saib xyuas thiab muaj oversubscription ntawm CPU, ces tus co-stop counter yuav nce, uas yuav ua rau muaj teeb meem nrog kev ua tau zoo ntawm cov VMs.

Tsis tas li ntawd, kev sib koom ua ke yuav nce ntxiv yog tias cov cores nquag ntawm ib VM siv cov xov ntawm ib lub cev server core nrog hyper-treading enabled. Qhov xwm txheej no yuav tshwm sim, piv txwv li, yog tias VM muaj ntau cov cores ntau dua li lub cev muaj nyob rau ntawm lub server uas nws tab tom khiav, lossis yog tias qhov "preferHT" teeb tsa tau qhib rau VM. Koj tuaj yeem nyeem txog qhov teeb tsa no no.

Txhawm rau kom tsis txhob muaj teeb meem nrog VM kev ua tau zoo vim muaj kev sib koom ua haujlwm siab, xaiv VM loj raws li cov lus pom zoo ntawm cov chaw tsim khoom ntawm cov software uas khiav ntawm VM no thiab lub peev xwm ntawm lub cev server qhov twg VM khiav.

Tsis txhob ntxiv cores nyob rau hauv cia; qhov no yuav ua rau muaj teeb meem kev ua haujlwm tsis yog rau VM nws tus kheej xwb, tab sis kuj rau nws cov neeg nyob ze ntawm lub server.

Lwm cov txiaj ntsig CPU ntsuas

khiav - Lub sijhawm ntau npaum li cas (ms) thaum lub sijhawm ntsuas vCPU nyob hauv lub xeev RUN, uas yog, nws tau ua haujlwm tau zoo.

kaw - ntev npaum li cas (ms) thaum lub sij hawm ntsuas lub vCPU nyob rau hauv lub xeev ntawm inactivity. High Idle qhov tseem ceeb tsis yog teeb meem, vCPU tsuas yog "tsis muaj dab tsi ua."

tos - ntev npaum li cas (ms) thaum lub sij hawm ntsuas lub vCPU nyob hauv lub xeev Tos. Txij li IDLE muaj nyob rau hauv lub txee no, siab tos qhov tseem ceeb kuj tsis qhia txog qhov teeb meem. Tab sis yog tias tos IDLE qis thaum tos siab, nws txhais tau tias VM tau tos rau I / O cov haujlwm kom tiav, thiab qhov no, tig mus, yuav qhia tau tias muaj teeb meem nrog kev ua haujlwm ntawm lub hard drive lossis ib qho khoom siv virtual ntawm VM.

Max txwv - ntev npaum li cas (ms) thaum lub sij hawm ntsuas lub vCPU nyob rau hauv lub xeev Npaj vim yog cov txheej txheem txwv. Yog tias kev ua tau zoo tsis txaus ntseeg, ces nws yog qhov tseem ceeb los xyuas cov nqi ntawm cov txee no thiab CPU txwv hauv VM nqis. VMs yeej muaj qhov txwv uas koj tsis paub txog. Piv txwv li, qhov no tshwm sim thaum VM tau cloned los ntawm tus qauv uas CPU txwv tau teeb tsa.

Sib pauv tos - ntev npaum li cas thaum lub sijhawm ntsuas vCPU tau tos rau kev ua haujlwm nrog VMkernel Swap. Yog tias tus nqi ntawm cov txee no siab tshaj xoom, ces VM yeej muaj teeb meem kev ua haujlwm. Peb mam li tham ntxiv txog SWAP hauv kab lus hais txog RAM cov txee.

ESXTOP

Yog tias qhov ntsuas kev ua tau zoo hauv vCenter yog qhov zoo rau kev txheeb xyuas cov ntaub ntawv keeb kwm, tom qab ntawd kev soj ntsuam kev ua haujlwm ntawm qhov teeb meem yog ua tau zoo dua hauv ESXTOP. Ntawm no, tag nrho cov txiaj ntsig tau nthuav tawm hauv daim ntawv npaj ua tiav (tsis tas yuav txhais dab tsi), thiab lub sijhawm ntsuas qhov tsawg kawg nkaus yog 2 vib nas this.
Lub ESXTOP screen rau CPU raug hu nrog tus yuam sij "c" thiab zoo li no:

Kev tshuaj xyuas ntawm lub tshuab virtual ua haujlwm hauv VMware vSphere. Ntu 1: CPU

Txhawm rau kom yooj yim, koj tuaj yeem tawm tsuas yog cov txheej txheem tshuab virtual los ntawm nias Shift-V.
Txhawm rau saib cov kev ntsuas rau tus kheej VM cores, nias "e" thiab nkag mus rau GID ntawm VM kev txaus siab (30919 hauv daim duab hauv qab no):

Kev tshuaj xyuas ntawm lub tshuab virtual ua haujlwm hauv VMware vSphere. Ntu 1: CPU

Cia kuv luv luv mus txog cov kab uas tau nthuav tawm los ntawm lub neej ntawd. Cov kab ntxiv tuaj yeem raug ntxiv los ntawm nias "f".

NWS (Number of Worlds) - tus naj npawb ntawm cov txheej txheem hauv pab pawg. Txhawm rau nthuav cov pab pawg thiab pom kev ntsuas rau txhua tus txheej txheem (piv txwv li, rau txhua tus tub ntxhais hauv ntau lub VM), nias "e". Yog hais tias muaj ntau tshaj ib tug txheej txheem nyob rau hauv ib pab pawg, ces cov metric qhov tseem ceeb rau cov pab pawg neeg yog sib npaug zos rau cov sum ntawm cov metrics rau cov txheej txheem ntawm tus kheej.

%USED - pes tsawg tus neeg rau zaub mov CPU cycles siv los ntawm cov txheej txheem lossis pawg txheej txheem.

%RUN - ntev npaum li cas thaum lub sij hawm ntsuas cov txheej txheem nyob rau hauv lub xeev RUN, i.e. tau ua haujlwm zoo. Nws txawv ntawm % USED nyob rau hauv uas nws tsis siv rau hauv tus account hyper-threading, zaus scaling thiab lub sij hawm siv rau kev ua hauj lwm (%SYS).

%SYS - lub sijhawm siv rau kev ua haujlwm, piv txwv li: cuam tshuam kev ua haujlwm, I / O, kev ua haujlwm hauv network, thiab lwm yam. Tus nqi tuaj yeem siab yog tias VM muaj qhov loj I / O.

% OVRLP - Lub sij hawm ntau npaum li cas lub cev lub cev uas cov txheej txheem VM tab tom siv rau kev ua haujlwm ntawm lwm cov txheej txheem.

Cov kev ntsuas no cuam tshuam rau ib leeg raws li hauv qab no:

%USED = %RUN + %SYS - %OVRLP.

Feem ntau qhov % USED metric yog cov ntaub ntawv ntau dua.

% SAU - Ntev npaum li cas thaum lub sij hawm ntsuas qhov txheej txheem nyob hauv lub xeev tos. Qhib IDLE.

% IDLE - Ntev npaum li cas thaum lub sij hawm ntsuas cov txheej txheem nyob rau hauv lub xeev IDLE.

%SWB - ntev npaum li cas thaum lub sijhawm ntsuas vCPU tau tos rau kev ua haujlwm nrog VMkernel Swap.

%VMWAIT - ntev npaum li cas thaum lub sij hawm ntsuas lub vCPU nyob rau hauv lub xeev tos rau ib qho kev tshwm sim (feem ntau I / O). Tsis muaj cov txee zoo sib xws hauv vCenter. Cov txiaj ntsig siab qhia txog teeb meem nrog I / O ntawm VM.

%WAIT = %VMWAIT + %IDLE + %SWPWT.

Yog tias VM tsis siv VMkernel Swap, ces thaum txheeb xyuas cov teeb meem kev ua haujlwm nws raug nquahu kom saib %VMWAIT, vim qhov ntsuas no tsis suav nrog lub sijhawm thaum VM tsis ua dab tsi (%IDLE).

% RDY - Ntev npaum li cas thaum lub sijhawm ntsuas qhov txheej txheem nyob rau hauv Lub Xeev Npaj.

% CSTP - ntev npaum li cas thaum lub sij hawm ntsuas qhov txheej txheem nyob rau hauv lub xeev costop.

%MLMTD - ntev npaum li cas thaum lub sij hawm ntsuas lub vCPU nyob rau hauv lub xeev Npaj vim yog cov txheej txheem txwv.

%WAIT + %RDY + %CSTP + %RUN = 100% - VM core yeej ib txwm nyob hauv ib qho ntawm plaub lub xeev no.

CPU ntawm hypervisor

vCenter kuj muaj CPU kev ua tau zoo rau cov neeg saib xyuas, tab sis lawv tsis muaj dab tsi nthuav - lawv tsuas yog cov lej ntawm cov txee rau txhua VMs ntawm lub server.
Txoj hauv kev yooj yim tshaj plaws los saib cov xwm txheej CPU ntawm tus neeg rau zaub mov yog nyob rau ntawm Summary tab:

Kev tshuaj xyuas ntawm lub tshuab virtual ua haujlwm hauv VMware vSphere. Ntu 1: CPU

Rau cov neeg rau zaub mov, nrog rau lub tshuab virtual, muaj lub tswb nrov:

Kev tshuaj xyuas ntawm lub tshuab virtual ua haujlwm hauv VMware vSphere. Ntu 1: CPU

Thaum lub server CPU load siab, VMs khiav ntawm nws pib ntsib teeb meem kev ua haujlwm.

Hauv ESXTOP, server CPU load cov ntaub ntawv tau nthuav tawm nyob rau sab saum toj ntawm lub vijtsam. Ntxiv nrog rau tus qauv CPU load, uas tsis yog qhov qhia tau zoo rau cov neeg saib xyuas, muaj peb yam ntxiv:

CORE UTIL (%) - loading lub cev server core. Qhov ntsuas no qhia tias lub sijhawm ua haujlwm tseem ceeb npaum li cas thaum lub sijhawm ntsuas.

PCPU UTIL (%) - yog tias hyper-threading tau qhib, ces muaj ob txoj xov (PCPU) rau ib lub cev. Qhov kev ntsuas no qhia ntev npaum li cas txhua txoj xov siv los ua kom tiav.

PCPU USED (%) - tib yam li PCPU UTIL(%), tab sis yuav siv sij hawm mus rau hauv tus account zaus scaling (txawm hais tias txo cov tub ntxhais zaus rau lub zog txuag lub hom phiaj, los yog ua kom cov tub ntxhais zaus vim Turbo Boost technology) thiab hyper-threading.

PCPU_USED% = PCPU_UTIL% * cov tub ntxhais siv tau zoo / nominal core zaus.

Kev tshuaj xyuas ntawm lub tshuab virtual ua haujlwm hauv VMware vSphere. Ntu 1: CPU
Hauv qhov screenshot no, rau qee qhov cores, vim Turbo Boost, USED tus nqi yog ntau dua 100%, vim tias cov tub ntxhais zaus siab dua qhov nominal ib.

Ob peb lo lus hais txog yuav ua li cas hyper-threading raug coj mus rau hauv tus account. Yog tias cov txheej txheem raug ua tiav 100% ntawm lub sijhawm ntawm ob lub xov ntawm tus neeg rau zaub mov lub cev lub cev, thaum cov tub ntxhais ua haujlwm ntawm qhov nominal zaus, ces:

  • CORE UTIL rau cov tub ntxhais yuav yog 100%,
  • PCPU UTIL rau ob txoj xov yuav yog 100%,
  • PCPU siv rau ob txoj xov yuav yog 50%.

Yog tias ob lub xov tsis ua haujlwm 100% ntawm lub sijhawm ntsuas lub sijhawm, tom qab ntawd lub sijhawm ntawd thaum cov xov ua haujlwm sib luag, PCPU siv rau cov cores muab faib ua ib nrab.

ESXTOP kuj tseem muaj lub vijtsam nrog server CPU lub zog noj tsis tau. Ntawm no koj tuaj yeem pom seb tus neeg rau zaub mov siv cov cuab yeej txuag hluav taws xob: C-xeev thiab P-xeev. Hu nrog tus yuam sij "p":

Kev tshuaj xyuas ntawm lub tshuab virtual ua haujlwm hauv VMware vSphere. Ntu 1: CPU

Feem ntau CPU Performance Issues

Thaum kawg, kuv yuav mus dhau qhov ua rau muaj teeb meem nrog VM CPU kev ua tau zoo thiab muab cov lus qhia luv luv rau kev daws lawv:

Lub moos tseem ceeb tsis txaus. Yog tias nws tsis tuaj yeem hloov kho koj VM mus rau cov tub ntxhais muaj zog dua, koj tuaj yeem sim hloov lub zog teeb tsa kom ua rau Turbo Boost ua haujlwm tau zoo dua.

Qhov loj ntawm VM tsis raug (ntau dhau / ob peb cores). Yog tias koj nruab ob peb cores, yuav muaj CPU siab load ntawm VM. Yog hais tias muaj ntau, ntes ib tug siab co-stop.

Loj oversubscription ntawm CPU ntawm lub server. Yog tias VM muaj kev npaj siab, txo CPU oversubscription.

Tsis yog NUMA topology ntawm VMs loj. NUMA topology pom los ntawm VM (vNUMA) yuav tsum phim NUMA topology ntawm tus neeg rau zaub mov (pNUMA). Kev kuaj mob thiab kev daws teeb meem rau qhov teeb meem no tau sau, piv txwv li, hauv phau ntawv "VMware vSphere 6.5 Host Resources Deep Dive". Yog tias koj tsis xav mus tob dua thiab koj tsis muaj daim ntawv tso cai txwv ntawm OS ntsia ntawm VM, ua ntau lub qhov (socket) virtual ntawm VM, ib qho ntawm ib lub sijhawm. Koj yuav tsis poob ntau :)

Qhov ntawd yog txhua yam rau kuv txog CPU. Nug cov lus nug. Hauv ntu tom ntej kuv yuav tham txog RAM.

Pab kev sib txuas lushttp://virtual-red-dot.info/vm-cpu-counters-vsphere/
https://kb.vmware.com/kb/1017926
http://www.yellow-bricks.com/2012/07/17/why-is-wait-so-high/
https://communities.vmware.com/docs/DOC-9279
https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/techpaper/performance/whats-new-vsphere65-perf.pdf
https://pages.rubrik.com/host-resources-deep-dive_request.html

Tau qhov twg los: www.hab.com

Ntxiv ib saib