subprocess popen to start maya

157 views
Skip to first unread message

Sebastian Schoellhammer

unread,
Oct 4, 2017, 5:31:48 AM10/4/17
to python_in...@googlegroups.com
Hello list,

we do some heavy baking via arnold's render to texture in maya.

Maya had the habit to run out of mem or hang so I'm now batching those bakes by running a new instance of maya each time using subprocess.popen

I've noticed that it's just taking up just one core now though :/ . 
Is this a limitation of popen or something else I'm missing here?

Thanks a lot in advance!

seb


--
Sebastian Schoellhammer

www.mokumedia.de

Justin Israel

unread,
Oct 4, 2017, 5:39:19 AM10/4/17
to python_in...@googlegroups.com
On Wed, Oct 4, 2017 at 10:31 PM Sebastian Schoellhammer <sschoellha...@gmail.com> wrote:
Hello list,

we do some heavy baking via arnold's render to texture in maya.

Maya had the habit to run out of mem or hang so I'm now batching those bakes by running a new instance of maya each time using subprocess.popen

I've noticed that it's just taking up just one core now though :/ . 
Is this a limitation of popen or something else I'm missing here?

It likely won't be caused by Popen. That is just a standard fork and exec for a new process. It will likely be a factor of the command and its options for choosing how to thread.
 

Thanks a lot in advance!

seb


--
Sebastian Schoellhammer

www.mokumedia.de

--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAMLepcbqjh9YTP%2Bk-doVhmsOwbM_43tOMSbLk-EnCXO9ajLoGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Sebastian Schoellhammer

unread,
Oct 4, 2017, 6:46:24 AM10/4/17
to python_in...@googlegroups.com
Thanks!
Mmmh that's sort of worrying. I checked the maya batch options but I didn't see anything there related to threads.
Is this something that could be in the actual arnold command? I'll try check with them..
 

On Wed, Oct 4, 2017 at 11:39 AM, Justin Israel <justin...@gmail.com> wrote:


On Wed, Oct 4, 2017 at 10:31 PM Sebastian Schoellhammer <sschoellhammer.lists@gmail.com> wrote:
Hello list,

we do some heavy baking via arnold's render to texture in maya.

Maya had the habit to run out of mem or hang so I'm now batching those bakes by running a new instance of maya each time using subprocess.popen

I've noticed that it's just taking up just one core now though :/ . 
Is this a limitation of popen or something else I'm missing here?

It likely won't be caused by Popen. That is just a standard fork and exec for a new process. It will likely be a factor of the command and its options for choosing how to thread.
 

Thanks a lot in advance!

seb


--
Sebastian Schoellhammer

www.mokumedia.de

--
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 python_inside_maya+unsub...@googlegroups.com.

--
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 python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2_LwcWKG15RjZSg%2BTQun_YdWpcEw979AgWuoC3bKhBRA%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.



--
Sebastian Schoellhammer

www.mokumedia.de

Sebastian Schoellhammer

unread,
Oct 4, 2017, 7:00:52 AM10/4/17
to python_in...@googlegroups.com
Does anybody have by any chance a version of psutil that works with maya? 

On Wed, Oct 4, 2017 at 12:46 PM, Sebastian Schoellhammer <sschoellha...@gmail.com> wrote:
Thanks!
Mmmh that's sort of worrying. I checked the maya batch options but I didn't see anything there related to threads.
Is this something that could be in the actual arnold command? I'll try check with them..
 
On Wed, Oct 4, 2017 at 11:39 AM, Justin Israel <justin...@gmail.com> wrote:
On Wed, Oct 4, 2017 at 10:31 PM Sebastian Schoellhammer <sschoellha...@gmail.com> wrote:
Hello list,

we do some heavy baking via arnold's render to texture in maya.

Maya had the habit to run out of mem or hang so I'm now batching those bakes by running a new instance of maya each time using subprocess.popen

I've noticed that it's just taking up just one core now though :/ . 
Is this a limitation of popen or something else I'm missing here?

It likely won't be caused by Popen. That is just a standard fork and exec for a new process. It will likely be a factor of the command and its options for choosing how to thread.
 

Thanks a lot in advance!

seb


--
Sebastian Schoellhammer

www.mokumedia.de

--
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 python_inside_maya+unsubscribe@googlegroups.com.

--
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 python_inside_maya+unsubscribe@googlegroups.com.



--
Sebastian Schoellhammer

www.mokumedia.de



--
Sebastian Schoellhammer

www.mokumedia.de

Sebastian Schoellhammer

unread,
Oct 4, 2017, 9:00:11 AM10/4/17
to python_in...@googlegroups.com
It was by the way false alarm .. in my test the baking was going so fast and all I was seeing was (not multithreaded) pre-pro of the scene.. 

sorry for confusion!

On Wed, Oct 4, 2017 at 1:00 PM, Sebastian Schoellhammer <sschoellha...@gmail.com> wrote:
Does anybody have by any chance a version of psutil that works with maya? 



--
Sebastian Schoellhammer

www.mokumedia.de
Reply all
Reply to author
Forward
0 new messages