https://bugs.kde.org/show_bug.cgi?id=395241

--- Comment #28 from Michael Moore <stuporg...@gmail.com> ---
> Can you provide the specs of your system?  How fast is the CPU, what kind of 
> storage (local SSD, network share, etc...), and probably most importantly, 
> how much memory do you have?

* 8 core AMD Ryzen 7 5700G, max speed  4.6 GHz
* 64GB RAM 
* Photos are on a local NVME SSD (WD Blue SN580 2TB)
* MariaDB is on a different local NVME SSD, along with the rest of the system
install (Intel SSDPEKNW010T8)

I am running Debian Trixie/Testing, and using the digiKam 8.5 AppImage. 

> The face thumbnail is generated from the original image when the face is 
> detected in the scan.  The thumbnail image is then saved to the thumbnail DB. 
>  We also have a thumbnail caching service in digikam that keeps a portion of 
> the thumbnails in memory.  

I don't think I'm seeing this behavior. 

I made a screen recording to show it. You may have to watch in 4k to see all
the text clearly. 

https://www.youtube.com/watch?v=MwQCRO-9ujc

In the video I have 4 terminals open: 

1 with a MariaDB connection to the digikam_thumbs database. 
1 with iotop sorted by disk read activity, and one with iotop sorted by disk
write activity.
The last terminal has htop running to show RAM and CPU usage. 

I open digiKam. 
It starts on the People tab, with my face selected. All thumbnails load quickly
I wait until it says "No active process" again and then run "SELECT COUNT(*)
FROM Thumbnails" in the terminal. 
We start with 500854 thumbnails

I page down by clicking in the scroll bar, below the scroll handle. 
Some thumbs load instantly, others take some seconds to load. 
During this time you can see that perl is running exiftool quite a lot and
mariadb is doing quite a lot of writing. Both of these processes stop when all
thumbnails have been loaded. 

I repeat the page down process a few times. 

On the last page down I rapidly re-run the "SELECT COUNT(*)" query and we see
the number of thumbnails increasing. Once the thumbs are all loaded, the count
stabilizes at 501006. 


Maybe I'm looking at the wrong things, but to me it looks like the thumbnails
are being generated when they are first viewed, not when the faces were
detected.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to