AWS Thinkbox Discussion Forums

Job CPU Affinity

Hi,

we are having problems with QuickTime creation through Nuke. We know it is a QuickTime Bug. Is there a way of setting the CPU Affinity per job in Deadline 6.2? We would like to tell the Deadline Slave to render this particular job with a CPU affinity of one. I read in another thread about the recommend way of running multiple slaves on a machine with different CPU affinities but that is unfortunately not what we would like to do.

Thanks,

Sebastian

There isn’t a way to set it at the job level, but you can set it at the plugin level. So if your job properties have something that identifies it as being a Quicktime job, you could modify the Nuke plugin to check for this, and then set the ProcessAffinity property to limit the affinity to 1.

For example, you could do something like this in the PreRenderTasks function in Nuke.py:

job = self.deadlinePlugin.GetJob()
if job.JobName.lower().find("quicktime) != -1:
    self.ProcessAffinity = (0,)

In this example, if the job name contains the word “quicktime”, then the affinity is set to CPU 0. Note that ProcessAffinity takes a list of integers, with each number being the CPU ID.

Cheers,
Ryan

Hi,

great idea. I implemented it real quick and it seems to work.

Thank you,

Sebastian

Privacy | Site terms | Cookie preferences