Home
%3CLINGO-SUB%20id%3D%22lingo-sub-481428%22%20slang%3D%22en-US%22%3ESynthetic%20Accelerations%20in%20a%20Nutshell%20-%20Windows%20Server%202012%20R2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-481428%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%22%3EDan%20Cuomo%3C%2FA%3E%20back%20for%20our%20next%20installment%20in%20this%20blog%20series%20on%20synthetic%20accelerations.%26nbsp%3B%20This%20time%20we%E2%80%99ll%20cover%20Windows%20Server%202012%20R2.%26nbsp%3B%20If%20you%20haven%E2%80%99t%20already%20read%20the%20first%20post%20on%20Server%202012%2C%20I%E2%80%99d%20recommend%20%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%3Ereviewing%20that%3C%2FA%3E%20before%20proceeding%20here.%26nbsp%3B%20Following%20this%20post%2C%20we%E2%80%99ll%20tackle%20Windows%20Server%202016%2C%20and%20finally%20Windows%20Server%202019.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-1905836268%22%20id%3D%22toc-hId-1905836268%22%3E%3CFONT%20size%3D%226%22%3EBackground%3C%2FFONT%3E%3C%2FH1%3E%0A%3CP%3EWindows%20Server%202012%20R2%20added%20a%20few%20improvements%20to%20VMQ%2C%20including%20Dynamic%20VMQ%20which%20enables%20the%20processor%20processing%20network%20traffic%20destined%20for%20a%20virtual%20machine%20to%20be%20updated%20based%20on%20some%20heuristics.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHowever%2C%20the%20most%20important%20feature%20introduced%20in%202012%20R2%20was%20vRSS%20which%20is%20critical%20to%20understand%20as%20we%20move%20into%20the%20future%20operating%20systems%20like%20Windows%20Server%202016%20and%202019.%26nbsp%3B%20vRSS%20is%20the%20basis%20for%20how%20we%20exceed%20the%20bandwidth%20of%20a%20single%20CPU%20as%20you%E2%80%99ll%20see%20in%20this%20post.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20such%2C%20we%E2%80%99ll%20focus%20this%20article%20on%20vRSS%20then%20cover%20Dynamic%20VMQ%20so%20you%20can%20understand%20the%20journey%20when%20we%20complete%20our%20series%20with%20Windows%20Server%202016%20and%202019.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--646320693%22%20id%3D%22toc-hId--646320693%22%3E%3CFONT%20size%3D%226%22%3EVirtual%20Receive%20Side%20Scaling%20(vRSS)%3C%2FFONT%3E%3C%2FH1%3E%0A%3CP%3EVirtual%20Receive%20Side%20Scaling%20(vRSS)%20was%20introduced%20in%20Windows%20Server%202012%20R2.%26nbsp%3B%20vRSS%20enables%20improved%20performance%20over%20VMQ%20alone%20through%20a%20couple%20of%20new%20responsibilities.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3EIn%20the%20Guest%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3EVirtual%20CPUs%20fill%20up%20just%20like%20any%20other%20CPU%20and%20can%20become%20a%20bottleneck%20just%20like%20CPUs%20on%20the%20host.%26nbsp%3B%20If%20the%20virtual%20machine%20has%20multiple%20virtual%20CPUs%2C%20it%20can%20alleviate%20this%20chokepoint%20by%20splitting%20the%20processing%20for%20the%20received%20network%20traffic%20across%20each%20virtual%20CPU%20in%20the%20guest.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20want%20to%20visualize%20this%20architecturally%2C%20a%20virtual%20NIC%20attaches%20to%20a%20%E2%80%9Cport%E2%80%9D%20on%20the%20Hyper-V%20Virtual%20switch%20(vSwitch).%26nbsp%3B%20This%20is%20similar%20to%20a%20physical%20port%20on%20a%20physical%20switch%20(except%20that%20it%E2%80%99s%20all%20virtual).%20%26nbsp%3BIn%20the%20picture%20below%20you%20can%20see%20that%20the%20vSwitch%20operates%20at%20layer%202%20(ethernet).%26nbsp%3B%20If%20you%20remember%20from%20our%20first%20article%2C%20legacy%20VMQ%20operates%20similarly%20using%20a%20MAC%20%2B%20VLAN%20filter%20to%20separate%20traffic%20into%20different%20VMQs.%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%20611px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F110009i58E9367243208474%2Fimage-dimensions%2F611x362%3Fv%3D1.0%22%20width%3D%22611%22%20height%3D%22362%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%3EOnce%20the%20traffic%20reaches%20the%20vmNIC%2C%20it%20needs%20to%20traverse%20the%20network%20stack%20and%20be%20processed%20by%20the%20Guest%E2%80%99s%20vCPUs.%26nbsp%3B%20In%20the%20guest%2C%20you%E2%80%99ll%20see%20the%20network%20traffic%20distributed%20in%20task%20manager%20similar%20to%20this%20thanks%20to%20vRSS.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20664px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F110010iF4044547F3B52013%2Fimage-dimensions%2F664x298%3Fv%3D1.0%22%20width%3D%22664%22%20height%3D%22298%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%3EThis%20operates%20by%20using%20RSS%20inside%20the%20guest%2C%20hence%20the%20intuitive%20name%20vRSS%20%3Asmiling_face_with_smiling_eyes%3A%3C%2Fimg%3E.%26nbsp%3B%20Enabling%20or%20disabling%20this%20can%20be%20done%20by%20modifying%20the%20Receive%20Side%20Scaling%20property%20on%20the%20vNIC%20inside%20the%20guest.%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%20601px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F110011iA83F6FE45981DA0C%2Fimage-dimensions%2F601x274%3Fv%3D1.0%22%20width%3D%22601%22%20height%3D%22274%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%3E%3CFONT%20size%3D%225%22%3EOn%20the%20Host%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBut%20vRSS%20ain%E2%80%99t%20no%20one-trick%20pony!%20%26nbsp%3BvRSS%20also%20has%20responsibilities%20on%20the%20host%20as%20well.%26nbsp%3B%20vRSS%E2%80%99s%20core%20responsibilities%20are%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ECreating%20the%20mapping%20of%20VMQs%20to%20Processors%20(known%20as%20the%20indirection%20table)%3C%2FLI%3E%0A%3CLI%3EPacket%20distribution%20onto%20processors%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EWhen%20VMQ%20interrupts%20a%20processor%2C%20it%20always%20interrupts%20the%20%E2%80%9Cbase%20processor%E2%80%9D%20for%20a%20specific%20VMQ.%26nbsp%3B%20In%20the%20example%20below%2C%20the%20VM%20with%20the%20MAC%20Address%20ending%20in%20%3CSTRONG%3E7A-35-0C%3C%2FSTRONG%3E%20always%20interrupts%20processor%2017.%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%20661px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F110013iB0190356836FB5EF%2Fimage-dimensions%2F661x125%3Fv%3D1.0%22%20width%3D%22661%22%20height%3D%22125%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%3ENext%2C%20we%20use%20RSS%20technology%20to%20spread%20the%20flows%20across%20other%20available%20processors%20in%20the%20processor%20array.%26nbsp%3B%20While%20this%20is%20a%20bit%20of%20work%20for%20the%20system%2C%20the%20benefit%20is%20that%20the%20throughput%20can%20surpass%20the%20bandwidth%20of%20a%20single%20VMQ.%26nbsp%3B%20Remember%2C%20the%20base%20processor%20must%20always%20receive%20the%20packets%20first%2C%20but%20the%20heavy%20lifting%20is%20performed%20by%20other%20available%20processors.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%0A%3CP%3E%3CFONT%20size%3D%223%22%3E%3CSTRONG%3ENote%3A%20%3C%2FSTRONG%3EYou%20may%20recognize%20that%20vRSS%20and%20VMQ%20are%20working%20together.%26nbsp%3B%20CPU%20spreading%20with%20vRSS%20requires%20VMQ.%3C%2FFONT%3E%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20a%20VM%20can%20receive%20the%20bandwidth%20(approximately)%20equivalent%20to%20the%20number%20of%20processors%20engaged%20to%20do%20its%20bidding.%26nbsp%3B%20Typically%2C%20the%20default%20is%208%20processors.%26nbsp%3B%20Excellent%E2%80%A6%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%20300px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F110015i7CCD0DCF496CEC8E%2Fimage-dimensions%2F300x232%3Fv%3D1.0%22%20width%3D%22300%22%20height%3D%22232%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%3CP%3EHere%E2%80%99s%20a%20diagram%20that%20shows%20the%20packet%20flow.%26nbsp%3B%20In%20the%20picture%20below%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EAll%20packets%20destined%20for%20VM01%20are%20received%20by%20VMQ2%20in%20the%20physical%20NIC%3C%2FLI%3E%0A%3CLI%3EVMQ2%20Interrupts%20the%20CPU2%20(the%20base%20processor)%3C%2FLI%3E%0A%3CLI%3EThe%20virtual%20switch%20will%20use%20CPU2%20to%20process%20as%20many%20packets%20as%20it%20can%3C%2FLI%3E%0A%3CLI%3EIf%20required%20to%20keep%20up%20with%20the%20inbound%20workload%2C%20the%20virtual%20switch%20will%20%E2%80%9Chand-out%E2%80%9D%20packets%20to%20the%20other%20processors%20(in%20this%20case%20CPU5).%20It%20will%20engage%20no%20more%20than%20the%20value%20of%20%3CSTRONG%3EMaxProcessors%3C%2FSTRONG%3E%20(in%20this%20case%203)%20set%20in%20the%20vRSS%20indirection%20table%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CBLOCKQUOTE%3E%0A%3CP%3E%3CFONT%20size%3D%223%22%3E%3CSTRONG%3ENote%3C%2FSTRONG%3E%3A%20The%20virtual%20switch%20from%20the%20picture%20above%20was%20replaced%20with%20the%20vRSS%20indirection%20table%20however%20this%20is%20the%20same%20feature%3B%20vRSS%20is%20a%20function%20of%20the%20virtual%20switch.%3C%2FFONT%3E%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%223%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20698px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F110016iE969BDE9A2271499%2Fimage-dimensions%2F698x298%3Fv%3D1.0%22%20width%3D%22698%22%20height%3D%22298%22%20alt%3D%226.png%22%20title%3D%226.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-899976137%22%20id%3D%22toc-hId-899976137%22%3E%3CFONT%20size%3D%226%22%3E%3CSPAN%20style%3D%22background%3A%20white%3B%22%3EThe%20Base%20CPU%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20base%20CPU%20is%20chosen%20out%20of%20the%20available%20processors%20in%20the%20RSS%20processor%20array%20on%20the%20system.%26nbsp%3B%20In%20the%20screen%20shot%20below%2C%20we%20constrain%20the%20processor%20array%20to%20processors%2012%20%E2%80%93%2016.%26nbsp%3B%20You%20can%20see%20that%20the%20physical%20adapter%20(which%20is%20configured%20with%20a%20virtual%20switch)%2C%20updates%20the%20%3CSTRONG%3ERSSProcessorArray%3C%2FSTRONG%3E%20property%20accordingly.%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%20688px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F110017i95A58F7043360769%2Fimage-dimensions%2F688x247%3Fv%3D1.0%22%20width%3D%22688%22%20height%3D%22247%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%3CBLOCKQUOTE%3E%0A%3CP%3E%3CFONT%20size%3D%223%22%3E%3CSTRONG%3ENote%3A%20%3C%2FSTRONG%3EThere%20is%20no%20RSS%20indirection%20table%20shown%20because%20there%20is%20a%20virtual%20switch%20attached%20and%20TCP%2FIP%20is%20no%20longer%20bound%20to%20this%20adapter.%26nbsp%3B%20Instead%20the%20virtual%20switch%20manages%20the%20indirection%20table.%3C%2FFONT%3E%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENext%2C%20if%20we%20look%20at%20%3CSTRONG%3EGet-NetAdapterVMQ%3C%2FSTRONG%3E%2C%20you%20can%20see%20that%20the%20BaseVmqProcessor%20for%20the%20adapter%20has%20been%20updated%20to%20one%20in%20the%20RSSProcessorArray.%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%20677px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F110019iFF79ADB77C2F0C05%2Fimage-dimensions%2F677x101%3Fv%3D1.0%22%20width%3D%22677%22%20height%3D%22101%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%3EAnd%20the%20processors%20listed%20below%20for%20each%20VM%20have%20been%20constrained%20between%2012%20and%2016%20as%20we%20set%20in%20a%20previous%20command.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ENote%3A%20%3C%2FSTRONG%3EIn%20this%20example%2C%20we%20use%20one%20possible%20command%20to%20get%20the%20VMQ%20assigned%20for%20a%20vNIC.%26nbsp%3B%20You%20could%20also%20use%20Get-NetAdapterVMQQueue.%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%20672px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F110021i126380B469753E58%2Fimage-dimensions%2F672x91%3Fv%3D1.0%22%20width%3D%22672%22%20height%3D%2291%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%3CH1%20id%3D%22toc-hId--1455667319%22%20id%3D%22toc-hId--1455667319%22%3ESetting%20the%20Groundwork%20for%202016%20and%20Beyond%3C%2FH1%3E%0A%3CP%3EAs%20you%20can%20see%2C%20we%20did%20not%20need%20to%20use%20the%20Set-NetAdapterVMQ%20cmdlets%20in%20the%20previous%20blog%20post%20(although%20they%20would%20have%20worked%20as%20well).%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%20639px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F110022iBE30866300142C24%2Fimage-dimensions%2F639x217%3Fv%3D1.0%22%20width%3D%22639%22%20height%3D%22217%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%3EAs%20we%20move%20forward%20to%20the%20next%20article%20on%20Windows%20Server%202016%2C%20you%E2%80%99ll%20begin%20to%20understand%20how%20integral%20RSS%20is%20to%20VMQ.%26nbsp%3B%20In%20Windows%20Server%202012%2C%20the%20two%20technologies%20were%20mutually%20exclusive%20(per%20adapter).%26nbsp%3B%20In%20Windows%20Server%202012%20R2%2C%20RSS%20isn%E2%80%99t%20yet%20the%20peanut%20butter%20to%20VMQ%E2%80%99s%20jelly%2C%20but%20you%20can%20see%20there%20is%20a%20budding%20friendship%20starting%20to%20form%E2%80%A6In%20the%202012%20R2%20days%2C%20probably%20closer%20to%20orange%20mocha%20frappuccinos%E2%80%A6%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%20489px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F110025i7439C047D1226A69%2Fimage-dimensions%2F489x275%3Fv%3D1.0%22%20width%3D%22489%22%20height%3D%22275%22%20alt%3D%22asdf.gif%22%20title%3D%22asdf.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-90629511%22%20id%3D%22toc-hId-90629511%22%3E%3CFONT%20size%3D%225%22%3EHigh%20and%20Low%20Throughput%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3EVRSS%20intends%20to%20engage%20the%20least%20number%20of%20processors%20necessary%20to%20process%20the%20received%20traffic.%26nbsp%3B%20This%20is%20for%20efficiency%20as%20there%20is%20a%20tax%20to%20engage%20and%20spread%20across%20each%20additional%20CPU.%26nbsp%3B%20On%20low%20throughput%2C%20this%20may%20mean%20that%20only%20the%20base%20CPU%20is%20engaged.%26nbsp%3B%20However%2C%20on%20high-throughput%20environments%2C%20the%20number%20of%20CPUs%20that%20%3CSTRONG%3Ecan%20be%3C%2FSTRONG%3E%20engaged%20is%20equal%20to%20the%20value%20of%20%3CEM%3EMaxProcessors%3C%2FEM%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAt%20maximum%20throughput%2C%20the%20base%20CPU%20may%20be%20receiving%20so%20many%20packets%20that%20it%E2%80%99s%20only%20able%20to%20process%20a%20minimal%20number%20of%20packets%20itself.%26nbsp%3B%20Instead%2C%20it%20hands%20out%20packets%20to%20the%20others%20in%20the%20processor%20array.%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%20733px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F110026i959F86A9FD31229A%2Fimage-dimensions%2F733x321%3Fv%3D1.0%22%20width%3D%22733%22%20height%3D%22321%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%3CP%3EIn%20the%20example%20shown%20above%2C%20this%20VM%20will%20receive%20throughput%20equivalent%20to%20what%20approximately%202%20%E2%80%93%203%20processors%20can%20crank%20out%20(because%20the%20%3CEM%3EMaxProcessors%20%3C%2FEM%3Evalue%20is%20limited%20to%203).%26nbsp%3B%20As%20mentioned%20before%2C%20this%20is%20because%20most%20of%20the%20base%20CPU%E2%80%99s%20work%20is%20simply%20handing%20packets%20out%20to%20other%20processors.%26nbsp%3B%20Despite%20engaging%20three%20processors%2C%20you%E2%80%99re%20getting%20a%20bit%20less%20than%20that.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20fact%2C%20you%20may%20find%20that%20despite%20setting%20MaxProcessors%20to%208%2C%20you%20may%20only%20engage%20a%20few%20processors%2C%20this%20is%20likely%20because%20your%20Base%20Processor%20is%20pegged%20and%20cannot%20hand%20out%20any%20more%20packets%20to%20other%20processors.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%0A%3CP%3E%3CFONT%20size%3D%223%22%3E%3CSTRONG%3ENote%3A%20%3C%2FSTRONG%3EThe%20defaults%20are%20specific%20to%20your%20NIC%2C%20however%20in%20most%20cases%2C%20MaxProcessors%20defaults%20to%208%20and%20was%20changed%20in%20this%20example%20only%20for%20visualization%20purposes.%3C%2FFONT%3E%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20you%20can%20imagine%2C%20this%20is%20far%20better%20than%20VMQ%20alone.%26nbsp%3B%20A%20single%20VM%20could%20receive%20approximately%2015%20Gbps%20using%20this%20mechanism%20%E2%80%93%20a%20nearly%203x%20improvement!%26nbsp%3B%20In%20the%20next%20post%20on%20Windows%20Server%202016%20we%E2%80%99ll%20explain%20how%20VMMQ%20enhances%20this%20to%20get%20even%20better%20throughput%20and%20lower%20the%20CPU%20cost%2C%20improving%20your%20system%E2%80%99s%20density.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20see%20which%20processors%20are%20being%20engaged%20for%20virtual%20traffic%20by%20opening%20perfmon%2C%20changing%20to%20the%20histogram%20view%2C%20and%20adding%20the%20%3CSTRONG%3EHyper-V%20Virtual%20Switch%20Processor%3C%2FSTRONG%3E%20Object%20with%20the%20%3CSTRONG%3EPackets%20from%20External%2Fsec%20%3C%2FSTRONG%3Ecounter.%26nbsp%3B%20Next%20use%20NTTTCP%20or%20CTSTraffic%20to%20send%20traffic%20from%20another%20machine%20to%20your%20VM.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20the%20picture%20below%2C%20you%20can%20see%20that%20two%20processors%20are%20engaged%3A%20CPU12%20(shown%20in%20Red)%20and%20CPU13%20(shown%20in%20green).%20%26nbsp%3BEach%20CPU%20that%20is%20processing%20packets%20will%20be%20represented%20by%20a%20bar.%20The%20height%20of%20the%20bar%20indicates%20the%20number%20of%20packets%20being%20processed%20by%20that%20specific%20CPU.%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%20505px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F110027i969A2300ED42E3E0%2Fimage-dimensions%2F505x371%3Fv%3D1.0%22%20width%3D%22505%22%20height%3D%22371%22%20alt%3D%226.png%22%20title%3D%226.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-2029953351%22%20id%3D%22toc-hId-2029953351%22%3E%3CFONT%20size%3D%226%22%3EDynamic%20VMQ%3C%2FFONT%3E%3C%2FH1%3E%0A%3CP%3EThe%20next%20major%20improvement%20in%202012%20R2%20was%20called%20Dynamic%20VMQ.%26nbsp%3B%20To%20make%20better%20use%20of%20VMQ%20and%20available%20system%20resources%2C%20the%20OS%20was%20improved%20in%20Windows%20Server%202012%20R2%20to%20allow%20a%20VMQ%20to%20processor%20assignment%20be%20updated%20dynamically%20based%20on%20its%20CPU%20load.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20refer%20back%20to%20%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%3Ethe%20article%20on%202012%3C%2FA%3E%2C%20you%20can%20see%20an%20obvious%20challenge%20where%20multiple%20VMs%20using%20the%20same%20processor%20can%20easily%20starve%20one%20another.%26nbsp%3B%20In%20other%20words%2C%20the%20maximum%20throughput%20of%20a%20single%20CPU%20core%20does%20not%20change%20from%20around%205%20or%206%20Gbps.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EImagine%20there%20are%203%20VMs%20all%20with%20a%20VMQ%20but%20assigned%20to%20the%20same%20processor%2C%20and%20that%20processor%20can%20process%20a%20total%20of%206%20Gbps.%20%26nbsp%3BEach%20VM%20could%20potentially%20receive%202%20Gbps%20if%20they%20were%20distributed%20evenly.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHowever%2C%20network%20traffic%20isn%E2%80%99t%20that%20predictable.%26nbsp%3B%20It%E2%80%99s%20just%20as%20likely%20that%205%20Gbps%20goes%20to%20VM1%20and%20the%20remaining%20processing%20power%20is%20split%20among%20the%20other%20VMs.%26nbsp%3B%20When%20the%20other%20VMs%20suddenly%20need%20more%20throughput%2C%20it%E2%80%99s%20not%20available%20for%20them%20because%20VM1%20is%20already%20dominating%20the%20core%20used%20to%20process%20the%20data.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20this%20picture%20%3CSTRONG%3E%3CFONT%20color%3D%22%23FF0000%22%3EVM03%3C%2FFONT%3E%20%3C%2FSTRONG%3Eis%20assigned%20to%20the%20same%20core%20as%20%3CSTRONG%3E%3CFONT%20color%3D%22%2300FF00%22%3EVM01%3C%2FFONT%3E%3C%2FSTRONG%3E.%26nbsp%3B%20In%20this%20way%2C%20VM01%20and%20VM03%20are%20in%20competition%20for%20the%20CPU%20cores.%26nbsp%3B%20Their%20individual%20performance%20is%20gated%20by%20the%20VMs%20sharing%20that%20processor.%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%20672px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F110028iAFB8E2A109666BDD%2Fimage-dimensions%2F672x315%3Fv%3D1.0%22%20width%3D%22672%22%20height%3D%22315%22%20alt%3D%227.png%22%20title%3D%227.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWith%20Dynamic%20VMQ%20however%2C%20if%20CPU1%20is%20not%20able%20to%20process%20the%20incoming%20packets%2C%20one%20of%20the%20queues%20can%20be%20reassigned%20to%20interrupt%20a%20different%20processor%20if%20one%20is%20able%20to%20sustain%20the%20workload.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20measurements%20determining%20that%20a%20queue%20should%20be%20reassigned%20is%20happening%20in%20Windows%20(this%20is%20another%20one%20of%20vRSS%E2%80%99s%20responsibilities).%26nbsp%3B%20Since%20the%20queues%20can%20now%20move%20and%20they%20exist%20in%20the%20NIC%20you%20should%20pay%20special%20attention%20to%20keep%20your%20NIC%E2%80%99s%20driver%20and%20firmware%20up-to-date.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDynamic%20VMQ%20is%20all%20about%20enabling%20your%20workloads%20to%20have%20consistent%20performance.%26nbsp%3B%20If%20you%20have%20a%20night-owl%20for%20a%20CEO%2C%20and%20he%20tries%20to%20login%20at%20night%20when%20the%20backups%20are%20running%2C%20you%20want%20him%20to%20have%20the%20same%20performance%20as%20when%20he%20works%20during%20the%20day.%26nbsp%3B%20Otherwise%2C%20you%20might%20have%20to%20work%20the%20same%20hours!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThat%20said%2C%20there%E2%80%99s%20a%20couple%20of%20problems%20in%20this%20implementation%20which%20will%20be%20addressed%20in%20Windows%20Server%202019.%26nbsp%3B%20Most%20notably%2C%202012%20R2%20does%20not%20handle%20workloads%20that%20burst%20very%20well.%26nbsp%3B%20If%20you%20have%20a%20system%20that%20needs%20max%20throughput%20suddenly%2C%20Dynamic%20VMQ%20isn%E2%80%99t%20able%20to%20do%20that.%26nbsp%3B%20Instead%2C%20you%E2%80%99ll%20notice%20that%20the%20system%20ramps%20up%20slowly%2C%20maxing%20out%20at%20around%2015%20Gbps.%26nbsp%3B%20This%20is%20because%20the%20system%20only%20reserves%20the%20bare%20minimum%20resources%20required%2C%20pre-allocating%20only%20the%20single%20VMQ%20available%20when%20network%20throughput%20begins.%26nbsp%3B%20As%20demand%20for%20throughput%20increases%2C%20the%20system%20takes%20some%20measurements%2C%20vRSS%20expands%20to%20more%20CPUs%2C%20it%20takes%20some%20more%20measurements%2C%20expands%20to%20more%20CPUs%2C%20and%20finally%20max%20throughput%20is%20reached.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--718717115%22%20id%3D%22toc-hId--718717115%22%3E%3CFONT%20size%3D%225%22%3EImplications%20of%20the%20Default%20Queue%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3EAs%20a%20refresher%2C%20the%20default%20queue%20is%20where%20all%20traffic%20that%20doesn%E2%80%99t%20match%20a%20filter%20land%20-%20this%20is%20a%20shared%20VMQ.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWith%20vRSS%20however%2C%20this%20is%20less%20painful%20because%20the%20packets%20from%20the%20default%20queue%20can%20be%20distributed%20to%20other%20available%20processors.%26nbsp%3B%20While%20VMs%20that%20land%20on%20this%20VMQ%20will%20not%20reach%20the%20same%20performance%20metrics%20as%20VMs%20with%20a%20dedicated%20queue%2C%20the%20delta%20is%20not%20as%20severe%20as%20enabling%20a%20much%20higher%20density%20of%20VMs%20on%20the%20same%20hardware.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1024093220%22%20id%3D%22toc-hId-1024093220%22%3E%3CFONT%20size%3D%225%22%3EHost%20Virtual%20NICs%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3EHost%20virtual%20NICs%20cannot%20leverage%20vRSS%20or%20Dynamic%20VMQ.%26nbsp%3B%20This%20will%20be%20addressed%20in%20later%20versions%20however%20if%20your%20host%20NICs%20need%20more%20than%20what%20a%20single%20VMQ%20can%20provide%2C%20Windows%20Server%202012%20R2%20can%E2%80%99t%20help%20you.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20look%20at%20the%20properties%20of%20a%20Host%20virtual%20NIC%20there%20is%20no%20RSS%20capability%20listed.%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%20673px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F110029i10C132FBAB63AE16%2Fimage-dimensions%2F673x275%3Fv%3D1.0%22%20width%3D%22673%22%20height%3D%22275%22%20alt%3D%229.png%22%20title%3D%229.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--1331550236%22%20id%3D%22toc-hId--1331550236%22%3E%3CFONT%20size%3D%225%22%3ESummary%20of%20Requirements%3C%2FFONT%3E%3C%2FH1%3E%0A%3CP%3EWe%20had%20a%20similar%20list%20in%20the%20article%20on%20Windows%20Server%202012.%26nbsp%3B%20I%E2%80%99ll%20keep%20this%20in%20each%20blog%20so%20you%20can%20see%20the%20progression.%26nbsp%3B%20As%20you%20can%20see%20in%202012%20R2%2C%20there%20were%20performance%20and%20workload%20stability%20improvements%2C%20however%20the%20management%20experience%20didn't%20change%20much.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EInstall%20latest%20drivers%20and%20firmware%20%E2%80%93%20Even%20more%20important%20now%20that%20queues%20are%20moving!%3C%2FLI%3E%0A%3CLI%3E%3CSTRIKE%3EProcessor%20Array%20engaged%20by%20default%20%E2%80%93%20CPU0%3C%2FSTRIKE%3E%3C%2FLI%3E%0A%3CLI%3EConfigure%20the%20system%20to%20avoid%20CPU0%20on%20non-hyperthreaded%20systems%20and%20CPU0%20and%20CPU1%20on%20hyperthreaded%20systems%20(e.g.%20%3CSTRONG%3EBaseProcessorNumber%3C%2FSTRONG%3E%20should%20be%201%20or%202%20depending%20on%20hyperthreading)%3C%2FLI%3E%0A%3CLI%3EConfigure%20the%20%3CSTRONG%3EMaxProcessorNumber%3C%2FSTRONG%3E%20to%20establish%20that%20an%20adapter%20cannot%20use%20a%20processor%20higher%20than%20this.%3C%2FLI%3E%0A%3CLI%3EConfigure%20%3CSTRONG%3EMaxProcessors%3C%2FSTRONG%3E%20to%20establish%20how%20many%20processors%20out%20of%20the%20available%20list%20a%20NIC%20can%20spread%20VMQs%20across%20simultaneously%3C%2FLI%3E%0A%3CLI%3ETest%20customer%20workload%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3E%3CSTRONG%3EOther%20best%20practices%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAll%202012%20best%20practices%20move%20forward%20including%20that%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ENOT%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Edisabling%20RSS%20unless%20directed%20by%20Microsoft%20support%20for%20troubleshooting%20-%26nbsp%3B%3CSPAN%3EDisabling%20RSS%20is%20not%20a%20supported%20configuration%20on%20Windows.%26nbsp%3B%26nbsp%3BRSS%20can%20be%20temporarily%20disabled%20by%20Microsoft%20Support%20recommendation%20for%20troubleshooting%20whether%20there%20is%20an%20issue%20with%20the%20feature.%20RSS%20should%20not%20be%20permanently%20disabled%2C%20which%20would%20leave%20Windows%20in%20an%20unsupported%20state.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3E%3CSTRONG%3ESummary%20of%20Advantages%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3ESpreading%20across%20virtual%20CPUs%20(vRSS%20in%20the%20Guest)%3C%2FSTRONG%3E%20%E2%80%93%20The%20virtual%20processors%20have%20been%20removed%20as%20a%20bottleneck.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ESpreading%20across%20physical%20CPUs%20(vRSS%20on%20the%20host)%3C%2FSTRONG%3E%20%E2%80%93%20Additional%20CPUs%20can%20be%20engaged%20to%20improve%20the%20performance%20of%20an%20individual%20virtual%20NIC%20by%20~3x%20(approximately%2015%20Gbps).%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EDynamic%20Assignment%20%3C%2FSTRONG%3E%E2%80%93%20Overburdened%20processors%20can%20be%20moved%20to%20processors%20with%20less%20workload%20if%20the%20hardware%20(firmware%2Fdriver)%20supports%20it%20and%20an%20available%20processor%20is%20available.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EDefault%20Queue%20%3C%2FSTRONG%3E%E2%80%93%20An%20overprovisioned%20system%20with%20more%20VMs%20than%20queues%20can%20%E2%80%9Cease%20the%20pain%E2%80%9D%20of%20a%20shared%20default%20queue%20by%20spreading%20and%20balance%20traffic%20across%20multiple%20CPUs%20enabling%20higher%20VM%20density.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3E%3CSTRONG%3ESummary%20of%20Disadvantages%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EOne%20VMQ%20per%20virtual%20NIC%20%3C%2FSTRONG%3E%E2%80%93%20One%20is%20the%20loneliest%20number%2C%20and%20that%20goes%20for%20VMQs%20as%20well.%20While%20vRSS%20eases%20the%20pain%2C%20scaling%20up%20the%20workload%20to%20achieve%20higher%20throughputs%20means%20a%20considerable%20tax%20in%20the%20form%20of%20a%20CPU%20penalty.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ENo%20Host%20vRSS%20%3C%2FSTRONG%3E%E2%80%93%20Host%20virtual%20NICs%20cannot%20take%20advantage%20of%20vRSS%20spreading%20on%20the%20host%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ENo%20default%20queue%20management%20%3C%2FSTRONG%3E%E2%80%93%20There%20is%20minimal%20management%20of%20the%20default%20queue.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ENo%20management%20of%20vRSS%3C%2FSTRONG%3E%20%E2%80%93There%20is%20no%20management%20of%20vRSS%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EBursty%20workloads%20cannot%20be%20satisfied%3C%2FSTRONG%3E%20%E2%80%93%20No%20preallocated%20resources%20means%20that%20the%20system%20must%20measure%20and%20react%20to%20the%20workload%E2%80%99s%20demands%20slowly%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EAs%20you%20can%20see%2C%20vRSS%20and%20Dynamic%20VMQ%20brought%20significant%20enhancements%20to%20Hyper-V%20networking%20for%20its%20time.%26nbsp%3B%20This%20allowed%20virtual%20machines%20to%20nearly%20triple%20the%20throughput%20into%20a%20virtual%20machine%20%3CEM%3EAND%3C%2FEM%3E%20have%20some%20level%20of%20throughput%20consistency%20for%20the%20workload%20by%20balancing%20across%20available%20processors.%26nbsp%3B%20In%20our%20next%20article%2C%20we%E2%80%99ll%20discuss%20the%20rearchitecture%20of%20network%20cards%20and%20how%20this%20enabled%20us%20to%20overcome%20some%20of%20the%20existing%20shortcomings%20in%202012%20R2.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20reading%2C%3CBR%20%2F%3EDan%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-481428%22%20slang%3D%22en-US%22%3E%3CP%3E%3CFONT%20size%3D%223%22%3EThis%20is%20the%20second%20in%20a%20series%20of%20posts%20covering%20synthetic%20accelerations%20(specifically%20VMQ)%20on%202012%2C%202012%20R2%2C%202016%2C%20and%202019.%20%26nbsp%3BWe%20recommend%20that%20you%20read%20through%20the%20full%20progression%20of%20posts%20(once%20available)%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%202012%20R2.%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Microsoft

Hi folks,

 

Dan Cuomo back for our next installment in this blog series on synthetic accelerations.  This time we’ll cover Windows Server 2012 R2.  If you haven’t already read the first post on Server 2012, I’d recommend reviewing that before proceeding here.  Following this post, we’ll tackle Windows Server 2016, and finally Windows Server 2019.

 

Background

Windows Server 2012 R2 added a few improvements to VMQ, including Dynamic VMQ which enables the processor processing network traffic destined for a virtual machine to be updated based on some heuristics.

 

However, the most important feature introduced in 2012 R2 was vRSS which is critical to understand as we move into the future operating systems like Windows Server 2016 and 2019.  vRSS is the basis for how we exceed the bandwidth of a single CPU as you’ll see in this post.

 

As such, we’ll focus this article on vRSS then cover Dynamic VMQ so you can understand the journey when we complete our series with Windows Server 2016 and 2019.

 

Virtual Receive Side Scaling (vRSS)

Virtual Receive Side Scaling (vRSS) was introduced in Windows Server 2012 R2.  vRSS enables improved performance over VMQ alone through a couple of new responsibilities.

 

In the Guest

Virtual CPUs fill up just like any other CPU and can become a bottleneck just like CPUs on the host.  If the virtual machine has multiple virtual CPUs, it can alleviate this chokepoint by splitting the processing for the received network traffic across each virtual CPU in the guest.

 

If you want to visualize this architecturally, a virtual NIC attaches to a “port” on the Hyper-V Virtual switch (vSwitch).  This is similar to a physical port on a physical switch (except that it’s all virtual).  In the picture below you can see that the vSwitch operates at layer 2 (ethernet).  If you remember from our first article, legacy VMQ operates similarly using a MAC + VLAN filter to separate traffic into different VMQs.

 

1.png

 

Once the traffic reaches the vmNIC, it needs to traverse the network stack and be processed by the Guest’s vCPUs.  In the guest, you’ll see the network traffic distributed in task manager similar to this thanks to vRSS.

2.png

 

This operates by using RSS inside the guest, hence the intuitive name vRSS :smiling_face_with_smiling_eyes:.  Enabling or disabling this can be done by modifying the Receive Side Scaling property on the vNIC inside the guest.

 

3.png

 

On the Host

 

But vRSS ain’t no one-trick pony!  vRSS also has responsibilities on the host as well.  vRSS’s core responsibilities are:

  • Creating the mapping of VMQs to Processors (known as the indirection table)
  • Packet distribution onto processors

When VMQ interrupts a processor, it always interrupts the “base processor” for a specific VMQ.  In the example below, the VM with the MAC Address ending in 7A-35-0C always interrupts processor 17.

 

4.png

 

Next, we use RSS technology to spread the flows across other available processors in the processor array.  While this is a bit of work for the system, the benefit is that the throughput can surpass the bandwidth of a single VMQ.  Remember, the base processor must always receive the packets first, but the heavy lifting is performed by other available processors.

 

Note: You may recognize that vRSS and VMQ are working together.  CPU spreading with vRSS requires VMQ.

 

Now a VM can receive the bandwidth (approximately) equivalent to the number of processors engaged to do its bidding.  Typically, the default is 8 processors.  Excellent…

 

5.png

 

Here’s a diagram that shows the packet flow.  In the picture below:

  • All packets destined for VM01 are received by VMQ2 in the physical NIC
  • VMQ2 Interrupts the CPU2 (the base processor)
  • The virtual switch will use CPU2 to process as many packets as it can
  • If required to keep up with the inbound workload, the virtual switch will “hand-out” packets to the other processors (in this case CPU5). It will engage no more than the value of MaxProcessors (in this case 3) set in the vRSS indirection table

Note: The virtual switch from the picture above was replaced with the vRSS indirection table however this is the same feature; vRSS is a function of the virtual switch.

 

6.png

 

The Base CPU

 

The base CPU is chosen out of the available processors in the RSS processor array on the system.  In the screen shot below, we constrain the processor array to processors 12 – 16.  You can see that the physical adapter (which is configured with a virtual switch), updates the RSSProcessorArray property accordingly.

 

1.png

 

Note: There is no RSS indirection table shown because there is a virtual switch attached and TCP/IP is no longer bound to this adapter.  Instead the virtual switch manages the indirection table.

 

Next, if we look at Get-NetAdapterVMQ, you can see that the BaseVmqProcessor for the adapter has been updated to one in the RSSProcessorArray.

 

2.png

 

And the processors listed below for each VM have been constrained between 12 and 16 as we set in a previous command.

 

Note: In this example, we use one possible command to get the VMQ assigned for a vNIC.  You could also use Get-NetAdapterVMQQueue.

 

3.png

 

Setting the Groundwork for 2016 and Beyond

As you can see, we did not need to use the Set-NetAdapterVMQ cmdlets in the previous blog post (although they would have worked as well).

 

4.png

 

As we move forward to the next article on Windows Server 2016, you’ll begin to understand how integral RSS is to VMQ.  In Windows Server 2012, the two technologies were mutually exclusive (per adapter).  In Windows Server 2012 R2, RSS isn’t yet the peanut butter to VMQ’s jelly, but you can see there is a budding friendship starting to form…In the 2012 R2 days, probably closer to orange mocha frappuccinos…

 

asdf.gif

 

High and Low Throughput

VRSS intends to engage the least number of processors necessary to process the received traffic.  This is for efficiency as there is a tax to engage and spread across each additional CPU.  On low throughput, this may mean that only the base CPU is engaged.  However, on high-throughput environments, the number of CPUs that can be engaged is equal to the value of MaxProcessors.

 

At maximum throughput, the base CPU may be receiving so many packets that it’s only able to process a minimal number of packets itself.  Instead, it hands out packets to the others in the processor array.

 

5.png

 

In the example shown above, this VM will receive throughput equivalent to what approximately 2 – 3 processors can crank out (because the MaxProcessors value is limited to 3).  As mentioned before, this is because most of the base CPU’s work is simply handing packets out to other processors.  Despite engaging three processors, you’re getting a bit less than that.

 

In fact, you may find that despite setting MaxProcessors to 8, you may only engage a few processors, this is likely because your Base Processor is pegged and cannot hand out any more packets to other processors.

 

Note: The defaults are specific to your NIC, however in most cases, MaxProcessors defaults to 8 and was changed in this example only for visualization purposes.

 

As you can imagine, this is far better than VMQ alone.  A single VM could receive approximately 15 Gbps using this mechanism – a nearly 3x improvement!  In the next post on Windows Server 2016 we’ll explain how VMMQ enhances this to get even better throughput and lower the CPU cost, improving your system’s density.

 

You can see which processors are being engaged for virtual traffic by opening perfmon, changing to the histogram view, and adding the Hyper-V Virtual Switch Processor Object with the Packets from External/sec counter.  Next use NTTTCP or CTSTraffic to send traffic from another machine to your VM.

 

In the picture below, you can see that two processors are engaged: CPU12 (shown in Red) and CPU13 (shown in green).  Each CPU that is processing packets will be represented by a bar. The height of the bar indicates the number of packets being processed by that specific CPU.

 

6.png

 

Dynamic VMQ

The next major improvement in 2012 R2 was called Dynamic VMQ.  To make better use of VMQ and available system resources, the OS was improved in Windows Server 2012 R2 to allow a VMQ to processor assignment be updated dynamically based on its CPU load.

 

If you refer back to the article on 2012, you can see an obvious challenge where multiple VMs using the same processor can easily starve one another.  In other words, the maximum throughput of a single CPU core does not change from around 5 or 6 Gbps.

 

Imagine there are 3 VMs all with a VMQ but assigned to the same processor, and that processor can process a total of 6 Gbps.  Each VM could potentially receive 2 Gbps if they were distributed evenly. 

 

However, network traffic isn’t that predictable.  It’s just as likely that 5 Gbps goes to VM1 and the remaining processing power is split among the other VMs.  When the other VMs suddenly need more throughput, it’s not available for them because VM1 is already dominating the core used to process the data.

 

In this picture VM03 is assigned to the same core as VM01.  In this way, VM01 and VM03 are in competition for the CPU cores.  Their individual performance is gated by the VMs sharing that processor.

 

7.png

 

With Dynamic VMQ however, if CPU1 is not able to process the incoming packets, one of the queues can be reassigned to interrupt a different processor if one is able to sustain the workload.

 

The measurements determining that a queue should be reassigned is happening in Windows (this is another one of vRSS’s responsibilities).  Since the queues can now move and they exist in the NIC you should pay special attention to keep your NIC’s driver and firmware up-to-date.

 

Dynamic VMQ is all about enabling your workloads to have consistent performance.  If you have a night-owl for a CEO, and he tries to login at night when the backups are running, you want him to have the same performance as when he works during the day.  Otherwise, you might have to work the same hours!

 

That said, there’s a couple of problems in this implementation which will be addressed in Windows Server 2019.  Most notably, 2012 R2 does not handle workloads that burst very well.  If you have a system that needs max throughput suddenly, Dynamic VMQ isn’t able to do that.  Instead, you’ll notice that the system ramps up slowly, maxing out at around 15 Gbps.  This is because the system only reserves the bare minimum resources required, pre-allocating only the single VMQ available when network throughput begins.  As demand for throughput increases, the system takes some measurements, vRSS expands to more CPUs, it takes some more measurements, expands to more CPUs, and finally max throughput is reached.

 

Implications of the Default Queue

As a refresher, the default queue is where all traffic that doesn’t match a filter land - this is a shared VMQ.

 

With vRSS however, this is less painful because the packets from the default queue can be distributed to other available processors.  While VMs that land on this VMQ will not reach the same performance metrics as VMs with a dedicated queue, the delta is not as severe as enabling a much higher density of VMs on the same hardware.

 

Host Virtual NICs

Host virtual NICs cannot leverage vRSS or Dynamic VMQ.  This will be addressed in later versions however if your host NICs need more than what a single VMQ can provide, Windows Server 2012 R2 can’t help you.

 

If you look at the properties of a Host virtual NIC there is no RSS capability listed.

 

9.png

Summary of Requirements

We had a similar list in the article on Windows Server 2012.  I’ll keep this in each blog so you can see the progression.  As you can see in 2012 R2, there were performance and workload stability improvements, however the management experience didn't change much.

 

  • Install latest drivers and firmware – Even more important now that queues are moving!
  • Processor Array engaged by default – CPU0
  • Configure the system to avoid CPU0 on non-hyperthreaded systems and CPU0 and CPU1 on hyperthreaded systems (e.g. BaseProcessorNumber should be 1 or 2 depending on hyperthreading)
  • Configure the MaxProcessorNumber to establish that an adapter cannot use a processor higher than this.
  • Configure MaxProcessors to establish how many processors out of the available list a NIC can spread VMQs across simultaneously
  • Test customer workload

 

Other best practices

 

All 2012 best practices move forward including that NOT disabling RSS unless directed by Microsoft support for troubleshooting - Disabling RSS is not a supported configuration on Windows.  RSS can be temporarily disabled by Microsoft Support recommendation for troubleshooting whether there is an issue with the feature. RSS should not be permanently disabled, which would leave Windows in an unsupported state.

 

Summary of Advantages

  • Spreading across virtual CPUs (vRSS in the Guest) – The virtual processors have been removed as a bottleneck.
  • Spreading across physical CPUs (vRSS on the host) – Additional CPUs can be engaged to improve the performance of an individual virtual NIC by ~3x (approximately 15 Gbps).
  • Dynamic Assignment – Overburdened processors can be moved to processors with less workload if the hardware (firmware/driver) supports it and an available processor is available.
  • Default Queue – An overprovisioned system with more VMs than queues can “ease the pain” of a shared default queue by spreading and balance traffic across multiple CPUs enabling higher VM density.

Summary of Disadvantages

  • One VMQ per virtual NIC – One is the loneliest number, and that goes for VMQs as well. While vRSS eases the pain, scaling up the workload to achieve higher throughputs means a considerable tax in the form of a CPU penalty.
  • No Host vRSS – Host virtual NICs cannot take advantage of vRSS spreading on the host
  • No default queue management – There is minimal management of the default queue.
  • No management of vRSS –There is no management of vRSS
  • Bursty workloads cannot be satisfied – No preallocated resources means that the system must measure and react to the workload’s demands slowly

As you can see, vRSS and Dynamic VMQ brought significant enhancements to Hyper-V networking for its time.  This allowed virtual machines to nearly triple the throughput into a virtual machine AND have some level of throughput consistency for the workload by balancing across available processors.  In our next article, we’ll discuss the rearchitecture of network cards and how this enabled us to overcome some of the existing shortcomings in 2012 R2.

 

Thanks for reading,
Dan