Bug 161093 - gam_server use 40% CPU
Summary: gam_server use 40% CPU
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Portability-Runtime (show other bugs)
Version: 0.9.4
Platform: Mandriva RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-20 23:38 UTC by CROUZILLAT Sylvain
Modified: 2017-07-25 19:22 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.10.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description CROUZILLAT Sylvain 2008-04-20 23:38:03 UTC
Version:            (using KDE 3.5.9)
Installed from:    Mandriva RPMs
OS:                Linux

i have compile digikam 0.9.4 beta 3

when digikam is start and when i do nothing in it.
the process gam_server use more than 40% CPU.

when i close digikam gam_server stop using CPU.
Comment 1 caulier.gilles 2008-04-21 06:01:36 UTC
digikam do not use gam stuff directly. it's KDE Library...

Gilles Caulier
Comment 2 CROUZILLAT Sylvain 2008-04-22 16:12:06 UTC
Ok but this bug arrive just when digikam run.

note : I have the same sort off bug white NTFS-3G driver when my photos was on an NTFS partition. NTFS-3G use More than 40% CPU when digikam RUN.

i have the NTFS bug with Digikam mandriva RPM 0.9.2, 0.9.3, and compiled version 9.4 beta3
i have the gam_server bug only with the 0.9.4 beta3 compiled vertion.
 

Comment 3 caulier.gilles 2008-04-22 16:14:46 UTC
Sylvain,

Try to use another file system to test. here i use reiserfs without any problem.

Gilles
Comment 4 CROUZILLAT Sylvain 2008-04-24 14:14:37 UTC
I need to put my photos on an NTFS or FAT32 partition to développe Raw of my D300 under Nikon capture NX

at the beginin i use an NTFS partion with Digikam 0.9.2 to solve the problème i format my partition in FAT32 and it work whell until i compile digikam 0.9.4 beta3

i have no problème on this partion with other applications.
so it is certainly à digikam bug on request system files.
Comment 5 CROUZILLAT Sylvain 2008-04-26 18:32:30 UTC
i try with the SVN 0.9.4 beta4 version and i have always the same prolème

:-(
Comment 6 CROUZILLAT Sylvain 2008-05-05 18:19:30 UTC
i try with the SVN 0.9.4 beta5 and i have always the same problème

what digikam doing in background to use gam_server when i do nothing in digikam ?
Comment 7 caulier.gilles 2008-05-05 18:31:27 UTC
Sylvain,

digiKam scan albums to find new/deleted items and records scanning results to database. 

digiKam code do not use gam_server... So i don't know why you have a loop at this time.

Are you tried another FS than M$ stuff to host your photos ? just to check...

Gilles Caulier
Comment 8 CROUZILLAT Sylvain 2008-05-05 19:33:12 UTC
i try with an EXT3 partition and i dont see CPU overload but my partition is too small to test with all my photos.

if i can i only use EXt3 but for use nikon NX i need an NTFS or FAT32 partition.

and with this two FS digikam start cpu overload.
perhaps digikam do a loop to scan new images in folder ?
Comment 9 caulier.gilles 2008-05-05 20:03:43 UTC
Sylvain,

There is no reason to have a loop with M$ FS and not with Linux native one.

The FS is driven in background, by the kernel. Are you Syslog deamon running on your system ? If yes, please check log file as /var/log/messages when you start digiKam with a M$ FS. (tail -f /var/log/messages running as root in a separate console is enough)

Gilles Caulier
Comment 10 CROUZILLAT Sylvain 2008-05-05 21:11:36 UTC
i test  with ntfs and fat32 and no messages in /var/log/message when i run digikam
Comment 11 caulier.gilles 2008-05-25 09:49:27 UTC
Please, look into 

http://bugs.kde.org/show_bug.cgi?id=162535

...and check if way used by Thomas can solve your problem...

Gilles Caulier
Comment 12 CROUZILLAT Sylvain 2008-05-27 10:15:37 UTC
I haven't got fam deamon on my mandriva 2008 spring.

but i download & install "inotify-tools" and "dnotify"
i download the last svn vertion.
i comment the tree line in albummanger.cpp containing "d->dirWatch->addDir"
i compile digikam and now digikam start as speed as road Runner (bip-bip).
every thing work.

the Marcel Wiesweg solution explaine for Thomas Eschenbacher
http://bugs.kde.org/show_bug.cgi?id=162535

solve my two bug i have with digikam
CPU usage over 40% : http://bugs.kde.org/show_bug.cgi?id=161093
and digikam don't start : https://bugs.kde.org/show_bug.cgi?id=156146

Comment 13 caulier.gilles 2008-12-05 21:10:17 UTC
Sylvain, 

Can you test using Mandriva 2008.1 or 2009.0 with digiKam 0.9.4 final release ?

Also, it will be fine to see if this problem exist with KDE4 and digiKam 0.10.0...

Gilles Caulier
Comment 14 CROUZILLAT Sylvain 2009-02-04 23:55:49 UTC
I have made tests with digikam 0.10.0 beta & RC

the probleme is resolved