如何在Windows XP中的可执行文件上设置处理器相似性? [英] How to set processor affinity on an executable in Windows XP?
问题描述
我有一个带有第三方应用程序的四核系统,该系统有时会旋转多个进程(总是相同的可执行文件,但有多个实例),并占用100%的CPU时间。我也在同一个机器上运行了几个Web服务(IIS和第三方)。
I have a quad core system with third party application that once in a while spins several processes (always the same executable but several instances of it) and takes 100% of CPU time. I also have a couple of web services running on the same box (IIS and third party).
所有内核都忙的问题是它使这个第三方Web服务器超时(尽管IIS工作正常,但比平时慢)。我无法控制第三方网络服务器,它是更大产品的一部分,必须能够运行。因此,我尝试通过SysInternals Process Explorer来处理处理器问题,并将那些讨厌的进程限制为4个内核中的3个,并将第4个内核专用于第三方Web服务器,这似乎工作得很好。
The problem with the all cores being busy is that it makes this third party web server to timeout (IIS works fine though, just slower than usual). I have no control over third party web server, it's a part of the bigger product and has to be operational. So, I tried to play with processor affinity (via SysInternals Process Explorer) and limit those pesky processes to 3 cores out of 4 and dedicate the 4th core to the third party web server, and it seems to work quite well.
问题在于,它仅在运行的进程上设置亲和力,而不在可执行程序级别上设置亲和力,因此,在这些进程完成并随后重新生成为新进程之后,它们又恢复了原来的状态-他们将所有4核。因此,我已经从Microsoft搜寻有关ImageCfg.exe实用程序的信息,但是我在Microsoft网站上找不到该实用程序进行下载,我发现有人尝试过使用它,但现在抱怨它实际上并没有用。
The problem is that it only sets affinity on the running process and not on executable level, so after those processes finish and later respawn as a new processes it's all the same again - they take all 4 cores. So, I've googled about this ImageCfg.exe utility from Microsoft but I can't find it on Microsoft webside for download and I see that some people tried it and now complain that it doesn't really work.
有没有办法将亲和力保持在可执行文件上?
Is there a way to stick the affinity to the executable?
推荐答案
进程套索用于设置进程启动时的进程亲和力。
One feature of Process Lasso is to set the affinity of a process whenever that process is launched.
这篇关于如何在Windows XP中的可执行文件上设置处理器相似性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!