Comment 6 for bug 503573

Revision history for this message
Pekka Niemi (pekka-niemi) wrote : Re: [Bug 503573] Re: high cpu usage with qb 2.0.5

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, 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().
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/libtorrent-rasterbar/+bug/503573/+subscribe
>

--
Submitted by a renaissance nerd
http://www.linkedin.com/in/pekkaniemi