Threads vs Memory Usage

General Project and community related discussion.

Moderator: coordinators

Threads vs Memory Usage

Postby boogerlad » Sun May 20, 2012 1:07 pm

Hello all, I have a question about Luxrender. Let's just say I have a fairly complex scene with thousands of triangles, a light, and a lot of different metal, plastic(transparent) and wood materials. How much ram would it require if one thread is used? Would ram usage go up as the number of threads go up in a linear fashion? Also, would using opencl for say a Radeon 7970 significantly increase the ram usage?

Thanks!
boogerlad
 
Posts: 3
Joined: Tue Mar 13, 2012 10:31 pm

Re: Threads vs Memory Usage

Postby SATtva » Sun May 20, 2012 1:23 pm

boogerlad wrote:How much ram would it require if one thread is used? Would ram usage go up as the number of threads go up in a linear fashion?

No, the number of CPU rendering threads has no practical impact on memory usage. The main contributing factors are: image buffer (for hires rendering with many lightgroups it can take quite a lot of RAM), hires textures and huge environment maps, integrator-specific buffers (mostly for SPPM and hybrid modes). Scene geometry is really low on the list -- you can fit almost 3 million polys in just 1GB RAM.

boogerlad wrote:Also, would using opencl for say a Radeon 7970 significantly increase the ram usage?

Usually, yes -- hybrid rendering requires additional internal buffers to store state of rays being traced, and depending on Lux OpenCL settings it may take quite a lot of RAM.
Linux builds packager
聞くのは一時の恥、聞かぬのは一生の恥
User avatar
SATtva
Developer
 
Posts: 5495
Joined: Tue Apr 07, 2009 12:19 pm
Location: from Siberia with love

Re: Threads vs Memory Usage

Postby B.Y.O.B. » Sun May 20, 2012 2:00 pm

SATtva wrote:
boogerlad wrote:Also, would using opencl for say a Radeon 7970 significantly increase the ram usage?

Usually, yes -- hybrid rendering requires additional internal buffers to store state of rays being traced, and depending on Lux OpenCL settings it may take quite a lot of RAM.

To lower hybrid RAM usage, use a smaller value for the ray depth than the default 48 - 16 should be fine.
User avatar
B.Y.O.B.
 
Posts: 1880
Joined: Wed Nov 10, 2010 4:10 pm
Location: Germany

Re: Threads vs Memory Usage

Postby Dade » Mon May 21, 2012 2:19 am

SATtva wrote:
boogerlad wrote:Also, would using opencl for say a Radeon 7970 significantly increase the ram usage?

Usually, yes -- hybrid rendering requires additional internal buffers to store state of rays being traced, and depending on Lux OpenCL settings it may take quite a lot of RAM.


The additional internal buffers for hybrid rendering are also thread specific so if you double the number of threads you nearly double the amount of required ram (as written above, this doesn't happen with normal CPU rendering).
User avatar
Dade
Developer
 
Posts: 4796
Joined: Sat Apr 19, 2008 6:04 pm
Location: Italy


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest