[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

advantage using multiple cpus



hi,

I'm running tor on a dual Xeon Linux box having the numcpus param set to
the value of four. Bios reports two Xeon cpus with hyperthreading to the
Linux kernel 2.6.18 as four processors. Nevertheless throughput appears
to be limited by the cpu running the main thread doing nearly all the work:

anonymizer:~# top -H
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
10709 debian-t  15   0 1084m 972m  24m R   65 48.0   5251:29 tor
10710 debian-t  15   0 1084m 972m  24m S    2 48.0 262:37.49 tor
10711 debian-t  16   0 1084m 972m  24m S    1 48.0  35:20.13 tor
    1 root      15   0  2040  700  596 S    0  0.0   0:01.43 init

Maybe the code could be designed in order to have the work more
uniformly distributed over all cpus?

regards, Olaf