Welcome! Log In Create A New Profile

Advanced

Use of worker_cpu_affinity in hyper-threading context

Alex
November 20, 2014 01:40PM
Hi,

I have one E3-1240 v3 CPU here, which has 4 cores with hyper-threading
enabled. Currently I have the following setup in nginx.conf:

worker_processes 4;
worker_cpu_affinity 10100000 01010000 00001010 00000101;

In other words, I bind each of the four workers to two (virtual) cores
(similar to example in
http://nginx.org/en/docs/ngx_core_module.html#worker_cpu_affinity). For
a medium-sized frequented site, would you consider this the "correct"
way? Or would you leave out the worker_cpu_affinity setting and let the
CPU scheduler do the rest?

Thanks for your help.

Alex

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Use of worker_cpu_affinity in hyper-threading context

Alex November 20, 2014 01:40PM

Re: Use of worker_cpu_affinity in hyper-threading context

Maxim Dounin November 21, 2014 02:26PM

Re: Use of worker_cpu_affinity in hyper-threading context

Alex November 21, 2014 03:56PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 292
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready