# Possible Memory Issues

**URL:** <https://forums.chaos.com/t/possible-memory-issues/42792>\
**Category:** Off-topic\
**Created:** [September 27, 2012, 6:11pm UTC](https://forums.chaos.com/t/possible-memory-issues/42792 "2012-09-27T18:11:40Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![glorybound](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/glorybound/32/53992_2.png) [@glorybound](https://forums.chaos.com/u/glorybound)\
**Post date:** [September 27, 2012, 6:11pm UTC](https://forums.chaos.com/t/possible-memory-issues/42792/1 "2012-09-27T18:11:40Z")

</div>

I think I’m seeing a reason for some of my slave issues. It seems that when I increase my dynamic memory above what my slaves like, they don’t contribute to the rendering. My main workstation has 24G of ram, but my 5 slaves have 12G. If I increase the dynamic memory to, let’s say 8000G, the slaves stay idle, but if I lower the dynamic memory to 4095G, they all chime in. When I say idle, I mean that they don’t contribute. They are not idle at all. When I look at the task manager, of the slaves, they are all using 100% of their resources.

is this typical? What is the rule of thumb when setting up your memory limits? Is it a percentage of the weakest machine?

---

<div class="post-metadata">

**Author:** ![3DMK](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/3dmk/32/388_2.png) [@3DMK](https://forums.chaos.com/u/3DMK)\
**Post date:** [September 27, 2012, 7:24pm UTC](https://forums.chaos.com/t/possible-memory-issues/42792/2 "2012-09-27T19:24:03Z")

</div>

What is the operating system of the slaves??

If it’s win7 & your Slaves have 8gb of RAM then set your Dynamic memory limit to 6.2 gb as windows 7 takes quite a lot of RAM [aprox 1.5gb]

---

<div class="post-metadata">

**Author:** ![glorybound](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/glorybound/32/53992_2.png) [@glorybound](https://forums.chaos.com/u/glorybound)\
**Post date:** [September 27, 2012, 7:48pm UTC](https://forums.chaos.com/t/possible-memory-issues/42792/3 "2012-09-27T19:48:35Z")

</div>

the slaves are xp64, and my main is Win764

I found this little calculator.

[http://www.cgpinoy.org/t22366-vray-dynamic-memory-limit-calculator#375776](http://www.cgpinoy.org/t22366-vray-dynamic-memory-limit-calculator#375776)

---

<div class="post-metadata">

**Author:** ![glorybound](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/glorybound/32/53992_2.png) [@glorybound](https://forums.chaos.com/u/glorybound)\
**Post date:** [September 27, 2012, 7:59pm UTC](https://forums.chaos.com/t/possible-memory-issues/42792/4 "2012-09-27T19:59:33Z")

</div>

I have assumed it was 80% of your main workstation. I am just wondering what technically happens when you set it to high. I am doing some tests, but it seems like the slaves don’t even try when it knows it doesn’t have enough resources.

For en example: when I copy files, and I don’t have enough space, it’ll tell me and not even try. It seems like the same thing is happening in vray, minus the warning. If this was the case, it would be nice to see something in the vray messages window.

---

<div class="post-metadata">

**Author:** ![Sebastian\_Ek](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/sebastian_ek/32/16832_2.png) [@Sebastian\_Ek](https://forums.chaos.com/u/Sebastian_Ek)\
**Post date:** [January 29, 2013, 2:38pm UTC](https://forums.chaos.com/t/possible-memory-issues/42792/5 "2013-01-29T14:38:00Z")

</div>

I have the same problem, the main machine have 96GB ram and the dr-slaves have 16GB ram if I set it on dynamic 88GB ram the dr-slaves won’t help to render the scene.  
Is there a fix to this or do every computer have the same amount of ram to work properly?

---

<div class="post-metadata">

**Author:** ![yyk](https://avatars.discourse-cdn.com/v4/letter/y/e274bd/32.png) [@yyk](https://forums.chaos.com/u/yyk)\
**Post date:** [January 30, 2013, 7:36am UTC](https://forums.chaos.com/t/possible-memory-issues/42792/6 "2013-01-30T07:36:57Z")

</div>

> [@About noise in general](https://forums.chaos.com/t/about-noise-in-general/28443/192):
>
> I have the same problem, the main machine have 96GB ram and the dr-slaves have 16GB ram if I set it on dynamic 88GB ram the dr-slaves won’t help to render the scene.  
> Is there a fix to this or do every computer have the same amount of ram to work properly?

Sorry this is off topic but whoa, 96GB ram! I’m curious, can you still see benefits of all that ram? can you for instance render an entire planet full off trees without Vray crashing? 😄

---

<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:** [January 30, 2013, 3:21pm UTC](https://forums.chaos.com/t/possible-memory-issues/42792/7 "2013-01-30T15:21:27Z")

</div>

Actually, you can set the dynamic memory limit to a negative value from MaxScript; in that case, V-Ray will start unloading geometry when the free system RAM falls below that limit. F.e. if you set it to -1000, V-Ray will try start unloading stuff when the there is less than 1000 MB of free system RAM. This may work better across machines with varying specifications.

Note that the amount of free RAM that you want, is only approximate, so it’s not a good idea to set it close too close to 0.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![thablanch](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/thablanch/32/102_2.png) [@thablanch](https://forums.chaos.com/u/thablanch)\
**Post date:** [January 30, 2013, 5:02pm UTC](https://forums.chaos.com/t/possible-memory-issues/42792/8 "2013-01-30T17:02:19Z")

</div>

So, entering the -1000 value directly in the field, in the system rollout, would not work? What’s the difference between entering the value from MaxScript and entering it manually, as we are looking at the same value?

---

<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:** [January 30, 2013, 6:23pm UTC](https://forums.chaos.com/t/possible-memory-issues/42792/9 "2013-01-30T18:23:12Z")

</div>

> [@About noise in general](https://forums.chaos.com/t/about-noise-in-general/28443/216):
>
> So, entering the -1000 value directly in the field, in the system rollout, would not work?

No, it will be clamped to 0 (which means no limit).

> What’s the difference between entering the value from MaxScript and entering it manually, as we are looking at the same value?If you do that from MaxScript, the negative value will be set correctly. If you do it from the text field, it will be clamped to 0 at the moment. This is because the feature is somewhat experimental and not completely well tested.

Best regards,  
Vlado

---

<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:** [January 30, 2013, 7:17pm UTC](https://forums.chaos.com/t/possible-memory-issues/42792/10 "2013-01-30T19:17:39Z")

</div>

> [@Mipmap off in blurry reflection when glossy value close to 0.98](https://forums.chaos.com/t/mipmap-off-in-blurry-reflection-when-glossy-value-close-to-0-98/40151/3):
>
> This is because the feature is somewhat experimental and not completely well tested.  
> Best regards,  
> Vlado

Well the negative value sounds like a magnificent idea! Hope to see some progress made in this area soon

---

<div class="post-metadata">

**Author:** ![thablanch](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/thablanch/32/102_2.png) [@thablanch](https://forums.chaos.com/u/thablanch)\
**Post date:** [January 31, 2013, 12:33pm UTC](https://forums.chaos.com/t/possible-memory-issues/42792/11 "2013-01-31T12:33:15Z")

</div>

Testing, but I guess on a scene that does not need it enough.. not much speed gain ( not testing the original DR issue here, but just checking if I can have any performance boost..)  
Actually slightly slower than imputing the values by hand..?  
On a 48GB slave system ( which idle seems to run at 3GB..)  
Setting 44000 manually = rendertime 8:39  
Setting -4000 via MaxScript = rendertime 8:53 ( prerender script ) or 9:03 ( regular script)

I would love the use of a - negative memory value, as lots of our slaves have very different ram levels.

---

<div class="post-metadata">

**Author:** ![pjkw](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@pjkw](https://forums.chaos.com/u/pjkw)\
**Post date:** [January 31, 2013, 12:52pm UTC](https://forums.chaos.com/t/possible-memory-issues/42792/12 "2013-01-31T12:52:27Z")

</div>

44000 won’t be the same as -4000 tho will it?  
44000 will always be 44000 but -4000 will be 48000-4000-any RAM used by OS, other applications and non dynamic memory in max (?), so it will always be less.. correct?

---

<div class="post-metadata">

**Author:** ![Sebastian\_Ek](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/sebastian_ek/32/16832_2.png) [@Sebastian\_Ek](https://forums.chaos.com/u/Sebastian_Ek)\
**Post date:** [January 31, 2013, 3:04pm UTC](https://forums.chaos.com/t/possible-memory-issues/42792/13 "2013-01-31T15:04:11Z")

</div>

> [@Bug With Raytracer Show Messages & VRay](https://forums.chaos.com/t/bug-with-raytracer-show-messages-vray/40068/3):
>
> Actually, you can set the dynamic memory limit to a negative value from MaxScript; in that case, V-Ray will start unloading geometry when the free system RAM falls below that limit. F.e. if you set it to -1000, V-Ray will try start unloading stuff when the there is less than 1000 MB of free system RAM. This may work better across machines with varying specifications.
> 
> Note that the amount of free RAM that you want, is only approximate, so it’s not a good idea to set it close too close to 0.
> 
> Best regards,  
> Vlado

Sweet!

Thank you Vlado! This is going to help us really much.

@yyk

We need the 96 GB of RAM for extremely large scenes with really large texture-files and displacement-maps 😉

---

<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:** [January 31, 2013, 5:06pm UTC](https://forums.chaos.com/t/possible-memory-issues/42792/14 "2013-01-31T17:06:46Z")

</div>

> [@somewhere in the south](https://forums.chaos.com/t/somewhere-in-the-south/40167/4):
>
> We need the 96 GB of RAM for extremely large scenes with really large texture-files and displacement-maps 😉

Have you tried VRayHDRI with tiled OpenEXR files?

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![leo.surrealismo](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/leo.surrealismo/32/26139_2.png) [@leo.surrealismo](https://forums.chaos.com/u/leo.surrealismo)\
**Post date:** [January 31, 2013, 7:51pm UTC](https://forums.chaos.com/t/possible-memory-issues/42792/15 "2013-01-31T19:51:07Z")

</div>

sorry for the noob question but, how do I make that maxscript?

---

<div class="post-metadata">

**Author:** ![Sebastian\_Ek](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/sebastian_ek/32/16832_2.png) [@Sebastian\_Ek](https://forums.chaos.com/u/Sebastian_Ek)\
**Post date:** [February 1, 2013, 7:28am UTC](https://forums.chaos.com/t/possible-memory-issues/42792/16 "2013-02-01T07:28:49Z")

</div>

renderers.current=vray()  
vr=renderers.current  
vr.system\_raycaster\_memLimit = -2048

---

<div class="post-metadata">

**Author:** ![pierhe67](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/pierhe67/32/62146_2.png) [@pierhe67](https://forums.chaos.com/u/pierhe67)\
**Post date:** [April 5, 2018, 8:53am UTC](https://forums.chaos.com/t/possible-memory-issues/42792/17 "2018-04-05T08:53:33Z")

</div>

I have tried this script in Vray 3.6 and it doesn’t work.  
I think I have the same problem described before, most of the time, as project become bigger, my slave machines stop rendering.  
I have 64 gb RAM in my main computer, another one 32 gb, and 4 more at 24 gb.  
And it is the order they stop rendering, first the 4 weakest, than the 32gb and at the end only my main computer is rendering.  
I red that the subject is pretty ancient, Is there any solution fixed since then?  
Can’t we put directly a negative amount of RAM to save what the system needs to work?
