Since a day or two, KTorrent/libktorrent from master consumes 100% cpu, even when all downloads are stalled.
Could you run ktorrent under perf ? perf record /usr/bin/ktorrent --nofork A file named perf.data will be generated, post that here.
Letting ktorrent run for 1 minute with five torrents running, all stalled: http://skulpture.maxiom.de/playground/perf.data.xz
Could you run perf report -i perf.data ? I don't have the same versions of libraries as you, so running that on my system gives me rather useless results.
Git commit e3f22c5a9a9fc0a71ef4be21da4a0b293d95123f by Joris Guisson. Committed on 06/10/2011 at 19:32. Pushed by guisson into branch 'master'. Fix bug causing 100% CPU usage in the packet sending code when there are no upload limits BUG: 282624 M +1 -1 src/download/packet.cpp http://commits.kde.org/libktorrent/e3f22c5a9a9fc0a71ef4be21da4a0b293d95123f