Question about out of memory errors.
bshugs1525871
Posts: 183
I recently added a dedicated GTX 1660 (6GB) to help with background rendering. Depending on the complexity of the scene and the resolution of the render, I get out of memory errors that Daz Studio (or the card) seem to recover from.
Here's an example of the flow from the log, edited to emphasis the error:
2019-05-11 21:22:52.294 Iray INFO - module:category(IRAY:RENDER): 1.0 IRAY rend info : CUDA device 0 (GeForce GTX 1660)2019-05-11 21:22:52.294 Iray VERBOSE - module:category(IRAY:RENDER): 1.5 IRAY rend progr: CUDA device 0 (GeForce GTX 1660): Processing scene...2019-05-11 21:22:53.245 Iray VERBOSE - module:category(IRAY:RENDER): 1.8 IRAY rend stat : Geometry memory consumption: 336.512 MiB (device 0), 0 B (host)2019-05-11 21:23:31.032 Iray INFO - module:category(IRAY:RENDER): 1.5 IRAY rend info : CUDA device 0 (GeForce GTX 1660): Scene processed in 38.743s2019-05-11 21:23:31.032 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(302): Iray ERROR - module:category(IRAY:RENDER): 1.5 IRAY rend error: CUDA device 0 (GeForce GTX 1660): out of memory (while allocating memory)2019-05-11 21:23:31.032 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(302): Iray ERROR - module:category(IRAY:RENDER): 1.5 IRAY rend error: CUDA device 0 (GeForce GTX 1660): Failed to allocate 931.077 MiB2019-05-11 21:23:31.032 Iray INFO - module:category(IRAY:RENDER): 1.5 IRAY rend info : CUDA device 0 (GeForce GTX 1660): Allocated 47.4617 MiB for frame buffer2019-05-11 21:23:31.048 Iray INFO - module:category(IRAY:RENDER): 1.5 IRAY rend info : CUDA device 0 (GeForce GTX 1660): Allocated 453.516 MiB of work space (537k active samples in 0.000s)2019-05-11 21:23:31.110 Iray INFO - module:category(IRAY:RENDER): 1.0 IRAY rend info : Received update to 00002 iterations after 38.815s.2019-05-11 21:23:32.861 Iray INFO - module:category(IRAY:RENDER): 1.5 IRAY rend info : CUDA device 0 (GeForce GTX 1660): Allocated 134.473 MiB of work space (159k active samples in 0.001s)2019-05-11 21:23:32.923 Iray INFO - module:category(IRAY:RENDER): 1.0 IRAY rend info : Received update to 00003 iterations after 40.640s.2019-05-11 21:23:35.908 Iray INFO - module:category(IRAY:RENDER): 1.0 IRAY rend info : Received update to 00004 iterations after 43.615s.2019-05-11 21:23:35.923 Iray INFO - module:category(IRAY:RENDER): 1.0 IRAY rend info : Received update to 00006 iterations after 43.642s.2019-05-11 21:23:36.517 Iray INFO - module:category(IRAY:RENDER): 1.0 IRAY rend info : Received update to 00007 iterations after 44.223s.Task manager shows the CUDA at around 99% and the Dedicated GPU memory at 4.8/6.0GB.
Is the card running out of memory and then trying again and succeeding the second time?
Running Daz Studio 4.11 Beta on an i7 with a GTX 1080 for monitors and GTX 1660 for rendering. Thanks in advance for any help.

Comments
I think that's the case!
A more reliable software to see your GPU usage is GPU-Z.
If you're at the limit and you open a YouTube video, for example, the render will drop to the CPU, and it will stay that way even when you'll close the video.
Is the 1660 faster than the 1080 in rendering? You could use both!
Thanks for the heads up. I've used GPU-Z in the past, but hadn't thought to use is as part of the troubleshooting in this case. I'll do so next.
As for the GTX 1660 vs GTX 1080, I believe the 1080 may be faster, but the 1660 I got my hands on is a 'budget' model that only has one Display Port and I use two monitors. I could use the HDMI, I guess. I'll probably do some tests. on that also.