worker cpu balance
Renaud Allard
renaud at llorien.org
Sun Apr 13 12:19:50 MSD 2008
Aleksandar Lazic wrote:
> Hi all,
>
> during the testing with the donated 10GB network cards of Myricom to the
> haproxy project http://haproxy.1wt.eu/ I have asked the author of this
> nice peace of SW if he will be so pleasent to run a test with nginx
> instead of tux. He was ;-))
>
> Here the description of his test with haproxy
> http://haproxy.1wt.eu/10g.html and now what he have send me back from
> his tests with nginx.
>
> ---
> It works fast. Since it uses sendfile, it is as fast as Tux on large
> files (>= 1MB), and saturates 10 Gbps with 10% of CPU with 1MB files.
>
> However, it does not scale on multiple CPUs, whatever the number of
> worker_processes. I've tried 1, 2, 8, ... The processes are quite there,
> but something's preventing them from sharing a resource since the
> machine never goes beyond 50% CPU used (it's a dual core).
Was worker_cpu_affinity defined in the config file to ensure each worker
was on a particular CPU?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3304 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://nginx.org/pipermail/nginx/attachments/20080413/fa0b1664/attachment.bin>
More information about the nginx
mailing list