Benchmarks MySQL 3.23.52: Intel versus AMD



A Linux database server report would not be complete without the open source database MySQL. It must be said that MySQL results had a large margin of error, especially at high levels of concurrency. At 100 concurrent threads, MySQL started to lose performance pretty quickly, and the margin of error grew fast. When we limit ourselves to a concurrency of 50, we get a decent margin of error (2% - 4%).

conc lev Dual Xeon 3,6 GHz Dual Xeon 3,2 2 MB L3 Dual Xeon 3.2 Dual Xeon 3.06 1 MB L3 Dual Xeon 3.06 Opteron 250 DDR400 32 bit Dual Opteron 250 DDR 400 64 bit Dual Opteron 848 DDR400 - 64 bit
1 127 105 107 110 104 156 201 190
2 191 166 161 175 158 249 317 287
5 239 206 194 206 189 303 368 337
10 249 221 203 218 194 289 381 353
20 251 226 195 218 190 309 403 377
35 259 226 190 223 189 315 405 375
50 251 225 186 222 185 300 388 363

Those were the raw numbers. Let us now analyze this:

conc lev Xeon 3.6 vs 3.2 2 MB L3-cache vs none 1 MB L3-cache vs none Xeon 3.2 vs 3.06 Xeon 3.2 vs 3.06. both with L3 Xeon 3.6 vs Opteron 250 Opteron 64 bit vs 32 bit
1 20% -2% 7% -5% -5% -19% 29%
2 15% 3% 10% -5% -5% -23% 27%
5 16% 6% 9% 0% 0% -21% 22%
10 13% 9% 12% 1% 1% -14% 32%
20 11% 15% 15% 3% 3% -19% 30%
35 15% 19% 18% 1% 1% -18% 29%
50 11% 21% 20% 1% 1% -16% 29%

MySQL paints a totally different picture. Again, don't pay too much attention to the results of the lower concurrency levels.

This time, the Nocona Xeon is about 11% to 15% faster, more or less equal to the clock speed advantage of 13% that it has over the other Xeon brothers. Investing in large L3-caches pays off a lot more than it did in DB2. It seems that a 1 MB L3-cache is exactly what our application needs because that much delivers almost no boost at all (the margin of error may blur the results a bit).

And last, but not least, the Opteron makes a clean sweep of the Xeons. The 3.6 Nocona is up to 30% slower. When the Opteron moves to 64 bit, it can crunch through 30% more SQL statements.

Analyses: IBM DB2 8.1.3 32 bit and 64 bit Benchmarks MySQL: DDR400 vs DDR333
Comments Locked

46 Comments

View All Comments

  • Decoder - Friday, December 3, 2004 - link

    davesbeer: "MS is a joke".

    You don't know jack about enterprise IT. Mostly of the financial services industry (FSI) companies run on both UNIX and Windows. Some FSI companies have standardized on .NET and SQL Server. I know this because i work in this industry. MS is no joke. MS.NET is no joke and i can assure you MS SQL Server 2005 is no joke. $ for $, MS products deliver more value and ease of use/development/admin then anything else out there. x86-64 will help MS win over some of the 64-bit enterprise computing deals as well. MS is in the best position ever.
  • davesbeer - Friday, December 3, 2004 - link

    I had great faith in Anandtech... until this article... not the hardware aspect but the software aspect...
    I never see MySql in competition... MS is a joke... known for cheap but not reliable or scalable.. DB2 is the only competition to Oracle but it is not the same database on differing platforms therefor has huge problems for customers.. Only Oracle allows you to move from one platform to another with minimal changes... Oracle is the leader in the DB market.. Gartner includes NON relational database in IBM's numbers which inflates them. Oracle commands about 70% in the Unix space and quite frankly is retaking significant ground in the Windows space with the low cost SE1 DB options.. Interesting to note that IBM benches its hardware with Oracle and not DB2..... The only thing software correct was the fact that Linux is extremely important to all the vendors and becoming more important to corporations...
  • Puppetman - Friday, December 3, 2004 - link

    #32 - Oracle prohibits you from posting benchmarks in their licensing agreement that you have to sign to get a copy of the software, I believe.

    I guess this is partly because it's so complicated to set up (MySQL is easier, but tuning is still an issue).

    I would have liked to have seen Postgres 7 and 8 tested. PostgresQL has the features of Oracle, and 8.0 has some pretty impressive performance numbers (the optimizer seems to be much better than the 7.4 optimizer, in my limited tests).

    David
  • Puppetman - Friday, December 3, 2004 - link

    They used a 32-bit version of MySQL 3.23, when a 64-bit version of 4.0 or 4.1 are available.

    No statement as to the storage engine used in MySQL (ISAM, MyISAM, InnoDB, BDB, etc), but all the big sites using MySQL (Google, Yahoo, etc) use the InnoDB engine, as it provides ACID transactions, tablespaces, foreign keys, etc.

    These tests are like testing a Pentium 4 3.4ghz EE CPU with Windows 98.

  • mbhame - Friday, December 3, 2004 - link

    Would've been nice to see some Oracle and SQL Server benches!
  • lindy - Friday, December 3, 2004 - link

    Our people soft environment consists of a application/web server running on Windows 2000 up front, with a SUN UNIX server running Oracle on the back end. In Nov-Dec the database server is busy…review/pay raise time of the year. The rest of the year it hums along.

    We have mostly two tier applications, WEB or Application up front on a server, database in the back on a server. However lots of turn key solutions like our Crystal Reports server and our Remedy server are an application on top of MS SQL….so essentially database servers.

    Exchange is a beast, every user hits our single Exchange 2003 server….1600+ users with a total 300+ gigs of email. You are right it’s basically a database server with the Exchange application sitting on top of it…..there is no way to separate it. Exchange 2003 would be a great test for you as there are lots of load simulators for it out there that can simulate many users pounding it.

    Why use a NAS when you have a SAN? Our 2 big Windows storage server 2003 file servers use a SAN for their 2 terabytes of data. These servers are backed up over fiber to a tape silo attached to the SAN. It’s about the fastest backup solution out there today. To your point the data on those file servers are slowly moving to a sharepoint solution which is a WEB server up front, and a big MS SQL database in the back….a pretty big paradigm shift.

    Anyhow good article, and happy holidays!!!
  • tygrus - Friday, December 3, 2004 - link

    What was the MySQL scalling like with the Opterons?

    Other OS's, other DBMS, MS Server 2003, MS SQL ?
    Nocona ?
    4-way intel vs 4-way AMD ?

    While it's nice to isolate the CPU performance, I would like to see some more variety and real life tests for the next edition. Part of a DB server is the IO handling and disk sub-system. Try to set them up with same (best) SCSI drives (SCSI RAID card ? on-board, OEM best or after market?). A few more serach, report, maintenance and data mining tasks would be nice. Capacity and expansion options (and cost) for more disks and backup.

    The other thing is that less CPU % usage for a given workload will reduce latency for potentially greater productivity. You don't want a DB server running at >50% for most of the time for speed, reliability, transaction growth, DB growth, emergency capacity. If it was <50% then failure of a CPU or it's associated memory (for Opterons) then the server ccould be run without it. I'm not saying that the system would be limited by disk IO to have that CPU <50% but that the system as a whole would be running at half its peek.

  • Scali - Friday, December 3, 2004 - link

    This is nice, but I still miss a few configurations that I would be interested in... For starters, Xeons running in 64 bit mode... And I also wonder how Windows would perform. Windows may scale quite differently from 1 to 4 or more CPUs, and HyperThreading may have a different impact aswell (especially with Windows XP or 2003, which have special scheduling strategies for HyperThreading).
    I hope that these will be covered in future benchmarks. They will put these results in a new perspective.
  • Bonebardier - Friday, December 3, 2004 - link

    I know, why don't I give my posts more thought - sorry Anand, I got my Tyan model numbers mixed up! The board used does of course show Opteron off to its best.

    Here's my sign!
  • Bonebardier - Friday, December 3, 2004 - link

    Yet another AMD vs. Intel review that handicaps the AMD contender unduly - why was the Opteron platform equipped with a K8W, when a K8S Pro would have provided double the memory bandwidth, or have I answered my own question?

    I'm looking at building an Opteron based server and would never dream of providing it with only a single bank of dual-channel RAM shared between the two, certainly not when a board is available that allows each processor to have it's own bank of DC RAM, which can be shared with the other processor if needed. Database apps are precisely the type of app that would benefit from this.

    Come on Anand - give your articles the thought they deserve, unless this one was just an Intel Nocona advert......

Log in

Don't have an account? Sign up now