Home
%3CLINGO-SUB%20id%3D%22lingo-sub-653976%22%20slang%3D%22en-US%22%3ESynthetic%20Accelerations%20in%20a%20Nutshell%20%E2%80%93%20Windows%20Server%202019%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-653976%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20folks%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftwitter.com%2FDan2_2023%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EDan%20Cuomo%3C%2FA%3E%26nbsp%3Bhere%20for%20our%20final%20installment%20in%20this%20blog%20series%20on%20synthetic%20accelerations%20covering%20Windows%20Server%202019.%26nbsp%3B%20In%20Server%202019%2C%20we%20took%20learnings%20and%20expanded%20on%20the%20work%20that%20began%20in%20Server%202012%20R2%20with%20Dynamic%20VMQ%20and%20Server%202016%20with%20VMMQ%2C%20to%20bring%20Dynamic%20VMMQ%20(d.VMMQ).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20multi-release%20journey%20is%20designed%20to%20achieve%20one%20primary%20goal%3B%20improving%20your%20(and%20your%20tenant%E2%80%99s)%20networking%20experience%20in%20the%20Software%20Defined%20Data%20Center.%26nbsp%3B%20This%20may%20come%20in%20the%20form%20of%20reducing%20CPU%20processing%20for%20network%20traffic%20and%2For%20ensuring%20a%20smooth%20and%20consistent%20experience%20for%20the%20virtual%20machines%20on%20your%20host%20which%20ultimately%20means%20happy%20tenants%20running%20more%20virtual%20machines%20(and%20no%20midnight%20calls%20to%20troubleshoot%20the%20all-to-common%20%E2%80%9Cnetwork%20slow-down%E2%80%9D%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%0A%3CP%3E%3CFONT%20size%3D%223%22%3E%3CSTRONG%3EPublic%20Service%20Announcement%3A%20%3C%2FSTRONG%3EMost%20of%20what%20you%20see%20below%20will%20not%20apply%20if%20you%E2%80%99re%20using%20an%20LBFO%20team.%26nbsp%3B%20Microsoft%20recommends%20using%20Switch%20Embedded%20Teaming%20(SET)%20as%20the%20default%20teaming%20mechanism%20whenever%20possible%2C%20particularly%20when%20using%20Hyper-V.%3C%2FFONT%3E%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%3EBefore%20we%20get%20to%20the%20good%20stuff%2C%20here%20are%20the%20pointers%20to%20the%20previous%20blogs%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FNetworking-Blog%2FSynthetic-Accelerations-in-a-Nutshell-Windows-Server-2012%2Fba-p%2F447792%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3ESynthetic%20Accelerations%20in%20a%20Nutshell%20%E2%80%93%20Windows%20Server%202012%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FNetworking-Blog%2FSynthetic-Accelerations-in-a-Nutshell-Windows-Server-2012-R2%2Fba-p%2F481428%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3ESynthetic%20Accelerations%20in%20a%20Nutshell%20%E2%80%93%20Windows%20Server%202012%20R2%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FNetworking-Blog%2FSynthetic-Accelerations-in-a-Nutshell-Windows-Server-2016%2Fba-p%2F535571%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3ESynthetic%20Accelerations%20in%20a%20Nutshell%20%E2%80%93%20Windows%20Server%202016%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId-1763866271%22%20id%3D%22toc-hId-1763866271%22%20id%3D%22toc-hId-1763866271%22%3E%3CFONT%20size%3D%225%22%3EDynamic%20VMMQ%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3EAs%20a%20quick%20refresher%2C%20Virtual%20Receive%20Side%20Scaling%20(on%20the%20host)%20creates%20an%20indirection%20table%20which%20enables%20packets%20to%20be%20processed%20by%20multiple%2C%20separate%20processors.%20%26nbsp%3BThe%20distribution%20of%20these%20packets%20to%20separate%20processors%20can%20be%20done%20in%20the%20OS%2C%20or%20offloaded%20to%20the%20NIC.%26nbsp%3B%20While%20the%20indirection%20table%20is%20always%20established%20by%20the%20OS%2C%20we%20can%20offload%20the%20packet%20distribution%20to%20the%20NIC%3B%20when%20offloaded%20to%20the%20NIC%2C%20we%20call%20this%20VMMQ.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOriginally%2C%20we%20enabled%20the%20dynamic%20updating%20of%20the%20indirection%20table%2C%20called%20Dynamic%20VMQ%2C%20in%20Windows%20Server%202012%20R2.%26nbsp%3B%20However%2C%20in%20part%20due%20to%20the%20rearchitected%20design%20in%20Windows%20Server%202016%20to%20bring%20VMMQ%2C%20Dynamic%20VMQ%20was%20not%20available%20in%20Windows%20Server%202016.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20in%20Windows%20Server%202019%20we%20can%20dynamically%20remap%20VMMQ%E2%80%99s%20placement%20of%20packets%20onto%20different%20processors.%26nbsp%3B%20We%20had%20three%20primary%20goals%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EOptimize%20host%20efficiency%3C%2FLI%3E%0A%3CLI%3EAutomatic%20tuning%20of%20the%20indirection%20table%20(so%20the%20VM%20can%20meet%20and%20maintain%20the%20desired%20throughput)%3C%2FLI%3E%0A%3CLI%3EHandling%20of%20bursty%20workloads%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EI%E2%80%99m%20starting%20to%20think%20those%20midnight%20network%20slow-downs%20may%20be%20a%20thing%20of%20the%20past!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--984804195%22%20id%3D%22toc-hId--984804195%22%20id%3D%22toc-hId--984804195%22%3E%3CFONT%20size%3D%225%22%3EOptimizing%20Host%20Efficiency%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%3EWhen%20network%26nbsp%3Bthroughput%20is%20low%2C%20Dynamic%20VMMQ%20enables%20the%20system%20to%20coalesce%20traffic%20received%20on%20a%20virtual%20NIC%20to%20as%20few%20CPUs%20as%20possible%3B%20we%20call%20this%20%3CSTRONG%3Equeue%20packing%3C%2FSTRONG%3E%20because%20we%E2%80%99re%20packing%20the%20queues%20onto%20as%20few%20CPU%20cores%20as%20is%20necessary%20to%20sustain%20the%20workload.%26nbsp%3B%20Queue%20packing%20is%20more%20optimal%20for%20the%20host%20as%20the%20system%20would%20otherwise%20need%20to%20manage%20the%20distribution%20of%20packets%20across%20more%20CPUs%3B%20the%20more%20CPUs%20are%20engaged%2C%20the%20more%20the%20system%20must%20work%20to%20ensure%20all%20packets%20are%20properly%20handled.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20picture%20below%20shows%20a%20virtual%20NIC%20receiving%20a%20low%20amount%20of%20network%20traffic.%26nbsp%3B%20You%20can%20see%20we%E2%80%99re%20using%20the%20performance%20counter%20%3CSTRONG%3EHyper-V%20Virtual%20Switch%20Processor%3C%2FSTRONG%3E%20%26gt%3B%20%3CSTRONG%3EPackets%20from%20External%2Fsec%3C%2FSTRONG%3E%20and%20there%20is%20one%20bar%20for%20each%20CPU%20core%20engaged.%26nbsp%3B%20Only%20one%20CPU%20core%20(the%20green%20bar)%20is%20processing%20packets%20destined%20for%20a%20virtual%20NIC.%26nbsp%3B%20The%20system%20has%20coalesced%20or%20packed%20all%20the%20queues%20onto%20one%20CPU%20core%20as%20was%20necessary%20to%20sustain%20the%20workload.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20684px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F116362i6A102DBAF5104486%2Fimage-dimensions%2F684x338%3Fv%3D1.0%22%20width%3D%22684%22%20height%3D%22338%22%20alt%3D%221.png%22%20title%3D%221.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%E2%80%99s%20a%20video%20showing%20the%20Dynamic%20Coalescing.%26nbsp%3B%20Note%2C%20the%20video%20is%20sped%20up%20to%20show%20the%20process%20occurring%20a%20bit%20quicker%20than%20normal.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3C%2FP%3E%3CDIV%20class%3D%22video-embed-center%20video-embed%22%3E%3CIFRAME%20class%3D%22embedly-embed%22%20src%3D%22https%3A%2F%2Fcdn.embedly.com%2Fwidgets%2Fmedia.html%3Fsrc%3Dhttps%253A%252F%252Fwww.youtube.com%252Fembed%252FCpUic2GaqSc%253Ffeature%253Doembed%26amp%3Burl%3Dhttp%253A%252F%252Fwww.youtube.com%252Fwatch%253Fv%253DCpUic2GaqSc%26amp%3Bimage%3Dhttps%253A%252F%252Fi.ytimg.com%252Fvi%252FCpUic2GaqSc%252Fhqdefault.jpg%26amp%3Bkey%3Dfad07bfa4bd747d3bdea27e17b533c0e%26amp%3Btype%3Dtext%252Fhtml%26amp%3Bschema%3Dyoutube%22%20width%3D%22200%22%20height%3D%22112%22%20scrolling%3D%22no%22%20frameborder%3D%220%22%20allow%3D%22autoplay%3B%20fullscreen%22%20allowfullscreen%3D%22true%22%20title%3D%22Video%22%3E%3C%2FIFRAME%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-758006140%22%20id%3D%22toc-hId-758006140%22%20id%3D%22toc-hId-758006140%22%3E%3CFONT%20size%3D%225%22%3EAutomatic%20Tuning%20of%20the%20System%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%3EAfter%20a%20hard%20day%E2%80%99s%20work%2C%20you%20head%20home%20for%20the%20day.%26nbsp%3B%20Little%20did%20you%20know%2C%20your%20CIO%20is%20a%20night-owl%20and%20a%20few%20hours%20later%20begins%20working%20right%20as%20some%20backups%20begin%20on%20the%20file%20servers%20hosting%20the%20user%20profile.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20think%20we%20all%20know%20the%20story%20that%E2%80%99s%20about%20to%20unfold.%26nbsp%3B%20Your%20CIO%20calls%20in%20the%20support%20team%20after-hours%20because%20of%20the%20terrible%20performance.%26nbsp%3B%20The%20following%20day%2C%20you%E2%80%99ll%20be%20asked%20to%20root%20cause%20what%20happened%20and%20develop%20an%20action%20plan%20to%20ensure%20the%20CIO%20never%20has%20this%20experience%20again.%26nbsp%3B%26nbsp%3BYou%20think%20to%20yourself%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22text-align%3A%20center%3B%22%3E%E2%80%9C%3CSTRONG%3Ethis%20would%20be%20about%20the%20best%20place%20in%20the%20entire%20world%20to%20work%2C%20if%20it%20weren%E2%80%99t%20for%20all%20these%20complainers%E2%80%A6%3C%2FSTRONG%3E%E2%80%9D%20%3B)%3C%2Fimg%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOne%20of%20the%20challenges%20with%20VMMQ%20in%20Windows%20Server%202016%20(Static%20VMMQ)%20is%20that%20the%20indirection%20table%20%E2%80%93%20the%20assignment%20of%20a%20VMQ%20to%20be%20processed%20by%20a%20specific%20processor%20%E2%80%93%20cannot%20be%20updated%20once%20established.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20another%20workload%20(for%20example%20VM%20B)%20starts%20receiving%20more%20traffic%20and%20one%20of%20its%20queues%20are%20mapped%20to%20the%20same%20processor%20as%20a%20queue%20from%20VM%20A%2C%20one%20of%20them%20may%20suffer.%26nbsp%3B%20This%20is%20what%20happened%20to%20your%20CIO%2C%20the%20queues%20for%20the%20file%20server%20hosting%20his%2Fher%20user%20profile%20was%20on%20the%20same%20processors%20as%20another%20workload%20performing%20backups.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%0A%3CP%3E%3CSTRONG%3ENote%3C%2FSTRONG%3E%3A%20I%E2%80%99ve%20seen%20folks%20try%20to%20avoid%20this%20by%20preventing%20a%20NIC%20from%20using%20the%20same%20processors%20used%20by%20other%20NICs%20(overlapping).%26nbsp%3B%20In%20practice%2C%20we%E2%80%99ve%20seen%20this%20provide%20very%20little%20value%20if%20any%20with%20SET%20teams.%26nbsp%3B%20First%2C%20most%20people%20misconfigure%20this.%26nbsp%3B%20Even%20if%20they%20have%20it%20configured%20correctly%2C%20you%E2%80%99re%20forced%20into%20constraining%20your%20adapters%20to%20using%20less%20processors.%26nbsp%3B%20This%20only%20compounds%20the%20original%20problem.%26nbsp%3B%20We%20do%20not%20recommend%20changing%20the%20default%20RSS%20Processor%20Array%20(which%20governs%20the%20indirection%20table%20creation)%20unless%20directed%20by%20Microsoft%20Support.%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%3EWith%20Windows%20Server%202019%20and%20Dynamic%20VMMQ%2C%20we%20can%20now%20automatically%20move%20queues%20on%20an%20overburdened%20processor%20to%20other%20processors%20that%20aren%E2%80%99t%20doing%20as%20much%20work.%26nbsp%3B%20Now%20workloads%20will%20have%20a%20more%20consistent%20and%20performant%20experience.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20the%20following%20video%2C%20(sorry%2C%20no%20sound)%20we%20show%20a%20running%20network%20workload.%26nbsp%3B%20Eventually%20we%20start%20a%20new%20process%20that%20competes%20and%20consumes%20for%20the%20CPU%20that%20is%20processing%20packets.%26nbsp%3B%20In%20Windows%20Server%202016%2C%20the%20virtual%20machine%20would%20start%20receiving%20less%20packets%20affecting%20the%20throughput%20into%20the%20VM%20and%20your%20sleep%20patterns%20as%20your%20CIO%20calls%20you%20into%20the%20office%20to%20troubleshoot.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHowever%2C%20in%20this%20video%20you%20can%20see%20that%20the%20system%20dynamically%20updates%20the%20indirection%20table%20and%20moves%20the%20processing%20of%20network%20traffic%20from%20CPU3%20to%20an%20available%20processor%20(CPU1)%20when%20another%20workload%20starts%20consuming%20the%20CPU%20cycles.%26nbsp%3B%20This%20allows%20the%20VM%20to%20continue%20receiving%20the%20same%20amount%20of%20traffic%20despite%20having%20a%20competing%20workload.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3C%2FP%3E%3CDIV%20class%3D%22video-embed-center%20video-embed%22%3E%3CIFRAME%20class%3D%22embedly-embed%22%20src%3D%22https%3A%2F%2Fcdn.embedly.com%2Fwidgets%2Fmedia.html%3Fsrc%3Dhttps%253A%252F%252Fwww.youtube.com%252Fembed%252FWsrVS3LCCNM%253Ffeature%253Doembed%26amp%3Burl%3Dhttp%253A%252F%252Fwww.youtube.com%252Fwatch%253Fv%253DWsrVS3LCCNM%26amp%3Bimage%3Dhttps%253A%252F%252Fi.ytimg.com%252Fvi%252FWsrVS3LCCNM%252Fhqdefault.jpg%26amp%3Bkey%3Dfad07bfa4bd747d3bdea27e17b533c0e%26amp%3Btype%3Dtext%252Fhtml%26amp%3Bschema%3Dyoutube%22%20width%3D%22200%22%20height%3D%22112%22%20scrolling%3D%22no%22%20frameborder%3D%220%22%20allow%3D%22autoplay%3B%20fullscreen%22%20allowfullscreen%3D%22true%22%20title%3D%22Video%22%3E%3C%2FIFRAME%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1794150821%22%20id%3D%22toc-hId--1794150821%22%20id%3D%22toc-hId--1794150821%22%3E%3CFONT%20size%3D%225%22%3EOptimizing%20for%20bursty%20workloads%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%3EWhen%20a%20virtual%20NIC%20is%20idle%2C%20it%20doesn%E2%80%99t%20need%20any%20receive%20queues.%26nbsp%3B%20However%2C%20if%20no%20queues%20are%20allocated%20(or%20perhaps%20only%20a%20bare%20minimum)%2C%20and%20a%20burst%20of%20traffic%20comes%20in%20destined%20for%20that%20virtual%20NIC%2C%20it%20won%E2%80%99t%20be%20able%20to%20process%20all%20the%20data%20because%20we%20can%E2%80%99t%20just%20allocate%20queues%20all%20willy-nilly.%26nbsp%3B%20Willy-nilly%20is%20bad...%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20ensure%20that%20we%20can%20meet%20an%20immediate%20burst%20of%20traffic%2C%20we%20pre-allocate%20queues%20for%20an%20idle%20workload.%26nbsp%3B%20We%20call%20this%20%3CSTRONG%3Equeue%20parking%3C%2FSTRONG%3E%20(not%20to%20be%20confused%20with%20core%20parking).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20see%20the%20allocation%20of%20queues%20across%20a%20receive%20processor%20for%20a%20particular%20virtual%20NIC%20using%20the%20perfmon%20counter%3CSTRONG%3E%20Hyper-V%20Virtual%20Network%20Adapter%20VRSS%3C%2FSTRONG%3E%20%26gt%3B%20%3CSTRONG%3EInstance%20(per%20virtual%20NIC)%3C%2FSTRONG%3E%20%26gt%3B%20%3CSTRONG%3EReceive%20Processor%3C%2FSTRONG%3E.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20944px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F116363i9DA4A0A4EC77B6C6%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%222.png%22%20title%3D%222.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%E2%80%99s%20important%20to%20note%20that%20there%20are%20always%2016%20entries%20shown%20and%20if%20you%20look%20closely%2C%20you%E2%80%99ll%20note%20that%20there%20are%20two%20bars%20of%20the%20same%20height.%26nbsp%3B%20You%20can%20control%20how%20many%20receive%20queues%20per%20processor%20for%20all%20virtual%20NICs%20(although%20we%20recommend%20that%20you%20stick%20with%20the%20defaults)%20by%20modifying%20the%20MaxProcessors%20on%20the%20physical%20adapter.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20817px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F116364i640E6BBD0826E5D7%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%223.png%22%20title%3D%223.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20setting%20on%20the%20physical%20adapters%20cap%20the%20processors%20to%20be%20used%20by%20a%20virtual%20NIC.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20716px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F116365i9339490B76073ACA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%224.png%22%20title%3D%224.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20only%20want%20to%20cap%20certain%20virtual%20NICs%20then%20instead%20of%20setting%20the%20value%20on%20the%20physical%20adapters%2C%20just%20set%20it%20on%20the%20virtual%20NIC%20using%20%3CSTRONG%3ESet-VMNetworkAdapter%20-VRSSMaxQueuePairs%20%3CVALUE%3E%3C%2FVALUE%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThen%20review%20the%20updates%20to%20the%20vNIC%20as%20shown%20below.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20716px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F116366i2F87D5C9C5342637%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%225.png%22%20title%3D%225.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-145173019%22%20id%3D%22toc-hId-145173019%22%20id%3D%22toc-hId-145173019%22%3E%3CFONT%20size%3D%225%22%3ESummary%20of%20Requirements%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3EAs%20you%20can%20see%2C%20the%20requirements%20to%20implement%20and%20manage%20the%20feature%20are%20greatly%20reduced.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EInstall%20latest%20drivers%20and%20firmware%20%E2%80%93%20Dynamic%20VMMQ%20is%20available%20on%20Premium%20Certified%20devices%20with%20non-inbox%20drivers.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%20style%3D%22text-decoration%3A%20line-through%3B%22%3EProcessor%20Array%20engaged%20by%20default%20%E2%80%93%20CPU0%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-size%3A%20medium%3B%20font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-size%3A%20medium%3B%20font-family%3A%20inherit%3B%22%3EThis%20was%20originally%20changed%20in%202012%20R2%20to%20enable%20VRSS%20(on%20the%20host)%20and%20you%20are%20no%20longer%20required%20to%20change%20the%20processor%20array%20(as%20is%20also%20the%20case%20in%202016).%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%20style%3D%22text-decoration%3A%20line-through%3B%22%3EConfigure%20the%20system%20to%20avoid%20CPU0%20on%20non-hyperthreaded%20systems%20and%20CPU0%20and%20CPU1%20on%20hyperthreaded%20systems%20(e.g.%26nbsp%3BBaseProcessorNumbershould%20be%201%20or%202%20depending%20on%20hyperthreading)%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-size%3A%20medium%3B%20font-family%3A%20inherit%3B%22%3E%26nbsp%3BWhile%20not%20explicitly%20required%20any%20longer%20as%20the%20dynamic%20algorithm%20will%20move%20workloads%20away%20from%20a%20burdened%20core%2C%20it%20would%20still%20be%20a%20best%20practice%20to%20do%20this%20in%20case%20of%20a%20driver%20bug.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%20style%3D%22text-decoration%3A%20line-through%3B%22%3EConfigure%20the%26nbsp%3BMaxProcessorNumber%26nbsp%3Bto%20establish%20that%20an%20adapter%20cannot%20use%20a%20processor%20higher%20than%20this%3C%2FSPAN%3E.%26nbsp%3BWe%20recommend%20you%20let%20the%20system%20manage%20this%20now.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%20style%3D%22text-decoration%3A%20line-through%3B%22%3EConfigure%26nbsp%3BMaxProcessors%26nbsp%3Bto%20establish%20how%20many%20processors%20out%20of%20the%20available%20list%20a%20NIC%20can%20spread%20VMQs%20across%20simultaneously%3C%2FSPAN%3E%26nbsp%3B%26nbsp%3BThis%20is%20unnecessary%20due%20to%20the%20enhancements%20in%20the%20default%20queue%20implemented%20in%20Windows%20Server%202016.%26nbsp%3B%20You%20may%20still%20choose%20to%20do%20this%20if%20you%E2%80%99re%20limiting%20the%20queues%20as%20a%20rudimentary%20QoS%20mechanism%20as%20noted%20earlier.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CUL%3E%0A%3CLI%3ETest%20customer%20workload%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId-1887983354%22%20id%3D%22toc-hId-1887983354%22%20id%3D%22toc-hId-1887983354%22%3ESummary%20of%20Advantages%3C%2FH2%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EAll%20the%20benefits%20of%20VMMQ%20from%20Windows%20Server%202016%3C%2FSTRONG%3E%20(highlighted%20in%20the%20previous%20article)%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EHost%20efficiency%20is%20optimized%3C%2FSTRONG%3E%20%E2%80%93%20Through%20queue%20packing%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EAutomatic%20tuning%20of%20the%20indirection%20table%3C%2FSTRONG%3E%20allows%20a%20VM%20to%20maintain%20stable%20throughput%20by%20reallocating%20queues%20to%20available%20processors%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EHandling%20of%20bursty%20workloads%3C%2FSTRONG%3E%20%E2%80%93%20Through%20queue%20parking%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId--664173607%22%20id%3D%22toc-hId--664173607%22%20id%3D%22toc-hId--664173607%22%3ESummary%20of%20Disadvantages%3C%2FH2%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3ERequires%20a%20driver%20update%20and%20Premium%20certified%20device%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EI%20hope%20you%20have%20enjoyed%20this%20series%20on%20synthetic%20accelerations%20and%20found%20it%20useful.%26nbsp%3B%20As%20you%20can%20see%2C%20we%E2%80%99ve%20steadily%20worked%20towards%20reducing%20the%20setup%20complexity%2C%20improve%20the%20stability%2C%20and%20increase%20the%20performance%20for%20your%20virtualized%20workloads.%26nbsp%3B%20Previously%20you%20had%20setup%20complicated%20adapters%20schemes%2C%20tune%20the%20system%2C%20avoid%20processors%2C%20and%20more%E2%80%A6Now%20you%20simply%20install%20Windows%20and%20Hyper-V%2C%20test%2C%20and%20monitor.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20let%20us%20know%20in%20the%20comments%20if%20you%20have%20any%20questions!%3C%2FP%3E%0A%3CP%3EThanks%2C%3CBR%20%2F%3EDan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-653976%22%20slang%3D%22en-US%22%3E%3CP%3E%3CFONT%20size%3D%223%22%3EThis%20is%20the%20final%20post%20covering%20synthetic%20accelerations%20covering%20Windows%20Server%202012%2C%202012%20R2%2C%202016%2C%20and%202019.%20%26nbsp%3BWe%20recommend%20that%20you%20read%20through%20the%20full%20progression%20of%20posts%20to%20make%20sure%20you%20have%20the%20proper%20information%20for%20each%20operating%20system%20you%E2%80%99re%20managing.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%223%22%3EThis%20specific%20article%20covers%20Windows%20Server%202019.%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-SUB%20id%3D%22lingo-sub-905159%22%20slang%3D%22en-US%22%3ERe%3A%20Synthetic%20Accelerations%20in%20a%20Nutshell%20%E2%80%93%20Windows%20Server%202019%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-905159%22%20slang%3D%22en-US%22%3Ethanks%20for%20sharing%3C%2FLINGO-BODY%3E
Microsoft

Hi folks,

 

Dan Cuomo here for our final installment in this blog series on synthetic accelerations covering Windows Server 2019.  In Server 2019, we took learnings and expanded on the work that began in Server 2012 R2 with Dynamic VMQ and Server 2016 with VMMQ, to bring Dynamic VMMQ (d.VMMQ).

 

The multi-release journey is designed to achieve one primary goal; improving your (and your tenant’s) networking experience in the Software Defined Data Center.  This may come in the form of reducing CPU processing for network traffic and/or ensuring a smooth and consistent experience for the virtual machines on your host which ultimately means happy tenants running more virtual machines (and no midnight calls to troubleshoot the all-to-common “network slow-down”

 

Public Service Announcement: Most of what you see below will not apply if you’re using an LBFO team.  Microsoft recommends using Switch Embedded Teaming (SET) as the default teaming mechanism whenever possible, particularly when using Hyper-V.

Before we get to the good stuff, here are the pointers to the previous blogs:

Dynamic VMMQ

As a quick refresher, Virtual Receive Side Scaling (on the host) creates an indirection table which enables packets to be processed by multiple, separate processors.  The distribution of these packets to separate processors can be done in the OS, or offloaded to the NIC.  While the indirection table is always established by the OS, we can offload the packet distribution to the NIC; when offloaded to the NIC, we call this VMMQ.

 

Originally, we enabled the dynamic updating of the indirection table, called Dynamic VMQ, in Windows Server 2012 R2.  However, in part due to the rearchitected design in Windows Server 2016 to bring VMMQ, Dynamic VMQ was not available in Windows Server 2016.

 

Now in Windows Server 2019 we can dynamically remap VMMQ’s placement of packets onto different processors.  We had three primary goals:

  • Optimize host efficiency
  • Automatic tuning of the indirection table (so the VM can meet and maintain the desired throughput)
  • Handling of bursty workloads

I’m starting to think those midnight network slow-downs may be a thing of the past!

 

Optimizing Host Efficiency

When network throughput is low, Dynamic VMMQ enables the system to coalesce traffic received on a virtual NIC to as few CPUs as possible; we call this queue packing because we’re packing the queues onto as few CPU cores as is necessary to sustain the workload.  Queue packing is more optimal for the host as the system would otherwise need to manage the distribution of packets across more CPUs; the more CPUs are engaged, the more the system must work to ensure all packets are properly handled.

 

The picture below shows a virtual NIC receiving a low amount of network traffic.  You can see we’re using the performance counter Hyper-V Virtual Switch Processor > Packets from External/sec and there is one bar for each CPU core engaged.  Only one CPU core (the green bar) is processing packets destined for a virtual NIC.  The system has coalesced or packed all the queues onto one CPU core as was necessary to sustain the workload.

 

1.png

 

Here’s a video showing the Dynamic Coalescing.  Note, the video is sped up to show the process occurring a bit quicker than normal.

 

 

Automatic Tuning of the System

After a hard day’s work, you head home for the day.  Little did you know, your CIO is a night-owl and a few hours later begins working right as some backups begin on the file servers hosting the user profile.

 

I think we all know the story that’s about to unfold.  Your CIO calls in the support team after-hours because of the terrible performance.  The following day, you’ll be asked to root cause what happened and develop an action plan to ensure the CIO never has this experience again.  You think to yourself

 

this would be about the best place in the entire world to work, if it weren’t for all these complainers…” ;)

 

One of the challenges with VMMQ in Windows Server 2016 (Static VMMQ) is that the indirection table – the assignment of a VMQ to be processed by a specific processor – cannot be updated once established.

 

If another workload (for example VM B) starts receiving more traffic and one of its queues are mapped to the same processor as a queue from VM A, one of them may suffer.  This is what happened to your CIO, the queues for the file server hosting his/her user profile was on the same processors as another workload performing backups.

 

Note: I’ve seen folks try to avoid this by preventing a NIC from using the same processors used by other NICs (overlapping).  In practice, we’ve seen this provide very little value if any with SET teams.  First, most people misconfigure this.  Even if they have it configured correctly, you’re forced into constraining your adapters to using less processors.  This only compounds the original problem.  We do not recommend changing the default RSS Processor Array (which governs the indirection table creation) unless directed by Microsoft Support.

With Windows Server 2019 and Dynamic VMMQ, we can now automatically move queues on an overburdened processor to other processors that aren’t doing as much work.  Now workloads will have a more consistent and performant experience.

 

In the following video, (sorry, no sound) we show a running network workload.  Eventually we start a new process that competes and consumes for the CPU that is processing packets.  In Windows Server 2016, the virtual machine would start receiving less packets affecting the throughput into the VM and your sleep patterns as your CIO calls you into the office to troubleshoot.

 

However, in this video you can see that the system dynamically updates the indirection table and moves the processing of network traffic from CPU3 to an available processor (CPU1) when another workload starts consuming the CPU cycles.  This allows the VM to continue receiving the same amount of traffic despite having a competing workload.

 

 

Optimizing for bursty workloads

When a virtual NIC is idle, it doesn’t need any receive queues.  However, if no queues are allocated (or perhaps only a bare minimum), and a burst of traffic comes in destined for that virtual NIC, it won’t be able to process all the data because we can’t just allocate queues all willy-nilly.  Willy-nilly is bad...

 

To ensure that we can meet an immediate burst of traffic, we pre-allocate queues for an idle workload.  We call this queue parking (not to be confused with core parking).

 

You can see the allocation of queues across a receive processor for a particular virtual NIC using the perfmon counter Hyper-V Virtual Network Adapter VRSS > Instance (per virtual NIC) > Receive Processor

2.png

 

It’s important to note that there are always 16 entries shown and if you look closely, you’ll note that there are two bars of the same height.  You can control how many receive queues per processor for all virtual NICs (although we recommend that you stick with the defaults) by modifying the MaxProcessors on the physical adapter.

3.png

 

The setting on the physical adapters cap the processors to be used by a virtual NIC.4.png

 

If you only want to cap certain virtual NICs then instead of setting the value on the physical adapters, just set it on the virtual NIC using Set-VMNetworkAdapter -VRSSMaxQueuePairs <value>

 

Then review the updates to the vNIC as shown below.5.png

 

Summary of Requirements

As you can see, the requirements to implement and manage the feature are greatly reduced.

  • Install latest drivers and firmware – Dynamic VMMQ is available on Premium Certified devices with non-inbox drivers.
  • Processor Array engaged by default – CPU0  This was originally changed in 2012 R2 to enable VRSS (on the host) and you are no longer required to change the processor array (as is also the case in 2016).
  • Configure the system to avoid CPU0 on non-hyperthreaded systems and CPU0 and CPU1 on hyperthreaded systems (e.g. BaseProcessorNumbershould be 1 or 2 depending on hyperthreading) While not explicitly required any longer as the dynamic algorithm will move workloads away from a burdened core, it would still be a best practice to do this in case of a driver bug.
  • Configure the MaxProcessorNumber to establish that an adapter cannot use a processor higher than this. We recommend you let the system manage this now.
  • Configure MaxProcessors to establish how many processors out of the available list a NIC can spread VMQs across simultaneously  This is unnecessary due to the enhancements in the default queue implemented in Windows Server 2016.  You may still choose to do this if you’re limiting the queues as a rudimentary QoS mechanism as noted earlier.
  • Test customer workload

Summary of Advantages

  • All the benefits of VMMQ from Windows Server 2016 (highlighted in the previous article)
  • Host efficiency is optimized – Through queue packing
  • Automatic tuning of the indirection table allows a VM to maintain stable throughput by reallocating queues to available processors
  • Handling of bursty workloads – Through queue parking

Summary of Disadvantages

  • Requires a driver update and Premium certified device

I hope you have enjoyed this series on synthetic accelerations and found it useful.  As you can see, we’ve steadily worked towards reducing the setup complexity, improve the stability, and increase the performance for your virtualized workloads.  Previously you had setup complicated adapters schemes, tune the system, avoid processors, and more…Now you simply install Windows and Hyper-V, test, and monitor.

 

Please let us know in the comments if you have any questions!

Thanks,
Dan

1 Comment
Occasional Visitor
thanks for sharing