0

Let's think we have 10 concurrent users per second on the Nginx server which serves only static files: html, css, js.

This is not CPU CPU-intensive operation, but still, Nginx will consume some CPU for configuration file logic. Each user will request multiple static files for example x.html will need 10-20 other static files (js, CSS, images) to serve.

In this case, which type of CPU is better, high-frequency higher single-core performance e.g. Xeon E-2314 or more core lower frequency CPU e.g. Intel Xeon Silver 4208?

doraemon
  • 153
  • 8

1 Answers1

2

I made some tests for 500rps-1000rps on a server for just static file serving.

The Server had a 1Gbps port. And basically, the response time was ok until I reached 1Gbps.

I had two CPU limits on my VM. And the CPU is Intel(R) Xeon(R) E5-2650 v3 @ 2.30GHz. CPUs never got over 40% (I watched CPU load while sending traffic to the server). Rather network was the limiting factor.

So my conclusion is any new multicore average speed (2Ghz) CPU is enough for this purpose. No need for high-end high frequency (higher single-core performance) CPUs.

I did only an HTML file test (with size of 10-40KB), I did not do tests with image files which will be larger in size.

doraemon
  • 153
  • 8