Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

GPU Memory Not Freeing Up After Render

Isaac.miller101
Explorer Explorer
3,783 Views
27 Replies
Message 1 of 28

GPU Memory Not Freeing Up After Render

Isaac.miller101
Explorer
Explorer

With each consecutive Arnold render, my GPU memory gets used until all 8 gigs are occupied and it is forced to abort. It's treating my VRAM as single use and only becomes available again after restarting Maya.

  • 1.3 gig scene
  • RTX3070 8gig
  • Up to date studio driver (also tried gaming driver).
  • Same results on MtoA5.1.0, Arnold Core 7.1.0.0 and MtoA 5.0.0.1, Arnold Core 7.0.0.0

I've cleared caches manually and flushed caches in Maya. I also tried to pre-populate GPU cache but it was taking so long I had to leave it overnight and it failed. Googled and searched forums but can't seem to find any resolution. Attached is a succesful render and then a failed render, along with my render settings.

Any help appreciated!

0 Likes
3,784 Views
27 Replies
Replies (27)
Message 2 of 28

thiago.ize
Autodesk
Autodesk

Does it stop leaking memory if you remove the imager_denoiser_optix?

0 Likes
Message 3 of 28

thiago.ize
Autodesk
Autodesk

Also, it wasn't clear: did you also test with the latest Arnold? It's currently at 7.1.1.1.

0 Likes
Message 4 of 28

Isaac.miller101
Explorer
Explorer

Hi @thiago.ize! Thanks for your response. No, the problem persists regardless.

0 Likes
Message 5 of 28

Isaac.miller101
Explorer
Explorer

@thiago.ize 7.1.1.1 wasn't actually available last time was was trying to solve this issue, so in the spirit of trying to make sure everything is good, I did a clean install of Maya, Arnold + a new studio driver update from NVIDIA. Before doing any renders I pre-populated the GPU Cache and the unfortunatly the problem persists.

0 Likes
Message 6 of 28

thiago.ize
Autodesk
Autodesk

Do you mind sharing your scene so we can try and reproduce the problem on our end?

0 Likes
Message 7 of 28

Isaac.miller101
Explorer
Explorer

Sure, it's happening with every scene (new and old), so I'm not sure it will help, but I will send one through anyway. Thanks!

P.S. I tried attaching .MB file but it only accepted .MA.

0 Likes
Message 8 of 28

thiago.ize
Autodesk
Autodesk

Thanks, I'll give this a try tomorrow. By the way, for future reference you can zip the file and then you'll be able to upload whatever you want.

Message 9 of 28

Isaac.miller101
Explorer
Explorer

Thanks man, I appreciate your help.

0 Likes
Message 10 of 28

thiago.ize
Autodesk
Autodesk

I wasn't able to reproduce the memory leak. First off, can you confirm it's supposed to render black (I think there are no lights)? And how are you rendering each time: ARV stop and start? Render sequence? Different scenes without restarting maya?

0 Likes
Message 11 of 28

Isaac.miller101
Explorer
Explorer

Sorry I just removed the world light because it was connected to a HDRI that you wouldn't have. It's happening with every scene. No I am rendering just one scene. Tried rendering current frame, sequences also just opened arnold render view and clicking the "play" button, then stopping it once it's complete. Check out my screencast.

0 Likes
Message 13 of 28

thiago.ize
Autodesk
Autodesk

Thanks for the video, it makes it very clear what you're doing 🙂

I can get memory being used for the first two or so renders, but after that it seems to stop increasing. It's not as bad as what you're experiencing, but maybe that's a good enough reproducer for us, as I'd have hoped gpu memory would go completely back down after ending the render. We'll keep on investigating on our end. Thanks!

0 Likes
Message 14 of 28

Isaac.miller101
Explorer
Explorer
No problem, glad you were able to see some progress. I really appreciate the help.
0 Likes
Message 15 of 28

Isaac.miller101
Explorer
Explorer

Hi @thiago.ize, were you able to figure out what might be happening? It's been incredibly debilitating. I had to move to rendering in Blender.

0 Likes
Message 16 of 28

thiago.ize
Autodesk
Autodesk

No, we were not able to figure out the issue as we could not reproduce the memory leak past the first couple renders. We are in the midst of a major GPU rewrite as we upgrade from OptiX 6 to 7 so it's possible when that's completed it might fix this for you or at least make it easier for us to fix this as we now have more control over memory usage in Optix 7. Unfortunately we can't give an ETA.

Message 17 of 28

designimation
Enthusiast
Enthusiast
0 Likes
Message 18 of 28

alikasb
Participant
Participant

I have same problem in 3dsmax 2024 Arnold render. GPU memmory is full and Arnold r render start rendering very slow. Swichng to other rendering or closing scene memory  GPU still full. Only after closing 3dsmax memmory GPU is about 0 precents.

0 Likes
Message 19 of 28

CiroCardoso3v
Advisor
Advisor

Are you using the latest version? Perhaps a log could help with what is happening.

 

https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/How-to-get-an-Arno...

Lead Enviroment Artist @Axis Studios

Arnold Discord Server


Ciro Cardoso

EESignature

0 Likes
Message 20 of 28

alikasb
Participant
Participant

Yes Latest (or at least one of the latests). I Instalet 3dsmax about month ago.

0 Likes