Hello I am working on a work bench that has a 6 core cpu and 64 gb of ram. I was wondering if there is any way that I could set up my mantra render so that it only uses 1 core per frame and renders multiple frames at a time.
Multithreading the render doesnt end up using nearly all of the ram which I would like to take advantage of.
One frame per CPU core?
6028 7 2-
- jbartolozzi
- Member
- 60 posts
- Joined: 7月 2013
- オフライン
-
- merlino3d
- Member
- 65 posts
- Joined: 2月 2013
- オフライン
-
- tamte
- Member
- 9386 posts
- Joined: 7月 2007
- オフライン
-
- malexander
- スタッフ
- 5287 posts
- Joined: 7月 2005
- オフライン
Running multiple mantras vs. a single threaded mantra will also render your CPU's L3 cache nearly useless, as you have a bunch of mantras with different memory spaces contending for the L3. A single threaded mantra will have far more cache hits, decreasing memory bandwidth/latency. Just something to consider if you're finding performance is down a bit. You might want to try 4 mantras running 3 threads (for a 12-thread CPU) or various combinations like that, to see if that improves things overall.
-
- pbowmar
- Member
- 7046 posts
- Joined: 7月 2005
- オフライン
To do it automatically you'll have to set up Hqueue with 6 “nodes” on your one machine, then tell Mantra (as described above) to use 1 core. No, I don't know how to do this 
Definitely test, to see what is most efficient. Mantra is quite well threaded, though not completely, so sometimes you can just throw all cores at one frame and it's very close to the same as doing 6x frames on 1 core each.
Other times, there may be a higher percentage of non-threaded CPU time (loading geometry, for example) where running 6x frames at the same time buys you more.
In practice, each scene is different and you need to test.

Definitely test, to see what is most efficient. Mantra is quite well threaded, though not completely, so sometimes you can just throw all cores at one frame and it's very close to the same as doing 6x frames on 1 core each.
Other times, there may be a higher percentage of non-threaded CPU time (loading geometry, for example) where running 6x frames at the same time buys you more.
In practice, each scene is different and you need to test.
Cheers,
Peter Bowmar
____________
Houdini 20.5.262 Win 10 Py 3.11
Peter Bowmar
____________
Houdini 20.5.262 Win 10 Py 3.11
-
- jbartolozzi
- Member
- 60 posts
- Joined: 7月 2013
- オフライン
-
- oblong
- Member
- 28 posts
- Joined: 1月 2010
- オフライン
-
- symek
- Member
- 1390 posts
- Joined: 7月 2005
- オフライン
-
- Quick Links


