Nginx worker_processes and multi core cpu’s – Do Hyper-threading cores count

hyperthreadingmulti-corenginxthreads

Quite often, when reading about the recommended worker_processes for nginx it is stated that this should be set to the numbers of cores the server hosting nginx has.

We were wondering if we should count the number of HT cores for this as well?

Or do we just count the number of true physical cores?

Thanks!

Best Answer

In case of HT, you better use worker_cpu_affinity