设为首页 收藏本站
查看: 998|回复: 0

[经验分享] How to measure IOPS for VMware

[复制链接]

尚未签到

发表于 2015-4-6 09:04:25 | 显示全部楼层 |阅读模式
  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



  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

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-54223-1-1.html 上篇帖子: 一次终于成功的安装VMware Tools。。。 下篇帖子: VMWARE FUSION 6 KEY
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表