Hello.

Dedicated server with Intel Atom D525 processor. The description of the server says: this is a dual-core processor ... but thanks to HyperThreading technology, it can process four threads at a time. How to understand this?

In general, my problem is that I don’t know what value to set for the worker_processes directive in the nginx.conf configuration file

worker_processes 2; OR worker_processes 4;

After all, according to Sysoev, worker_processes should be equal to the number of processor cores.

Help count the cores :)

  • one
    two cores. No more, no less. But for not very strong number of crushers, they quite work as 4. Set 4, I think it will work. But in general, this is a question for the rtcode, I think they know more there. in fact (very simplistic) - there is an ALU in the processor - an arithmetic logic unit that can do computations and a block of work with memory. Since the ALU runs much faster than anything else, one ALU can provide two cores simultaneously. From here and such method to reduce the price - two kernels use the general resources. - KoVadim
  • Well, the question is whether nginx will be able to optimize its work on pseudo-kernels. I have intel i7 on the beech, 8 processors are shown in TaskManager, but all the programs and tests that I had to run use only 4 (judging by the load schedules on the process) - MDJHD

1 answer 1

worker_process auto; 

In general, if you receive a couple of requests per minute to your nginx, you can put 1 and do not bother.