Solved

ESX Swap file/VM Page file location question

Posted on 2012-03-15
7
1,784 Views
Last Modified: 2012-03-17
ESXi 5 Cluster
NetApp FAS3240 Cluster (Active/Active)
NFS Datastores

I'm going through the best practices documentation from NetApp concerning vSphere and Storage (TR-3749).

NetApp recommends storing the VM Swapfile on a centralized datastore for disk cost savings (snapshots and replication). This setting would be set at the host level. When going into the settings at the cluster level, VMware "recommends" saving this within the same directory as the VM.

Anyone have experience with this? As in pros and cons? I can see where this could degrade the performance of vMotion, but other than this I was looking for some input from people who have run this in production.

Also, what are your thoughts on also moving the VM's pagefile (OS) to a separate VMDK that is located on a centralized datastore as well? Same thought process here.. disk savings is nice, but don't want to introduce stability issues (if any).
0
Comment
Question by:MMRNLA
  • 4
  • 3
7 Comments
 
LVL 119

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 37725101
If VMs start to swap, you want to put the ESX Swap and VM Page files on the fastest datastore as you can.

Swap-In functions is what causes the most performance issues.

You may want to look at consumer SSDs - 32GB just for Host Cache Configuration now supported in ESXi 5.0 for this very purpose, SSD have far better latency, between disks and RAM for Swap file usage.

Also ensure, that Pagefiles are correctly set in the VM, and for performance again, allocate on fast datastores.

Place guest’s swap file/partition on separate vdisk
• Allows you to monitor guest swap activity through virtualDisk stats

see here

http://www.virtuallyghetto.com/2011/07/how-to-automate-host-cache.html
0
 
LVL 1

Author Comment

by:MMRNLA
ID: 37725199
We have zero contention with our cluster in regards to memory resources. I was more interested in disk cost savings in regards to replication. We have limited bandwidth to our DR site and I want to decrease our snapshot data footprint as much as possible.


But you bring up an interesting point about using SSDs. In general can we gain performance by using them for host cache?
0
 
LVL 119
ID: 37725240
Yes, Increased Performance, for very little space used.

Overcoming slower latency in using traditional disk, where SSD have much better performance in this area.

SSD is just for Host Cache. So 32GB will be ample for most sites.
0
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
LVL 1

Author Comment

by:MMRNLA
ID: 37731772
one more question, would there be an issue with creating one datastore for both the swapfile and pagefile on all my VMs?
0
 
LVL 119
ID: 37732175
Certainly not, but make sure you do not have performance issues with it, otherwise ALL VMs will be affected.
0
 
LVL 1

Author Comment

by:MMRNLA
ID: 37732641
certainly not? As in yes? or no?

=)
0
 
LVL 119
ID: 37733172
No issues, but monitor performance of the disk and datastore.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If we need to check who deleted a Virtual Machine from our vCenter. Looking this task in logs can be painful and spend lot of time, so the best way to check this is in the vCenter DB. Just connect to vCenter DB(default DB should be VCDB and using…
In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now