CPU Usage Spikes

Bug #114320 reported by Andre LeBlanc
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libtorrent-rasterbar
Incomplete
Undecided
Unassigned
qBittorrent
Incomplete
Undecided
Christophe Dumez

Bug Description

Approximately every 5-10 minutes qtorrent starts seriously chewing up my CPU for about 30 seconds to a minute at a time.
I have no idea what its doing during that time, but as this is a laptop, it causes the fan to kick on every time and its quite anoying. I haven't seen this kind of CPU usage from any bittorrent client before except when checking a partial download.

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Hmm. you're the first one to report that. I don't know where it could come from in qBittorrent. It is more likely related to libtorrent. maybe you could try disabling some options to see if you can determine if it is linked to one of them ?

Revision history for this message
Andre LeBlanc (andrepleblanc) wrote : Re: [Bug 114320] Re: CPU Usage Spikes

I disabled Upload Speed Limit while it was spiking, and it went down right
away. I'm assuming that's the culprit. i'll let you know if it happens
again.
Thanks!

On 5/13/07, Christophe Dumez <email address hidden> wrote:
>
> Hmm. you're the first one to report that. I don't know where it could
> come from in qBittorrent. It is more likely related to libtorrent. maybe
> you could try disabling some options to see if you can determine if it
> is linked to one of them ?
>
> --
> CPU Usage Spikes
> https://bugs.launchpad.net/bugs/114320
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
OriginalGrumpyOldMan (originalgrumpyoldman) wrote :

I can confirm this. I'm using 9.3 on Feisty Fawn. The usage spikes as soon as I add torrents, and seems to randomly tapers off after that, only to spike again.

As a matter of fact, it's driving the CPU usage to 100% _most_ of the time. Since it's an older system, I had to set the 'nice' value to very low priority to keep the system responsive.

I have been using qBittorrent since ~8.6, and this is the first time it (mis)behaves like that. I will have to look into reverting to an older version or a different client pretty soon, the slowdown on my system is rather bothersome.

Revision history for this message
Anders Aagaard (aagaande) wrote :

I'm getting 100% cpu usage spikes when using download limit, I'm guessing it's the same problem.

Also managed to get it to crash. Turned download limit on, ran it until 100% cpu usage, turned it off and got this:
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'asio::system_error'
  what(): Transport endpoint is not connected
Window manager warning: Invalid WM_TRANSIENT_FOR window 0x1c0000f specified for 0x1c0000d ().

Revision history for this message
grub0r (coffeeprocessor) wrote :

I can also confirm this on a Turion 64 laptop at 2 GHz, RAM is 2 GB.

Software Environment:

Linux kernel 2.6.20.6,
qt 4.2.3
KDE 3.5.7
rb_libtorrent 0.12-3
qbittorrent 0.9.3

The cpu usage will climb to 100% every 20 minutes, but I have an upload limit set (I have to do this, as I would be blocking off our connection). Other than that, no problems yet.

Regards
Jürgen Gruber

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

I'm contacting libtorrent author because I didn't touch this code recently in qBittorrent.

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Could you try disabling DHT and see if it fixes the problem? or are you sure it comes from the speed limit?

Revision history for this message
Anders Aagaard (aagaande) wrote :

I'm not sure it comes from the speed limit, but I dont have DHT on so it's defenatly not that.

Revision history for this message
Kyle Pearson (demos-taiwan) wrote :

Confirmed here, as well. No dht, no Pex, no encryption. Also, whenever i re-open the preferences box dht is automatically reset to "enabled".

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Just fixed the DHT saving problem in svn. Thanks for reporting this.

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Has anyone tested qBittorrent beta2 with libtorrent svn? Could you please tell me if you still experience the problem and if I must contact libtorrent author again? Personally, my qBittorrent svn/libtorrent svn has been running for days and I didn't notice anything strange concerning cpu usage (libtorrent svn is crashing from time to time though, but it is svn, it will be fixed soon...)

On http://wiki.qbittorrent.org, there is a compiling howto that explains how to get qbittorrent svn working.

Revision history for this message
Schorsch (schorschi-schorsch) wrote :

Same problem for me. Every 5 minutes 100% cpu-speed (notebook) and 100% usage of cpu ressources for about 30 seconds. I also made the experience that disabling uploadlimit solves the problem. (But I need to use this limit)

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Please Schorsch, confirm what version of libtorrent are you using?

I'm using qBittorrent svn / libtorrent svn everyday, with upload limit
enabled and I notice no cpu spikes although I'm downloading 24/7 (for
testing ;)

On 8/22/07, Schorsch <email address hidden> wrote:
>
> Same problem for me. Every 5 minutes 100% cpu-speed (notebook) and 100%
> usage of cpu ressources for about 30 seconds. I also made the experience
> that disabling uploadlimit solves the problem. (But I need to use this
> limit)
>
> --
> CPU Usage Spikes
> https://bugs.launchpad.net/bugs/114320
> You received this bug notification because you are the bug contact for
> qBittorrent.
>

Revision history for this message
Schorsch (schorschi-schorsch) wrote :

oh sorry...
I'm using qbittorrent 0.9.3-3 with rblibtorrent1 0.12rc3 + final-2 (that's what synaptic says). My OS is Ubuntu 7.04
If there's another way to find out what you need, please tell me!
I have no experiences in compiling... So is The howto, you mentioned before, working without problems?

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Yes the howto on wiki.qbittorrent.org should be easy. I'm not going to
package qBittorrent v1.0.0 until it is release candidate (at least),
probably in mid-September.

On 8/23/07, Schorsch <email address hidden> wrote:
>
> oh sorry...
> I'm using qbittorrent 0.9.3-3 with rblibtorrent1 0.12rc3 + final-2 (that's
> what synaptic says). My OS is Ubuntu 7.04
> If there's another way to find out what you need, please tell me!
> I have no experiences in compiling... So is The howto, you mentioned
> before, working without problems?
>
> --
> CPU Usage Spikes
> https://bugs.launchpad.net/bugs/114320
> You received this bug notification because you are the bug contact for
> qBittorrent.
>

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

Anybody can confirm this with recent libtorrent svn and qBittorrent beta6 or 7 ?

Changed in qbittorrent:
status: New → Incomplete
Revision history for this message
serg-k. (unffire) wrote :

qbittorrent 1.0.0rc3. Debian Lenny. when downloading at constantly high speed (~200-250 KiB/s) qbittorrent eats 35-99% cpu every 2-5 seconds for 3-13 seconds.
it causes heavy gui and performance lags in all programs.

Revision history for this message
Christophe Dumez (hydr0g3n) wrote :
Changed in libtorrent-rasterbar:
status: New → Invalid
status: Invalid → New
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

According to libtorrent author, this was fixed in recent svn. I will release a rc10 tomorrow with a new libtorrent snapshot. If the problem persists after that, please do not hesitate to reopen this bug report.

Changed in qbittorrent:
assignee: nobody → hydr0g3n
status: Incomplete → Fix Committed
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

rc10 was just released.

Changed in qbittorrent:
status: Fix Committed → Fix Released
Revision history for this message
rusivi2 (rusivi2-deactivatedaccount) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. I noticed the version of Ubuntu your using is in End of Life status. More information may be found at: https://wiki.ubuntu.com/Releases As well, I Tried to check upstream bug at http://code.rasterbar.com/libtorrent/ticket/198 but timed out. Little peering around found their bug tracker at: http://code.google.com/p/libtorrent/issues/list Please update via www.ubuntu.com repost a detailed error report, link the upstream bug, and update the bug status. Thanks!

Changed in qbittorrent:
status: Fix Released → Incomplete
Changed in libtorrent-rasterbar:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.