[Digikam-devel] [Bug 150938] New: Album thumbnail view very slow on NFS

Bengt Ahlgren bengt.ahlgren at sics.se
Wed Oct 17 15:22:51 BST 2007

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
           Summary: Album thumbnail view very slow on NFS
           Product: digikam
           Version: 0.8.1
          Platform: FreeBSD Ports
        OS/Version: FreeBSD
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: digikam-devel kde org
        ReportedBy: bengt.ahlgren sics se

Version:           0.8.1 (using KDE KDE 3.5.8)
Installed from:    FreeBSD Ports
OS:                FreeBSD

Displaying and scrolling the thumbnails in an album is very slow when the album is residing on NFS.

To investigate this problem, I created an album with only two pictures,
and made the window small enough to not fit both pictures simultaneously.
I then ran ktrace on digikam, and scrolled the window from top to bottom
once. I found out this from the ktrace:

- it calls access(2) on digikam3.db-journal 27 times (just to
  find out that the file did not exist)
- it reads digikam3.db 27 times
- it opens files /var/tmp/sqlite_XXXXXXXXXXXX 18 times
- it calls fcntl(2) on digikam3.db with F_SETLCK 108 times

When the album is on an NFS filesystem, most of the above operations
require an RPC to the server, highlighting the performance problem.

It seems to me that digikam just makes a lot of unnecessary work!

(This problem might be the same as in Bug 135845.)

More information about the Digikam-devel mailing list