fbpx

PVS (and MCS) are amazing – but very often misunderstood – technologies. I have been in the reluctant camp with MCS (Machine Creation Services) mostly because of the huge impacts I have seen PVS (Provisioning Services) have on organizations workflow and performance. For many years the issue I find in the field is that people tend to focus completely on Storage performance with these technologies.

I won’t spoil this for you. Storage is a minimal impact compared to the more modern ability to cache in RAM. RAM of the OS is always… ALWAYS faster than your storage can ever be. So while I do hold that Hyperconverged infrastructure does wonders for improving MCS (which has since the beginning suffered from poor read speeds and very poor deployment speeds) nothing improves performance like even a small amount of RAM caching.

But MCSIO (the caching in MCS) is unstable, you say… Only if you don’t give it enough to work with and don’t properly defragment your system. As I found in recent cases you’ll get better results spending on RAM than storage… but let’s not jump too far ahead.

This is a teaser article for Chapter 4 of the Citrix Hero Program.
The chapter given to the current subscribers is 19 pages, nearly 7000 words of content. What you see here is more of the “WHY” not all of the how. But I didn’t want to leave you completely out in the cold. So I’ve included some links and other content that I hope will be helpful to you.

So what is the Citrix Hero Program?

Each month we tackle a new leading practice and dive in deep to make sure you understand it.
We have a live Q&A and video lessons to supplement the full chapter.
Members in good standing will have access to key past articles. This means that if you subscribe next month, you’ll get access to this full article right away!

Enrollment will re-open in April – I encourage you to try it out then to lock in a special price!

Problem 1 – VDA Performance Lags

Problem Description

User experience suffers, especially later in the day. The problem seems to be worse for Machine Creation Services managed Server VDA hosted Desktops that are open all day long, however MCS Desktop VDAs seem to have similar symptoms. While not as high impact, a similarly configured Provisioning Services (PVS) target device exhibited similar symptoms. System pauses are experienced without subsequent CPU utilization spikes. While OS Optimization helps slightly the overall user experience seems to suffer regardless of how many programs are open. Workspace Environment Manager has helped memory and CPU issues but not solved the overall slowdowns issue.

Troubleshooting Notes

The Administrators note that the problems do seem to increase with additional sessions being active, but cannot explain when the same amount of sessions at an earlier point in the day are not experiencing the slowdowns so they suspect that the number of sessions may not be the primary factor.

Storage Engineers are concerned as IOPS do increase toward the end of the day, but are still way below what the system is rated to perform. A recent move to an all-flash array has not had a noticeable impact so they have encouraged looking more at the programs themselves or that it is a ‘Citrix problem’. Network Engineers report no issues or notable differences between beginning and end of the workday.

Solutions to Test

This problem tends to be caused because either the Cache In RAM with Failover to Disk feature has not been configured or has not been configured with adequate RAM. So… increase the RAM cache if you are experiencing these slowdowns and see if that helps.

Additional Considerations:

  • Defragment the master image prior to deployment
  • Assure Antivirus software does not have scheduled scans for non-persistent MCS or PVS-provided VDAs
  • Properly configure Citrix Optimizer (see Chapter 1 of the Become a Citrix Hero ebook – it’s free!)
  • Use Citrix Workspace Environment Manager to control CPU and Memory resource priorities and to free up RAM, especially on Server OS VDAs

Want to go deeper? Every month we take problems just like this and dive deep into the solutions in the Citrix Hero Program. Enrollment opens April 15th.

Problem 2 – PVS Target Device (VDAs) lock up randomly or are slow at times

Problem Description

When PVS Target devices are configured properly (enough Cache, optimizations, etc) users are noting apparent lock-ups which clear after a few seconds. Programs are sometimes slow to load, especially early in the mornings. The problems are often much worse after new vDisk versions are deployed.

Troubleshooting Notes

Monitoring the VDAs indicate no unusual CPU activity- in fact at the times users note issues, Administrators may note that there is little to no CPU activity. Event logs do not indicate any OS configuration issues that are related.

The Citrix team confirmed that caching, optimization and the above recommendations have been configured properly. By further troubleshooting they found that many VDAs are indicating high retries.

Network Engineers note there are no packet loss issues or utilization issues on the network (note- be careful here; I have seen would-be Citrix Heroes not accept this explanation and blame the Network, only to later be embarrassed by the real cause…)

Solutions to Test

One of the most common causes of Retries is actually the PVS server not being able to meet read requests rapidly enough. Most typically this is caused by inadequate RAM on the PVS Server. When vDisks are read Windows Server will automatically cache the data. This reduces reads from disk because the non-persistent VMs are always reading the same data. However, because the cache is FIFO (First In First Out) if the amount of reads exceed the cache, the PVS server must read from it’s vDisk Store. Even with very fast storage, seek times and transfer can cause delays.

Citrix has guidance on how to get started with proper RAM sizing for PVS (see below). A common misconception is that it would be better to have faster storage- in fact some customers use physical hardware or dedicated Flash-Based or RAM-Based storage only to find that the improvement is minimal. RAM is far cheaper a solution. We’ll discuss in far more detail in the main lesson.

Want to go deeper? Every month we take problems just like this and dive deep into the solutions in the Citrix Hero Program. Enrollment opens April 15th.

Resolving PVS and MCS Performance Issues

So- How do you resolve these issues?

Here’s a quick summary of what we cover in the rest of this lesson and some helpful links for you.

Problem 1 – VDA

Problem 2 – PVS Server

  • Recommended starting points for PVS (Server) RAM configuration: https://www.citrix.com/blogs/2013/07/03/pvs-internals-2-how-to-properly-size-your-memory/
  • Use Perfmon to identify vDisk reads are coming from disk instead of RAM – make sure your Cache Read Hits % stays above 80%
  • Antivirus scans can kill your performance… even/especially scans on the PVS server
  • Quick Tip: When you update a vDisk first boot a single VM, logon and launch all the programs normally launched; then start/restart other VMs
  • Versioning helps with the caching problem, believe it or not!

Want to go deeper? Every month we take problems just like this and dive deep into the solutions in the Citrix Hero Program. Enrollment opens April 15th.

Categories

By With a Little Help from Our Friends

ByteSized Book logo
Share This