Estimating Memory Requirements for Virtual Machine Desktops (2024)

RAM costs more for servers than it does for PCs. Because the cost of RAM is a high percentage of overall server hardware costs and total storage capacity needed, determining the correct memory allocation is crucial to planning your desktop deployment.

If the RAM allocation is too low, storage I/O can be negatively affected because too much Windows paging occurs. If the RAM allocation is too high, storage capacity can be negatively affected because the paging file in the guest operating system and the swap and suspend files for each virtual machine grow too large.

RAM Sizing Impact on Performance

When allocating RAM, avoid choosing an overly conservative setting. Take the following considerations into account:

  • Insufficient RAM allocations can cause excessive Windows paging, which can generate I/O that causes significant performance degradations and increases storage I/O load.
  • VMware ESXi supports sophisticated memory resource management algorithms such as transparent page sharing and memory ballooning, which can significantly reduce the physical RAM needed to support a given guest RAM allocation. For example, even though 2GB might be allocated to a virtual desktop, only a fraction of that number is consumed in physical RAM.
  • Because virtual desktop performance is sensitive to response times, on the ESXi host, set nonzero values for RAM reservation settings. Reserving some RAM guarantees that idle but in-use desktops are never completely swapped out to disk. It can also reduce storage space consumed by ESXi swap files. However, higher reservation settings affect your ability to overcommit memory on an ESXi host and might affect VMotion maintenance operations.

RAM Sizing Impact on Storage

The amount of RAM that you allocate to a virtual machine is directly related to the size of the certain files that the virtual machine uses. To access the files in the following list, use the Windows guest operating system to locate the Windows page and hibernate files, and use the ESXi host's file system to locate the ESXi swap and suspend files.

Windows page file
By default, this file is sized at 150 percent of guest RAM. This file, which is by default located at C:\pagefile.sys, causes thin-provisioned storage to grow because it is accessed frequently. On View Composer linked-clone virtual machines, the page file and temporary files can be redirected to a separate virtual disk that is deleted when the virtual machines are powered off. Disposable page-file redirection saves storage, slowing the growth of linked clones and also can improve performance. Although you can adjust the size from within Windows, doing so might have a negative effect on application performance.

For instant clones, any guest operating systems paging and temp files are automatically deleted during the logoff operation and so do not have time to grow very large. Each time a user logs out of an instant clone desktop, Horizon deletes the clone, and provisions and powers on another instant clone based on the latest OS image available for the pool.

Windows hibernate file for laptops
This file can equal 100 percent of guest RAM. You can safely delete this file because it is not needed in Horizon deployments.
ESXi swap file
This file, which has a .vswp extension, is created if you reserve less than 100 percent of a virtual machine's RAM. The size of the swap file is equal to the unreserved portion of guest RAM. For example, if 50 percent of guest RAM is reserved and guest RAM is 2GB, the ESXi swap file is 1GB. This file can be stored on the local data store on the ESXi host or cluster.
ESXi suspend file
This file, which has a .vmss extension, is created if you set the desktop pool logoff policy so that the virtual desktop is suspended when the end user logs off. The size of this file is equal to the size of guest RAM.

RAM Sizing for Specific Monitor Configurations When Using PCoIP or Blast Extreme

In addition to system memory, a virtual machine also requires a small amount of RAM on the ESXi host for video overhead. This VRAM size requirement depends in on the display resolution and number of monitors configured for end users. PCoIP or Blast Extreme Client Display Overhead lists the amount of overhead RAM required for various configurations. The amounts of memory listed in the columns are in addition to the amount of memory required for other PCoIP or Blast Extreme functionality.

Table 1. PCoIP or Blast Extreme Client Display Overhead
Display Resolution Standard Width, in Pixels Height, in Pixels 1-Monitor Overhead 2-Monitor Overhead 3-Monitor Overhead 4-Monitor Overhead
VGA 640 480 1.20MB 3.20MB 4.80MB 5.60MB
WXGA 1280 800 4.00MB 12.50MB 18.75MB 25.00MB
1080p 1920 1080 8.00MB 25.40MB 38.00MB 50.60MB
WQXGA 2560 1600 16.00MB 60.00MB 84.80MB 109.60MB
UHD (4K) 3840 2160 32.00MB 78.00MB 124.00MB 170.00MB

For calculating system requirements, the VRAM values are in addition to the base system RAM for the virtual machine. Overhead memory is automatically calculated and configured when you specify the maximum number of monitors and select the display resolution in Horizon Administrator.

If you use the 3D rendering feature and select Soft3D or vSGA, you can recalculate using the additional VRAM values in a Horizon Administrator control for configuring VRAM for 3D guests. Alternatively, and for other types of graphics acceleration besides Soft3D and vSGA, you can specify the exact amount of VRAM if you elect to manage VRAM by using vSphere Client.

By default, the multiple-monitor configuration matches the host topology. There is extra overhead precalcuated for more than 2 monitors to accommodate additional topology schemes. If you encounter a black screen when starting a remote desktop session, verify that the values for the number of monitors and the display resolution, which are set in Horizon Administrator, match the host system, or manually adjust the amount of memory by using selecting Manage using vSphere Client in Horizon Administrator and then set the total video memory value to maximum of 128MB.

RAM Sizing for Specific Workloads and Operating Systems

Because the amount of RAM required can vary widely, depending on the type of worker, many companies conduct a pilot phase to determine the correct setting for various pools of workers in their enterprise.

A good starting point is to allocate 1GB for 32-bit Windows7 or later desktops and 2GB for 64-bit Windows7 or later desktops. If you want to use one of the hardware accelerated graphics features for 3D workloads, VMware recommends 2 virtual CPUs and 4GB of RAM. During a pilot, monitor the performance and disk space used with various types of workers and make adjustments until you find the optimal setting for each pool of workers.

Estimating Memory Requirements for Virtual Machine Desktops (2024)

FAQs

Estimating Memory Requirements for Virtual Machine Desktops? ›

A good starting point is to allocate 2 GB for Windows 10 or later desktops. If you want to use one of the hardware accelerated graphics features for 3D workloads, VMware recommends two virtual CPUs and 4 GB of RAM.

Do I need 32gb RAM for virtual machines? ›

As a general rule, Windows requires a minimum of 1 GB of RAM to run effectively, but a minimum of 2 GB of RAM is recommended for most virtual machines. However, the actual amount of RAM required will depend on the specific workload being performed, the number of applications being run, and other factors.

Is 16GB RAM enough for virtual machine? ›

As a general rule it's probably best to give every instance of Windows 10/11 4GB of memory, that includes the host OS so you could run 3 VM's with 16GB of RAM. If your host OS is only going to be used to run VM's then you can use Windows server core and that will run happily with just 2GB.

How much RAM should I have to smoothly run a virtual machine? ›

As much as you give it. With virtual machines RAM is user configurable. For decent performance at least 8GB would be recommended if you have a computer with 16GB or more.

How much virtual memory should I set for 32GB? ›

Microsoft recommends that you set virtual memory to be no less than 1.5 times and no more than 3 times the amount of RAM on your computer.

Is 32GB RAM overkill? ›

On the whole, 32GB of RAM isn't overkill for gaming if you want to play in higher resolutions, or if you can afford to future-proof your gaming set-up.

How much virtual RAM should I allocate with 16GB? ›

If you are lucky enough that you have more than 16 GB of RAM in the system, we suggest that the page file minimum be set between 1 and 1.5 times the amount of RAM.

What should be the VM heap size for 16GB RAM? ›

FlexNet Code Insight recommends that you set the Max Heap size to approximately 80% of available memory. For a 16GB system, the value should be set to 12288m.

How much CPU and RAM for VM? ›

Virtualization Server: You should keep in mind that virtualization requires a lot of resources because you may need to reproduce a virtual hardware environment (RAM, CPU, etc.) It means that you could need at least 8 GB of memory and 4 CPU for an acceptable experience.

What should I set my virtual memory to if I have 8gb RAM? ›

On computers that have 8 GB of RAM, the suggested paging file size is 16 GB.

What should my virtual memory be if I have 8gb of RAM? ›

As a rule of thumb, the paging file should be a minimum of 1.5 times the size of your installed RAM, and a maximum of 3 times your RAM size. For example, if you have 8 GB RAM, your minumum would be 1024 x 8 x 1.5 = 12,288 MB, and your maximum would be 1024 x 8 x 3 = 24,576 MB.

What is a normal amount of virtual memory? ›

RAM is a limited resource, whereas for most practical purposes, virtual memory is unlimited. There can be many processes, and each process has its own 2 GB of private virtual address space.

Who needs more than 32GB of RAM? ›

32GB of RAM is considered high and is generally overkill for most users. For most everyday use and basic tasks such as web browsing, email, and basic office work, 8GB of RAM is more than enough. Even for gaming or video editing, 16GB is typically sufficient.

Is 64 gigs of RAM overkill? ›

Is 64/128 GB of RAM Overkill? For the majority of users, it is. If you plan on building a PC purely for gaming and some general, basic, everyday activity, 64 GB of RAM is just too much. The amount of RAM you need will ultimately depend on your workload.

What is the optimal virtual memory size for 16gb RAM Windows 10? ›

The initial size would be 1.5 x 4,096 = 6,144 MB and the maximum size would be 3 x 6,144 = 18,432 MB.

Is 32GB RAM overkill for a server? ›

As for 32GB of RAM, it can be considered overkill for gaming alone. However, if you are also running other resource-intensive programs alongside your games, such as streaming or video editing software, having that much RAM can help ensure that your computer can handle the workload without slowing down.

Do you need virtual memory if you have a lot of RAM? ›

Without virtual memory, your computer would stop loading more applications once the RAM was full. It would be up to you to close your browser tabs, shut down applications, and manage RAM usage on your own. You might not even be able to run some applications at all without upgrading your RAM.

Does 32GB RAM make a big difference? ›

If you want the absolute top speed performance, no stuttering issues, lag, or any other graphical or performance hiccups, 32GB might be your ideal of good RAM. Add to that the longevity that 32GB of RAM can provide your hardware, and you may end up saving money by not buying or upgrading new tech.

Is 64GB RAM enough for server? ›

64GB of RAM will allow better and faster access for users by ensuring that the operating system and applications run smoothly even under heavy loads.

Why is virtual memory not as effective as RAM? ›

Using virtual memory makes a computer run slower, as the processor has to wait while data is swapped between hard disk and RAM. As secondary storage devices have slower access times than RAM, the computer's processing performance can be severely impaired.

Why is it better to get RAM instead of virtual memory? ›

RAM is considerably faster than virtual memory. RAM, however, tends to be more expensive. When a computer requires storage, RAM is the first used. Virtual memory, which is slower, is used only when the RAM is filled.

Top Articles
Latest Posts
Article information

Author: Edmund Hettinger DC

Last Updated:

Views: 5794

Rating: 4.8 / 5 (78 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Edmund Hettinger DC

Birthday: 1994-08-17

Address: 2033 Gerhold Pine, Port Jocelyn, VA 12101-5654

Phone: +8524399971620

Job: Central Manufacturing Supervisor

Hobby: Jogging, Metalworking, Tai chi, Shopping, Puzzles, Rock climbing, Crocheting

Introduction: My name is Edmund Hettinger DC, I am a adventurous, colorful, gifted, determined, precious, open, colorful person who loves writing and wants to share my knowledge and understanding with you.