trickle causes 100% CPU usage

Bug #234342 reported by akudewan
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
trickle (Debian)
Fix Released
Unknown
trickle (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Whenever I run any program by using trickle to control the bandwidth, its CPU usage rises to 100%.

For instance:
# trickle -d 10 apt-get upgrade
will cause the "http" process to use 100%

Output of "top":
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3066 root 20 0 5240 1964 1664 R 100 0.1 0:24.42 http

--------------
$ ps aux | grep 3066
root 3066 97.1 0.1 5240 1964 tty1 S+ 19:50 1:03 /usr/lib/apt/methods/http
akudewan 3121 0.0 0.0 3004 736 pts/1 S+ 19:51 0:00 grep 3066

I'm using Ubuntu Hardy, and have a Core2Duo 2.33GHz.

Revision history for this message
superkiwi (eriflo) wrote :

Same here. Compiling 1.06 and 1.05 (http://monkey.org/~marius/pages/?page=trickle) also gives 100% cpu. I'm on Intrepid.

Revision history for this message
Severin H (severinh) wrote :

I can confirm this. Since the bandwidth throttling support of HellaNZB is not really what it claims to be, I tried to limit the download speed using trickle, but the 100% CPU usage is kind of a show stopper.

Changed in trickle:
status: Unknown → New
Revision history for this message
David Roberts (david.roberts) wrote :

I can also confirm this (on intrepid):

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
12785 root 20 0 5420 2064 1712 R 92.5 0.4 0:14.64 http

I also tried using trickle after starting trickled, which reduced the CPU usage of http, but this was then consumed by trickled:

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
10460 david 20 0 2336 704 564 R 57.9 0.1 1:12.41 trickled
11869 root 20 0 5420 2076 1724 S 35.0 0.4 0:43.22 http

Revision history for this message
Thomas Schwinge (tschwinge) wrote :

This has been fixed through Debian version 1.07-7; see <http://bugs.debian.org/375173>.

Revision history for this message
Severin H (severinh) wrote :

I can confirm that trickle 1.07-7 works just fine on Ubuntu 9.10 (64-bit).

Changed in trickle (Ubuntu):
status: New → Fix Released
Changed in trickle (Debian):
status: New → Unknown
Changed in trickle (Debian):
status: Unknown → Fix Released
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.