Situation: virtual GPUs are not inferior in performance to hardware solutions.

In February, a conference dedicated to high-performance computing (HPC) took place at Stanford. Representatives from VMware reported that when using GPUs, the system based on a modified ESXi hypervisor performs comparably to bare metal solutions.

We discuss the technologies that made this possible.

Situation: virtual GPUs are not inferior in performance to hardware solutions.
/ фото Victorgrigas CC BY-SA

Performance Issues

Analysts estimate that approximately 70% of workloads in data centers are virtualized. However, the remaining 30% still operate on bare metal without hypervisors. These 30% mostly consist of high-demand applications, such as those related to training neural networks, and utilize graphics processors.

Experts explain this trend by stating that a hypervisor, as an intermediate layer of abstraction, can impact the overall performance of the system. Research from five years ago indicates a 10% drop in performance. Therefore, companies and data center operators are hesitant to migrate HPC workloads to a virtual environment.

However, virtualization technologies are evolving and improving. At a conference a month ago, VMware announced that the ESXi hypervisor does not negatively affect GPU performance. The computation speed may decrease by three percent, which is comparable to bare metal metrics.

How it works

To enhance the performance of HPC systems with graphics processors, VMware implemented several changes to the hypervisor. In particular, it was stripped of the vMotion feature. This feature is necessary for load balancing and typically moves virtual machines (VMs) between servers or GPUs. Disabling vMotion means that each VM is now tied to a specific graphics processor. This has helped reduce overhead in data exchange.

Another key component of the system is the technology DirectPath I/O. It allows the CUDA driver for parallel computing to interact with virtual machines directly, bypassing the hypervisor. When multiple VMs need to run on a single GPU, the GRID vGPU solution is utilized. It segments the memory of the card into several sections (but the computation cycles are not divided).

The operation scheme of two virtual machines in this case will look as follows:

Situation: virtual GPUs are not inferior in performance to hardware solutions.

Results and Predictions

Company conducted tests hypervisor, training a language model based on TensorFlow. The performance "penalty" was only 3-4% compared to bare metal. In return, the system gained the ability to allocate resources on demand based on current loads.

The IT giant also conducted tests with containers. Company engineers trained neural networks to recognize images. Resources from one GPU were shared among four container VMs. As a result, the performance of individual machines decreased by 17% (compared to a single VM with full access to GPU resources). However, the number of images processed per second tripled. Such systems are expected to find application in data analysis and computer modeling.

Among the potential problems VMware may face, experts highlight have a rather narrow target audience. Currently, a small number of companies work with high-performance systems. Although according to Statista, noteby 2021, 94% of workloads in the world’s data centers will already be virtualized. According to forecasts by analysts, the HPC market is expected to grow from $32 billion to $45 billion from 2017 to 2022.

Situation: virtual GPUs are not inferior in performance to hardware solutions.
/ фото Global Access Point PD

Similar solutions

There are several analogs on the market, developed by major IT companies: AMD and Intel.

The first company for GPU virtualization offers uses an SR-IOV (single-root input/output virtualization) approach. This technology provides VMs with access to part of the system's hardware capabilities. The solution allows sharing a GPU between 16 users while maintaining equal performance for the virtualized systems.

As for the second IT giant, their technology is based on the Citrix XenServer 7 hypervisor. It combines the operation of the standard GPU driver and the virtual machine, allowing the latter to display 3D applications and desktops on devices for hundreds of users.

The future of the technology

Virtual GPU developers are betting on the implementation of AI systems and the growing popularity of high-performance solutions in the business technology market. They hope that the need for processing large volumes of data will increase the demand for vGPU.

Currently, manufacturers are looking for a way combine CPU and GPU functionality in a single core to accelerate graphics-related tasks, perform mathematical computations, logical operations, and data processing. The emergence of such cores in the market will change the approach to resource virtualization and their allocation among workloads in virtual and cloud environments.

What to read on the topic in our corporate blog:

A couple of posts from our Telegram channel:

Source: habr.com

Buy reliable website hosting with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster