• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

Way to limit programs CPU Usage

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

jabaro

Member
Joined
Jul 24, 2004
Location
Seattle, WA
Is there anywayI can specify how much CPU usage a certain program can use? I've been backing up my DVD collection recently, and the only problem I have is DVDshrink takes 90%-100% CPU usage and makes it intollerable to try and do anything else while its working. I'd like to give it 75% of the CPU and allow the other 25% just so I can do other small tasks while its working. I don't mind if this means every DVD takes a little longer. Anyone know how to do this or if its even possible?

Edit:

I'm Using XP home if that helps.
 
Last edited:
The only way of accomplishing this that I know of is to change the Process Priority for the given app in question. You can do this via Task Manager | "Processes" tab | Right click the running process you'd like to change the priority level of, and select "Set Priority". AFA setting the priority level permanently, you can create a batch file using the appropriate parameters (linking this to your icon or menu item for the program in question), or you can do the same by starting your app from a script...or let the app be an argument/parameter to the script.

Create Method in Class Win32_Process

http://msdn.microsoft.com/library/en-us/wmisdk/wmi/create_method_in_class_win32_process.asp

Alternatively, you can change the priority on a existing process with Win32_Process.SetPriority...

SetPriority Method in Class Win32_Process

http://msdn.microsoft.com/library/en-us/wmisdk/wmi/setpriority_method_in_class_win32_process.asp

You need to understand though that NT/2000/XP runs the foreground process at 'Above Normal' to begin with, and that the OS will dynamically increase the priority based on what's happening with the program at any given time. Manually changing the priority of a process typically won't change it's overall performance unless you're running a lot of processes simultaneously and the CPU load is not near zero at idle.

Here's a link to an article that MS published originally for NT, but they haven't made any drastic changes in how the process priority system works in 2000 or XP...

Priority Inversion and Windows NT Scheduler

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q96418
 
Last edited:
Yeah I used to do this a little bit while watching high quality videos. You have to be careful tho, sometimes if you set it real high like Realtime, it can almost cause Windows to slow to a crawl...at least that was my experience.
 
Back