15

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

Thanks.

0

4 Answers 4

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

2
  • Is there something similar available on newer Windows Server versions? I read on the wikipedia that somehow Hyper-V should be used, but that seems a bit heavy handed. Sep 25, 2023 at 16:42
  • the closest modern option I believe is windows containers
    – Jim B
    Jan 6 at 5:14
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


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

0

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

2
  • 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. Apr 16, 2010 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, 2010 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

You must log in to answer this question.