high cpu usage with qb 2.0.5

Bug #503573 reported by Pekka Niemi on 2010-01-05
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
libtorrent-rasterbar
Invalid
Undecided
Unassigned
qBittorrent
Triaged
Undecided
Christophe Dumez

Bug Description

Ubuntu 9.10 (32 bit), qb 2.0.5 (PPA package)

similar to #502547

qBittorrent hogs CPU (constantly >90% on double-core AMD Turion) with two running torrents. strace gives constantly output similar to this:

 - - -

gettimeofday({1262727476, 428648}, NULL) = 0
poll([{fd=3, events=POLLIN}, {fd=11, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}, {fd=16, events=POLLIN}, {fd=17, events=POLLIN}, {fd=18, events=POLLIN}, {fd=19, events=POLLIN}, {fd=7, events=POLLIN}, {fd=40, events=POLLIN}, {fd=8, events=POLLIN}], 12, 0) = 0 (Timeout)
read(7, 0x92813a0, 4096) = -1 EAGAIN (Resource temporarily unavailable)
clock_gettime(CLOCK_MONOTONIC, {93537, 249214261}) = 0
clock_gettime(CLOCK_MONOTONIC, {93537, 249272090}) = 0
clock_gettime(CLOCK_MONOTONIC, {93537, 249350312}) = 0
clock_gettime(CLOCK_MONOTONIC, {93537, 249438312}) = 0
clock_gettime(CLOCK_MONOTONIC, {93537, 249524915}) = 0
clock_gettime(CLOCK_MONOTONIC, {93537, 249567099}) = 0
read(7, 0x92813a0, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(16, 0x92b5470, 4096) = -1 EAGAIN (Resource temporarily unavailable)
gettimeofday({1262727476, 429361}, NULL) = 0
poll([{fd=3, events=POLLIN}, {fd=11, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}, {fd=16, events=POLLIN}, {fd=17, events=POLLIN}, {fd=18, events=POLLIN}, {fd=19, events=POLLIN}, {fd=7, events=POLLIN}, {fd=40, events=POLLIN}, {fd=8, events=POLLIN}], 12, 0) = 0 (Timeout)
read(7, 0x92813a0, 4096) = -1 EAGAIN (Resource temporarily unavailable)
clock_gettime(CLOCK_MONOTONIC, {93537, 249931112}) = 0
clock_gettime(CLOCK_MONOTONIC, {93537, 249993690}) = 0
clock_gettime(CLOCK_MONOTONIC, {93537, 250073588}) = 0
clock_gettime(CLOCK_MONOTONIC, {93537, 250162147}) = 0
clock_gettime(CLOCK_MONOTONIC, {93537, 250249588}) = 0
clock_gettime(CLOCK_MONOTONIC, {93537, 250293169}) = 0
read(7, 0x92813a0, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(16, 0x92b5470, 4096) = -1 EAGAIN (Resource temporarily unavailable)
gettimeofday({1262727476, 430022}, NULL) = 0
poll([{fd=3, events=POLLIN}, {fd=11, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}, {fd=16, events=POLLIN}, {fd=17, events=POLLIN}, {fd=18, events=POLLIN}, {fd=19, events=POLLIN}, {fd=7, events=POLLIN}, {fd=40, events=POLLIN}, {fd=8, events=POLLIN}], 12, 0) = 0 (Timeout)
read(7, 0x92813a0, 4096) = -1 EAGAIN (Resource temporarily unavailable)

 - - -

  Hence, it sems to me poll() fails constantly, resulting failing calls to read().

tags: added: 2.0.5 cpu
Christophe Dumez (hydr0g3n) wrote :

If you have any more information, please use libtorrent-rasterbar bug report instead. I'm almost certain the problem is in libtorrent.

Changed in qbittorrent:
assignee: nobody → Christophe Dumez (hydr0g3n)
status: New → Triaged
Christophe Dumez (hydr0g3n) wrote :

What version of boost are you using?

Download full text (3.5 KiB)

Hi!

  The one brought in as a dependency of qB package - 1.38.0.

On Thu, Jan 7, 2010 at 01:13, Christophe Dumez <email address hidden> wrote:

> What version of boost are you using?
>
> --
> high cpu usage with qb 2.0.5
> https://bugs.launchpad.net/bugs/503573
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Bittorrent library by Rasterbar software: Unknown
> Status in qBittorrent - An advanced bittorrent client in C++ / Qt4: Triaged
>
> Bug description:
> Ubuntu 9.10 (32 bit), qb 2.0.5 (PPA package)
>
> similar to #502547
>
> qBittorrent hogs CPU (constantly >90% on double-core AMD Turion) with two
> running torrents. strace gives constantly output similar to this:
>
> - - -
>
> gettimeofday({1262727476, 428648}, NULL) = 0
> poll([{fd=3, events=POLLIN}, {fd=11, events=POLLIN|POLLPRI}, {fd=13,
> events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15,
> events=POLLIN|POLLPRI}, {fd=16, events=POLLIN}, {fd=17, events=POLLIN},
> {fd=18, events=POLLIN}, {fd=19, events=POLLIN}, {fd=7, events=POLLIN},
> {fd=40, events=POLLIN}, {fd=8, events=POLLIN}], 12, 0) = 0 (Timeout)
> read(7, 0x92813a0, 4096) = -1 EAGAIN (Resource temporarily
> unavailable)
> clock_gettime(CLOCK_MONOTONIC, {93537, 249214261}) = 0
> clock_gettime(CLOCK_MONOTONIC, {93537, 249272090}) = 0
> clock_gettime(CLOCK_MONOTONIC, {93537, 249350312}) = 0
> clock_gettime(CLOCK_MONOTONIC, {93537, 249438312}) = 0
> clock_gettime(CLOCK_MONOTONIC, {93537, 249524915}) = 0
> clock_gettime(CLOCK_MONOTONIC, {93537, 249567099}) = 0
> read(7, 0x92813a0, 4096) = -1 EAGAIN (Resource temporarily
> unavailable)
> read(16, 0x92b5470, 4096) = -1 EAGAIN (Resource temporarily
> unavailable)
> gettimeofday({1262727476, 429361}, NULL) = 0
> poll([{fd=3, events=POLLIN}, {fd=11, events=POLLIN|POLLPRI}, {fd=13,
> events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15,
> events=POLLIN|POLLPRI}, {fd=16, events=POLLIN}, {fd=17, events=POLLIN},
> {fd=18, events=POLLIN}, {fd=19, events=POLLIN}, {fd=7, events=POLLIN},
> {fd=40, events=POLLIN}, {fd=8, events=POLLIN}], 12, 0) = 0 (Timeout)
> read(7, 0x92813a0, 4096) = -1 EAGAIN (Resource temporarily
> unavailable)
> clock_gettime(CLOCK_MONOTONIC, {93537, 249931112}) = 0
> clock_gettime(CLOCK_MONOTONIC, {93537, 249993690}) = 0
> clock_gettime(CLOCK_MONOTONIC, {93537, 250073588}) = 0
> clock_gettime(CLOCK_MONOTONIC, {93537, 250162147}) = 0
> clock_gettime(CLOCK_MONOTONIC, {93537, 250249588}) = 0
> clock_gettime(CLOCK_MONOTONIC, {93537, 250293169}) = 0
> read(7, 0x92813a0, 4096) = -1 EAGAIN (Resource temporarily
> unavailable)
> read(16, 0x92b5470, 4096) = -1 EAGAIN (Resource temporarily
> unavailable)
> gettimeofday({1262727476, 430022}, NULL) = 0
> poll([{fd=3, events=POLLIN}, {fd=11, events=POLLIN|POLLPRI}, {fd=13,
> events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15,
> events=POLLIN|POLLPRI}, {fd=16, events=POLLIN}, {fd=17, events=POLLIN},
> {fd=18, events=POLLIN}, {fd=19, events=POLLIN}, {fd=7, events=POLLIN},
> {fd=40, events=POLLIN}, {fd=8, events=POLLIN}], 12, 0) = 0 (Timeout)
> read(7, 0x92813a0, 4096...

Read more...

Christophe Dumez (hydr0g3n) wrote :

I filed a bug report against boost package in Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/boost/+bug/507169

Changed in libtorrent-rasterbar:
importance: Unknown → Undecided
status: Unknown → New
status: New → Invalid
Christophe Dumez (hydr0g3n) wrote :

Please use:
https://bugs.launchpad.net/ubuntu/+source/boost/+bug/507169/+affectsmetoo

So that the bug is more likely to be addressed.

Pekka Niemi (pekka-niemi) wrote :
Download full text (3.5 KiB)

Done.

On Wed, Jan 13, 2010 at 22:52, Christophe Dumez <email address hidden> wrote:

> Please use:
> https://bugs.launchpad.net/ubuntu/+source/boost/+bug/507169/+affectsmetoo
>
> So that the bug is more likely to be addressed.
>
> --
> high cpu usage with qb 2.0.5
> https://bugs.launchpad.net/bugs/503573
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Bittorrent library by Rasterbar software: Invalid
> Status in qBittorrent - An advanced bittorrent client in C++ / Qt4: Triaged
>
> Bug description:
> Ubuntu 9.10 (32 bit), qb 2.0.5 (PPA package)
>
> similar to #502547
>
> qBittorrent hogs CPU (constantly >90% on double-core AMD Turion) with two
> running torrents. strace gives constantly output similar to this:
>
> - - -
>
> gettimeofday({1262727476, 428648}, NULL) = 0
> poll([{fd=3, events=POLLIN}, {fd=11, events=POLLIN|POLLPRI}, {fd=13,
> events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15,
> events=POLLIN|POLLPRI}, {fd=16, events=POLLIN}, {fd=17, events=POLLIN},
> {fd=18, events=POLLIN}, {fd=19, events=POLLIN}, {fd=7, events=POLLIN},
> {fd=40, events=POLLIN}, {fd=8, events=POLLIN}], 12, 0) = 0 (Timeout)
> read(7, 0x92813a0, 4096) = -1 EAGAIN (Resource temporarily
> unavailable)
> clock_gettime(CLOCK_MONOTONIC, {93537, 249214261}) = 0
> clock_gettime(CLOCK_MONOTONIC, {93537, 249272090}) = 0
> clock_gettime(CLOCK_MONOTONIC, {93537, 249350312}) = 0
> clock_gettime(CLOCK_MONOTONIC, {93537, 249438312}) = 0
> clock_gettime(CLOCK_MONOTONIC, {93537, 249524915}) = 0
> clock_gettime(CLOCK_MONOTONIC, {93537, 249567099}) = 0
> read(7, 0x92813a0, 4096) = -1 EAGAIN (Resource temporarily
> unavailable)
> read(16, 0x92b5470, 4096) = -1 EAGAIN (Resource temporarily
> unavailable)
> gettimeofday({1262727476, 429361}, NULL) = 0
> poll([{fd=3, events=POLLIN}, {fd=11, events=POLLIN|POLLPRI}, {fd=13,
> events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15,
> events=POLLIN|POLLPRI}, {fd=16, events=POLLIN}, {fd=17, events=POLLIN},
> {fd=18, events=POLLIN}, {fd=19, events=POLLIN}, {fd=7, events=POLLIN},
> {fd=40, events=POLLIN}, {fd=8, events=POLLIN}], 12, 0) = 0 (Timeout)
> read(7, 0x92813a0, 4096) = -1 EAGAIN (Resource temporarily
> unavailable)
> clock_gettime(CLOCK_MONOTONIC, {93537, 249931112}) = 0
> clock_gettime(CLOCK_MONOTONIC, {93537, 249993690}) = 0
> clock_gettime(CLOCK_MONOTONIC, {93537, 250073588}) = 0
> clock_gettime(CLOCK_MONOTONIC, {93537, 250162147}) = 0
> clock_gettime(CLOCK_MONOTONIC, {93537, 250249588}) = 0
> clock_gettime(CLOCK_MONOTONIC, {93537, 250293169}) = 0
> read(7, 0x92813a0, 4096) = -1 EAGAIN (Resource temporarily
> unavailable)
> read(16, 0x92b5470, 4096) = -1 EAGAIN (Resource temporarily
> unavailable)
> gettimeofday({1262727476, 430022}, NULL) = 0
> poll([{fd=3, events=POLLIN}, {fd=11, events=POLLIN|POLLPRI}, {fd=13,
> events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15,
> events=POLLIN|POLLPRI}, {fd=16, events=POLLIN}, {fd=17, events=POLLIN},
> {fd=18, events=POLLIN}, {fd=19, events=POLLIN}, {fd=7, events=POLLIN},
> {fd=40, events=POLLIN}, {fd=8, events=POLLIN}], 12,...

Read more...

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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