Your browser is not supported. Please update it.

29 April 2021

Google goes own way with new VCU ASIC for YouTube transcoding

Google has lifted the lid on its silicon-design capabilities for video transcoding, after dabbling in AI-focused chips for some time. Specifically, it has unveiled its Argos ASIC chips, two of which are housed inside a PCIe card that has been installed in Google servers since 2015, to handle transcoding duties for YouTube.

Notably, we are only just seeing these first-generation designs, and Google is now in the process of upgrading these installations to the second-generation – which crucially marks the beginning of Google overhauling its cloud infrastructure to support the AV1 codec.

With AV1 taking hold, Google is going to be painfully aware of the required upgrades needed to accommodate the increased computing workload for AV1. While the codec produces much more data-efficient video than its predecessors, it requires a buttload more computing horsepower.

Thankfully, Google should have just that in its second-generation VCU, and for a bit of reckless speculation, it will be interesting to see if it pushes its Android TV users towards migrating their video workloads into the Google Cloud Platform ecosystem, potentially at the expense of the current transcoding suppliers.

Details on the second-generation design are not being shared. As such, the comparisons are a bit dated, but as the computing industry tends to move in a fairly linear fashion, the lessons learned from the first-generation should give us a good idea of how the second-generation will perform compared to modern CPU and GPU alternatives.

Called the Video (trans)Coding Unit (VCU), the first-generation card is a fairly naked PCB, with two very prominent heatsinks installed over the two Argos ASICs. Notably, they don’t have fan coolers on the heatsinks themselves, meaning that Google will cool them passively using air forced through the server chassis.

The lack of active cooling suggests that these chips are relatively low power, compared to a graphics card that you might plug into the same PCIe slot in a server – although it does seem to have an 8-pin power connector on the card, suggesting that the PCIe slot itself can’t supply enough power alone. In a consumer graphics card, you are going to run into thermal-throttling issues if you don’t have fans on the card itself, leading to the chips lowering their clock-speed to avoid melting down entirely.

Details about the silicon have finally been outlined in a technical paper – after being under wraps for the past six years. The Argos designs themselves are Google’s own, but the rest of the VCU is assembled using off-the-shelf IP blocks, apparently. Google claims 20-33x improvements in compute efficiency compared to its old system, which ran on traditional servers.

Each Argos chip has 10 encoder cores, with each core able to encode a 2160p video at 60fps, in real time, using three reference frames. In total, this would mean that each VCU card can take a source video in 3840x2160p and 60fps, and then create twenty different transcoded outputs – that can then be stored and later served to viewers, depending on their network conditions and device capabilities.

Because of the PCIe form-factor, Google will be able to slap these cards into pretty much any server it likes, housed inside the Google Cloud Platform (GCP). However, the current plan is to create VCU clusters, to avoid having to upgrade each and every server in the GCP footprint. These clusters will then perform the heavy transcoding lifting.

According to CNET, there are thousands of these VCUs deployed today. Google hasn’t commented on their penetration, but it seems likely that it wouldn’t have published the paper and celebratory blog if it hadn’t deemed the VCUs a success.

In terms of evaluating their performance, Google has used a weird metric. Essentially, it doesn’t want to tell us how much it has spent on the R&D and production, and so it has ranked its old approaches against its new one. Of course, it has done so in quite an opaque fashion, as the table shows.

It measures Throughput in millions of pixels per second, and then uses this as a basis to chart the Performance per Total Cost of Ownership (TCO). The four systems begin with “Skylake,” which denotes two Intel CPUs, of unknown specification, with some 384 GB of RAM.

This does not seem to consider the cost of the rest of the server, and some of those Xeon designs based on Skylake can cost over $13,000 at the top of the line. Notably, the Skylake architecture debuted in 2015, so this smacks of an unfair comparison, given that Intel is now on Tiger Lake – having finally jumped from 14nm.

The second system is 4x Nvidia T4 PCIe GPUs, which at least have a spec-sheet, and would retail for around $3,000 each. Here, the GPUs are being plugged into the same server as the aforementioned CPUs, so you need to factor in the cost of the supporting CPU, motherboard, memory, and storage here too.

The third system is a collection of 8 VCUs, and here’s where you can trip up. This comprises 4 PCIe cards, counting the two chips per card, even though some previous mentions refer to a VCU as if it were the card itself, rather than the chip. This configuration is meant to provide a comparison to the GPU system, as if you had removed the GPUs and replaced them with VCUs. The fourth system is a cluster of 20 VCUs, in ten PCIe cards.

Now, if you just read the table, you’ll see that the 8 VCUs are over 2x the throughput of the Nvidia setup, in H.264, and over 8.3x the Skylake CPUs. However, if you look at the Perf/TCO columns, you’ll see that the 8 VCU system only scores a 4.4x.

The Skylake system is the baseline, scoring 1.0x in both H.264 and VP9. Consequently, you can see how the higher performance in throughput comes at the expense of an additional cost, as if they were linear, we should be seeing the same 8.3x score in the Perf/TCO column as we do in the performance ratios.

We can see that the VCUs do scale linearly. With 8 of them scoring 5,973 in H.264 throughput, this is a score of 746.625 each – slightly more than the two Skylake CPUs score in total. If you then multiply this score by 20, you will arrive at exactly the same score as listed in the 20x row – 14,932, although Google seems to have dropped the 0.5 from the end. That’s almost a suspicious result – almost too perfect.

However, when you look more closely at the VP9 results, you can see why Google is so enthusiastic about going its own way. Google favors VP9 for YouTube delivery, and these VCUs seem to flourish in VP9 transcoding workloads. These columns are where the 20x and 33x claims come from, and put simply, show how much better Google’s design is at handling VP9 than H.264, compared to what it can buy off the shelf.

We can’t draw a strong conclusion on how well a VCU designed for H.264 would have performed. ASICs for H.264 aren’t exactly new, but it is also the case that there aren’t many vendors out there making VP9 ASICs that Google could buy off the shelf anyway. As Google prioritizes VP9, if it wants to see a generational leap in performance, it is essentially forced to do the R&D itself.

YouTube would be an immense money pit, were it not for VP9 and now the VCUs. While VP9 is more data-efficient, spitting out a video that is about 30% smaller than the equivalent H.264 according to YouTube, in turn it requires about 5x more compute power. With that in mind, the performance of the VCU in VP9 workloads is even more impressive.