]> git.kaiwu.me - nginx.git/commit
Core: worker_cpu_affinity auto.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 11 Jan 2016 16:23:17 +0000 (19:23 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 11 Jan 2016 16:23:17 +0000 (19:23 +0300)
commitd0bf684ab6643edc18ab65e2c40bf88862ead8e5
tree44aed9a9d8e61216267e62b2b3a5e80664641ad3
parentaf647a3da2eb9ff558655424868f82f259de94f1
Core: worker_cpu_affinity auto.

If enabled, workers are bound to available CPUs, each worker to once CPU
in order.  If there are more workers than available CPUs, remaining are
bound in a loop, starting again from the first available CPU.

The optional mask parameter defines which CPUs are available for automatic
binding.

In collaboration with Vladimir Homutov.
src/core/nginx.c
src/core/ngx_cycle.h