GPU RAM usage for simple camera tracking

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

davorin

  • Posts: 276
  • Joined: Wed Aug 01, 2018 10:27 am
  • Location: CH
  • Real Name: Richard Klingler

GPU RAM usage for simple camera tracking

PostFri Aug 24, 2018 2:35 pm

Good afternoon (o;

I am trying a simple camera tracking example with a 60 frames footage in 1080p...
Minimum feature set is set to 0.1 and the rest are the default settings...think it's the lowest possible setting...

Tracking forth and back is done fine...but fills up the 6GB quickly...so the out of GPU memory is popping up and I have to kill resolve studio manually...

If I leave the tracker preview is off, the GPU error popups only if I select the in the viewer...

Do I need 128GB GPU RAM to do a simple camera tracking on resolve studio 15.0.0 Linux?

Also tried different settings with Auto/Cuda/OpenCL or Fusion on CPU only...still no joy....


During calculation I see:

Code: Select all
Fri Aug 24 16:33:11 2018       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.77                 Driver Version: 390.77                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 106...  Off  | 00000000:01:00.0  On |                  N/A |
|  7%   56C    P2    56W / 120W |   2370MiB /  6075MiB |     81%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0       646      G   /usr/lib/xorg/Xorg                           294MiB |
|    0      1186      G   /proc/self/exe                                43MiB |
|    0      6378      G   nvidia-settings                                0MiB |
|    0      8965    C+G   /opt/resolve/bin/resolve                    2063MiB |
+-----------------------------------------------------------------------------+


A second later when it is finished and it should show the result in the left viewer from the tracker node:

Code: Select all
Fri Aug 24 16:33:12 2018       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.77                 Driver Version: 390.77                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 106...  Off  | 00000000:01:00.0  On |                  N/A |
|  8%   56C    P2    33W / 120W |   6060MiB /  6075MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0       646      G   /usr/lib/xorg/Xorg                           294MiB |
|    0      1186      G   /proc/self/exe                                43MiB |
|    0      6378      G   nvidia-settings                                0MiB |
|    0      8965    C+G   /opt/resolve/bin/resolve                    5717MiB |
+-----------------------------------------------------------------------------+
DaVinci Resolve Studio 16.1.2, Intensity Pro 4K
macOS 10.15.2: i7-7700, 32GB RAM, RX 5700 XT 8GB
Debian 10/Windows 10 Pro: Threadripper 1950X, 64GB RAM, 2 * RTX2080TI
Offline

davorin

  • Posts: 276
  • Joined: Wed Aug 01, 2018 10:27 am
  • Location: CH
  • Real Name: Richard Klingler

Re: GPU RAM usage for simple camera tracking

PostSat Aug 25, 2018 2:48 pm

Even merging two 1024x1024 png in resolve fusion with a short clip (10 secs) occupies:

Code: Select all
|    0     12244    C+G   /opt/resolve/bin/resolve                    4921MiB |
+-----------------------------------------------------------------------------+
DaVinci Resolve Studio 16.1.2, Intensity Pro 4K
macOS 10.15.2: i7-7700, 32GB RAM, RX 5700 XT 8GB
Debian 10/Windows 10 Pro: Threadripper 1950X, 64GB RAM, 2 * RTX2080TI
Online
User avatar

Uli Plank

  • Posts: 25501
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: GPU RAM usage for simple camera tracking

PostSat Aug 25, 2018 2:53 pm

Try to switch off the GPU and try again.
I observe only 30% activity of the GPU when doing 3D camera tracking and solves, while the CPU cores are running at 60-70%.
My disaster protection: export a .drp file to a physically separated storage regularly.
Please visit digitalproduction.com/author/uliplank/

Studio 19.1.3
2017 iMac, MacOS 13.7.4, eGPU
MacBook M1 Pro and M4 Pro mini, MacOS 14.7.5
SE, USM G3
Offline

davorin

  • Posts: 276
  • Joined: Wed Aug 01, 2018 10:27 am
  • Location: CH
  • Real Name: Richard Klingler

Re: GPU RAM usage for simple camera tracking

PostSat Aug 25, 2018 3:07 pm

I tried using the CPU for Fusion only...bombs also with camera tracker and shows high GPU RAM usage on Linux...but only when I want to display the 3d scene in the left viewer...

See only high CPU usage when optimising media....


For simple clips and with just a color/brightness correction in fusion it occupies around 4 - 5GB GPU RAM at least...
DaVinci Resolve Studio 16.1.2, Intensity Pro 4K
macOS 10.15.2: i7-7700, 32GB RAM, RX 5700 XT 8GB
Debian 10/Windows 10 Pro: Threadripper 1950X, 64GB RAM, 2 * RTX2080TI
Offline

davorin

  • Posts: 276
  • Joined: Wed Aug 01, 2018 10:27 am
  • Location: CH
  • Real Name: Richard Klingler

Re: GPU RAM usage for simple camera tracking

PostSat Aug 25, 2018 4:01 pm

Now a tracking of a 30 frames clip was successful...and when I clicked on the export tab resolve studio just quit with no error messages...

Linux version seems GPU hungry and quite buggy...

Got doubgt if a 11GB GPU would be any better or just filled quickly as well until it crashes...
DaVinci Resolve Studio 16.1.2, Intensity Pro 4K
macOS 10.15.2: i7-7700, 32GB RAM, RX 5700 XT 8GB
Debian 10/Windows 10 Pro: Threadripper 1950X, 64GB RAM, 2 * RTX2080TI
Online
User avatar

Uli Plank

  • Posts: 25501
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: GPU RAM usage for simple camera trackeng

PostSun Aug 26, 2018 3:24 am

I checked GPU memory usage and surprisingly, even if Fusion is set to use the CPU, the memory of my GPU is getting used close to 100%. It doesn't crash, though.
This doesn't seem to depend on resolution, I see the same with HD or UHD.

P.S.
I also tried the same in Fusion standalone, and to my surprise the usage of VRAM was much lower, around 20-25%. It seems that Resolve is somehow using the VRAM to operate Fusion in it's page. So, for now I'd use the standalone for such tasks if there are problems. After all, camera tracking is a demanding task and the integration of Fusion is still a work in progress.
My disaster protection: export a .drp file to a physically separated storage regularly.
Please visit digitalproduction.com/author/uliplank/

Studio 19.1.3
2017 iMac, MacOS 13.7.4, eGPU
MacBook M1 Pro and M4 Pro mini, MacOS 14.7.5
SE, USM G3
Offline

davorin

  • Posts: 276
  • Joined: Wed Aug 01, 2018 10:27 am
  • Location: CH
  • Real Name: Richard Klingler

Re: GPU RAM usage for simple camera tracking

PostSun Aug 26, 2018 1:18 pm

So I assume this has something to do with Fusion being integrated since resolve studio 15...

Was today able to render a 1080p clip of 44 seconds length in total (includes around 12 individual clips where each one was color/brightness corrected in fusion). Some of the clips stabilized...short PNG overlays at the beginning who moves sideways out with an elevator door...no GPU RAM full error, though the 6GB were mostly filled up to 99% though Fusion did work in CPU...

Now another quick test with particle dissolve...and bomb...you can quit the application, window closes, but it runs forever, so you need to kill it always manually after a GPU error...

I haven't done anything in Fusion alone, nor do I intend to buy Fusion Studio as it seems it will disappear pretty soon.

Attached the node fusion particle example and GPU settings which lead to the GPU error..
Attachments
gpu_settings.png
gpu_settings.png (51.97 KiB) Viewed 3123 times
gpu_full.png
gpu_full.png (74.13 KiB) Viewed 3123 times
DaVinci Resolve Studio 16.1.2, Intensity Pro 4K
macOS 10.15.2: i7-7700, 32GB RAM, RX 5700 XT 8GB
Debian 10/Windows 10 Pro: Threadripper 1950X, 64GB RAM, 2 * RTX2080TI
Online
User avatar

Uli Plank

  • Posts: 25501
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: GPU RAM usage for simple camera tracking

PostSun Aug 26, 2018 3:16 pm

Could you please post the script for that particle system to test it here on my hardware?
My disaster protection: export a .drp file to a physically separated storage regularly.
Please visit digitalproduction.com/author/uliplank/

Studio 19.1.3
2017 iMac, MacOS 13.7.4, eGPU
MacBook M1 Pro and M4 Pro mini, MacOS 14.7.5
SE, USM G3
Offline

davorin

  • Posts: 276
  • Joined: Wed Aug 01, 2018 10:27 am
  • Location: CH
  • Real Name: Richard Klingler

Re: GPU RAM usage for simple camera tracking

PostSun Aug 26, 2018 3:21 pm

How can I extract this as a script?

I did this following a vido tutorial....where you could als down it as a macro...
with the downloaded macro it went fine...well tested just one time ;-)
DaVinci Resolve Studio 16.1.2, Intensity Pro 4K
macOS 10.15.2: i7-7700, 32GB RAM, RX 5700 XT 8GB
Debian 10/Windows 10 Pro: Threadripper 1950X, 64GB RAM, 2 * RTX2080TI
Online
User avatar

Uli Plank

  • Posts: 25501
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: GPU RAM usage for simple camera tracking

PostSun Aug 26, 2018 4:07 pm

Click on File- Export Fusion Comp.

I'd like to work with the same values to compare.
My disaster protection: export a .drp file to a physically separated storage regularly.
Please visit digitalproduction.com/author/uliplank/

Studio 19.1.3
2017 iMac, MacOS 13.7.4, eGPU
MacBook M1 Pro and M4 Pro mini, MacOS 14.7.5
SE, USM G3
Offline

davorin

  • Posts: 276
  • Joined: Wed Aug 01, 2018 10:27 am
  • Location: CH
  • Real Name: Richard Klingler

Re: GPU RAM usage for simple camera tracking

PostSun Aug 26, 2018 4:14 pm

Here it is..and thanks for the great help :-)

My main problem is not that the newly acquired 1060/6GB card isn't enough. I am just unsure if I build a new macOS or Linux machine with a 1080/11GB it won't be different...and dual GPU won't help at all, not memory nor performance wise...though this might have changed in DRS 15...
Attachments
fusion_text_dissolve.zip
(2.02 KiB) Downloaded 100 times
DaVinci Resolve Studio 16.1.2, Intensity Pro 4K
macOS 10.15.2: i7-7700, 32GB RAM, RX 5700 XT 8GB
Debian 10/Windows 10 Pro: Threadripper 1950X, 64GB RAM, 2 * RTX2080TI
Online
User avatar

Uli Plank

  • Posts: 25501
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: GPU RAM usage for simple camera tracking

PostMon Aug 27, 2018 6:33 am

I can confirm that this particle script crashes the Fusion page with a GPU RAM full error, even with 8 GB VRAM. The same particle script works fine in the standalone version with less than half of the VRAM in use.

I'd use Fusion Connect for now.
My disaster protection: export a .drp file to a physically separated storage regularly.
Please visit digitalproduction.com/author/uliplank/

Studio 19.1.3
2017 iMac, MacOS 13.7.4, eGPU
MacBook M1 Pro and M4 Pro mini, MacOS 14.7.5
SE, USM G3
Online
User avatar

Uli Plank

  • Posts: 25501
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: GPU RAM usage for simple camera tracking

PostMon Aug 27, 2018 10:48 am

I did some more testing and found an interesting workaround, it seems:
viewtopic.php?f=21&t=78349
My disaster protection: export a .drp file to a physically separated storage regularly.
Please visit digitalproduction.com/author/uliplank/

Studio 19.1.3
2017 iMac, MacOS 13.7.4, eGPU
MacBook M1 Pro and M4 Pro mini, MacOS 14.7.5
SE, USM G3
Offline

davorin

  • Posts: 276
  • Joined: Wed Aug 01, 2018 10:27 am
  • Location: CH
  • Real Name: Richard Klingler

Re: GPU RAM usage for simple camera tracking

PostMon Sep 03, 2018 12:55 pm

It is now worse with version 15.0.1 on Linux...

GPU memory full error shows even when GPU memory is around 50 - 60%...

Guess this won't be fixed in the next couple of months...so no fancy Fusion effects at all then....
DaVinci Resolve Studio 16.1.2, Intensity Pro 4K
macOS 10.15.2: i7-7700, 32GB RAM, RX 5700 XT 8GB
Debian 10/Windows 10 Pro: Threadripper 1950X, 64GB RAM, 2 * RTX2080TI
Online
User avatar

Uli Plank

  • Posts: 25501
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: GPU RAM usage for simple camera tracking

PostTue Sep 04, 2018 2:52 am

Yes, I went back to Fusion standalone.
My disaster protection: export a .drp file to a physically separated storage regularly.
Please visit digitalproduction.com/author/uliplank/

Studio 19.1.3
2017 iMac, MacOS 13.7.4, eGPU
MacBook M1 Pro and M4 Pro mini, MacOS 14.7.5
SE, USM G3

Return to DaVinci Resolve

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], panos_mts, Steve Alexander, Uli Plank and 269 guests