question

cera kecera avatar image
cera kecera asked

Memory usage increasing with every rendered frame

Having this issue:
Bought a new System with a Ryzen 5900x and RTX 3080ti and rendering an animation with it. Not gonna talk about the dissapointing increase of render time (expected alot more), but the memory usage...

My old specs usage while rendering was about 7800MB (GTX 1070 8GB), so i adjusted the scenes textures to the limit. Expecting to have more memory to spend with the new PC, i opened the
exact same scene, populated GPU cache and started ARV... just to realize, that memory usage is about 10k...!?

To make things worse, during production render the memory starts to increase with each frame until it reaches its limit (12GB) and crashes... error.txt

Yes am using .tx, drivers are up-to-date, latest Arnold version and no there arent any displacements (cant use them anyway, even one displacement crashes max right away)...

Whats going on???

gpu
error.txt (21.4 KiB)
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Stephen Blair avatar image
Stephen Blair answered

So, we're talking about CPU memory usage, right?

Hard to say much with more detailed logs. Also, the CPU memory usage goes up after the GPU crash, so those are not valid renders.

Did you try batch rendering on the command line?

4 comments
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

No, its only the GPUs Vram...

Thought i was clear enough with the tag and Geforce cards.

0 Likes 0 ·
Well, I see the CPU memory increasing.

I cannot know what the GPU usage was per frame, I'd need to see a more verbose log.

0 Likes 0 ·
cera kecera avatar image cera kecera Stephen Blair ♦♦ ·

Here the debug level verbose log

error.txt

0 Likes 0 ·
error.txt (21.9 KiB)
Show more comments
Stephen Blair avatar image
Stephen Blair answered

When the render starts, there's only 8GB of GPU memory available:

00:00:00  5421MB         |  GPU 0: NVIDIA GeForce RTX 3080 Ti @ 1665MHz (compute 8.6) with 12288MB (8709MB available) (NVLink:0)

Is this the first frame to render, or where there other frames before it?

How much memory was available at the start for each of those previous frames?

This frame crashes with a generic error. It could be memory, or it could be something else, like a bug, or something in the scene.

00:01:17 13719MB ERROR   |  [gpu] an error happened during rendering. OptiX error is: Unknown error (Details: Function "_rtContextLaunch2D" caught exception: Encountered a CUDA error: cudaDriver().CuEventSynchronize( m_event ) returned (700): Illegal address, file: <internal>, line: 0)
    GPU 0 had 8709MB free before rendering started and 2114MB free when crash occurred

If you Ignore Textures, does it render?



1 comment
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Had the time now and made couple of logs with GPU and CPU.

These are logs without texures.

Verbose.zip

0 Likes 0 ·
verbose.zip (16.0 KiB)

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.