从应用程序测量DISK IOPS [英] Measuring DISK IOPS from an application
问题描述
我目前使用JobObject提供的IO统计信息来了解使用此API的应用程序的磁盘IOPS。
QueryInformationJobObject< JobObjectBasicAndIoAccountingInformation>
但是,看看这些数字,API似乎又回来了非磁盘IO也包括stdio,stderr。是否存在仅提供磁盘统计信息的API?
谢谢,
Anirudh
您好AnirudhNair,
>>""是否存在仅提供磁盘统计信息的API?"
我建议您使用WMI来获取统计信息。
Win32_PerfRawData_PerfDisk_PhysicalDisk 类是原始的性能数据类,它提供来自性能计数器的原始数据,用于监控计算机上的硬盘或固定磁盘驱动器。
最好的问候,
李旺 <强> 强> <强> 强> <强> 强>
Hi,
I currently use the IO stats provided by the JobObject to understand the disk IOPS of my application using this API.
QueryInformationJobObject<JobObjectBasicAndIoAccountingInformation>
But, looking at the numbers, the API seems to return non-disk IOs as well including stdio, stderr. Is there an API that gives only disk statistics?
Thanks,
Anirudh
Hi AnirudhNair,
>>"Is there an API that gives only disk statistics?"
I suggest you use WMI to get the statistics. Win32_PerfRawData_PerfDisk_PhysicalDisk class is raw performance data class which provides raw data from performance counters that monitor hard or fixed disk drives on a computer.
Best Regards,
Li Wang
这篇关于从应用程序测量DISK IOPS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!