如何确定我的进程是否受CPU限制,I/O限制,内存限制或 [英] How do I figure out whether my process is CPU bound, I/O bound, Memory bound or

查看:371
本文介绍了如何确定我的进程是否受CPU限制,I/O限制,内存限制或的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试加快编译应用程序的时间,而我正在调查的一件事是检查可以添加到构建机器上的哪些资源(如果有的话)以加快处理速度.为此,我如何确定我应该投资更多的CPU,更多的RAM,更好的硬盘,还是该进程是否受到其他资源的束缚?我已经看到了这个(​​如何检查应用程序是CPU约束还是内存约束?),并且正在寻找更多提示和指针.

I'm trying to speed up the time taken to compile my application and one thing I'm investigating is to check what resources, if any, I can add to the build machine to speed things up. To this end, how do I figure out if I should invest in more CPU, more RAM, a better hard disk or whether the process is being bound by some other resource? I already saw this (How to check if app is cpu-bound or memory-bound?) and am looking for more tips and pointers.

到目前为止我已经尝试过的:

What I've tried so far:

  • 在构建计算机和本地计算机上计时该过程.我发现构建机器花费的时间是我机器的两倍.

  • Time the process on the build machine vs. on my local machine. I found that the build machine takes twice the time as my machine.

运行资源监视器",并在进程运行时查看CPU使用率,内存使用率和磁盘使用率-这样做时,我难以解释数字,主要是因为我不了解每列的含义的含义,转换成虚拟机与物理盒的方式以及对多CPU盒的含义.

Run "Resource Monitor" and look at the CPU usage, Memory usage and Disk usage while the process is running - while doing this, I have trouble interpreting the numbers, mainly because I don't understand what each column means and how that translates to a Virtual Machine vs. a physical box and what it means with multi-CPU boxes.

推荐答案

开始>运行> perfmon.exe

Start > Run > perfmon.exe

Performance Monitor可以绘制许多系统指标的图表,您可以用来推断瓶颈所在的位置,包括CPU负载,io操作,页面文件命中率等等.

Performance Monitor can graph many system metrics that you can use to deduce where the bottlenecks are including cpu load, io operations, pagefile hits and so on.

此外,Platform SDK现在包括一个名为XPerf的工具,该工具可以提供与开发人员更相关的信息.

Additionally, the Platform SDK now includes a tool called XPerf that can provide information more relevant to developers.

这篇关于如何确定我的进程是否受CPU限制,I/O限制,内存限制或的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆