Permanently Set Process Priority in Windows?
Dave asks: "I have a render farm set up for 3D Studio Max. I have a Render user that runs 3dsmax.exe when it is sent jobs by the render farm server. I have tried to set the process to low when it runs, and it works. However, when the computer is finished rendering the images, and is sent a new set to render, the priority goes back to normal (program closes in between renderings). This obviously defeats the purpose of rendering an image in the background while others are still working, as you can imagine having 3dsmax.exe pegged at 100% CPU, slows down the machine tremendously. Is there anything that can be done to set the render user's instance of 3dsmax.exe permanently to low? Or is it possible to just set 3dsmax.exe to the low priority. I know there is a command line that sets any .exe to low, but that also starts the program. I would like 3dsmax.exe to be set to low either: when render launches the program, or set 3dsmax.exe to low whenever it is launched. Can anything be done?"
If you check out 'help start' you can see that setting the priority of a process is pretty simple at the time of invocation.
/low 3dsmax.exe' or 'start /low [program.exe]' should work for you.
'start
"We are not always what we seem, and hardly ever what we dream."
Schmendrick the Magician
Your solution is here
Mabye replace "3sdmax.exe" with a shellscript that runs the real "3dsmax.exe" with the correct priority. You might have to work out how the renderer gets its data, so your shellscript can make sure it isn't dropped somewhere along the way.
Swedish plasma phys. PhD student; MSc EE; knows maths, programming, electronics; finance interest; seeks opportunities
I'd love to know if there's a way to limit ALL processes to a certain percentage of total CPU... say 75%. There's no reason programs should routinely be able to run up every bit of processing power.
For this particular problem, the easiest solution would be to use a startup MAXscript on your render nodes which sets the priority.
Or you could use a rendering manager which lets you control the priority of the render nodes, like Deadline from Frantic Films.
"From my cold, dead hands you damn, dirty apes!" - CH