Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting maximum CPU usage per process in Windows [closed]

Tags:

Is there a way to set the maximum CPU usage for a process in Windows 7?

like image 281
sTodorov Avatar asked Dec 01 '10 16:12

sTodorov


People also ask

Can you limit a programs CPU usage?

You can also adjust the processor affinity to limit the CPU usage by doing the following: Start Task Manager and go to the Details tab. Locate the desired application, right-click and choose Set affinity. Uncheck processors threads that you don't want to use with that software and click on OK.


2 Answers

BES: https://mion.yosei.fi/BES/

It's maintained and GPL'ed too.

like image 122
3 revs, 2 users 83% Avatar answered Sep 17 '22 09:09

3 revs, 2 users 83%


You could check out "CPU rate limits in Windows Server 2008 R2 and Windows 7" - http://technet.microsoft.com/en-us/library/ff384148%28WS.10%29.aspx

But be aware of the warning in http://blogs.iis.net/thomad/archive/2010/02/15/put-the-brakes-on-your-application-pools-cpu-rate-limits-in-windows-7.aspx. It says: Now here comes the drawback. The CPU Rate Limit feature has a bug. The kernel is holding on to a handle to the quota object and never lets go of it. This means once you set the CPU rate limit to a particular percentage you can't change this percentage without rebooting the machine. We are working on fixing it - not sure when we'll have a fix though. I have no idea if this bug is fixed.

like image 26
Michael Levy Avatar answered Sep 20 '22 09:09

Michael Levy