This forum has been archived. All content is frozen. Please use KDE Discuss instead.

CPU Usage issue.

Tags: None
(comma "," separated)
imported4-Tomasu
Registered Member
Posts
302
Karma
0

CPU Usage issue.

Sat Jun 24, 2006 6:06 am
KTorrent is currently using up 50%+ cpu, and its being rather uninteractive at the moment.

I hooked up gdb to the running ktorrent, and it seems to be in QGList::findRef most of the time.

I shall build a profile build soon to see if thats true.
George
Moderator
Posts
5421
Karma
1

Sat Jun 24, 2006 10:56 am
I'm working on it, should have a fix later today.
imported4-Tomasu
Registered Member
Posts
302
Karma
0

Sat Jun 24, 2006 11:01 am
I have to say, you guys rule :)
imported4-Tomasu
Registered Member
Posts
302
Karma
0

Wed Jun 28, 2006 1:25 am
Have you got a fix? I was expecting someone to post here when they thought it was worked out.
George
Moderator
Posts
5421
Karma
1

Wed Jun 28, 2006 4:18 pm
Tomasu wrote:Have you got a fix? I was expecting someone to post here when they thought it was worked out.


It should be OK, except for to high CPU usage when connections authentications are going on (doesn't happen allways, which makes this a bit weird).

Most of the time it should be OK.
George
Moderator
Posts
5421
Karma
1

Wed Jun 28, 2006 4:56 pm
OK, that last bit of to high CPU usage during authentication is also gone now.
imported4-Tomasu
Registered Member
Posts
302
Karma
0

Thu Jun 29, 2006 9:05 pm
Unfortunately last night I found ktorrent using 99% CPU, and I wasn't home to do much about it besides kill it from ssh. If it happens again, I'll attempt to debug it.

edit: Say I have 20 torrents going (and 20+ more queued), and 40+ connections per torrent, how much CPU usage should I be expecting? (60%+ ?).. I'm doing a svn up (right now, as I edit) and a make distclean, to start with a fresh proper build, see if some faulty dependency tracking caused some of my problems.

edit2, oops, it seems I had it set to 150 connections per download. But bumping it down to 40, didn't make any difference, even after a restart of ktorrent.
LinuxDoc
Registered Member
Posts
9
Karma
0

Fri Jun 30, 2006 9:34 pm
I have the same problem, ktorrent uses 99% CPU most of time, with the svn version.

The 2.0beta1 works fine.
George
Moderator
Posts
5421
Karma
1

Sat Jul 01, 2006 9:26 am
Smells like an infinite loop, did the GUI still redraw ?
LinuxDoc
Registered Member
Posts
9
Karma
0

Sat Jul 01, 2006 10:23 am
did the GUI still redraw ?


Yes


EDIT:
After turn off the protocol encryption, it looks that the CPU usage is back to normal.

It looks looks like a bug in the Protocol encryption.

Im wondering why the protocol encrytion works only with µtorrent clients and not with Azureus clients ?!?
George
Moderator
Posts
5421
Karma
1

Sat Jul 01, 2006 10:57 am
LinuxDoc wrote:
did the GUI still redraw ?


Yes


EDIT:
After turn off the protocol encryption, it looks that the CPU usage is back to normal.

It looks looks like a bug in the Protocol encryption.

Im wondering why the protocol encrytion works only with µtorrent clients and not with Azureus clients ?!?


Euhm, to implement the encryption, I used Azureus as my test platform, so this should work. I will do a check if the new socket code hasn't broken this for some reason.

I think I know where the problem lies with the 99 % CPU usage.
George
Moderator
Posts
5421
Karma
1

Sat Jul 01, 2006 11:31 am
OK, to high CPU usage when using encryption should now be gone.

EDIT: it seems KT can connect encrypted to AZ but the other way around doesn't work.

Last edited by George on Sat Jul 01, 2006 11:45 am, edited 1 time in total.
LinuxDoc
Registered Member
Posts
9
Karma
0

Sat Jul 01, 2006 11:34 am
If the encryption is enabled, there will be shown a lock-icon in front of the peer ip adress.
For me it is always only shown at µTorrent clients (same in 2.0beta1 and svn).


EDIT:

now I tryed the latest svn, but the CPU problem with encrytion is on is not gone :-(
George
Moderator
Posts
5421
Karma
1

Sun Jul 02, 2006 7:49 am
It doesn't happen here anymore, are you sure you have the latest ? You need revision 556719 or later.
LinuxDoc
Registered Member
Posts
9
Karma
0

Sun Jul 02, 2006 12:09 pm
I tryed it again with the latest svn version, but it is always sthe same wit the cpu load.

-with encryption on, ktorrent use all the time 99% of CPU power

-with encryption off, ktorrent use all few minutes 99% CPU power, but only for around 20-30 sec. than it will go back to normal ...

Last edited by LinuxDoc on Sun Jul 02, 2006 10:00 pm, edited 1 time in total.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]