# Setting the number of Light Cache passes higher than the number of threads

**URL:** <https://forums.chaos.com/t/setting-the-number-of-light-cache-passes-higher-than-the-number-of-threads/41187>\
**Category:** General\
**Created:** [April 25, 2012, 1:50pm UTC](https://forums.chaos.com/t/setting-the-number-of-light-cache-passes-higher-than-the-number-of-threads/41187 "2012-04-25T13:50:07Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy\_butler\_7](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@andy\_butler\_7](https://forums.chaos.com/u/andy_butler_7)\
**Post date:** [April 25, 2012, 1:50pm UTC](https://forums.chaos.com/t/setting-the-number-of-light-cache-passes-higher-than-the-number-of-threads/41187/1 "2012-04-25T13:50:07Z")

</div>

Hi all.

We have one machine which has 24 cores. 6 quad core CPU’s to be precise with hyper-threading on. When we are preview rendering locally we set it up to have 24 passes in the Light Cache to get the extra speed from the machine.

My question is, if we send a job to the network and have this set on 24, if a machine with a lower number of CPU’s picks the job up, does it have an effect on render time? For instance will a machine with 8 cores, try and do 24 passes or does it only do 8? Therefore making it really slow to do the Light cache calculation?

It would be so handy to loose this feature and just have it built in to Vray to use however many cores the machine has. Or maybe putting it on 0 would make it Auto and any other number would force it to use that number or cores or something along those lines.

What are your thoughts on this?

Cheers.

Andy.

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [April 26, 2012, 9:22am UTC](https://forums.chaos.com/t/setting-the-number-of-light-cache-passes-higher-than-the-number-of-threads/41187/2 "2012-04-26T09:22:53Z")

</div>

> [@1.5 to 2.0 problem?](https://forums.chaos.com/t/1-5-to-2-0-problem/38174/6):
>
> My question is, if we send a job to the network and have this set on 24, if a machine with a lower number of CPU’s picks the job up, does it have an effect on render time? For instance will a machine with 8 cores, try and do 24 passes or does it only do 8? Therefore making it really slow to do the Light cache calculation?

It will be fine.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [April 26, 2012, 9:24am UTC](https://forums.chaos.com/t/setting-the-number-of-light-cache-passes-higher-than-the-number-of-threads/41187/3 "2012-04-26T09:24:26Z")

</div>

> [@1.5 to 2.0 problem?](https://forums.chaos.com/t/1-5-to-2-0-problem/38174/6):
>
> It would be so handy to loose this feature and just have it built in to Vray to use however many cores the machine has.

This could lead to differences between the light caches computed on different machines with different number of cores.

> Or maybe putting it on 0 would make it Auto and any other number would force it to use that number or coresThis is already done since a while now in the latest service packs.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![muoto](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@muoto](https://forums.chaos.com/u/muoto)\
**Post date:** [April 26, 2012, 4:15pm UTC](https://forums.chaos.com/t/setting-the-number-of-light-cache-passes-higher-than-the-number-of-threads/41187/4 "2012-04-26T16:15:46Z")

</div>

Huh, just out of curiosity, what brand of computer has 6 quad core cpu’s ?

---

<div class="post-metadata">

**Author:** ![super\_gnu](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@super\_gnu](https://forums.chaos.com/u/super_gnu)\
**Post date:** [April 26, 2012, 5:36pm UTC](https://forums.chaos.com/t/setting-the-number-of-light-cache-passes-higher-than-the-number-of-threads/41187/5 "2012-04-26T17:36:35Z")

</div>

i suspect he means 2 6-core cpus (hence 4 6-core cpus if you include hyperthreading) ive never heard of a 6 cpu motherboard and even if one existed, 6 quad cores with hyperthreading would be 48 threads not 24.

---

<div class="post-metadata">

**Author:** ![muoto](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@muoto](https://forums.chaos.com/u/muoto)\
**Post date:** [April 27, 2012, 9:33am UTC](https://forums.chaos.com/t/setting-the-number-of-light-cache-passes-higher-than-the-number-of-threads/41187/6 "2012-04-27T09:33:05Z")

</div>

Ok,  
btw, i never realised hyptertheading was turned of my my dual quad core workstation.  
Will it go faster when turning on ?

---

<div class="post-metadata">

**Author:** ![Morne](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/morne/32/11335_2.png) [@Morne](https://forums.chaos.com/u/Morne)\
**Post date:** [April 27, 2012, 1:25pm UTC](https://forums.chaos.com/t/setting-the-number-of-light-cache-passes-higher-than-the-number-of-threads/41187/7 "2012-04-27T13:25:00Z")

</div>

> [@this is how tree generatior program should work like](https://forums.chaos.com/t/this-is-how-tree-generatior-program-should-work-like/38230/2):
>
> Ok,  
> btw, i never realised hyptertheading was turned of my my dual quad core workstation.  
> Will it go faster when turning on ?

yes  
about 20 to 40% faster

BUT, are you sure its turned off? It’s ON by default on Intel  
AMD doesnt have hyperthreading

---

<div class="post-metadata">

**Author:** ![muoto](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@muoto](https://forums.chaos.com/u/muoto)\
**Post date:** [April 27, 2012, 1:45pm UTC](https://forums.chaos.com/t/setting-the-number-of-light-cache-passes-higher-than-the-number-of-threads/41187/8 "2012-04-27T13:45:40Z")

</div>

It was indeed OFF (dell workstation), just turned it ON, and have now twice more buckets 😉 woow nice to see all these small buckets rendering  
I will check on my other workstations, and will for sure check on my new one that’s coming next week.

---

<div class="post-metadata">

**Author:** ![Morbid\_Angel](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/morbid_angel/32/21272_2.png) [@Morbid\_Angel](https://forums.chaos.com/u/Morbid_Angel)\
**Post date:** [April 27, 2012, 6:15pm UTC](https://forums.chaos.com/t/setting-the-number-of-light-cache-passes-higher-than-the-number-of-threads/41187/9 "2012-04-27T18:15:15Z")

</div>

I would caution about usage of HT. In our recent setups, HT has actually affected the rendering in a negative way. When you deal with so many threads there can be redundancy. Some of that was vray specific problems which were solved (I hope). Our tests showed we only had about 10%-15% gain with HT on.

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [April 27, 2012, 10:03pm UTC](https://forums.chaos.com/t/setting-the-number-of-light-cache-passes-higher-than-the-number-of-threads/41187/10 "2012-04-27T22:03:57Z")

</div>

> [@vlado](#):
>
> In our recent setups, HT has actually affected the rendering in a negative way.

Yes, however those were somewhat specific situations; in the general case there is a definite improvement with HT.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![andy\_butler\_7](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@andy\_butler\_7](https://forums.chaos.com/u/andy_butler_7)\
**Post date:** [April 30, 2012, 8:55am UTC](https://forums.chaos.com/t/setting-the-number-of-light-cache-passes-higher-than-the-number-of-threads/41187/11 "2012-04-30T08:55:25Z")

</div>

> [@VasilVelikov](#):
>
> This could lead to differences between the light caches computed on different machines with different number of cores.
> 
> This is already done since a while now in the latest service packs.
> 
> Best regards,  
> Vlado

Thanks for all your replies Vlado. Regarding the 0 already being available in the latest service packs, is that only with Vray 2? We are using 1.5 SP5 still.

---

<div class="post-metadata">

**Author:** ![andy\_butler\_7](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@andy\_butler\_7](https://forums.chaos.com/u/andy_butler_7)\
**Post date:** [April 30, 2012, 8:56am UTC](https://forums.chaos.com/t/setting-the-number-of-light-cache-passes-higher-than-the-number-of-threads/41187/12 "2012-04-30T08:56:53Z")

</div>

> [@Ivaylo\_Katev](#):
>
> Huh, just out of curiosity, what brand of computer has 6 quad core cpu’s ?

Ha ha. Good point. It actually has 4 cpu’s with 6 cores. Hence 24… Small typo before! Whoops!

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [April 30, 2012, 9:26am UTC](https://forums.chaos.com/t/setting-the-number-of-light-cache-passes-higher-than-the-number-of-threads/41187/13 "2012-04-30T09:26:25Z")

</div>

> [@Depth of Field (DOF)](https://forums.chaos.com/t/depth-of-field-dof/38258/5):
>
> Thanks for all your replies Vlado. Regarding the 0 already being available in the latest service packs, is that only with Vray 2? We are using 1.5 SP5 still.

Yes, this is in V-Ray 2.0

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![trick](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/trick/32/32520_2.png) [@trick](https://forums.chaos.com/u/trick)\
**Post date:** [April 30, 2012, 6:14pm UTC](https://forums.chaos.com/t/setting-the-number-of-light-cache-passes-higher-than-the-number-of-threads/41187/14 "2012-04-30T18:14:05Z")

</div>

> [@Depth of Field (DOF)](https://forums.chaos.com/t/depth-of-field-dof/38258/6):
>
> Ha ha. Good point. It actually has 4 cpu’s with 6 cores. Hence 24… Small typo before! Whoops!

Let’s try again: 2 cpu’s with 6 cores and hyperthreading is 24 threads. Or 4 cpu’s with 6 cores and hyperthreading is 48 threads ?

---

<div class="post-metadata">

**Author:** ![andy\_butler\_7](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@andy\_butler\_7](https://forums.chaos.com/u/andy_butler_7)\
**Post date:** [May 2, 2012, 11:17am UTC](https://forums.chaos.com/t/setting-the-number-of-light-cache-passes-higher-than-the-number-of-threads/41187/15 "2012-05-02T11:17:00Z")

</div>

> [@vlado](#):
>
> Let’s try again: 2 cpu’s with 6 cores and hyperthreading is 24 threads. Or 4 cpu’s with 6 cores and hyperthreading is 48 threads ?

Trick, you don’t miss a trick do you!! I clearly had a poor knowledge about hyperthreading and cores etc… Just cleared it up with he in the know. 🙂 It has 2cpu’s with 6 cores and hyperthreading. Hence 24 cores. 🙂 Thanks for teaching me a lesson!

Regards

Andy.

---

<div class="post-metadata">

**Author:** ![trick](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/trick/32/32520_2.png) [@trick](https://forums.chaos.com/u/trick)\
**Post date:** [May 2, 2012, 12:07pm UTC](https://forums.chaos.com/t/setting-the-number-of-light-cache-passes-higher-than-the-number-of-threads/41187/16 "2012-05-02T12:07:49Z")

</div>

🙂 If it were 48 threads, I certainly would have asked you some more questions 😉
