大网数据广告活动
磁盘与文件系统

Performance history for virtual hard disks

· 52CE 我爱测

Learn more about: Performance history for virtual hard disks

This sub-topic of Performance history for Storage Spaces Direct describes in detail the performance history collected for virtual hard disk (VHD) files. Performance history is available for every VHD attached to a running, clustered virtual machine. Performance history is available for both VHD and VHDX formats, however it is not available for Shared VHDX files.

[!NOTE] It may take several minutes for collection to begin for newly created or moved VHD files.

Series names and units

These series are collected for every eligible virtual hard disk:

Series Unit
vhd.iops.read per second
vhd.iops.write per second
vhd.iops.total per second
vhd.throughput.read bytes per second
vhd.throughput.write bytes per second
vhd.throughput.total bytes per second
vhd.latency.average seconds
vhd.size.current bytes
vhd.size.maximum bytes

How to interpret

Series How to interpret
vhd.iops.read Number of read operations per second completed by the virtual hard disk.
vhd.iops.write Number of write operations per second completed by the virtual hard disk.
vhd.iops.total Total number of read or write operations per second completed by the virtual hard disk.
vhd.throughput.read Quantity of data read from the virtual hard disk per second.
vhd.throughput.write Quantity of data written to the virtual hard disk per second.
vhd.throughput.total Total quantity of data read from or written to the virtual hard disk per second.
vhd.latency.average Average latency of all operations to or from the virtual hard disk.
vhd.size.current The current file size of the virtual hard disk, if dynamically expanding. If fixed, the series is not collected.
vhd.size.maximum The maximum size of the virtual hard disk, if dynamically expanding. If fixed, the is the size.

Where they come from

The iops.*, throughput.*, and latency.* series are collected from the Hyper-V Virtual Storage Device performance counter set on the server where the virtual machine is running, one instance per VHD or VHDX.

Series Source counter
vhd.iops.read Read Operations/Sec
vhd.iops.write Write Operations/Sec
vhd.iops.total sum of the above
vhd.throughput.read Read Bytes/sec
vhd.throughput.write Write Bytes/sec
vhd.throughput.total sum of the above
vhd.latency.average Latency

[!NOTE] Counters are measured over the entire interval, not sampled. For example, if the VHD is inactive for 9 seconds but completes 30 IOs in the 10th second, its vhd.iops.total will be recorded as 3 IOs per second on average during this 10-second interval. This ensures its performance history captures all activity and is robust to noise.

Usage in PowerShell

Use the Get-VHD cmdlet:

Get-VHD <Path> | Get-ClusterPerf

To get the path of every VHD from the virtual machine:

(Get-VM <Name>).HardDrives | Select Path

[!NOTE] The Get-VHD cmdlet requires a file path to be provided. It does not support enumeration.

Additional References

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
[ "✅ Windows Server 2025", "✅ Windows Server 2022", "✅ Windows Server 2019", "✅ Windows Server 2016", "✅ Azure Local 2311.2 and later" ] · Source date…
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。