[Digikam-users] Re: Digikam startup takes ~ 30 hours

Benjamin Harders benjamin at harders.us
Tue May 31 14:15:31 BST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi everyone,

we are still having difficulties with digikam. It did re-index the whole
collection as I described some weeks ago. All database entries were set,
but I still had no digikam that showed up, only that nice splash screen
is "reading database". Having lousy network traffic of about 300 KiB/s
produced by dk I did a strace. It seems that there are a lot of timeouts
and it is searching and testing write access (?) thru the
sub-directories with the thumbnails produced by my NAS for each photo.
These files are owned by root and have chmod 777.

strace -p #:

[...]
select(11, [10], NULL, NULL, {0, 0})    = 0 (Timeout)
write(10, "X\0\1\0c\320\2\0N\0/home/fotos/date/2003-"..., 88) = 88
select(11, [10], NULL, NULL, {0, 0})    = 0 (Timeout)
lstat("/home/fotos/date/2003-10/@eaDir/P1010287.JPG",
{st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
stat("/home/fotos/date/2003-10/@eaDir/P1010287.JPG",
{st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
open("/home/fotos/date/2003-10/@eaDir/P1010287.JPG",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 37
statfs("/home/fotos/date/2003-10/@eaDir/P1010287.JPG",
{f_type="NFS_SUPER_MAGIC", f_bsize=32768, f_blocks=59943779,
f_bfree=46741105, f_bavail=46737905, f_files=121798656,
f_ffree=120667253, f_fsid={0, 0}, f_namelen=255, f_frsize=32768}) = 0
getdents64(37, /* 7 entries */, 32768)  = 288
stat("/home/fotos/date/2003-10/@eaDir/P1010287.JPG/SYNOPHOTO:THUMB_S.jpg",
{st_mode=S_IFREG|0777, st_size=4269, ...}) = 0
stat("/home/fotos/date/2003-10/@eaDir/P1010287.JPG/SYNOPHOTO:THUMB_XL.jpg",
{st_mode=S_IFREG|0777, st_size=263718, ...}) = 0
stat("/home/fotos/date/2003-10/@eaDir/P1010287.JPG/SYNOPHOTO:THUMB_M.jpg",
{st_mode=S_IFREG|0777, st_size=19782, ...}) = 0
stat("/home/fotos/date/2003-10/@eaDir/P1010287.JPG/SYNOPHOTO:THUMB_B.jpg",
{st_mode=S_IFREG|0777, st_size=42461, ...}) = 0
getdents64(37, /* 0 entries */, 32768)  = 0
close(37)                               = 0
stat("/home/fotos/date/2003-10/@eaDir/P1010287.JPG/SYNOPHOTO:THUMB_L.jpg",
{st_mode=S_IFREG|0777, st_size=106866, ...}) = 0
open("/etc/mtab", O_RDONLY)             = 37
fstat(37, {st_mode=S_IFREG|0644, st_size=1275, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7fd15b57b000
read(37, "/dev/sda2 / ext3 rw,acl,user_xat"..., 4096) = 1275
read(37, "", 4096)                      = 0
close(37)                               = 0
munmap(0x7fd15b57b000, 4096)            = 0
lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/fotos", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat("/home/fotos/date", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat("/home/fotos/date/2003-10", {st_mode=S_IFDIR|0777, st_size=4096,
...}) = 0
lstat("/home/fotos/date/2003-10/@eaDir", {st_mode=S_IFDIR|0777,
st_size=4096, ...}) = 0
lstat("/home/fotos/date/2003-10/@eaDir/P1010287.JPG",
{st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
select(11, [10], NULL, NULL, {0, 0})    = 0 (Timeout)
write(10, "X\0\1\0d\320\2\0N\0/home/fotos/date/2003-"..., 88



It goes thru about 2000 files per hour. In one week it might be finished
with all of them.
I would like to understand, what dk is doing all the time.

Any clue or hint?

Thanks again.

Ben
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJN5OnzAAoJEJiq7tQPRElPV/UH/1Gpi+AvO+QV5rzN3ac6h1Ou
30dEZV/hDOUDQ+/v/uNLqrCbQFoiSmPHD65tQFWZlbOAvhtCfkris6qzPRpobZS1
kuyb0ZexMHgRloDWZYpcG1Wbd3pPccO1n1kjMXnjRwUulrZbgRu/2xbZL8MHZSVP
dscc8M4oqzazMXT13V7aP9pfpZkOw3uQDO6EBQmo5Izi1VijAoigajovPBOSKWyO
ceKfudS7D6O0HGSgnmsBKn4gr8Fyh0iMoNP+biPwEkZEyAxXotNuw65jHe1K5pfX
4gAfLp0lihQ0MKgSzRfufv0QuyuD46SC5YfKtwp6GU85AFubZYGXtxMcKR8pAzk=
=15wE
-----END PGP SIGNATURE-----



More information about the Digikam-users mailing list