Database – Will a database server perform better running on 2 CPUs with 16 cores or 4 CPUs with 8 cores

databasemulti-coreperformance

What I have:

  • an online financial application (ASP.NET, C#)
  • at peak we have 5K+ simultaneous users
  • backend is running on Oracle 11g (active server + stand-by using Active Data Guard). At peak – 4K-5K database sessions
  • Oracle is installed on Linux 5.8 (Oracle's unbreakable version)
  • the database size: 7TB
  • disk storage: NetApp (connected with 10GB network)

I would like to replace old servers (IT will purchase HP blades BL685C).
Servers will have 256GB of RAM.

I need your help to figure out what to do with CPUs and cores.
Options:

  1. 2 CPUs (2.3 GHz) with 16 cores each
  2. 4 CPUs (3.0 GHz) with 8 cores each

Question:
Which one should I pick?

P.S.
Next year, we will migrate from Oracle to SQL server. I hope, whatever option you recommend will work for both platforms

Best Answer

There are two factors you want to look at:

  1. Total aggregate performance: This is the measure of the total computing power of all the cores on the box. You can estimate this value by looking at the Passmark CPU rating for the CPU and multiplying by the number of physical CPUs in the system.

  2. Single-thread performance: This is the measure of how much computing power the CPU can give to a single thread. You can estimate this value by looking at the Passmark CPU rating for the CPU and dividing by the number of cores in the CPU. (For hyper-threaded CPUs, divide by 1.25 times the number of physical cores.)

If one machine wins on both of these measures, it's probably your best choice. If it's split on the two measures, then it comes down to how effectively your software can take advantage of multiple cores.

Note that memory performance can be important too. More memory channels typically means faster memory access. Also, of course, the total amount of memory is important. Different CPUs often mean different motherboards, which can mean different memory performance.

Related Topic