By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 2461 - KGet uses 100% of CPU
Summary: KGet uses 100% of CPU
Status: NEW
Alias: None
Product: TDE
Classification: Unclassified
Component: tdenetwork (show other bugs)
Version: 3.5.13.x [Trinity]
Hardware: amd64 Debian Wheezy
: P5 normal
Assignee: Timothy Pearson
URL:
Depends on:
Blocks:
 
Reported: 2015-06-16 01:08 CDT by Jan Stolarek
Modified: 2018-05-27 11:11 CDT (History)
4 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Stolarek 2015-06-16 01:08:25 CDT
It often happens that during downloading KGet starts using 100% of CPU power. Pausing all the downloads does not help. I'm experiencing the problem on one machine with TDE 3.5.13.2 and on a different machine that still uses KDE 3.5, so the problem has been present for quite long.
Comment 1 Timothy Pearson 2015-06-16 02:10:06 CDT
It would greatly help troubleshooting if you could generate a backtrace of kget while it is using 100% of your CPU.  You will need the tdenetwork-trinity debug symbols installed, then execute:
gdb --pid <pid of the kget process>
thread apply all bt

Please post the results here for analysis; we can then work on resolving the issue.

Thanks!
Comment 2 Jan Stolarek 2015-06-17 04:24:33 CDT
I'm trying to reproduce the problem but can't. One possibility is that I exaggerated by saying this happens often. Or is there a chance that installing debugging libraries somehow makes the problem go away?
Comment 3 Alex Couture 2015-06-28 08:26:41 CDT
I confirm that the CPU use is quite high at 25-40% on my Asus EEE X101CH with Ubuntu 14.10 and TDE R14 nighlty build. I'll try to give debug info.

-Alexandre
Comment 4 Alex Couture 2015-06-28 08:37:44 CDT
Is there something interesting in this? It seems quite short:


[sudo] password for alexandre:
GNU gdb (Ubuntu 7.8-1ubuntu4) 7.8.0.20141001-cvs
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 3579
Reading symbols from /opt/trinity/bin/kget...(no debugging symbols found)...done.
Reading symbols from /opt/trinity/lib/libtdeio.so.14...Reading symbols from /usr/lib/debug//opt/trinity/lib/libtdeio.so.14.0.0...done.
done.
Loaded symbols for /opt/trinity/lib/libtdeio.so.14
Reading symbols from /usr/lib/i386-linux-gnu/libXext.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libXext.so.6
Reading symbols from /opt/trinity/lib/libtdeui.so.14...Reading symbols from /usr/lib/debug//opt/trinity/lib/libtdeui.so.14.0.0...done.
done.
Loaded symbols for /opt/trinity/lib/libtdeui.so.14
Reading symbols from /opt/trinity/lib/libtdecore.so.14...Reading symbols from /usr/lib/debug//opt/trinity/lib/libtdecore.so.14.0.0...done.
done.
Loaded symbols for /opt/trinity/lib/libtdecore.so.14
Reading symbols from /opt/trinity/lib/libDCOP.so.14...Reading symbols from /usr/lib/debug//opt/trinity/lib/libDCOP.so.14.0.0...done.
done.
Loaded symbols for /opt/trinity/lib/libDCOP.so.14
Reading symbols from /usr/lib/libtqt-mt.so.3...Reading symbols from /usr/lib/debug//usr/lib/libtqt-mt.so.3.5.0...done.
done.
Loaded symbols for /usr/lib/libtqt-mt.so.3
Reading symbols from /usr/lib/i386-linux-gnu/libstdc++.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libstdc++.so.6
Reading symbols from /lib/i386-linux-gnu/libc.so.6...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/libc-2.19.so...done.
done.
Loaded symbols for /lib/i386-linux-gnu/libc.so.6
Reading symbols from /lib/i386-linux-gnu/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/i386-linux-gnu/libgcc_s.so.1
Reading symbols from /opt/trinity/lib/libtdesu.so.14...Reading symbols from /usr/lib/debug//opt/trinity/lib/libtdesu.so.14.0.0...done.
done.
Loaded symbols for /opt/trinity/lib/libtdesu.so.14
Reading symbols from /opt/trinity/lib/libtdewalletclient.so.1...Reading symbols from /usr/lib/debug//opt/trinity/lib/libtdewalletclient.so.1.0.1...done.
done.
Loaded symbols for /opt/trinity/lib/libtdewalletclient.so.1
Reading symbols from /usr/lib/libr.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libr.so.0
Reading symbols from /lib/i386-linux-gnu/libacl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/i386-linux-gnu/libacl.so.1
Reading symbols from /usr/lib/i386-linux-gnu/libmagic.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libmagic.so.1
Reading symbols from /lib/i386-linux-gnu/libdl.so.2...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/libdl-2.19.so...done.
done.
Loaded symbols for /lib/i386-linux-gnu/libdl.so.2
Reading symbols from /usr/lib/i386-linux-gnu/libX11.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libX11.so.6
Reading symbols from /lib/i386-linux-gnu/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/i386-linux-gnu/libz.so.1
Reading symbols from /usr/lib/i386-linux-gnu/libfontconfig.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libfontconfig.so.1
Reading symbols from /opt/trinity/lib/libtdefx.so.14...Reading symbols from /usr/lib/debug//opt/trinity/lib/libtdefx.so.14.0.0...done.
done.
Loaded symbols for /opt/trinity/lib/libtdefx.so.14
Reading symbols from /usr/lib/libtqt.so.4...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libtqt.so.4
Reading symbols from /lib/i386-linux-gnu/libm.so.6...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/libm-2.19.so...done.
done.
Loaded symbols for /lib/i386-linux-gnu/libm.so.6
Reading symbols from /usr/lib/i386-linux-gnu/libidn.so.11...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libidn.so.11
Reading symbols from /usr/lib/i386-linux-gnu/libXcomposite.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libXcomposite.so.1
Reading symbols from /usr/lib/i386-linux-gnu/libICE.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libICE.so.6
Reading symbols from /usr/lib/i386-linux-gnu/libSM.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libSM.so.6
Reading symbols from /lib/i386-linux-gnu/libudev.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/i386-linux-gnu/libudev.so.1
Reading symbols from /usr/lib/libdbus-1-tqt.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libdbus-1-tqt.so.0
Reading symbols from /usr/lib/libart_lgpl_2.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libart_lgpl_2.so.2
Reading symbols from /usr/lib/i386-linux-gnu/libXrender.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libXrender.so.1
Reading symbols from /lib/i386-linux-gnu/libuuid.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/i386-linux-gnu/libuuid.so.1
Reading symbols from /usr/lib/i386-linux-gnu/libaudio.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libaudio.so.2
Reading symbols from /usr/lib/i386-linux-gnu/libjpeg.so.8...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libjpeg.so.8
Reading symbols from /lib/i386-linux-gnu/libpng12.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/i386-linux-gnu/libpng12.so.0
Reading symbols from /lib/i386-linux-gnu/libglib-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/i386-linux-gnu/libglib-2.0.so.0
Reading symbols from /usr/lib/i386-linux-gnu/libXi.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libXi.so.6
Reading symbols from /usr/lib/i386-linux-gnu/libXrandr.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libXrandr.so.2
Reading symbols from /usr/lib/i386-linux-gnu/libXcursor.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libXcursor.so.1
Reading symbols from /usr/lib/i386-linux-gnu/libXinerama.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libXinerama.so.1
Reading symbols from /usr/lib/i386-linux-gnu/libXft.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libXft.so.2
Reading symbols from /usr/lib/i386-linux-gnu/libfreetype.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libfreetype.so.6
Reading symbols from /lib/i386-linux-gnu/libpthread.so.0...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/libpthread-2.19.so...done.
done.
[New LWP 3596]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
Loaded symbols for /lib/i386-linux-gnu/libpthread.so.0
Reading symbols from /lib/ld-linux.so.2...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/ld-2.19.so...done.
done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libbfd-2.24.90-system.20141014.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libbfd-2.24.90-system.20141014.so
Reading symbols from /lib/i386-linux-gnu/libattr.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/i386-linux-gnu/libattr.so.1
Reading symbols from /usr/lib/i386-linux-gnu/libxcb.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libxcb.so.1
Reading symbols from /lib/i386-linux-gnu/libexpat.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/i386-linux-gnu/libexpat.so.1
Reading symbols from /lib/i386-linux-gnu/libselinux.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/i386-linux-gnu/libselinux.so.1
Reading symbols from /lib/i386-linux-gnu/librt.so.1...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/librt-2.19.so...done.
done.
Loaded symbols for /lib/i386-linux-gnu/librt.so.1
Reading symbols from /lib/i386-linux-gnu/libdbus-1.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/i386-linux-gnu/libdbus-1.so.3
Reading symbols from /usr/lib/i386-linux-gnu/libXt.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libXt.so.6
Reading symbols from /usr/lib/i386-linux-gnu/libXau.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libXau.so.6
Reading symbols from /lib/i386-linux-gnu/libpcre.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/i386-linux-gnu/libpcre.so.3
Reading symbols from /usr/lib/i386-linux-gnu/libXfixes.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libXfixes.so.3
Reading symbols from /usr/lib/i386-linux-gnu/libXdmcp.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libXdmcp.so.6
Reading symbols from /lib/i386-linux-gnu/libnss_compat.so.2...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/libnss_compat-2.19.so...done.
done.
Loaded symbols for /lib/i386-linux-gnu/libnss_compat.so.2
Reading symbols from /lib/i386-linux-gnu/libnsl.so.1...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/libnsl-2.19.so...done.
done.
Loaded symbols for /lib/i386-linux-gnu/libnsl.so.1
Reading symbols from /lib/i386-linux-gnu/libnss_nis.so.2...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/libnss_nis-2.19.so...done.
done.
Loaded symbols for /lib/i386-linux-gnu/libnss_nis.so.2
Reading symbols from /lib/i386-linux-gnu/libnss_files.so.2...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/libnss_files-2.19.so...done.
done.
Loaded symbols for /lib/i386-linux-gnu/libnss_files.so.2
Reading symbols from /usr/lib/tqt3/plugins/imageformats/libqmng.so...Reading symbols from /usr/lib/debug//usr/lib/tqt3/plugins/imageformats/libqmng.so...done.
done.
Loaded symbols for /usr/lib/tqt3/plugins/imageformats/libqmng.so
Reading symbols from /usr/lib/i386-linux-gnu/libmng.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libmng.so.2
Reading symbols from /usr/lib/i386-linux-gnu/liblcms2.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/liblcms2.so.2
Reading symbols from /opt/trinity/lib/trinity/plugins/styles/qtcurve.so...Reading symbols from /usr/lib/debug//opt/trinity/lib/trinity/plugins/styles/qtcurve.so...done.
done.
Loaded symbols for /opt/trinity/lib/trinity/plugins/styles/qtcurve.so
Reading symbols from /usr/lib/tqt3/plugins/inputmethods/libqimsw-multi.so...Reading symbols from /usr/lib/debug//usr/lib/tqt3/plugins/inputmethods/libqimsw-multi.so...done.
done.
Loaded symbols for /usr/lib/tqt3/plugins/inputmethods/libqimsw-multi.so
Reading symbols from /usr/lib/tqt3/plugins/inputmethods/libqimsw-none.so...Reading symbols from /usr/lib/debug//usr/lib/tqt3/plugins/inputmethods/libqimsw-none.so...done.
done.
Loaded symbols for /usr/lib/tqt3/plugins/inputmethods/libqimsw-none.so
Reading symbols from /usr/lib/tqt3/plugins/inputmethods/libqsimple.so...Reading symbols from /usr/lib/debug//usr/lib/tqt3/plugins/inputmethods/libqsimple.so...done.
done.
Loaded symbols for /usr/lib/tqt3/plugins/inputmethods/libqsimple.so
Reading symbols from /usr/lib/tqt3/plugins/inputmethods/libqxim.so...Reading symbols from /usr/lib/debug//usr/lib/tqt3/plugins/inputmethods/libqxim.so...done.
done.
Loaded symbols for /usr/lib/tqt3/plugins/inputmethods/libqxim.so
pthread_mutex_lock (mutex=0x8cbd80c) at forward.c:192
192     forward.c: No such file or directory.
(gdb) thread apply all bt

Thread 2 (Thread 0xb4ffbb40 (LWP 3596)):
#0  0xb76fdc80 in __kernel_vsyscall ()
#1  0xb5a07cac in pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0xb61680bc in __pthread_cond_wait (cond=0x8cc8b20,
    mutex=0xb6b2c364 <TQWaitCondition::wait(unsigned long)::mutex>)
    at forward.c:149
#3  0xb677b0fc in TQWaitCondition::wait (this=0x8cbb48c, time=4294967295)
    at tools/qwaitcondition_unix.cpp:245
#4  0x080693aa in Slave::run() ()
#5  0xb64c2ee0 in TQThreadInstance::start (_arg=0x8cc39a4)
    at kernel/qthread_unix.cpp:142
#6  0xb5b7b0ba in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#7  0xb5b248f4 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#8  0xb5a03f16 in start_thread (arg=0xb4ffbb40) at pthread_create.c:309
#9  0xb615b11e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 1 (Thread 0xb57027c0 (LWP 3579)):
#0  pthread_mutex_lock (mutex=0x8cbd80c) at forward.c:192
#1  0xb677a55e in TQRecursiveMutexPrivate::lock (this=0x8cbd808)
    at tools/qmutex_unix.cpp:251
---Type <return> to continue, or q <return> to quit---
#2  0xb677a9e0 in TQMutex::lock (this=0x8d65410) at tools/qmutex_unix.cpp:479
#3  0xb6523e00 in TQObject::activate_signal (this=0x8d78360, clist=0x8d26308,
    o=0xbfa7854c) at kernel/qobject.cpp:2807
#4  0xb65242f7 in TQObject::activate_signal (this=0x8d78360, signal=148093536,
    param=18) at kernel/qobject.cpp:2963
#5  0xb68144e7 in TQSocketNotifier::activated (this=0x8d78360, t0=18)
    at .moc/release-shared-mt/moc_ntqsocketnotifier.cpp:94
#6  0xb6542c6c in TQSocketNotifier::event (this=0x8d78360, e=0xbfa787a0)
    at kernel/qsocketnotifier.cpp:261
#7  0xb64c9b1b in TQApplication::internalNotify (this=0x8cbd80c,
    receiver=0x8d78360, e=0xbfa787a0) at kernel/qapplication.cpp:2883
#8  0xb64ca089 in TQApplication::notify (this=0xbfa78a2c, receiver=0x8d78360,
    e=0xbfa787a0) at kernel/qapplication.cpp:2726
#9  0xb6c1860d in TDEApplication::notify (this=0xbfa78a2c, receiver=0x8d78360,
    event=0xbfa787a0)
    at /build/buildd/tdelibs-trinity-14.1.0~r1256/tdecore/tdeapplication.cpp:660
#10 0xb64c9967 in TQApplication::sendEvent (receiver=0x8d78360,
    event=0xbfa787a0) at kernel/qapplication.cpp:2458
#11 0xb64bfafd in TQEventLoop::activateSocketNotifiers (this=0x8ad7620)
    at kernel/qeventloop_unix_glib.cpp:735
#12 0xb64ab466 in TQEventLoop::gsourceDispatch (this=0x8ad7620, gs=0x8ad6ba0)
    at kernel/qeventloop_x11_glib.cpp:587
---Type <return> to continue, or q <return> to quit---
#13 0xb64ab4ea in qt_gsource_dispatch (source=0x8ad6ba0, callback=0x0,
    user_data=0x0) at kernel/qeventloop_x11_glib.cpp:123
#14 0xb5b53c04 in g_main_context_dispatch ()
   from /lib/i386-linux-gnu/libglib-2.0.so.0
#15 0xb5b53f29 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#16 0xb5b53ff6 in g_main_context_iteration ()
   from /lib/i386-linux-gnu/libglib-2.0.so.0
#17 0xb64aa981 in TQEventLoop::processEvents (this=0x8ad7620, flags=4)
    at kernel/qeventloop_x11_glib.cpp:279
#18 0xb64dee5b in TQEventLoop::enterLoop (this=0x8ad7620)
    at kernel/qeventloop.cpp:227
#19 0xb64dede4 in TQEventLoop::exec (this=0x8ad7620)
    at kernel/qeventloop.cpp:174
#20 0xb64ca8dd in TQApplication::exec (this=0xbfa78a2c)
    at kernel/qapplication.cpp:3015
#21 0x080687bf in main ()
(gdb)        

Hope it helps!
-Alexandre
Comment 5 Jan Stolarek 2015-06-28 08:41:38 CDT
During normal operation KGet uses around 25%-40% of CPU on my machine as well, so I wouldn't say that's unusual. What happens when you pause all the downloads? The way this bug manifests is that the CPU usage stays at 100%.

Please post logs by putting them into a file and attaching that file to a ticket - otherwise the discussion is extremely hard to read.
Comment 6 Alex Couture 2015-06-28 08:47:28 CDT
Hi,

When on pause, I get 0.3% CPU use in kget. 25-40% CPU use to download a file on a moder computer is quite high.

-Alexandre