VMware vSphere storage performance tuning


Become An Insider

Sign up now and get free access to hundreds of Insider articles, guides, reviews, interviews, blogs, and other premium content from the best tech brands on the Internet: CIO, CSO, Computerworld, InfoWorld, IT World and Network World Learn more.

Improve storage performance and your understanding of vSphere's nuts and bolts by getting under the hood

If you're like most people, you may think that spending time tuning your storage infrastructure is a luxury you can't afford. In fact, it teaches you a great deal about what makes your storage tick. That knowledge can be invaluable when you plan for additions to your storage infrastructure -- or get in a fight with a vendor over whether an application or your storage is to blame for poor performance.

Storage tuning is also one of the deeper topics you'll find in IT today. There are a vast number of variables that can affect performance, many of which will be specific to the applications you run and the type of equipment you have fielded to run them. Tuning storage is by no means a one-size-fits-all process.

Yet some basic concepts can help anyone. Here, I'll dig into some of the concepts for tuning the storage performance of VMware vSphere virtualization hosts.

Where to start

Whichever version you run, I'd strongly recommend downloading and installing the VMA (vSphere Management Assistant). The VMA is a prebuilt, Linux-based virtual appliance already kitted out with all of the command-line tools you'll need to manage any flavor of vSphere/ESX installation -- embedded or not. Those tools include all of the configuration tools that will allow you to script just about any management you can possibly imagine and real-time monitoring tools (such as resxtop) you'll need to gain extra visibility into your environment. There's also a wealth of community-generated scripts you may find helpful.

For our purposes, these tools will allow you to make changes to the default storage behavior of vSphere in ways that you can't (yet) do through the GUI. No matter what storage back end you run, there will almost always be a tuning procedure where it's required, so it's a good place to start.

Do the reading

Before you jump in and start making changes, it's important to crack the books and do some reading. Yes, I know, nobody reads manuals anymore, but this is one time you need to make an exception. One good place to start is the Performance Best Practices doc that VMware publishes; with the guide for vSphere 4.1, the storage material starts on page 25.

Pretty much every type of storage will have very specific ways in which you can improve performance through vSphere, and almost all of them are different. Worse still, these differences can even exist between different firmware revisions on the exact same hardware.

A good example of this is the Max I/O Size variable set within vSphere. By default, this is designated as 32MB, meaning vSphere can issue a single 32MB I/O command to storage without splitting it into multiple requests. Most arrays deal with this well, and it has the effect of decreasing CPU loading on the host and increases overall throughput. However, this default setting can dramatically decrease performance on some arrays and should be changed in those situations. This is one reason why the reading I talked about earlier is so important -- an issue like this could be biting you right now and you might not know it.

However, it's good to be familiar with some broad concepts:

Multi-Path I/O

MPIO (Multi-Path I/O) can have an enormous impact on storage performance and reliability. If you minimally configure vSphere simply to connect to your storage and do nothing else, most configurations will not immediately make use of MPIO except perhaps as a means to fail over in the event that one of your HBAs or NICs dies or loses connectivity to your storage. Getting vSphere to take complete advantage of multiple HBAs or NICs requires extra configuration.

VMware vSphere 4.1's storage layer includes a few MPIO-related components that are important to understand. The overarching architecture is called the PSA (VMware Pluggable Storage Architecture). That architecture encompasses the default NMP (Native Multipathing Plug-in). Within the NMP, VMware has implemented several PSPs (Path Selection Policies) and SATPs (Storage Array Type Plug-in), which control how vSphere makes use of multiple fabric pathways to your storage, either FC or iSCSI.

If you don't have Enterprise or your vendor hasn't published a DSM, that doesn't mean you can't take advantage of MPIO. For example, the HP EVA I mentioned earlier is ALUA-compliant (Asymmetric Logical Unit Access), so it can inform vSphere's built-in ALUA-aware SATP of which paths are the most advantageous to use. Many other arrays work similarly.

vStorage APIs for Array Integration

VMware VAAI (vStorage APIs for Array Integration) is a set of APIs that implement a few new SCSI commands that allow vSphere to off-load some storage tasks such as virtual machine cloning and thin provisioning directly onto the storage array. If you routinely deploy virtual machines (in a VDI environment, for example) or perform a lot of LUN rebalancing, this feature will substantially improve performance. Essentially, VAAI is an example of intelligent integration, allowing the storage to perform tasks internally without needing the host's involvement.

VAAI isn't yet supported by all arrays. Some have yet to get around to releasing firmware updates to support it, while others are waiting for the SCSI extensions used in VAAI to become SCSI T10 ratified standards; most of the majors hope to get them out the door by Q4 of this year. Additionally, you'll need vSphere Enterprise edition or better to even be able to use it.

Storage I/O Control

To continue reading, please begin the free registration process or sign in to your Insider account by entering your email address:
From CIO: 8 Free Online Courses to Grow Your Tech Skills
View Comments
You Might Like
Join the discussion
Be the first to comment on this article. Our Commenting Policies