13

Are there true ulimit for windows? I'm finding ways/programs how to prevent one program eating 100% cpu.

Thanks.

  • 3
    +1 for asking how do something in Windows with a *nix analogy :-) – Kyle Brandt Apr 16 '10 at 15:05
7

windows system resource manager is the tool to set cpu limits per process, and adds process accounting interfaces. In older versions of windows this was what was on the second disk that no-one ever installed. In 2008 its a feature to be enabled. Its generally not as important on a windows system (from a resource control perspective) than a unix one as "nice" is built into the OS and process priority (with certain exceptions) can be changed on the fly in the gui, in addition under windows vist and above disk IO can also be prioritized (by default this is based off of the priority of the process). There is an API that lets you set disk IO priority explicitly but I am unaware of any utility to let you directly change just disk IO priority

3

You could use something like Windows System Resource Manager which has similar features to ulimit in that you can set CPU or memory limits on a process, user or session. This was available on Windows 2003 Enterprise and later.

More information is available on Technet(2008 R2 specific) or here is the Wiki article. WSRM Screenshot http://i39.tinypic.com/nwbtk7.jpg


A third-party option would be FasterWin which is strictly for setting CPU quotas on processes. FasterWin http://i43.tinypic.com/2hi2mgo.jpg

0

One solution would be to right click the process in Task Manager and change the priority.

  • 2
    if you machine is idle, then the run away process will still eat 100% cpu, so this is kludge. you can't really beat unix for process accounting, unless windows 3.1 has had those tools added. – The Unix Janitor Apr 16 '10 at 15:07
  • 1
    @user - limiting a process that is otherwise idle to something less than 100% usage is pretty much the definition of kludge unless you are considering power management. Of course, ulimit can be used for more useful things. – Doug Luxem Apr 16 '10 at 16:01
0

You should take a look at: http://threadmaster.tripod.com/

there also is a GUI for configure it: http://timwells.net/content/threadmaster-gui

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.