How to measure IOPS for VMware
http://blog.synology.com/blog/?p=2225
Executive Summary
This article, intended towards IT Professionals, is a follow up towards my previous article, How to measure IOPS for Windows will be covering how to measure IOPS consumption of Guest VMs from VMware which is commonly asked when using our Synology products. This information can be used to aid in diagnostics of the storage performance on the VMware Hypervisor, or can be used to determine storage performance capacity of the storage array or a new deployment of a storage array. Using this process does require familiarity with determining IOPS from Windows. This article contains a proof-of-concept method of gathering data from a VMware Hypervisor to determine the IOPS consumption of the Guest VMs hosted by the Hypervisor.
Problem: IT Professionals needs to determine the amount of IOPS on Guest VMs in VMware
Just as there were questions on how to identify IOPS consumption on Windows, there are plenty of requests made to me to help determine and analyze the IOPS consumption of guest VMs within VMware. This was originally covered in the IOPS – Performance Capacity Planning Explained article; however, there was no method of recording and analyzing the data. The procedure below provides the full details on how to record IOPS data from VMware, and then using techniques from the measuring IOPS from Windowsarticle, will illustrate how to analyze the data from guest VMs.
Procedure – Collecting data for IOPS measurement
- Have the Guest VMs operating
- Run this command in the esxcli
- For complete background information about this command, please refer to VMware KB 1006797
- esxtop –b –a –d 2 –n 43300|gzip -9c> outputFileName.csv.gz
- “–b” Run in Batch mode
- “–a” Record all parameters, this is useful for future reference
- “–d” Delay Time between samplings, shortest delay is two seconds
- “–n 43300″ Number of iterations
- “|gzip -9c>” gzip the output datafile
- “outputFileName.csv.gz” is the file name
- After the data collection is completed, move the file to “/vmfs/volumes/datastore1″
- Use the vSphere Client to download the file from the datastore to a Windows Desktop
- Use perfmon to iosolate the data to the specific Guest VM that requires analysis
- For further background information about using perfmon to isolate data, please refer to Microsoft TechNet Article
- Open perfmon from a Windows Computer
- Remove all the current counters
- Right click on the white field, and click Properties
- Click on the Source Tab
- Select the decompressed csv file
- Click Apply
- Observe the date range become active
- Adjust the date range if it is needed
- Click Ok
- Right Click, and click Add Counters
- Add the counters
- For Background Information about the VMware Counters, please refer to Interpreting esxtop Statistics article
- \Physical CPU\
- % Util Time\Total
- \Memory\Free MBytes
- Virtual Disk
- \Avg ms/Read
- \Avg ms/write
- Cmds/sec
- MB Read/Sec
- MB Write/Sec
- Reads/Sec
- Writes/Sec
- VMs Mount Points. iSCSI or NFS is displayed here. The data isolation can be set to a specific Guest VM, or a specific storage entity.
- Right Click on the white field, and click Save Data As
- Save the data as a CSV
- Open the isolated data file in Excel and begin sorting columns of data for easier analysis.
- The following values were calculated
- Write/Read IOP Cluster
- Average IOP Cluster
- Concurrent Throughput
- Generate the graphs as before with the Windows IOPS Collection procedure
Description of Counters
- \Physical CPU\% Util time\Total
- Total CPU Utilization
- \Memory\FreeMBytes
- Amount of Free Memory on the Hypervisor
- VirtualDisk
- \Avgms/Read
- Average latency time in milliseconds for each read IOP
- \Avgms/Write
- Average latency time in milliseconds for each write IOP
- Cmds/sec
- Number of IOPS
- MBRead/Sec
- Megabytes Read Per Second
- MBWrite/Sec
- Megabytes Written Per Second
- Reads/Sec
- Number of Read IOPS
- Writes/Sec
- Number of Write IOPS
- \Avgms/Read
Procedure – Processing the data
In my example, I used a VMware ESXi 4.1 Host to gather the data for about two hours for a proof-of-concept. I did test the commands against a new deployment of ESXi 5.1 – and it produced the same results, with respects of collecting data. The data that I collected isn’t accurate as it was Win7 install procedure, mostly peak behavior, and not production use data. The ESXi 4.1 machine I was using is part of my lab use – which is in semi-production use on a day-by-day basis, and is not part of a permanent VDI solution.
To download an example of this VMware IOPS data, please download the measuring VMware IOPS sample file.. The file is about 2MB in size when decompressed.
Procedure – Analyzing the data
- VMware Guest IOPS over time
- Comprised of Write/Read IOPS over time with percentile analysis based on the highest values out of read, write or concurrent of the individual Guest VM.
- This data, for the Guest VM (or storage entity) will provide the basis of analysis for determining the IOPS consumption of the array.
- VMware Guest IOP Block Size over time
- Comprised of Write/Read IOP Block Size over time, displayed in KB.
- This data will show the average IOP block size that is experienced by the storage array. This data can help gauge what kind of storage array performance is needed.
- VMware Guest Throughput over time
- Comprised of Write/Read Bytes/Sec over time, displayed in MB/Sec. This data will determine the basic infrastructure needed to support the storage array.
- Vmware Guest Latency over time
- Comprised of Write/Read Latency over time, displayed in milliseconds.
- This data can be used to identify any latency errors.
- VMware Host CPU Utilization over Time
- This graph is used in conjunction with all other graphs in scale, to determine the processor utilization with respect to other aspects of the storage array.
- VMware Host Memory Utilization over time
- This graph is used in conjunction with all other graphs in scale, to determine the memory utilization with respect to other aspects of the storage array.
- Summary Analysis
- Considering that this is a proof-of-concept test – the data being generated isn’t 100% accurate. However, if I had to make a decision of what kind of storage array that is needed to support a VM that is utilizing around 700 IOPS at the 95th percentile, I would strongly consider using a Synology XS+ Series RackStation for my storage.
Summary
With this procedure IT Professionals are able to collect the IOPS data being consumed from the Guest VM itself. This information is useful for determining the current storage performance utilization of the current array, or can be used to aid in the deployment of a new storage array, such as a Synology XS+ Series RackStation.
References
- Synology Blog – How to measure IOPS for Windows
- Synology Blog – IOPS: Performance Capacity Planning Explained
- VMware KB – 1006797 – Using performance collection tools to gather data for fault analysis
- Microsoft TechNet – Open Log Files in Performance Monitor
- VMware Community – Interpreting esxtop Statistics
- Measuring VMware IOPS Sample File Note: 1.6MB File
How to measure IOPS for VMware的更多相关文章
- [转] Vmware vs Virtualbox vs KVM vs XEN: virtual machines performance comparison
http://www.ilsistemista.net/index.php/virtualization/1-virtual-machines-performance-comparison.html? ...
- 【VMware虚拟化解决方案】 基于VMware虚拟化平台VDI整体性能分析与优化
一.说一说 本来打算将前期项目里面出现的问题的分析思路与解决方法写出来,第一.疏导一下自己的思路,第二.分析并找出自身在技术层面所存在欠缺.但由于每个人都有一根懒经所以迟迟未动.今天突然发现51CTO ...
- VMware vSphere 服务器虚拟化之十六 桌面虚拟化之VMware Horizon View
VMware vSphere服务器虚拟化之十六 桌面虚拟化之VMware Horizon View VMware Horizon View (原VMware View的升级版现在版本5.2)是 ...
- VMware vSphere学习整理
知识点整理 内存选择 一般来说,每个虚拟机需要的内存在1~4GB甚至更多,还要为VMware ESXi预留一部分内存 2个6核的2U服务器配置64GB内存,4个6核或8核心的4U服务器配置128GB或 ...
- VMware vSphere 5.x 与 vSphere 6.0各版本功能特性对比
各版本中的新特性及功能对比: VMware vSphere 5.0 VMware vSphere 5.1 VMware vSphere 5.5 VMware vSphere 6.0 ESXi 5. ...
- vmware目录2
http://www.globalknowledge.com/training/course.asp?pageid=9&courseid=17880&country=United+St ...
- VMware的存储野心(上):软件定义、分布式DAS支持
ChinaByte比特网 http://storage.chinabyte.com/291/12477791_2.shtml 11月29日(文/黄亮)- SDN(软件定义的网络,Software De ...
- 【VMware虚拟化解决方案】配置和部署VMware ESXi5.5
[VMware虚拟化解决方案]配置和部署VMware ESXi5.5 时间 2014-04-08 10:31:52 让"云"无处不在的博客原文 http://mabofeng. ...
- vMware存储:SAN配置基础
VMware存储不仅仅是将LUN映射给物理服务器这么简单.VMware vSphere允许系统管理员在一个物理机上创建多个虚拟机. 潜在的hypervisor和vSphere ESXi,能够使gues ...
随机推荐
- 2017-2018-2 20155309南皓芯《网络对抗技术》Exp2 后门原理与实践
实验要求 (1)使用netcat获取主机操作Shell,cron启动 (0.5分) (2)使用socat获取主机操作Shell, 任务计划启动 (0.5分) (3)使用MSF meterpreter( ...
- HTML5——Data Url生成
HTML5——Data Url生成 <!DOCTYPE html> <html> <head> <meta charset="utf-8" ...
- Ubuntu 里面 apt-get 三个有关更新的命令的区别
apt-get update 更新软件源中的所有软件列表. apt-get upgrade 更新软件. apt-get dist-upgrade 更新系统版本. 作者:耑新新,发布于 博客园 转载请 ...
- SQL行装列PIVOT和列转行UNPIVOT
数据 CREATE TABLE student( no int, ca ), name ), subject ), scorce int ); /* 数据 */ , ); , ); , ); , ); ...
- openstack学习-Horizon安装(八)
一.安装Horizon [root@linux-node2 ~]# yum install -y openstack-dashboard 二.Horizon配置 [root@linux-node2 ~ ...
- BZOJ1295 [SCOI2009]最长距离 最短路 SPFA
欢迎访问~原文出处——博客园-zhouzhendong 去博客园看该题解 题目传送门 - BZOJ1295 题意概括 有一块矩形土地,被分为 N*M 块 1*1 的小格子. 有的格子含有障碍物. 如果 ...
- BZOJ1260 [CQOI2007]涂色paint 动态规划
欢迎访问~原文出处——博客园-zhouzhendong 去博客园看该题解 题目传送门 - BZOJ1260 题意概括 假设你有一条长度为5的木版,初始时没有涂过任何颜色.你希望把它的5个单位长度分别涂 ...
- BZOJ1090 [SCOI2003]字符串折叠 区间动态规划 字符串
欢迎访问~原文出处——博客园-zhouzhendong 去博客园看该题解 题目传送门 - BZOJ1090 题意概括 折叠的定义如下: 1. 一个字符串可以看成它自身的折叠.记作S 2. X(S)是X ...
- Spring日记_01 之基于maven的Spring环境搭建
阿里云镜像:maven.aliyun.com 添加Spring坐标: Spring 是java组件容器,Java饭馆 使用者可以通过getBean(对象ID) 获得Date对象,而不需要自己去new ...
- 《Gradle权威指南》--Android Gradle插件
No1: Android Gradle插件分类 App插件id:com.android.application Library插件id:com.android.library Test插件id:com ...