Choosing a processor for web server: what is more important, GHz or Cache size?

5,411

Solution 1

Well while I'm normally loathed to recommend an E3 over a better chip that particular E5 has no hyperthreading whereas the E3 does have it. So the E3 can handle 8 threads at one while the E5 can only deal with 4.

So in this scenario the 'lesser' chip has more thread capacity and ~50% faster clock speed, so unless your system is heavily memory bound (the E5 has a much faster memory throughput capacity) then I'd suggest the E3 over the E5.

Bear in mind that we don't normally do product recommendations, as it clearly states in the FAQ, but in this case it was an easy answer - consider this in the future though please.

Solution 2

Since you mention this is a web server, I am going to assume it is handling many separate requests to render the PHP templates at the same time.

When comparing the 2 CPUs (http://ark.intel.com/compare/64588,65727) I note that the E3 has more threads (logical cores) which would likely make it handle multiple php-fpm threads better. The time taken to complete one PHP process using one CPU over the other is likely going to be negligible. You are going to benefit more from the amount of parallel work you can do at once.

However, this is only based on the fact that you are doing CPU work. In my experience now days, the CPU is rarely the bottleneck and I would be looking at fast disks (high RPM or SSD), amount of memory, and the underlying OS. These are all much bigger factors in the speed of your application than the CPU cache size.

Also to consider when choosing between these CPUs is if you will be running multiple CPU in one machine, or greater than 32 GB of memory (which is the E3 maximum).

Share:
5,411

Related videos on Youtube

Temnovit
Author by

Temnovit

Updated on September 18, 2022

Comments

  • Temnovit
    Temnovit over 1 year

    I'm choosing a new server that will run linux, nginx and php-fpm based web server. Mostly, all the work server is doing - rendering of Twig php templates.

    Current server has the fallowing processor, and it's overloaded most of time:

    model name  : Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
    cpu MHz     : 3301.000
    cache size  : 6144 KB
    

    While chooding an upgrade, i've stumbled up on the two otions (almost the same price):

    • CPU: Intel® Xeon® E5-2609 (10M Cache, 2.4 GHz, 6.40 GT/s Intel® QPI)
    • CPU: Intel® Xeon® Processor E3-1270V2 (8M Cache, 3.5 GHz)

    First has a bigger cache and less GHz. Which one would be better for PHP rendering tasks, like string functions?

    • vonbrand
      vonbrand about 11 years
      That depends on what "maxed out" means... CPU bound (unlikely, unless the aplications are badly done), memory bound, I/O (disk) bound, network bound?
    • MDMarra
      MDMarra about 11 years
    • mfinni
      mfinni about 11 years
      He is asking a general question, just using two specific CPUs to demonstrate the two different options - more cache, or better clockspeed.