The vswp file will be created when a Virtual Machine (VM) powers on in case of a memory shortage. Reservations impact the size of the vswp file. Understand their operation in VMware vSphere 6.
- View Offline
- [Voiceover] In this video, I'll explain .vswp files…and how they're affected by memory reservations.…When you allocate memory to a virtual machine, you're not…guaranteeing that VM any physical resources.…Memory is thin provisioned.…This means that the virtual machine will only consume…the memory that it truly requires.…It also allows us to over subscribe.…And this means, that although a virtual machine may be…allocated two gigabytes of memory, it may actually only get…one gigabyte of physical memory.…
But remember that the guest operating system doesn't know…that it's a virtual machine, and it expects to see…two gigabytes of memory.…So, how do we handle the one gigabyte of memory that we…can not provide to this virtual machine?…If a host can not fulfill the memory requirements…of a virtual machine, it will begin to carry out…memory operations on disc.…Each VM has a dedicated file called the .vswp file,…and it's automatically created when a virtual machine…powers on.…But, we all know that disc is much slower than memory.…
VMware Certified Instructor Rick Crisci provides an overview of vSphere resource controls—shares, limits, and reservations—and their impact on performance and VSWP file size. Rick explains exactly what happens when virtual machines compete for resources, the role of swap files, and how resource controls help automate allocation.
In chapter 2, Rick shows how to manage performance with resource pools, including child pools. He explains the impact a reservation has on resource pools, and includes a demo on creating and configuring a resource pool. Chapter 3 is an overview of the vFlash architecture for leveraging SSD resources. Watch this chapter to learn how to configure vFlash reservations and to assign a reservation to a VM.
Note: This course maps to the Administer and Manage vSphere 6.x Resources domain of the vSphere Certified Professional 6—Data Center Virtualization (VCP6DCV) exam.
- Allocating memory and CPU
- Using ESXTOP
- Configuring reservations, limits, and shares
- Managing performance with resource pools
- Creating child and tiered resource pools
- Leveraging SSD resources with vFlash