[PATCH 2 of 2] add support for setting worker processes and CPU affinity automatically

Joshua Zhu zhuzhaoyuan at gmail.com
Thu Jan 12 15:37:15 UTC 2012


It's a little bit inconvenient to set the CPU affinities with
many-core-system. For example, to fully utilize a 16-core Linux box, we
have to write something like this:
worker_processes 16;
worker_cpu_affinity  1000000000000000 0100000000000000 0010000000000000
0001000000000000 0000100000000000 0000010000000000 0000001000000000
0000000100000000 0000000010000000 0000000001000000 0000000000100000
0000000000010000 0000000000001000 0000000000000100 0000000000000010

This patch will make life much easier:
worker_processes auto;
worker_cpu_affinity auto;

Please see the attachment for more detail.


Joshua Zhu
Senior Software Engineer
Server Platforms Team at Taobao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120112/692776cf/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: auto.patch
Type: text/x-patch
Size: 5161 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120112/692776cf/attachment.bin>

More information about the nginx mailing list