Am Sun, 22 Dec 2019 20:25:17 +0100
schrieb Ulrich Pegelow <[email protected]>:

> Am 22.12.19 um 19:32 schrieb Jochen Keil:
> > However, both denoise module, which used to run perfectly on the
> > GPU, now fall back to CPU and add around 14s each!
> > 
> > According to the log there's a tiling issue, but I don't understand
> > why. It's still the same 6GB GPU that used to work with 2.6.x.

> You might need to adjust parameter opencl_memory_headroom in 
> darktablerc.

Thanks to remember me to do this. Could you please tell me the exact
name of the variable(s) to change?

My GeForce GTX 1660 has 5941MiB, I use XFCE and DT uses 73MiB at the
moment after booting the pc and starting dt. There are no other
programs which use opencl, so I can give dt a lot / the maximum. What
about 5000 for dt?


> In your case it's set at its default 300MB. The
> parameter tells darktable how much of the total VRAM it should assume
> to be reserved by other processes. darktable then takes all the rest.
> Now, if this parameter it set too low darktable will fail in GPU
> memory allocations.
> 
> You should have on your system the nvidia-smi tool. It will tell you
> how much of the memory is currently used. This would be a first
> starting point for opencl_memory_headroom.

$ nvidia-smi 
Sun Dec 22 23:04:06 2019       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 435.21       Driver Version: 435.21       CUDA Version:
10.1     |
|-------------------------------+----------------------+----------------------+
| 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 1660    Off  | 00000000:2F:00.0  On |
  N/A | |  0%   39C    P0    23W / 130W |    676MiB /  5941MiB |
1%      Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU
Memory | |  GPU       PID   Type   Process name
    Usage      |
|=============================================================================|
|    0      2482      G   /usr/lib/xorg/Xorg
586MiB | |    0      3298      G   xfwm4
          4MiB | |    0      4933      C   /usr/bin/darktable
                 73MiB |
+-----------------------------------------------------------------------------+


> I recently have learnt that on a typical KDE system one of the 
> components (plasmashell, krunner, ...) is notorious for leaking GPU 
> memory. The longer the system runs the less VRAM is free. You should
> be able to see this if you follow up on nvidia-smi for a longer time.
> 
> It is said that calling from time to time this script would free GPU 
> memory again:
> 
> #!/bin/bash
> 
> kquitapp5 plasmashell
> 
> kstart5 plasmashell &

Al

____________________________________________________________________________
darktable user mailing list
to unsubscribe send a mail to [email protected]

Reply via email to