Product Documentation

Citrix Virtual Apps and Desktops Single Server Scalability

Overview

This article provides recommendations and guidance to estimate how many users or virtual machines (VMs) can be supported on a single physical host. This is commonly referred to as Citrix Virtual Apps and Desktops “single server scalability” (SSS). In the context of Citrix Virtual Apps (CVA) or session virtualization, it is also commonly called “user density”. The idea is to ascertain how many users or VMs can be executed on a single piece of hardware running a major hypervisor such as XenServer.

In this article, we will cover several of the variables or factors that influence Citrix Virtual Apps and Desktops (CVAD) SSS. We will then provide recommendations and simple guidelines to quickly estimate SSS for a given environment. We’ll conclude by providing a few sizing examples using real-world scenarios.

Warning! This article contains guidance to estimate SSS. It should be noted that the guidance is high-level and will not necessarily be specific to your unique situation or environment. The only way to truly understand CVAD SSS is to utilize a scalability or load testing tool such as Login VSI. Citrix recommends using this guidance and these simple rules to quickly estimate SSS. But Citrix recommends using Login VSI or the load testing tool of your choice to validate results, especially before purchasing hardware or making any financial decisions.

Scalability Factors

There are many factors, parameters or variables that impact SSS. This is by no means an exhaustive list but the following are several of the major factors that impact SSS. While there are many more factors that influence performance & scalability such as antivirus and monitoring agents, graphics encoding, recent security vulnerabilities such as Spectre and L1 Terminal Fault, the factors detailed below typically have the greatest impact on CVAD SSS. Now let’s take a look at how to quickly estimate CVAD SSS using a simple formula.

Workload

One of the primary factors that impacts performance & scalability is the workload itself. Some workloads might involve task workers performing simple data entry tasks on a CVA server. Other workloads might involve developers compiling code or engineers manipulating 3D models via Citrix Virtual Desktops (CVD). These are commonly referred to as “light” and “heavy” workloads, respectively. And as you’ll see later in this article, this type of workload variance can have a dramatic impact on SSS.

Hardware

The physical hardware that the workloads run on have a direct impact on SSS. It probably goes without saying but a newer server equipped with 28 cores and 1 TB of RAM will be able to support more users than an older piece of hardware with only 12 cores and 256 GB of RAM running a similar workload. And the CPU plays an especially important part when it comes to CVAD SSS as you’ll see later.

Activity Ratio

One of the often overlooked aspects of SSS is the activity ratio or how often users are working vs. idle. Many scalability testing tools take a conservative approach and might utilize a fairly high activity ratio like 80% (which effectively means users are active or working 80% of the time and idle 20% of the time). However, we often see in the real world that activity ratios are closer to 40-60%. And this additional idle time can dramatically impact SSS and how much hardware one needs to purchase to support a CVAD environment.

CPU Over-Subscription Ratio

Most CVAD workloads are CPU-bound, meaning that the ultimate point of resource exhaustion is directly related to the number of physical cores available in the system. And since users may not be active 100% of the time and we have tools such as Intel Hyper Threading available (not to mention hypervisor CPU schedulers are becoming increasingly efficient), we can often “over-commit” or over-subscribe resources such as CPU. And the ratio that one over-subscribes the CPU can also impact SSS (in a positive or negative manner if not done carefully). Citrix has found that a 2:1 CPU over-subscription ratio is often optimal when it comes to CVA SSS. For example, if a physical server is equipped with dual socket 20 core chips (i.e. “2 x 20”), there are 40 total physical cores available. And with Hyper Threading enabled, there would be 80 virtual or logical cores available. By applying a 2:1 ratio to the number of physical cores (40), we’d effectively recommend utilizing 80 cores when sizing or estimating SSS. More examples will be provided at the end of this article to illustrate this concept in further detail.

Microprocessor Architecture and Features

The underlying chip and memory architecture can also play an important role in SSS. And Intel has recently made significant improvements when it comes to the underlying microprocessor architecture design. On older chips, such as Broadwell and Haswell, Intel connected processors using a ring-based architecture. But as the number of cores increased, access latency increased and bandwidth per core diminished so Intel would mitigate this by essentially splitting the chip into two halves and adding a second ring to reduce distances. And this invisible split was something that needed to be factored into CVAD SSS to provide optimal results. This has been referred to in the past as “NUMA” or Non-Uniform Memory Access. And the leading guidance was to ensure that you are sizing CVA VMs as large as possible but not crossing NUMA nodes, sub-NUMA clusters or rings at the same time. If you sized your CVA VMs too large and they effectively spanned NUMA nodes or rings, it could lead to NUMA “thrashing” by accessing non-local resources and this would yield reduced SSS. Fast-forward to today and Intel has moved from a ring-based architecture to a mesh-based architecture. And this new mesh architecture introduced in Skylake does not have the same limitations as before where we have to split chips, divide cores or add rings. And this changes the way we size CVA servers in particular. So it’s very important to understand the specific chip that is being used in the hardware you purchase and how the underlying microprocessor architecture is designed and constructed

The Magic Multipliers

If you’d like to quickly gauge or estimate CVAD SSS, this guidance is pretty effective. It’s as easy as this – take the number of physical cores in a server, multiply it by 5 or 10, and the result will be your SSS. If you’re looking for the number of CVD VMs you can support, then you would use the “magic multiplier” of 5. If you’re trying to understand how many CVA users can run on a single piece of hardware, you’d use 10. Let’s take a look at a few real-world examples to see how this is applied in practice.

Example 1: Citrix Virtual Desktops

Let’s assume you’re running Windows 10 with standard Office applications and a few custom applications. You’ve identified that a 2 vCPU / 4 GB RAM VM specification would work best given the workload/image. You’re considering purchasing Cisco blades with 36 physical cores (2x18) and 768 GB of RAM. And you’d like to understand what kind of density you can expect. Let’s utilize the Rule of 5 for CVD:

5 x 36 = 180 VMs per host

Example 2: Citrix Virtual Apps (older hardware)

Let’s assume you’re running an application such as SAP on Windows Server 2012 R2 via CVA. You’re re-purposing some older HP blades with 24 physical cores (2x12) and 256 GB of RAM. You’ve researched on Intel’s website that the underlying chip employs a ring buffer architecture and each socket is effectively split into 2 NUMA nodes with 6 cores each. Therefore, a 6 vCPU / 24 GB RAM VM specification seems optimal to maximize linear scalability and minimize NUMA thrashing. Using a 2:1 CPU over-subscription ratio, you’ll utilize all 48 logical cores and deploy 8 XenApp servers on each host (48 / 6 = 8). Utilizing the Rule of 10 for CVA:

10 x 24 = 240 users per host

Example 3: Citrix Virtual Apps (newer hardware)

Let’s assume you’re running a popular healthcare application on Windows Server 2016 via CVA. You’re considering purchasing Dell blades with 32 physical cores (2x16) and 256 GB of RAM. You’ve researched on Intel’s website that the underlying chip employs a mesh architecture and there is a business directive to decrease your VM footprint as much as possible. You decide on a 16 vCPU / 48 GB RAM VM specification. Using a 2:1 CPU over-subscription ratio, you’ll utilize all 64 logical cores and deploy 4 XenApp servers on each host (64 / 16 = 4). Utilizing the Rule of 10 for CVA:

10 x 32 = 320 users per host

As mentioned previously, we realize there are many more variables or parameters that influence scalability versus just the number of physical cores in a server. And there may be certain situations where the CVAD workload is actually not CPU-bound so extra care is required when sizing. In addition, other factors we haven’t discussed such as CPU clock speed and logon storms also matter and further complicate sizing exercises. But we have found through years of field experience and hundreds of deployments that nothing matters as much as the number of physical cores. If you’d like to understand your exact SSS for your particular workload and unique environment, Citrix strongly recommends utilizing a tool such as Login VSI to properly test and/or validate results.

References

Intel Xeon Processor Scalable Family Technical Overview

Antivirus Best Practices

Login VSI Load Testing

Contributors

Author: Nick Rintalan

Citrix Virtual Apps and Desktops Single Server Scalability