Q100117: Launching Nuke with limited number of threads (-m flag)

Follow

SUMMARY

This article provides information on how you can limit the number of threads being used by Nuke.

MORE INFORMATION

By default Nuke uses all the threads of the CPU in order to run as fast as possible. However, in some circumstances, utilizing the maximum number of available threads can make Nuke unstable and cause crashes or slowness.
 
To isolate your issue as being related to multi-threading please try launching Nuke with a limited number of threads and see if the problem is resolved by doing this.
 
Launching Nuke with less Threads
To run Nuke with fewer threads you must use the -m n flag when launching Nuke.
n is replaced by the number of threads you want to run Nuke with, so for example, if you wanted to run with three threads you would use -m 3. 
 
Using a number greater than the amount of threads you have in your computer will not increase Nuke's performance.
 
Windows:
Open a Command Prompt window and run the following command:

"C:\Program Files\Nuke10.0v2\Nuke10.0.exe" -m 3

Mac OSX:
Open a Terminal window from Applications > Utilises and run the following command:

/Applications/Nuke10.0v2/Nuke10.0v2.app/Contents/MacOS/Nuke10.0v2 -m 3

Linux:
Open a terminal and run the command:

/usr/local/Nuke10.0v2/Nuke10.0 -m 3

Note: These instructions are based on having Nuke installed in the default location. If this is not the case then the commands will need to be modified accordingly to run from your custom installation location.

Additional Information

If using less threads helps with your Nuke issue then try increasing the number of threads you are allowing Nuke to use, until you notice the optimal performance. 



Keywords: -m, flag, thread, threads, multi-threading, issue, troubleshoot, CPU, limit, crash, slowness

Was this article helpful?
0 out of 1 found this helpful