Mercurial > hg > nginx-site
diff xml/en/docs/ngx_core_module.xml @ 1641:c0d1026e7e7b
Documented the "auto" parameter in worker_cpu_affinity.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 19 Jan 2016 14:19:30 +0300 |
parents | d1e1a8d34bce |
children | 6b4cb951cf83 |
line wrap: on
line diff
--- a/xml/en/docs/ngx_core_module.xml Thu Jan 14 13:20:19 2016 +0300 +++ b/xml/en/docs/ngx_core_module.xml Tue Jan 19 14:19:30 2016 +0300 @@ -10,7 +10,7 @@ <module name="Core functionality" link="/en/docs/ngx_core_module.html" lang="en" - rev="15"> + rev="16"> <section id="example" name="Example Configuration"> @@ -555,6 +555,7 @@ <directive name="worker_cpu_affinity"> <syntax><value>cpumask</value> ...</syntax> +<syntax><literal>auto</literal> [<value>cpumask</value>]</syntax> <default/> <context>main</context> @@ -582,6 +583,20 @@ </para> <para> +The special value <literal>auto</literal> (1.9.10) allows +binding worker processes automatically to available CPUs: +<example> +worker_processes auto; +worker_cpu_affinity auto; +</example> +The optional mask parameter can be used to limit the CPUs +available for automatic binding: +<example> +worker_cpu_affinity auto 01010101; +</example> +</para> + +<para> <note> The directive is only available on FreeBSD and Linux. </note>