On Thu, May 4, 2017, 5:00 PM [email protected] <[email protected]> wrote:

> Hi All
>         Am trying to do some alembic caching in maya in a mayapy session
> on farm and currently it used all the availbale threads, I was wondering if
> there is a solution
> to actually specifically say maya run within certain number of threads.
>


What farm solution do you use? What operating system?
Maya aside, can you make use of cpu affinity? Any good render farm solution
should have the ability to bind the task to the allocated cores.

https://pythonhosted.org/psutil/#psutil.Process.cpu_affinity

This is the basic level support we apply in our render farm. But on linux
we make use of cgroups for maximum control. This way it doesn't matter what
the settings are in the software. It can't steal more cpu than it was
allocated.

I don't know much about Alembic support, but I see Maya gives control over
than thread count setting. I don't know if that controls an actual thread
pool or a constant value as an advisory amount. Or even if 3rd party code
has to abide by it. Plugins could still use threads regardless.



> I tried to use cmds.threadCount, don't seem to be working for me, it still
> uses all threads.
>
> thanks
>
> Arjun
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/933e67f7-69f6-42ff-89f6-43f930142aba%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/933e67f7-69f6-42ff-89f6-43f930142aba%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1NTPv%3DDiq_YhfQUBUqhH-15npK0CabZ-z9Q0WNiyNnew%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to