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

[Bug] KTorrent hangs unexpectedly

Tags: None
(comma "," separated)
joaob
Registered Member
Posts
17
Karma
0
OS

[Bug] KTorrent hangs unexpectedly

Sat Jan 05, 2013 3:57 pm
I recently upgraded my internet connection from 30mbps to 120mbps, KTorrent can easily reach speeds of 14 MBytes/s however it started hanging for a few seconds randomly at these speeds, it doesn't crash or anything it just hangs for a while and it goes back to normal. I also tried capping download to 10MBytes/s and the issue is still occurring. I'll keep testing to see if there's a point where it stops hanging.
This didn't happen with the older connection, in which it managed about 3,6 MBytes/s.

It's the same ISP and the same technology (cable operator with EuroDOCSIS 3.0), it was just their typical end of year contract renewal.

Is anyone experiencing the same problem?
Thanks.

KTorrent 4.2.1
Kubuntu 12.10 64-bit
George
Moderator
Posts
5421
Karma
1
joaob wrote:I recently upgraded my internet connection from 30mbps to 120mbps, KTorrent can easily reach speeds of 14 MBytes/s however it started hanging for a few seconds randomly at these speeds, it doesn't crash or anything it just hangs for a while and it goes back to normal. I also tried capping download to 10MBytes/s and the issue is still occurring. I'll keep testing to see if there's a point where it stops hanging.
This didn't happen with the older connection, in which it managed about 3,6 MBytes/s.

It's the same ISP and the same technology (cable operator with EuroDOCSIS 3.0), it was just their typical end of year contract renewal.

Is anyone experiencing the same problem?
Thanks.

KTorrent 4.2.1
Kubuntu 12.10 64-bit


Does ktorrent use much cpu when this happens ?
joaob
Registered Member
Posts
17
Karma
0
OS
Uses about 15% to 20% CPU.

I also forgot to mention, could this be related to the fact that it's saving to a NTFS partition?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
One thing to check would be if it is "Blocked by I/O". This is visible in top's status column, as 'D'. If this is the case, then the NTFS file system could very well be helping to cause this.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
geoaraujo
Registered Member
Posts
28
Karma
0
OS
This happens to me too. However, I'm using an ext4 partition.


Debian 8.6

KDE 4.14.2
Dell N4050 Intel i5 CPU 2.50GHz 64-bit Integrated Graphics 4GB ram
Acer A4540 AMD Athlon E X2 2.0GHz 64-bit ATI Radeon HD4200 Graphics 4GB ram

TDE R14.0.3
Acer AOD260 Intel Atom N450 1.66GHz 32-bit Integrated Graphics 2GB ram
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: [Bug] KTorrent hangs unexpectedly

Tue May 21, 2013 10:11 am
Please check to see if it is Blocked by I/O using the methods I noted above.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
geoaraujo
Registered Member
Posts
28
Karma
0
OS

Re: [Bug] KTorrent hangs unexpectedly

Fri May 24, 2013 12:25 pm
Correction: KTorrent hangs when I'm saving to a FAT 32 flash disk, not an ext4 partition.


Debian 8.6

KDE 4.14.2
Dell N4050 Intel i5 CPU 2.50GHz 64-bit Integrated Graphics 4GB ram
Acer A4540 AMD Athlon E X2 2.0GHz 64-bit ATI Radeon HD4200 Graphics 4GB ram

TDE R14.0.3
Acer AOD260 Intel Atom N450 1.66GHz 32-bit Integrated Graphics 2GB ram
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: [Bug] KTorrent hangs unexpectedly

Fri May 24, 2013 12:29 pm
If you leave it for some time, without disconnecting or unmounting the flash disk, does the operation eventually complete?

The linux kernel has an unfortunate habit of permitting applications to write data faster than the drive can actually handle (giving the impression of high copy speeds which are impossible), but this eventually fills the buffer at which point the application is then blocked completely until the drive catches up. This cycle will then repeat, giving the impression that KTorrent may be hung.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
geoaraujo
Registered Member
Posts
28
Karma
0
OS

Re: [Bug] KTorrent hangs unexpectedly

Fri May 24, 2013 12:42 pm
bcooksley wrote:If you leave it for some time, without disconnecting or unmounting the flash disk, does the operation eventually complete?

The linux kernel has an unfortunate habit of permitting applications to write data faster than the drive can actually handle (giving the impression of high copy speeds which are impossible), but this eventually fills the buffer at which point the application is then blocked completely until the drive catches up. This cycle will then repeat, giving the impression that KTorrent may be hung.


You're right! But it's an unfortunate habit indeed. I was always forcing KTorrent to close, thus wasting a lot o f time. Thanks for the info.


Debian 8.6

KDE 4.14.2
Dell N4050 Intel i5 CPU 2.50GHz 64-bit Integrated Graphics 4GB ram
Acer A4540 AMD Athlon E X2 2.0GHz 64-bit ATI Radeon HD4200 Graphics 4GB ram

TDE R14.0.3
Acer AOD260 Intel Atom N450 1.66GHz 32-bit Integrated Graphics 2GB ram


Bookmarks



Who is online

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