[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: Regulating bandwidth
Roger Dingledine wrote:
> He is right that we need to think about how to offload more of the
> computation onto other threads. But concluding that is the easy part. :)
yep :-) Here's is a snapshot using config option "NumCPUs 4". It runs a
main thread using 73% of cpu number 3 and three cpuworker or dnsworker
threads using 3%, 1%, and 0% on cpu 2, 0, respectively 1:
anonymizer:~# top -H
[...]
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ P COMMAND
15486 debian-t 15 0 1871m 1.5g 25m R 73 76.3 12061:34 3 tor
9483 debian-t 16 0 1871m 1.5g 25m S 3 76.3 8:44.03 2 tor
9480 debian-t 17 0 1871m 1.5g 25m S 1 76.3 1:06.26 0 tor
9481 debian-t 15 0 1871m 1.5g 25m S 0 76.3 0:26.27 1 tor
1 root 15 0 2040 636 548 S 0 0.0 0:01.44 3 init
[...]
> The hard part is: what computations can we offload?
at least I can't. My poor C programming skills certainly won't help very
much.
regards, Olaf