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

  • markwrob - Friday, February 4, 2005 - link

    Great article. One thing I'm looking for on
    this and similar comparisons is how the rigs
    or their components do on power consumption.

    Are there any places to find that out easily?
  • markwrob - Friday, February 4, 2005 - link

  • vaxinator - Monday, December 13, 2004 - link

    Very interesting review. I think you are wise to narrow your scope to basically in-memory queries, since this pretty much ensures you are testing just the CPU and memory. Disk I/O is another topic.

    I would be interested to know a few more details about the database (the data model) and the actual queries used.

    But the key element you need to watch for is ensuring your client box is not overloaded. I have seen lots of "performance reviews" where the client box was smaller than the device under test...wrong! It should be under-utilized and the cpu consumption/memory use etc should be reported as well. If necessary use lots of client boxes, but watch the network load.
  • rogerjlarsson - Monday, December 6, 2004 - link

    MySQL v. IBM DB2 Single v. Dual
    "MySQL doesn't seem to scale as well as DB2."

    Yea, right... It all depends on what level you start from!

    MySQL _Single_ Xeon Concurrency 50: 157
    DB2 _Dual_ Xeon Concurrency 50: 102

    MySQL scales a little to _Dual_ Conc. 50: 222

    DB2 is not even near!!! MySQL might be network
    limited rather than Memory or CPU...
  • davesbeer - Sunday, December 5, 2004 - link

    Decoder

    Oracle's ETL tool is $5k also comes with
    JDeveloper
    Forms Designer
    Reports Designer
    etc.
    etc

    I've worked with some of the biggest financial institutions in the world including ABN Amro... etc...
    Oracle's DB also is less costly then MS.. Not thier EE version but then again MS has nothing to compete with that one..

    Also you mentioned MS tools are the best.. not likely.. they are the easiest to use but far from the best.. The worlds biggest datawarehouses, datamarts etc.. are not on MS and they don't use MS's tools... except for maybe MS's themselves...
  • jensend - Sunday, December 5, 2004 - link

    Comparing these systems in 32-bit mode with a 2.4-based distro makes very little sense. Among a lot of other reasons, the 2.4 scheduler is AFAIK rather poorly suited for use with combined SMT & SMP.
  • marcuri - Saturday, December 4, 2004 - link

    as #5 methods are far from being anywhere remotely 'mature' as the article states. Actually, after talking to people who run databases, its close to useless. The benchmarks used test cpu speed, not memory or memory management. Opterons are a better solution because they are 64 bit and thus handel the management of 4+gigs of memory much better (it starts in excess of 1gig that 64 helps out i believe). By using a data set of 1 gig the benchmarks are completely missing whats important, its niave at best.
  • Decoder - Saturday, December 4, 2004 - link

    davesbeer:

    I've worked with Oracle 8i, 9, IBM UDB v7, SQL Server 6.5,7, 2K and 2005. I also do J2EE, ETL (Informatica, Datastage, DTS), .NET etc. $ for $, MS SQL Server 2005 is a much better value.

    Have you ever built a data mart using MS SQL Server DTS? It's an ETL tool that comes with MS SQL server for free. Try building a data mart on Oracle and you will find yourself spending 100K US for an ETL tool. Also from a developers perspective, SQL Server tools are the best (Read up on SQL Profiler, Query Analyzer etc).

    .NET not scalable? Scalable compared to what? J2EE EJB's?? Please. Sure there's a limit to scalability on 32-bit boxes, but with x86-64 and 64bit OS's, that limit will go away.

    davesbeer: "SQL Server is for people who can't program real databases"

    Program databases? Please elaborate. You code to a database, design a database, write procs for a database but what does program databases mean?

    Also, tell that to the Finanical Services companies in New York.

    davesbeer: "SQL Server will be delayed again... (you can remember I said that) and the technology is already outdated."

    SQL Server 2005 will be extremely popular. Also SQL Server 2005 DTS (a complete rewrite) will penetrate the ETL market.


  • davesbeer - Saturday, December 4, 2004 - link

    Decoder.

    I work with companies that have over 6000 processors actively running multiple databases in thier environments. MS just does'nt compete.. .Net is interesting but again you are stuck with M$ and scalabilty is just not there for real apps. Most financial industries run Sybase... its thier last bastion of full fledged support, I worked with 15 of the largest American Financial institutes, I know what I am taking about. I currently work with some of the largest IT departments in the world. Thousands of developers in a single company alone.. I know IT.
    Oracle, DB2 etc's 64 bit knowledge is far superior to M$ and will remain that way for a long time.. they'll been writing 64bit code for years. SQL Server will be delayed again... (you can remember I said that) and the technology is already outdated. SQL Server is for people who can't program real databases (can feel the flames now) sorry Anandtech but your databases are lightweight... once they grow up you will switch to Oracle or DB2 etc..
  • at80eighty - Saturday, December 4, 2004 - link

    First off: Welcome Johan : )

    next...im a frickin n00b, so pardon my ignorance : )

    my questions may not be entirely on topic, but i hope someone...ANYONE can help...

    im lookin to *build* an entry level server, so i've got the following doubts (based on the following factors) :

    Company: startup...less than a year old

    Expected # of initial users: 8 (2 people will be responsible for writing data, all employees will read db) requirements should go up to 15-20 people (2-4 write: all read) by year end (should business expand as planned)

    Server: Mail + DB + File server in one

    Cost: would be nice to keep things economical , but im willing to stretch for a middle ground : )

    1) What CPU is best bang for buck?
    2) OS will be Windows SBS Premium...was going for this since i gathered MS SQL is the best way to go (more so coz Anandtech uses SQL too :p )...after reading some of the comments im a little confused viz. DB2 v/s Oracle v/s MS SQL...plus Exchange looks kinda sweet too : )
    3) Should i wait for SQL 2005? What benefits if any (with reference to costs) ?
    4) Which is the best front-end in your opinion? i was looking to use Infopath as i found the GUI VERY easy to use and frankly the look is quite easy on the eyes too : p. Also, its important to note that I am *supposedly* the most computer literate in my company...so im looking to create a DB with an easy interface for my employees : p
    5) Is Crystal Reports easy to integrate into MS SQL (or any of the above for that matter)? OR im lookin for a back-end that can export data to Excel, so that i can analyse & crunch numbers
    6) Will i *need* an in-house IT guy to manage the DB? ...or even the server as a whole? (looking to keep costs to a minimum)
    7)


    i've got TONS of further queries (and i dont want to attention-whore on the thread :), so, should anyone have any spare time (and any inclination in the first place : ) to help a fellow AT'er, my mail add is: ucanmailme AT gmail DOT com

    Thanks in advance
    Cheers

    '80'

Log in

Don't have an account? Sign up now