[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 101524] New: amarokapp taking 95% of CPU time constantly
From:       Jani Huhtanen <jani.huhtanen () tut ! fi>
Date:       2005-03-14 22:03:14
Message-ID: 20050314230311.101524.jani.huhtanen () tut ! fi
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=101524         
           Summary: amarokapp taking 95% of CPU time constantly
           Product: amarok
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: amarok-bugs-dist lists sourceforge net
        ReportedBy: jani.huhtanen tut fi


Version:           amaroK 1.2.2 official source distribution (using KDE KDE 3.3.0)
Installed from:    Compiled From Sources
Compiler:          gcc 3.4.2 cflags and cxxflags = "-O3 -march=athlon \
                -funit-at-a-time -pipe"
OS:                Linux

Hi!

Just downloaded and compiled amarok 1.2.2. I find amarok promising but the amount of \
cpu time it's taking is _way_ too much to be normal.

Some facts:

- amaroK 1.2.2, compiled with gcc 3.4.2 from released source package with following \
configure: CFLAGS="-O3 -march=athlon -funit-at-a-time -pipe" CXXFLAGS=$CFLAGS \
./configure

- audio engine: gstreamer 0.8.9 also compiled with gcc 3.4.2 and with similar config \
(that goes with the plugins too).

- gstreamer using alsasink

- linux 2.6.10 with cko1 pathcset

- machine: Athlon 800Mhz with 1Gb of mem

- CPU usage of amarokapp process aprox. 95%, while being idle (ie. only playlist \
visible, no music playing). Really nothing changes the situation. I can play normally \
and nothing crashes, but even when I just start the app it takes up all the CPU time.

- OProfile says that most time in amarokapp is taking BoomAnalyzer::analyze, but I \
have some doubts about my skills in using oprof.. so here's the top 10 for amarokapp:

The first sample (and percentage) is CPU CLK samples taken by OProfile. 
          
vma      samples % samples% samples%  linenr info         app name      symbol name
081c8340 166 0.0784 0 0 0 0 (no location information) amarokapp \
BoomAnalyzer::analyze(std::vector const&)

0822a060 126 0.0595 0 0 0 0 (no location information) amarokapp sqlite3VdbeExec

080765b0 121 0.0571 0 0 0 0 (no location information) amarokapp anonymous symbol from \
section .plt

081f9600 34 0.0161 0 0 0 0 (no location information) amarokapp parseCellPtr

081a49ce 32 0.0151 0 0 0 0 (no location information) amarokapp __i686.get_pc_thunk.bx

081fd630 26 0.0123 0 0 0 0 (no location information) amarokapp sqlite3BtreeMoveto

081ca990 24 0.0113 0 0 0 0 (no location information) amarokapp Analyzer::Base::demo()

081fbaf0 20 0.0094 0 0 0 0 (no location information) amarokapp sqlite3BtreeKeySize

081ca100 18 0.0085 0 0 0 0 (no location information) amarokapp \
Analyzer::Base2D::qt_invoke(int, QUObject*)

081fc460 18 0.0085 0 0 0 0 (no location information) amarokapp fetchPayload

The most of the time is spent in libqt_mt.so.3.3.3. Amarokapp must be calling \
something pretty often there. Perhaps from the BoomAnalyzer::analyzer? Oh and both \
profiles were taken while nothing was playing.

I tried different audio engines.. nothing. There's nothing in any preferences that \
helps. Is this a bug or is amarok just really picky about optimization flags, becaus \
surely it isn't this hungry for CPU?

-- Jani Huhtanen 
-- Tampere University of Technology
-- Finland


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic