Compiling and using NGINX in multi thread mode

Maxim Dounin mdounin at
Tue Mar 24 16:50:55 UTC 2015


On Tue, Mar 24, 2015 at 01:03:11PM +0530, nitesh narayan lal wrote:

> Hi,
> I hope that I am posting at the right place.
> I am trying to figure out if multi-thread mode is supported with the
> latest release, and if so then what I need to do for using it?
> I am trying to compile it from its source code for PowerPC architecture.
> But I have seen that the following is been commented out in the
> auto/options file.
>         #--with-threads=*)                USE_THREADS="$value"       ;;
>         #--with-threads)                  USE_THREADS="pthreads"     ;;
> Due to which I am bit confused if its supported or not!

There is no support for threads in previous releases of nginx - 
only some obsolete code from previous experiments.

In just released 1.7.11 an experimental support for thread pools 
was introduced though.  More details can be found here:

In short: you have to compile nginx with --with-threads (which is 
supported now), and then use "aio threads".

Maxim Dounin

More information about the nginx mailing list