Registered Member
|
Sorry if this has been posted before:
When I start two instances of KTorrent on the same computer, but different login sessions (there are 2 users using KTorrent concurrently on my desktop), KTorrent will: 1) Run normally at first, with CPU usage < 10% 2) After a while... usually 5-10 minutes, the CPU usage suddenly rockets to 95-100% and stays there i.e. constantly at that value!! 3) So far, I notice this happens even when one of them wasn't downloading or seeding anything. KTorrent is awesome btw. |
Moderator
|
|
Registered Member
|
|
Moderator
|
|
Registered Member
|
Thanks!
Not just excess CPU usage though -- more like maximum CPU usage. I would check for possible infinite loops in the threads. Stopping all downloads/seeds doesn't even reduce the effect, however exiting one of the KTorrent instance restores normal function instantly i.e. <10% CPU usage. I'm using Kubuntu Edgy 6.10 (if that helps). Once I finish my current download, I promise to try to dig up more info about the bug, since I'm able to reproduce it anytime I want. |
Registered Member
|
Test no: 1
Attributes/variables: - Started 2 instances of KTorrent, A and B, under 2 different users. - A was seeding 2 files. - B was not doing anything. Loaded logviewer plugin where all components are set to "ALL". - Both, all plugins except scanfolder and scheduler are loaded and in use. DHT is also enabled. All ports were properly forwarded weren't clashing. Results: - Initially, when CPU usage was normal (<10%), logviewer for B is empty - After about 5-10 minutes, without warning, CPU usage shoots up to 100%. Logviewer output for B is as follows: DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: finding node DHT: starting queued task DHT: starting queued task DHT: starting queued task DHT: starting queued task DHT: starting queued task DHT: starting queued task DHT: got findNode request DHT: starting queued task DHT: got findNode request DHT: got findNode request DHT: got getPeers request Cannot find RPC call Cannot find RPC call DHT: got findNode request Cannot find RPC call DHT: starting queued task Cannot find RPC call Cannot find RPC call Cannot find RPC call Cannot find RPC call Cannot find RPC call Cannot find RPC call Cannot find RPC call Cannot find RPC call Cannot find RPC call Cannot find RPC call Cannot find RPC call Cannot find RPC call Cannot find RPC call DHT: got getPeers request Cannot find RPC call Cannot find RPC call Cannot find RPC call DHT: got findNode request Cannot find RPC call Cannot find RPC call DHT: got findNode request DHT: got findNode request (...goes on) Results (cont'd): - Both clients are still responsive, although general usage becomes slightly sluggish, which was expected. Further action: - Stopped seeding on A (so that neither client is doing anything). No difference. - Closed client B. CPU usage immediately returns to normal. |
Moderator
|
|
Registered Member
|
I was just trying that
Using exactly the same initial state as the first test: - Upon starting up the second KTorrent (B), DHT was immediately disabled (was enabled by default). - A still uses DHT. - 30 minutes later, CPU usage was nominal. - So I re-enabled DHT in B. - 30 minutes later, CPU usage was still nominal. |
Registered Member
|
Test 3:
- Same initial state as first test. - About 10-15 minutes, CPU usage soars to 100% - While in that state, I disabled DHT from the options menu for B. - CPU usage returns to nominal immediately. - Logviewer output for B is as follows: DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: refreshing bucket DHT: finding node DHT: starting queued task DHT: starting queued task DHT: starting queued task DHT: starting queued task DHT: starting queued task DHT: starting queued task Cannot find RPC call Cannot find RPC call Cannot find RPC call DHT: Stopping I guess that confirms where the bug is |
Moderator
|
|
Registered Member
|
|
Moderator
|
|
Registered Member
|
|
Registered Member
|
|
Registered Member
|
Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar