Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

Thanks.

share|improve this question
2  
+1 for asking how do something in Windows with a *nix analogy :-) –  Kyle Brandt Apr 16 '10 at 15:05
    
+1 for the same! –  The Unix Janitor Apr 16 '10 at 15:40
add comment

4 Answers

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

share|improve this answer
add comment

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


A third-party option would be FasterWin which is strictly for setting CPU quotas on processes. FasterWin

share|improve this answer
add comment

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

share|improve this answer
1  
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
add comment

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

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.