[Digikam-devel] [Bug 185265] New: digikam constantly using some CPU in a poll loop due a timeout

Roman Fietze rfkd at fietze-home.de
Sun Feb 22 18:36:31 GMT 2009


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

           Summary: digikam constantly using some CPU in a poll loop due a
                    timeout
           Product: digikam
           Version: 0.10.0-rc2
          Platform: SuSE RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: digikam-devel at kde.org
        ReportedBy: rfkd at fietze-home.de


Version:           0.10.0-rc2 (using KDE 4.2.0)
OS:                Linux
Installed from:    SuSE RPMs

Not really a "problem", but on my box digikam constantly uses 3-4% CPU doing
the following (not yet knowing where the socket on fd 7 is connected to):

19:30:10.126461 clock_gettime(CLOCK_MONOTONIC, {19813, 484402342}) = 0
19:30:10.126781 read(7, 0x839c12c, 4096) = -1 EAGAIN (Resource temporarily
unavailable)
19:30:10.127067 clock_gettime(CLOCK_MONOTONIC, {19813, 484971193}) = 0
19:30:10.127384 clock_gettime(CLOCK_MONOTONIC, {19813, 485290769}) = 0
19:30:10.127671 clock_gettime(CLOCK_MONOTONIC, {19813, 485580140}) = 0
19:30:10.127946 clock_gettime(CLOCK_MONOTONIC, {19813, 485852554}) = 0
19:30:10.128213 read(7, 0x839c12c, 4096) = -1 EAGAIN (Resource temporarily
unavailable)
19:30:10.128488 poll([{fd=3, events=POLLIN}, {fd=8, events=POLLIN}, {fd=7,
events=POLLIN}, {fd=9, events=POLLIN}, {fd=10, events=POLLIN}, {fd=13,
events=POLLIN}], 6, 195) = 0 (Timeout)
19:30:10.326444 clock_gettime(CLOCK_MONOTONIC, {19813, 684371803}) = 0
19:30:10.326747 read(7, 0x839c12c, 4096) = -1 EAGAIN (Resource temporarily
unavailable)
19:30:10.327032 clock_gettime(CLOCK_MONOTONIC, {19813, 684936847}) = 0
19:30:10.327341 clock_gettime(CLOCK_MONOTONIC, {19813, 685250711}) = 0
19:30:10.327630 clock_gettime(CLOCK_MONOTONIC, {19813, 685535629}) = 0
19:30:10.327902 clock_gettime(CLOCK_MONOTONIC, {19813, 685810948}) = 0
19:30:10.328171 read(7, 0x839c12c, 4096) = -1 EAGAIN (Resource temporarily
unavailable)
19:30:10.328444 poll([{fd=3, events=POLLIN}, {fd=8, events=POLLIN}, {fd=7,
events=POLLIN}, {fd=9, events=POLLIN}, {fd=10, events=POLLIN}, {fd=13,
events=POLLIN}], 6, 195) = 0 (Timeout)

This is a 2x500MHz SMP box. I would assume when using digikam on something
small as a netbook, or multiple times on an application server (at home I use
this SMP box for up to three desktops), this should or could be reduced.

Therefore I rated this an enhancement, not really a bug.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list