Hi All,
I am trying to troubleshoot cache reading speed in full screen
Darktable 4.8.1 running from flatpak
System info is below
OS: Pop!_OS 22.04 LTS x86_64
Host: Serval WS serw12
Kernel: 6.9.3-76060903-generic
Uptime: 21 mins
Packages: 3189 (dpkg), 86 (flatpak)
Shell: bash 5.1.16
Resolution: 2560x1440
DE: GNOME
WM: Mutter
WM Theme: Pop
Theme: Pop [GTK2/3]
Icons: Pop [GTK2/3]
Terminal: gnome-terminal
CPU: AMD Ryzen 9 3900 (24) @ 3.100GHz
GPU: NVIDIA GeForce RTX 2070 Mobile / Max-Q Refresh
Memory: 4342MiB / 64194MiB
The issue is:
When I use full screen preview in light table navigating to the next image takes a few seconds. For some reason I am observing it more in a non processed images. I don’t think I can observe it with processed images.
I made sure that cache is generated up to level 5 for all images. Then tried to assess the performance.
flatpak run org.darktable.Darktable -d cache -d perf -d verbose
The closest that I am getting to is that sometimes the system switches to CPU - line 83.4182
81.9134 [mipmap_cache] grab mip 5 for image 218987 from disk cache
81.9149 [mipmap_cache] thumbs fill 712.82/4012.16 MB (17.77%)
81.9149 [mipmap_cache] float fill 0/16 slots (0.00%)
81.9149 [mipmap_cache] full fill 2/16 slots (12.50%)
81.9149 [mipmap_cache] level | near match | miss | stand-in | fetches | total rq
81.9149 [mipmap_cache] thumb | 52.38% | 35.03% | 100.00% | 0.00% | 100.00%
81.9149 [mipmap_cache] float | -nan% | -nan% | 0.00% | 0.00% | 0.00%
81.9149 [mipmap_cache] full | -nan% | -nan% | 0.00% | 100.00% | 0.00%
81.9369 [mipmap_cache] grab mip 5 for image 218988 from disk cache
83.4182 [dt_dev_load_raw] loading the image. took 1.499 secs (0.612 CPU)
83.5203 [mipmap_cache] thumbs fill 728.45/4012.16 MB (18.16%)
83.5203 [mipmap_cache] float fill 0/16 slots (0.00%)
83.5203 [mipmap_cache] full fill 3/16 slots (18.75%)
83.5203 [mipmap_cache] level | near match | miss | stand-in | fetches | total rq
83.5203 [mipmap_cache] thumb | 52.20% | 34.92% | 100.00% | 0.00% | 100.00%
83.5203 [mipmap_cache] float | -nan% | -nan% | 0.00% | 0.00% | 0.00%
83.5203 [mipmap_cache] full | -nan% | -nan% | 0.00% | 100.00% | 0.00%
83.5481 [mipmap_cache] grab mip 5 for image 218989 from disk cache
83.5497 [mipmap_cache] thumbs fill 744.07/4012.16 MB (18.55%)
83.5497 [mipmap_cache] float fill 0/16 slots (0.00%)
83.5497 [mipmap_cache] full fill 3/16 slots (18.75%)
83.5497 [mipmap_cache] level | near match | miss | stand-in | fetches | total rq
83.5497 [mipmap_cache] thumb | 52.20% | 34.92% | 100.00% | 0.00% | 100.00%
83.5497 [mipmap_cache] float | -nan% | -nan% | 0.00% | 0.00% | 0.00%
83.5497 [mipmap_cache] full | -nan% | -nan% | 0.00% | 100.00% | 0.00%
I tried a second time by changing the view to 1 up (not full screen) - the system does not appear to have issues with level 4 images. As soon as I switched to full screen - again line 73.6180 - tries to use CPU
61.2670 [mipmap_cache] grab mip 4 for image 219096 from disk cache
61.3083 [mipmap_cache] grab mip 4 for image 219097 from disk cache
61.3471 [mipmap_cache] grab mip 4 for image 219098 from disk cache
61.4536 [mipmap_cache] grab mip 4 for image 219099 from disk cache
61.9182 [mipmap_cache] grab mip 4 for image 219100 from disk cache
61.9491 [mipmap_cache] grab mip 4 for image 219101 from disk cache
62.0062 [mipmap_cache] grab mip 4 for image 219102 from disk cache
62.1014 [mipmap_cache] grab mip 4 for image 219103 from disk cache
62.2291 [mipmap_cache] grab mip 4 for image 219104 from disk cache
62.2749 [mipmap_cache] grab mip 4 for image 219105 from disk cache
62.8387 [mipmap_cache] grab mip 4 for image 219106 from disk cache
62.8609 [mipmap_cache] grab mip 4 for image 219107 from disk cache
62.9012 [mipmap_cache] grab mip 4 for image 219108 from disk cache
62.9570 [mipmap_cache] grab mip 4 for image 219109 from disk cache
63.0686 [mipmap_cache] grab mip 4 for image 219110 from disk cache
66.1532 [mipmap_cache] grab mip 4 for image 219083 from disk cache
71.7992 [mipmap_cache] thumbs fill 1037.12/4012.16 MB (25.85%)
71.7993 [mipmap_cache] float fill 0/16 slots (0.00%)
71.7993 [mipmap_cache] full fill 0/16 slots (0.00%)
71.7993 [mipmap_cache] level | near match | miss | stand-in | fetches | total rq
71.7993 [mipmap_cache] thumb | 57.00% | 57.00% | -nan% | -nan% | 100.00%
71.7993 [mipmap_cache] float | -nan% | -nan% | -nan% | -nan% | 0.00%
71.7993 [mipmap_cache] full | -nan% | -nan% | -nan% | -nan% | 0.00%
71.8326 [mipmap_cache] grab mip 5 for image 219084 from disk cache
71.8574 [mipmap_cache] grab mip 5 for image 219082 from disk cache
73.6180 [dt_dev_load_raw] loading the image. took 1.804 secs (0.682 CPU)
73.7491 [mipmap_cache] grab mip 5 for image 219083 from disk cache
78.3090 [thumb crawler] max_mip=5, 0 thumbs updated, 0 not found, all done.
81.3173 [thumb crawler] max_mip=5, 0 thumbs updated, 0 not found, all done.
84.3247 [thumb crawler] max_mip=5, 0 thumbs updated, 0 not found, all done.
87.0860 [mipmap_cache] thumbs fill 1083.99/4012.16 MB (27.02%)
87.0860 [mipmap_cache] float fill 0/16 slots (0.00%)
87.0860 [mipmap_cache] full fill 1/16 slots (6.25%)
87.0860 [mipmap_cache] level | near match | miss | stand-in | fetches | total rq
87.0861 [mipmap_cache] thumb | 56.94% | 56.46% | 100.00% | 0.00% | 100.00%
87.0861 [mipmap_cache] float | -nan% | -nan% | 0.00% | 0.00% | 0.00%
87.0861 [mipmap_cache] full | -nan% | -nan% | 0.00% | 100.00% | 0.00%
I did search the forum and stumbled on the following thread
These are my changes to darktablerc
From
opencl_device_priority=*/!0,*/*/*
to
opencl_device_priority=+0/*/+0/*/*
from
opencl_mandatory_timeout=200
to
opencl_mandatory_timeout=20000
from
resource_large=700 16 128 900
to
resource_large=700 64 128 900
Including darktablerc here
darktablerc.zip (14.0 KB)
The changes did improve the overall experience but only with the processing window (dartkable). Also - the changes were done before capturing the above messages.
Can you help me please? This issue has been around for a while for me and I am not sure what else to do.
I am mostly struggling with it when I have a very big amount of pictures to sort (some times a few thousands).