Home > Blogs > VMware VROOM! Blog


Turbo-charge View Video Performance

For desktop VMs using VMXnet3 NICs, you can significantly improve the peak video playback performance of your View desktop by simply setting the following registry setting to the value recommended by Microsoft:

HKLM\System\CurrentControlSet\Services\Afd\Parameters\FastSendDatagramThreshold to 1500

[As discussed in a Microsoft KB article here]

[N.B. A reboot of the desktop VM is required after changing this registry setting]

When running full-screen videos at 1080p resolution on a 2vCPU desktop, we see this deliver frame-rate improvements of up to 1.4X.

So, what does this do and why does it deliver these benefits?

The VMXNET3 adapter is a paravirtualized NIC designed for performance that, as of vSphere 5, supports interrupt coalescing. Virtual interrupt coalescing is similar to a physical NICs interrupt moderation and is useful in improving CPU efficiency for high throughput workloads. Unfortunately, out-of-the-box, Windows does not benefit from interrupt coalescing in many scenarios (those sending packets larger than 1024-bytes), because after sending a packet, Windows waits for a completion interrupt to be delivered before sending the next packet. By setting ParametersFastSendDatagramThreshold to the Microsoft recommended value of 1500 bytes you instruct Windows not to wait for the completion interrupt even when sending larger packets. Accordingly, you are allowing View and PCoIP (as well as other applications that send larger packets) to benefit from interrupt coalescing – reducing CPU load and improving network throughput for PCoIP  — which translates into significantly improved video playback performance.

12 thoughts on “Turbo-charge View Video Performance

  1. Sean

    How do things work when using E1000 virtual adapters for example? Would adjusting this registry key help at all?

    As it is a change to the way Winsock handles UDP packets I would have thought so – but curious to know as the above mentions specifically with regard VMXNET3 adapters.

    Reply
  2. Pingback: Let Us GO Virtual – How to Turbo-Charge your Video Performance in VMware View Environemnt.

  3. Pingback: Significantly improve your View video playback performance

    1. Michael

      for what its worth Having deployed a win7 vm from MDT using the TS.xml from the Win 7 optimisation guide as of Jan 2013 the necessary registry entry wasn’t included for this.

      Reply
  4. Pingback: View Accelerated – 3D Graphics with Horizon View 5.2

  5. test1

    Hey There. I found your blog the usage of msn. That is a really neatly written article. I will make sure to bookmark it and come back to learn more of your useful information. Thank you for the post. I will certainly return.

    Reply
  6. Jer

    I have found with WIndows7 its already set to 1500 maybe from the View Agent? In any case I use 2048 for local LAN for my Installs.

    Jeremy

    Reply
  7. Sebastian Haensch

    I’d like to point out that FastSendDatagramThreshold not only applies to VDI environments. FastSendDatagramThreshold has the potential to waste months and years of time of a developers life. This was actually one of carrier nightmares during analysis and windows embedded development.

    During analysis I once noticed our UDP video streaming appliance was magically limited in its bandwidth. With the Threshold default value, the UDP output was limited to 100Mbit/s to 300Mbit/s and 10k to 30k packets per second.

    It took me weeks of analysis to find this value and the KB mentioned above.
    I suppose this is an optimization leftover back from times of 10 and 100 network cards.

    If you cannot change the value to 1500, you need to make sure your UDP packets are properly sized, so they are NOT locked and buffered before sent as described on the MS KB!

    This value may or may not apply to Win8/2012. There are blogs around the internet about the new IO features. I remember a blog, stating UDP Performance was ten times and even higher compared to Win7!

    Reply
  8. Pingback: VMware Horizon View – Resource Dump | MacGyverIT

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>