Low Cpu usage while rendering with Distributed Rendering ON

Hej all, have a strange issue surfacing recently.

Noticing severe cpu throttling when rendering with distributed on.
Monitoring the cpu threads as they hover around 20-40% performance for the whole duration of this render.

Once I disable the distributed on the same scene, the cpu is rendering at 100% all threads.

Running Vray 7.00.04 , 3ds max 2024, on Windows 10 & AMD 3990x

Thank you all for any thoughts!

Are you using progressive or bucket? Would be something to consider, the progressive probably won’t be utilizing cpu 100% with dr. Also the amount of assets could affect your network, are they locally stored? That could also impact the load times for all the machines which would affect the performance.

Hi, thanks for the thoughts!

Bucket rendering is being used and the render nodes seem to load quite fast and join the render.

The issue is that the local machine is rendering at very low cpu speed when the distributed is on, but at 100% when the distributed is off.

Quite strange behavior, first time seeing this :X

The distributed machines are pulling assets/textures from network? Can this be the bottleneck?

This has never been a problem :slight_smile: that we would know.
Yes they are pulling from network but there is very big difference. When DR is on, main machine is going relatively normally and all rest are hanging like crazy.
Not sure if this is 2 separate issues, but we did not have this before.
All the regular downtime like loading, network etc is considered.
Its actually lot faster to render low noise, 6k render on 1 machine than on DR with 10 nodes. with DR it became upwards 5 times slower.

I believe under DR you have sync missing assets options where you can sync the assets locally to each DR machine before rendering, it could potentially give you an idea if it is the network if you try that option and it renders with 100% load. I know you said it never happened before, but perhaps on this project you have something that loads the network too much. If you can monitor the server io during DR and see if its maxing out the throughput, it could help you trouble shoot this issue.
Could be a different issue though, but without knowing more I would only consider that to be the case. In logic of raytracing, rays must hit every part of the frame (what camera is seeing) so to render 1 bucket, the ray information must be synced between other buckets and if the DR machines are all reading textures or proxies for example at the same time and proxy is a large file or whatever, it may take a while that’s why the cpu load drops. It could also be something else like subdivision, but I can’t know for sure.

Check the value of the low thread priority option like so:
renderers.current.system_lowThreadPriority

By default, it’s 2 (lowest priority); you can try setting it to 1 (low priority) and see if that makes a difference:
renderers.current.system_lowThreadPriority=1
Also, check if you’ve set a thread limit via this environment variable:

VRAY_NUM_THREADS​

If yes, remove it.

Seems we found it.
It an issue with “.tx” files and deadline.
We have converted some textures unknowingly into .tx files and this clashes with Deadline.

So we just dont use tx and it seems to be back to normal.

Would be great to locate and replace all tx files into original birmaps, or at least to located them easily :smile: but at least we seem to know of the cause.

Thanks for suggestions tho :slight_smile:

Glad you found the culprit. Maybe it’s a cache issue. Try setting the Cache size of tiled textures (Render Setup > Settings > Tiled texture options) to 0 and Cache limit type in the DR settings to None and see if that makes a difference when using the .tx files.

We use .tx files with Deadline without issue. Meaning I don’t believe it’s a Deadline thing vs. a tiled format issue.

Keep in mind tx files are loaded differently and cause a lot more network traffic during the render as each node is constantly reading the required blocks from disk/network. This is supposed to be cached on a block by block basis, but this cache could be too small, or there could be too much unique data for it to be of much use.

If you lower the blur of tiled texture maps this can cause the highest res version of the maps to be loaded all the time making things far worse (not to mention lowering the blur is just generally a bad plan for animation).

With all other formats (save for tiled exr) the entire texture is read once by each node, which if often faster even on a fast network because each network read has a lot of overhead at each layer vs a single large read one time per node.

It would actually be very cool if vray gave you a switch to simply pre-load tiled formats and treat them as regular bitmaps.

This way tiled formats could be used either way and users wouldn’t have to actually convert files.

TBH we didnt investigate past the issue being fixed by skipping the .tx files :smile:
So for us to simplify it, the issue was using .tx format with deadline. I understand what you mean, but even after leaving the render to run for hours it never caught up with the speed.
The nodes loaded fairly fast, normal speed, but then simply got completely stuck and were barely registering any CPU activity.
So for us there is not a lot of benefit to use .tx format hence avoiding it solves the problem.

And yes the switch to revert back to originals, that would be very lovely and helpful !

Yeah, I usually find the tiled formats to be slower and only worth it for really huge textures and memory limited scenes.

I generally find DR to be not very useful, or at least crazy inefficient. In order to not get caught by Last Block Syndrome we end up having to use 8x8 blocks, which is pretty inefficient. Most of what we do is animation so we just distribute one frame per node.

We really need the automatic block subdivision for DR to make it of much use.

I guess my point was more that the bottleneck is probably your file server vs. Deadline itself (which I think Morbid Angel already mentioned). You do have a separate server, right? The workstation isn’t acting as the file server for the nodes, is it? As that would compound things.

yes yes we have Nas server and all that. It could be faster, but when not using .tx files there is no issue.
The auto subdivision on DR is indeed something that we crave for ! +1 +1 +1 request

So I have used tiled txs for like 15 years. In 90% of the cases it’s user’s misunderstanding how to utilize them. They are powerful, we don’t use them 100% of the time though. Texture memory limit plays a huge role there, which by default is set pretty low so you have to pay attention to that. The main goal of tiled textures is to allow you to render without running out of ram scene which otherwise would be unrendarable unless you have 1Tb of ram or something on each render note which is not very common or realistic. However I have a rule where every workstation and render node has to have at least 128Gb of ram, but preferably 256Gb of ram for user workstations (and you be surprised how often we use nearly all of it).

For txs specifically just setting texture memory limit to something high like 32Gb will make them all load at max speed, but the tx files them self are of course not as efficient as regular textures, its like loading vray proxy block by block vs regular mesh that’s precompiled before render time.
We utilize tx pipeline in only case where we have thousands of textures or textures are really large in size. We work from a “source” folder where all original textures are stored, then if needed we run a .tx conversion which points to a tx folder, and we remap the path/names to those with user attributes. For example, on a current project I have 499 textures all in 8k totaling 5.76Gb. Converted to tx we ended up with 11Gb (nearly double). 11Gb isn’t a huge size to read from the network but many small files are hard to process and they have to be unpacked etc, so its quite the choir. I had projects with 1500 textures and 50Gb, which were at the time unrealistic to render if not for tx while the render time penalty were pretty minimal.

Next thing is the nas server. For example we are on a 10Gbe network, so I can copy files at 1000Mb/s to and from server, but the server it self has limitation that the onboard controller (can’t remember what its called) can only handle no more than 2Gbe at a time per machine, and so when entire farm goes to read those textures we have a tough time working. For that reason I have a tool that syncs any offending textures to c:\temp\vray\textures and we remap the paths with user attributes from network to local to offload some of the io if we can, since textures are just a part of the whole scene assembly, we have volumes, meshes, displacements etc.

As a conclusion to this, we never found DR to be any use for sequences of frames with one exception. Too much IO meanwhile all servers sit idle during loading/unloading. The exception would be that if you have a frame that renders for 10 Hours per frame, and it failed and you have to deliver the render asap, you can use DR to render that one frame on entire farm with DR and get it in like 30 minutes. I have done that a few times, but overall we just fire off frames to farm as 1 frame per 1 machine.

Absolutely what we do in a heavy tx situation. You push the tx files to each node (we use GoodSync on windows, rsync on Linux). In that case the tiled formats are better, but we so rarely need to do this any more. Workstations all have 512GB or 1TB with render nodes not far behind.

Only for the occasional high memory scene do we need to do this any more.

hahaha in that last frame that you have to get out the door. Been there, and sadly ten hours per frame or worse is sometimes the case still. The 7995wx’s help with that, but even then sometimes you just gotta finish one frame.

I always tell the producers that the render will be done when the last block on the slowest machine is done. They don’t think that’s helpful or funny. Weird.