[Users] nginx, inside openvz CT, worker_cpu_affinity

Nick Knutov mail at knutov.com
Sat Jul 28 10:34:48 EDT 2012


Hello all,


 > http://nginx.org/en/docs/ngx_core_module.html#worker_cpu_affinity
 >
 > worker_processes    4;
 > worker_cpu_affinity 0001 0010 0100 1000;
 >
 > "Binds worker processes to the sets of CPUs."


Does it make sense inside OpenVZ container?

Will it work if --cpus does not specified in CT config?
How will it work, if --cpus is specified and less then physical cores?
How will it work, if --cpus is specified and CPU has hyper-threading and
1) --cpus less then cpu cores
2) or --cpus less and odd(!) (example: --cpus: 3, physical CPU cores: 4 
+ HT)

-- 
Best Regards,
Nick Knutov


More information about the Users mailing list