Slashdot Mirror


Comparing MySQL Performance

An anonymous reader writes "With the introduction of the 2.6 Linux kernel, FreeBSD 5-STABLE, Solaris 10, and now NetBSD 2.0, you might be wondering which of them offers superior database performance. These two articles will show you how to benchmark operating system performance using MySQL on these operating systems so you can find out for yourself if you're missing out. While this may not necessarily be indicative of overall system performance or overall database application performance, it will tell you specifically how well MySQL performs on your platform."

362 comments

  1. postgres by fludlight · · Score: 4, Insightful

    what about postgresql?

    1. Re:postgres by TheWingThing · · Score: 5, Informative

      If you R the FA, which not many do these days, he says he didnt have the time though he planned to do both, so he did MySQL. This is mentioned in the first link, which was /.ed last week. The first link was Part 1 which explains the setup and procedure. Part 2 (second link) explains the results.

    2. Re:postgres by Anonymous Coward · · Score: 0

      With MySQL, you always know where the bottleneck is.

      You can then make a good impression simply by switching to a real database.

      MySQL is good for low-frequented blogs and to store unimportant data, but *please* don't use it in a production environment.

    3. Re:postgres by FuzzyBad-Mofo · · Score: 1

      Yes, and where's their comparison of various databases running on Amiga, Atari, and Macintosh hardware? You call this "fair and balanced"?!

    4. Re:postgres by SillyNickName4me · · Score: 1

      While I wouldnt call Slashdot mission critical in anz waz, I would not call it a low frequented blog either.

      Your post was stored using MySQL with InnoDB because that is what slashdot uses.

  2. What no Windows benchmarks? by sjrstory · · Score: 5, Funny

    I thought Windows XP was supposed to be the Fastest and the Most Reliable OS in the World

    ...never believe everything you read on the Intarweb. ;)

    1. Re:What no Windows benchmarks? by dioscaido · · Score: 2, Interesting

      All kidding aside, it would have been good to see these test also running on XP and OSX.

    2. Re:What no Windows benchmarks? by Codename_V · · Score: 1

      I could have sworn that was illegal though.

      --
      Free will is just an illusion
    3. Re:What no Windows benchmarks? by Anonymous Coward · · Score: 0

      And get sued by Apple if OS X came out the slowest. Don't think it's worth the risk.

    4. Re:What no Windows benchmarks? by sbryant · · Score: 3, Interesting

      Certainly, XP (also 2K, 2K3) would have been an interesting comparison. OSX, however, is out of the question - all of the others ran on exactly the same hardware, a dual 1GHz PIII system. The point of the test was to see operating differences, without the hardware being a factor.

      Of course, it would be possible to run the tests on the same Mac under OSX, Linux and any other OS available for that platform. That might have been interesting, but you wouldn't be able to compare the results directly to those from the PIII system.

      -- Steve

    5. Re:What no Windows benchmarks? by Bert64 · · Score: 1

      Well, you could run the opensource darwin kernel on the intel box, not quite OSX but it's the closest you can currently get..
      You could also compare netbsd/darwin/linux between x86 and ppc systems to get some idea of the performance differences between the 2 architectures.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    6. Re:What no Windows benchmarks? by rbanffy · · Score: 2, Interesting

      Maybe one should do it. It is sure useful to evaluate a database platform on many hardware confugurations in the same price/capabilities range. Maybe buying a XServe running OSX from Apple makes sense for doing MySQL more than, say, an IBM xSeries or an Itanic offering from HP running HP-UX.

      Of course, such a test would involve some serious resources not everyone has available.

    7. Re:What no Windows benchmarks? by Anonymous Coward · · Score: 0

      MySQL for Windows has some severe limitations in its current version, most importantly the lack of support for concurrent reads/writes, and it does not take advantage of any of the strengths of Windows. It's like Apache 1.x, which could be compiled for Windows, but it's still a UNIX program compiled for Windows, versus Apache 2.x which is totally optimized for Windows and takes advantage of I/O Completion Ports.

      I am personally working on eliminating the performance limitations of MySQL for Windows.

      BT

  3. That's all well and good, but... by Sheetrock · · Score: 5, Insightful
    MySQL is a different animal from PostgreSQL, which is itself a horse of a different color than DBI. To truly profile these operating systems you must take into account the differences in:
    • Tuple calculus
    • Transaction journaling
    • Operator space/system call overhead
    • Disk cache timings
    And much more... in essence, you can't be certain these benchmarks hold true for the performance of all databases and it may even be a mute argument -- the same operating system may be tweaked differently if you're fileserving or mailserving or networkserving or if you're only dataserving. A useful tool, but one that must be run on each server.
    --

    Try not. Do or do not, there is no try.
    -- Dr. Spock, stardate 2822-3.




    1. Re:That's all well and good, but... by _generica · · Score: 4, Informative

      and it may even be a mute argument ...

      or even more likely, a moot argument

    2. Re:That's all well and good, but... by iamsure · · Score: 2, Funny

      Quoting Joey Tribbiani: "Its a moo point. It's like a cows opinion, its just moo."

    3. Re:That's all well and good, but... by Tethys_was_taken · · Score: 1

      Who said anything about PostGreSQL?

    4. Re:That's all well and good, but... by Anonymous Coward · · Score: 1, Funny

      ...it may even be a mute argument...

      My favorite! Sometimes I can win those!

    5. Re:That's all well and good, but... by dubl-u · · Score: 5, Funny
      and it may even be a mute argument ...
      or even more likely, a moot argument

      So you think. It's all the rage now to have technial meetings where nobody speaks and all arguments are made through pantomime. I'm sure that's what he's talking about.

      My favorite thing to explain that way is an elevator algorithm, although stochastic fair queueing is a close second.
    6. Re:That's all well and good, but... by Anonymous Coward · · Score: 1, Funny

      When you can compare someone's grasp of language to Joey Tribbiani's, it makes you wonder if they really understood the rest of the words they used in their post like "Tuple calculus", "Transaction journaling", "Operator space/system call overhead", "Disk cache timings"

    7. Re:That's all well and good, but... by Anonymous Coward · · Score: 0

      > > ...it may even be a mute argument...

      > My favorite! Sometimes I can win those!

      Shut up! Too late, you've lost...

    8. Re:That's all well and good, but... by JabberWokky · · Score: 2, Insightful
      Pretty much exactly what he said in the second article. Of course, he presented this specifically as a MySQL benchmark rather than a general OS comparison, so you've just killed a straw man.

      --
      Evan

      --
      "$30 for the One True Ring. $10 each additional ring!" -- JRR "Bob" Tolkien
    9. Re:That's all well and good, but... by NutscrapeSucks · · Score: 1

      Since none of the tests apparently simulated client load, this seemed more like an OS benchmark (for MySQL) than a database benchmark. (despite however everyone is spinning it).

      --
      Whenever I hear the word 'Innovation', I reach for my pistol.
    10. Re:That's all well and good, but... by 10Ghz · · Score: 2, Informative

      If this was a database-benchmark, he would have compared different databses running on same system. But this wasn't a database-benchmark. He benchmarked different OS'es running MySQL. No-one is trying to spin this in to a databse-benchmark, since this is not a database-benchmark. Hell, everyhting I have seen indicates that these articles are about the performance of the OS, and not performance of the database!

      --
      Lesbian Nazi Hookers Abducted by UFOs and Forced Into Weight Loss Programs - -all next week on Town Talk.
    11. Re:That's all well and good, but... by Anonymous Coward · · Score: 0

      Tuple calculus

      WTF is that - adding up a vector? How is this the OS's responsibility?

    12. Re:That's all well and good, but... by PieEye · · Score: 3, Funny

      Man, if I had a nickel for every time I saw a mute stochastic fair queueing argument at Starbucks...I'd...uhhh...never mind.

      --
      ... in bed.
    13. Re:That's all well and good, but... by LDoggg_ · · Score: 2, Funny

      Man, if I had a nickel for every time I saw a mute stochastic fair queueing argument at Starbucks...I'd...

      Still not be able to afford a cup of their coffee?

      --

      "If they have both, tell them we use Linux. And if they have that, tell them the computers are down." -Dave Chapelle
    14. Re:That's all well and good, but... by zootm · · Score: 1

      and it may even be a mute argument ...

      or even more likely, a moot argument


      "You are technically correct. The best kind of correct."

    15. Re:That's all well and good, but... by Anonymous Coward · · Score: 1, Funny

      Soory, wrong answer. The card says "moops".

    16. Re:That's all well and good, but... by JabberWokky · · Score: 1
      Yep - you put it better than I did.

      This is a benchmark of how a specific database runs on different OSes. Period. It's pretty simple, but people seem to think that it is something else or was presented as something else. It wasn't. Simplicity seems to be beyond people.

      --
      Evan

      --
      "$30 for the One True Ring. $10 each additional ring!" -- JRR "Bob" Tolkien
    17. Re:That's all well and good, but... by bertybassett · · Score: 0

      Dr Spock my arse - It was YODA

      --
      Wibble-Wobble, Wibble-Wobble, jelly on a plate
    18. Re:That's all well and good, but... by Anonymous Coward · · Score: 0

      Excuse me? What is shoved up your arse? Yoda? WTF?

    19. Re:That's all well and good, but... by Anonymous Coward · · Score: 0

      I would marry you, in wherever gay marriage is legal in the U.S., just for your UID.

  4. mmm - performance by zoloto · · Score: 2, Informative

    There was another test that included PG-SQL, but I can't find the link now. Basically stating that posgresql burned the rest of them out of the water on a mid ranged server

    if anyone finds the study/test, post a link?

  5. Other Benchmarking by X43B · · Score: 0, Offtopic

    Does anyone know of a nice computational/science benchmark that runs on Linux/Windows/BSD and is free?

    Something along the lines of Linpack would be neat. Yes, I know hpl exist but there it isn't in the yum package list for Fedora Core 3 and I couldn't get all the dependcies worked out doing it separately (being a dumb engineer not a CS guru).

    1. Re:Other Benchmarking by tomstdenis · · Score: 1

      I'd say that depends more on your compiler than anything else. Even in windows [the OS we love to hate] once the application is in ram it can steal pretty much the entire CPU time if it wants.

      Then even on the heap side [e.g. libc] is fairly standard if you use GNU libc.

      Things like file performance [or network] do vary because different OSes offer different storage algorithms [e.g. JFS vs Reiser vs Ext2 vs ...].

      Tom

      --
      Someday, I'll have a real sig.
    2. Re:Other Benchmarking by E_elven · · Score: 5, Funny
      Does anyone know of a nice computational/science benchmark that runs on Linux/Windows/BSD and is free?


      Try:
      int main(int argc, char** argv)
      {
      for (long i = 0; true; ++i)
      {
      char* x = new char[i*i];
      std::cout << "I love Stevie Hawking!" << std::endl;
      }
      }
      You'll need a stopwatch.
      --
      Marxist evolution is just N generations away!
    3. Re:Other Benchmarking by GreyWolf3000 · · Score: 1

      You should have used malloc--in Linux, you malloc till you run out of memory, Linux starts killing processos to free it up.

      --
      Slashdot: Where people pretend to be twice as smart as they really are by behaving like children.
    4. Re:Other Benchmarking by GreyWolf3000 · · Score: 1

      Doh! Please no one correct me, please no one correct me...

      --
      Slashdot: Where people pretend to be twice as smart as they really are by behaving like children.
    5. Re:Other Benchmarking by Anonymous Coward · · Score: 0

      Would you like some salsa to go with those processos? =P

    6. Re:Other Benchmarking by Anonymous Coward · · Score: 0
      once the application is in ram it can steal pretty much the entire CPU time if it wants.

      Nonsense. Ever heard of something called preemptive scheduling?
    7. Re:Other Benchmarking by joib · · Score: 1


      Does anyone know of a nice computational/science benchmark that runs on Linux/Windows/BSD and is free?


      Linpack, stream, polyhedron, livermore kernels, you name it. Most of them are freely available and require little more than a Fortran compiler.

    8. Re:Other Benchmarking by Anonymous Coward · · Score: 0

      Doh! Please no one correct me, please no one correct me...

      Don't worry, I won't correct your atrocious lack of of spelling skills.

      What I will point out is your complete lack of knowledge about *nix userland memory management. There is no such thing as malloc in the linux kernel that userspace sees. malloc is entirely a userspace concept. There are only a handful of ways to get memory from a *nix system (brk and mmap), it doesn't matter if it's new or malloc you are using. new might quite possibly use the libc malloc in fact.

  6. Tuning on FreeBSD by zulux · · Score: 5, Informative

    On a PostgreSQL install, I almost quadrulpeled performance on FreeBSD 4.10 by bumping up the SHMMAX in FreeBSD, then tweaking PostgreSQL to use it for queries and indexes.

    Make sure FreeBSD has DMA turned on as well, and make CFLAGS somthing other than a 486.

    All of the *BSD are *VERY VERY* conservative and will do a lot better when properly configured.

    --

    Moneyed corporations, non-working 'poor' and criminal prisoners are turning productive citizens into tax-slaves.

    1. Re:Tuning on FreeBSD by Anonymous Coward · · Score: 1

      Indeed, FreeBSD focuses on stability, and you can in many cases get ten fold performance increases in tuning specific parts.
      By doing generic tuning you can expect a doubled to quadrupeled performance.

      In essence, these tests are stupid, you need to know your system well and what you want from it.
      Linux lack in stability and shine in performance, that doesn't mean it's bad, but it doesn't fit everyone's shoes.

    2. Re:Tuning on FreeBSD by Anonymous Coward · · Score: 0

      >>Linux lack in stability and shine in performance, that doesn't mean it's bad, but it doesn't fit everyone's shoes.

      >Of course it's bad.


      No, it isn't. I'd choose FreeBSD over Linux every day, but using words like 'morons' and 'retards' is just flamebaiting.
      Get a clue

      --
      Requiem for the FUD

    3. Re:Tuning on FreeBSD by Anonymous Coward · · Score: 0

      Uhhh, but I am trolling.

    4. Re:Tuning on FreeBSD by a11 · · Score: 5, Interesting

      Valid point. RedHat Linux is tuned for Oracle - including a larger shared memory region. A more valid comparison would be if each OS was first tuned for the database.
      Something like shared memory, which is used for sorting, caching, and hashes, would slow a database down quite a bit if there was not enough.
      I work with multi-terabyte databases daily, and by my observation, the flavor of UNIX is irrelevant if the IPC resources are adequate. When you're scanning a gig from disk, all DMA, an extra second in the kernel doesn't count in the O().

    5. Re:Tuning on FreeBSD by molnarcs · · Score: 4, Interesting
      It is almost a pity that ULE came back online just recently. I would be very much interested in a test with the ULE scheduler as well. See this post.I've been stress-testing it in the past few days (capturing tv progs with rtrpio 0 on mplayer into divx5 624x468 all filters - hqdn3d,hb/vb/dr/lb/ etc. - on in 4800 bitrate - on my athlon xp 2400+ and a very crappy capture card) - and so far, no problems.

      Nevertheless, this is a very good benchmark conducted in a fair manner. I was pretty much surprised at how the guy lacking support (from Solaris no less) went on to find out by himself how to increase performance. This also underlies the point made by many in the "netbsd vs. free" benchmarK about the focus of FreeBSD being SMP in the past few years ... which has payed off nicely it seems.

    6. Re:Tuning on FreeBSD by Dom2 · · Score: 2, Informative
      Bear in mind that there are limits to the effectiveness of this technique. Spend a while with this tuning document for best results.

      -Dom

    7. Re:Tuning on FreeBSD by cjsnell · · Score: 1


      Would you mind posting your tunings? Or, e-mail them to cjsnell on the gmail.com. :)

      Chris

  7. If TFA gets slashdotted, these are his conclusions by TheWingThing · · Score: 5, Informative

    Conclusion/final thoughts

    Both Linux 2.4 and 2.6 had the strongest showing overall for these tests, dominating just about every benchmark no matter the workload. Scalability for both kernels was also excellent with addition of an extra processor. In fact, I was surprised how well 2.4 had done, as I had somewhat expected 2.6 to show at least a noticeable, if slight, increase over 2.4. Instead, they took turns besting each other from test to test -- and in scalability -- for a fairly even overall showing.

    Solaris 10 had a very strong showing as well, having great speed as well as great scalability. I think the results show that Solaris 10 is a great platform for MySQL. Of course, I didn't have Super Smack results as I couldn't get Super Smack to port to Solaris (as detailed in the previous article), so bear that in mind.

    NetBSD 2.0 also had a very strong showing, although it was tarnished by two issues. One, MySQL on NetBSD 2.0 doesn't scale with the addition of CPUs. The results would seem to indicate that it might be wise to run a uniprocessor kernel even if two processors are available. The other issue was the poor I/O performance for the 10M row SysBench test. The SMP scalability issue is easy to understand since, to be fair, this is the first NetBSD release to support multiple processors. The I/O issue is more of a mystery, however.

    FreeBSD 5.3 did relatively well in both KSE and linuxthreads mode, although with all the work that's been done in the SMP and threading realms, I was a little disappointed with the results. Still, it seems that the native threading model for the production release of FreeBSD-5 is ready for prime time, and can replace the long-standing FreeBSD convention of using linuxthreads with MySQL.

    For FreeBSD 4.11, however, linuxthreads definitely helped with performance (and in many cases outperformed FreeBSD 5.3). With libc_r, performance lagged far behind linuxthreads for many tests, and there was little scalability. I would say it's highly advisable to build your FreeBSD 4.11 MySQL binary with linuxthreads.

    For all the time it took, I think the tests were worth it. I learned quite a bit about MySQL performance in general, and I'd like to again thank Peter Zaitsev for his methodology recommendations and input, as well as Jenny Chen from Sun for her input.

  8. Why do people use MySQL over Postgres? by Vellmont · · Score: 4, Insightful

    Slightly off topic, but if it's really performance you want, why don't people just use Postgres? It's had a much better feature set for years, and is starting to get enterprise level features. It seems like MySQL is somehow the default choice for open source projects, but as far as I can tell it offers no advantages and many disadvantages over postgres.
    Is it just MySQL is slightly easier to setup?

    --
    AccountKiller
    1. Re:Why do people use MySQL over Postgres? by james_orr · · Score: 2, Insightful

      MySQL got the head start. Postgres has had a better feature set for a long time now, but when I first looked at it you couldn't do left joins and all triggers had to be written in C. At the same time MySQL could ... well .. do what MySQL does now.

      So MySQL became the popular open-source database.

    2. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0

      What I don't understand is why many projects use MySQL or Postgres AT ALL. Don't get me wrong, they are both great, but it just isn't appropriate to use specialized relational database software when a simple single file database will do just fine.

      Same goes for XML, people use this stuff everywhere and anywhere they can. It's like I give you some wood and I ask you for a cabinet. You build me a cathedral. I don't want a cathedral. I just want a place to put my TV.

    3. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0

      Just like how PHP 'won' out over Perl, except Perl is actually useful.

      PHP is to Perl (or Python and Ruby) what Linux is to FreeBSD and MySQL to PostGres.

    4. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0

      I just can't figure out why people like you can't shut the fuck up. Maybe people choose mysql because they fucking want to. It's not slightly easier to work with, it's a hell of a lot easier to work with.

      Besides, what the fuck do you care? If someone wants to use MySQL, Postgres, or even microsoft sql server, why the fuck do you give a shit? You *really* should get a life!

      So please, shut the fuck up and go shove postgres up your ass, ok?

    5. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0
      So please, shut the fuck up and go shove postgres up your ass, ok?
      Sounds to me like someone already has a postgres stuck up their ass.
    6. Re:Why do people use MySQL over Postgres? by Unordained · · Score: 3, Insightful

      I was at Barnes & Noble tonight, waiting to go pick someone up at the airport. Looking through the tech-book section, apart from noticing a lack of theory books, I noticed that MySQL has done well for itself in the publishing world. SQL books most often refer to MySQL for examples, PHP books (and other "learn this language so you can incorrectly apply what you halfway learn to any problem you encounter" books) generally include a large section devoted to database stuff, seemingly always involving MySQL ... There were more MySQL books than Oracle books, more Oracle books than MS-SQL books, more of those than of PostgreSQL books, and no Firebird, MaxDB, Ingres, DB2, Cloudscape, HSQL, etc. books that I recall.

      If most all programming were taught in Basic, don't you think people would wind up coding apps in Basic, regardless of its actual worthiness? (Today, it's Java, not Basic. But now I've called upon myself the wrath of the Java coders.)

      I personally use Firebird at work and at home. Installation is a snap, particularly from binaries. Unpack, run installer, go. Works under *nix and windows, and has an embedded version appropriate for standalone apps. Its creator is the father of generational record-keeping (which some RDBMSs like MS-SQL have only recently gotten around to), and it's like an "easier to use under windows" cousin to PostgreSQL, feature-wise.

      Other than good marketing (including a lot of word-of-mouth rumors) in favor of MySQL, I can't explain its success. When you have to help someone implement a query as a correlated sub-query because their RDBMS of choice (MySQL) doesn't do certain joins properly, or doesn't do them quickly (yes, even with indexing -- the optimizer is just stupid), ... you start to wonder why they don't use an RDBMS where they can express exactly what they mean, directly, and have it be fast. And MySQL's popularity has lead to a lot of people learning some very bad habits (particularly about doing a lot of client-side work, like joins or aggregates, or using sub-queries where joins should work) ... but people love it! (I think this is related to the stockholm syndrome, in a way; I also see it with data-entry clerks who are convinced that their crappy, buggy, expensive, old, vendor-supplied software is better than anything anyone will ever build, ever. If you're an in-house programmer, you're not a real programmer, either. Masochists.)

    7. Re:Why do people use MySQL over Postgres? by harlows_monkeys · · Score: 2, Informative
      Slightly off topic, but if it's really performance you want, why don't people just use Postgres?

      When I measured MySQL and PostgreSQL on very simple databases, MySQL was faster (slightly faster on reading, waaaaaay faster on writing). Since most things people need a database for just requires simple databases, MySQL wins on performance in most applications.

    8. Re:Why do people use MySQL over Postgres? by Duncan3 · · Score: 4, Informative

      Um, actually Postgres, tho named differently at the time, predates MySQL by a good decade.

      --
      - Adam L. Beberg - The Cosm Project - http://www.mithral.com/
    9. Re:Why do people use MySQL over Postgres? by jadavis · · Score: 1

      Interesting point.

      Perhaps there's room for a simple embedded database that allows you to filter the results easily? I think SQLite might fit this description.

      If you're making a "DB agnostic" application (by which I mean you just dumb the application down so that it doesn't use any relational features), I think it's a better idea to just bundle SQLite and then it doesn't matter what database they have.

      Personally, I usually have several applications accessing the same data set, so I use an RDBMS for that (for many reasons). But many off-the-shelf web apps just don't benefit from that kind of thing.

      --
      Social scientists are inspired by theories; scientists are humbled by facts.
    10. Re:Why do people use MySQL over Postgres? by fiftyfly · · Score: 1
      What I don't understand is why many projects use MySQL or Postgres AT ALL.
      <snip>
      Same goes for XML, people use this stuff everywhere and anywhere they can
      Why replicate database functionality when you don't have to? Esp if there a good chance there's a server in widespread use, probably already installed, available? Same thing goes for text file parsers. If you're going to store, transmit or import text files it makes sense to use XML. There's no point in wasting time, effort and encouraging engineering gotchyas be writing your own parser when a perfectly good tool is available. Leverage the tools and build something worth taking an interest in, don't waste those resources builing yet another $tool.
      --
      "Sanity is not statistical", George Orwell, "1984"
    11. Re:Why do people use MySQL over Postgres? by jadavis · · Score: 1

      waaaaaay faster on writing

      I'd be interested to see some benchmark results. I doubt that is true for highly concurrent UPDATEs. And you also failed to mention whether you were using MyISAM or InnoDB.

      I think that databases should be benchmarked based on the application, not a set of queries.

      Also, you should take into account concurrency, since that usually matters when performance matters.

      --
      Social scientists are inspired by theories; scientists are humbled by facts.
    12. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0

      I like Postgres, but all the benchmarks I've seen show MySQL with InnoDB tables being much faster. Do you have any links to benchmark results where Postgres comes out faster? I'm mostly looking for InnoDB table benchmarks, because I need transactions and referential integrity.

    13. Re:Why do people use MySQL over Postgres? by HyperChicken · · Score: 1

      "Very simple databases" and I'm guessing "very simple load". Try comparing PostgreSQL and MySQL while doing concurrent SELECT's, INSERT's, and UPDATE's. PostgreSQL will be faster under high concurrent load as it does row locking instead of table locking. PostgreSQL handles higher load than MySQL in general. Speed is usually pointless: It takes more time to run the PHP script or transfer the data back to the web client than it does to recall from the database.

      --
      Free of Flash! Free of Flash!
    14. Re:Why do people use MySQL over Postgres? by HyperChicken · · Score: 1

      A general statement like "it makes sense to use XML when dealing with text files" is pure stupidity.

      XML increases the data size which increases the time it takes to transfer, the disk space, and the memory space it uses. Further, XML parsers are rather slow.

      XML? I wouldn't.

      --
      Free of Flash! Free of Flash!
    15. Re:Why do people use MySQL over Postgres? by SerialHistorian · · Score: 5, Insightful

      I've written a bunch of enterprise-class stuff on MySQL.

      The first and second answers are inertia. All of my tools work with MySQL and I'd have to spend a week or two re-writing them for PostgresSQL, and I can't shake loose that kind of time right now.

      Also, I have a set of redundant, mirrored MySQL servers in my colo box that run all of the websites I've built, and I'd have to get more rack space or convert everything over to Postgres at the same time. Neither of which are cost effective when what I have ... works.

      The third answer is that MySQL is blazingly fast at doing simple things. Where Oracle (The other RDBMS that I'm familiar with) can return simple select queries or complex insert or joined select queries in .5 to 1.0 seconds each, MySQL can return simple queries in .01 seconds and stupidly complex queries in 5-10 seconds. Since 100% of what I'm doing is simple selects or can be hacked very quickly to seem like simple selects, there's no reason to use anything more powerful for what I'm doing.

      I don't need to have "good habits" ... I don't need to have nth degree optimized queries. I don't use 99.99% of the features that MySQL has, not to mention all the features that Postgres has that I wouldn't use. (And don't get me started on Oracle.) It's also faster for me, in both database query return and programmer time, to execute 5 simple, general, fast queries that are part of a code library (and when the database structure changes, edit that one code library) than it is for me to write one really complex query for each code module (and have to edit every module when the database structure changes).

      What it comes down to is that it works well as a lightweight database for websites and web apps, and there's a ton of community support and literature. It's not Oracle. It never will be. It's not useful for everything. But when you need a lightweight database to handle a ton of simple select queries without melting down, .... MySQL fits the bill. Why swat a fly with a sledgehammer?

      --

      --
      Vote for your hopes, not for your fears - Vote Third Party

    16. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0

      I agree with you completely, I'm just saying that often people don't use the right tool for the job. If you can get away with it, just use the serialization functions or whatever your language of choice has. Sure, there isn't any point in writing and debugging your own parser if it is going to take more than a couple days, but I've seen a fair share of programs that use XML and MySQL in the most obscene ways.

    17. Re:Why do people use MySQL over Postgres? by fiftyfly · · Score: 1
      A general statement like "it makes sense to use XML when dealing with text files" is pure stupidity.
      Yeah I can see how such gneralization would be *ahem* stupid
      XML increases the data size which increases the time it takes to transfer, the disk space, and the memory space it uses. Further, XML parsers are rather slow.
      b/w is cheap, disk space is cheap, ram is cheap, cpu time is cheap, developer time well maybe not so much. If one is looking at a problem and the solution seems to be text files then non of your concerns are likely to a consideration. Engineering time and tool compatability are though.
      XML? I wouldn't.
      Never said you did but methinks someone has prematurely jumped on the XML bashing wagon. There are many problem domains where the _best_ solution isn't necessarily the most elegant or the most efficient one.
      --
      "Sanity is not statistical", George Orwell, "1984"
    18. Re:Why do people use MySQL over Postgres? by bani · · Score: 2, Insightful

      because mysql is easier for ISPs to manage. adding new users with very fine grained db control is very simple for ISPs. not so with postgresql -- it can be a real bear for ISPs to manage with 1000's of separate users.

      and ISPs are the driving force behind a lot of what is widely deployed.

      this is one of the same reasons PHP won out over everything else -- because it integrates easily and because it's easy to manage. not because it's "the best" designed language or the most powerful.

      mysql is "good enough", quite frankly the majority of people out there using sql in deployment are using eg phpbb or postnuke or whatnot and would gain little to nothing from using postgresql.

    19. Re:Why do people use MySQL over Postgres? by nileshbansal · · Score: 0, Troll

      One reason for prefering MySQL over Postgres is that MySQL has more (fancy) features. For example MySQL supports unicode while Postgres does not (this was the case 1 year back, I don't know about present status of Postgres).

    20. Re:Why do people use MySQL over Postgres? by HyperChicken · · Score: 1

      b/w is cheap, disk space is cheap, ram is cheap, cpu time is cheap, developer time well maybe not so much. If one is looking at a problem and the solution seems to be text files then non of your concerns are likely to a consideration. Engineering time and tool compatability are though.

      Saying things like "hardware is cheap" leads to the performance problems of today. It's extremely bad thinking by a developer and leads to bad code.

      There are plenty of areas where text files are fine but XML is not.

      Never said you did but methinks someone has prematurely jumped on the XML bashing wagon. There are many problem domains where the _best_ solution isn't necessarily the most elegant or the most efficient one.

      I think someone haphazardly jumped on the XML bandwagon after being sucked in by the media hype, never having actually looked at the "technology".

      --
      Free of Flash! Free of Flash!
    21. Re:Why do people use MySQL over Postgres? by Profane+MuthaFucka · · Score: 3, Informative

      Postgres supports unicode now.

      --
      Fascism trolls keeping me up every night. When I starts a preachin', he HITS ME WITH HIS REICH!
    22. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0, Informative

      because mysql is easier for ISPs to manage. adding new users with very fine grained db control is very simple for ISPs. not so with postgresql -- it can be a real bear for ISPs to manage with 1000's of separate users. You are 100% wrong on that. PostgreSQL user management support is far superior to MySQL in every way.

    23. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0

      You are completely wrong. PostgreSQL supersedes MySQL in terms of features

    24. Re:Why do people use MySQL over Postgres? by Boronx · · Score: 1
      So I don't have to write my own data routines all the time.

      So if I get hit by a truck, all accumulated data is right there, easily accessible even before my replacement has figured out my horrid code.

      It scales. They've put a lot of working into making it easy to complexify your data structures as you need to. That's work I don't want to do, and especially don't want to wish I had done 3 years ago.

      If I want to do some little thing, I can do it painlessly in any language I want, because someone else has already written the API.

      And, sort of as a side benefit, it makes think of your data structure in a differently, which can occaisionally be enlightening.

    25. Re:Why do people use MySQL over Postgres? by ozzee · · Score: 4, Informative
      > Postgres does not (this was the case 1 year back

      What are you talking about ? Postgresql has supported unicode for at least 4 years that I know of, probably more. You will need to create the database to support unicode.

      From the man page:
      createdb - create a new PostgreSQL database
      ...
      -E encoding
      --encoding encoding
      Specifies the character encoding scheme to be used in this database.

      --encoding UNICODE will work only if the support is compiled in
      - configure the database as
      % configure --enable-multibyte=UNICODE

    26. Re:Why do people use MySQL over Postgres? by Unknown+Relic · · Score: 2, Informative

      And MySQL's popularity has lead to a lot of people learning some very bad habits (particularly about doing a lot of client-side work, like joins or aggregates, or using sub-queries where joins should work)

      I'm sorry, but how does MySQL's popularity lead to people using sub-queries in place of joins? It's only with MySQL 4.1 which was only recently released that decent sub-query support even existed in MySQL. As for the comment about indexes, it's been possible to specify exactly which indexes a query should use for ages. Now, I'm the first to admit that MySQL is far from perfect, but we don't have to go making up additional flaws to knock it with.

      That being said, I do think you're right about MySQL's marketing efforts being a major part of its success. I also think you hit the nail on the head with regards to the ease of installation, or actually, ease of maintenance. While it's not an issue any more, Postgres used to be burdened with table locking issues from vacuum, essentially forcing the database offline while it performed its daily maintenance. MySQL never had this problem and ran well on cheap hardware, and so was at the time a natural choice over Postgres for use on the web. Since then it's continued to be good enough for most people (and is getting MUCH better with 4.1 and the upcoming 5.0 release) and as such there's been little inclination to go through the hassles of migrating to another RDBMS. As long as it continues to be good enough, people will keep using it.

    27. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0

      >PostgreSQL will be faster under high concurrent load as it does row locking instead of table locking.

      MySQL can do both row locking and table locking, depends on which table type you choose.
      http://dev.mysql.com/doc/mysql/en/innodb- overview. html

    28. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0

      Yes I agree, I was talking about the "little things" that people inappropriately use MySQL for. If I think the program I'm working on might some day require MySQL (or similar) I will add an extra layer of seperation between my code and the database, so at some later time I can just add the MySQL stuff in.

      This of course is for simple programs, I have no problem with using MySQL from the get go for complicated problems.

      Oh, and Subspace rocks! I haven't thought about that game in years. I was a beta tester back in the day before they started charging for it. I take it there are free servers now? I'll have to check it out.

    29. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0
      OK, I call bullshit. This is how you add a user bar with access to the database foo in MySQL:

      mysql> CREATE DATABASE foo;
      mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP
      -> ON foo.*
      -> TO 'bar'@'localhost'
      -> IDENTIFIED BY 'password';

      How do you do it in PostgreSQL?

    30. Re:Why do people use MySQL over Postgres? by aDc_73 · · Score: 0

      I have used both MySql and Postgres on my Linux server. From a beginner's perspective, syntax is my main reason to use MySql over Postgres. For example compare Postgres's sequences:

      create sequence seq_id_Folder increment 1
      minvalue 1
      cycle;

      create table Folder (
      FolderId int primary key default nextval('seq_id_Folder'::text),
      ...
      );

      To MySql's auto_increment:

      CREATE TABLE `folder` (
      `FolderId` int NOT NULL auto_increment,
      ...
      );

      btw did I mention that the MySql installer for windows rocks!
    31. Re:Why do people use MySQL over Postgres? by zyridium · · Score: 1

      And if you want to use a database with the benefits of both, try MSSQL :)

    32. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0

      This just reinforces the view that MySQL is popular for stinky noobs, but real men (or women) use postgres.. kinda like perl vs bash!

    33. Re:Why do people use MySQL over Postgres? by Spacejock · · Score: 1

      I use Mysql (and PHP) because the first article I read on dynamic web pages involved LAMP. Finding more LAMP articles was a snap, and a week later my site was working and I didn't care what else was out there.

    34. Re:Why do people use MySQL over Postgres? by Phidoux · · Score: 2, Interesting

      Because MySQL is so much easier to say than PostgreSQL... Sounds like a speech impediment.

    35. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0

      Firebird? What are you using an old browser as a database app for? :P

    36. Re:Why do people use MySQL over Postgres? by Mishura · · Score: 1

      LAMP rocks. For a simple web server that makes use of PHP; its simply the easiest, and the performance ain't half-bad. If you can do this w/o much headache, then why bother with alternatives? (Plus all the components of LAMP is opensource; another plus!)

      Does Postgres/Firebird/etc rock? Perhaps. But MySQL is the most "documented". I can walk into the bookstore and come out with some nice books about PHP/MySQL from different levels of difficulty. That's why its popular.

      Its all about documentation. Printed documentation is the BEST. I simply hate reading stuff on a computer. I'll take a dead-tree book over an ebook or html docs anyday. (No offense to trees. :) )

    37. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 1, Informative

      You obviously have not used postgresql. This is how you normally write it:

      CREATE TABLE folder (
      FolderId SERIAL PRIMARY KEY, ...
      );

      SERIAL was introduced in postgresql 6.4 (1998, that's 7 years ago).

    38. Re:Why do people use MySQL over Postgres? by aDc_73 · · Score: 1
      Well if you like perl and bash you probably like dollar signs, but can you explain wtf is with this syntax (taken from the postgres manual):
      $function$
      BEGIN
      RETURN ($1 ~ $q$[\t\r\n\v\\]$q$);
      END;
      $function$
    39. Re:Why do people use MySQL over Postgres? by aDc_73 · · Score: 1

      Why post as A/C? You made a good point. *adc is a noob* ;)

    40. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0
      It's a halfway decent database and it's available on Windows. Postgres only made it to windows (cygwin doesn't count) a few weeks ago.

      So there's that

    41. Re:Why do people use MySQL over Postgres? by jabuzz · · Score: 1

      Easy, it is historic. Way back in the early days of Linux Postgres did not do SQL, which left you with two choices, mSQL and MySQL. Basically mSQL fell by the wayside due to licensing issues which left MySQL as the only free SQL database available.

      From there on in there is a certain amount of built in momentum that is hard to stop. Just look at the tactics that Microsoft resorted to, in order to overcome the momentum that Netscape had.

    42. Re:Why do people use MySQL over Postgres? by shadowmas · · Score: 1

      i didnt know much about MySQL (still dont) but with all the people talking about it i figured i should give it a try for a new project. i was stunned to see that it either doesnt support or has very wierd quirkies for a relational database. referential integrity is not good, automatic defualt values etc, i admit mysql is fast. but with mysql i end up having to do most of the validation that i would otherwise use the sql server to do.

    43. Re:Why do people use MySQL over Postgres? by HyperChicken · · Score: 1

      I completely admit most of my MySQL knowledge comes from the 3.x days.

      --
      Free of Flash! Free of Flash!
    44. Re:Why do people use MySQL over Postgres? by 200_success · · Score: 4, Informative

      It's even simpler in PostgreSQL. In the psql client shell:

      psql=# CREATE USER bar PASSWORD 'password';
      psql=# CREATE DATABASE foo OWNER=bar;

      Or, use the equivalent on the Unix shell:

      # createuser --pwprompt bar
      # createdb --owner=bar foo

      All of the expected privileges are automatically granted on the foo database to user bar, since bar is its owner!

    45. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0

      HAHAHA owned.

    46. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0

      $ pgctl --grantall -u bar -p password foo

    47. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0

      I'm always curious about posts like this. I've been working with RDBMSes for nearly 10 years, and I don't think I've EVER written an applicaition that didn't use subqueries at the very least.

      Sure, now MySQL has subqueries and transactions etc, but the basic implicaiton of posts like yours is that "I don't use 99.99% of MySQL's features because I'm a Monogolid-class subhuman who doesn't really know any SQL and writes 'enterprise' apps using a fuckload of client-side joins and rollups. Also I smell my own turds. MySQL rocks!".

    48. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0

      I recently was shopping for hosting (San Jose, CA) and not a single provider did not offer PostgreSQL along with MySQL. AFAICT, the whole "hosting" argument is a moot point nowdays.

    49. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0
      So my postgres databases that have

      CREATE TABLE foo (
      id serial NOT NULL PRIMARY KEY,
      ...
      );

      are more complex than MySQL? Personally I find it much easier to work with PostgreSQL, by an order of magnitude.

      ..d

    50. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0

      Since you managed a link , try fucking RTFMing -- it explains exactly what that is -- a non-standard way of avoiding quote symbols.

    51. Re:Why do people use MySQL over Postgres? by Darren+Winsper · · Score: 1

      I do get very annoyed that MySQL automatically creates default values. It really, really annoys me that you can't create a table with, say, a date field in it that can't be inserted into without specifying that date. If you don't specify a date, MySQL doesn't piss and moan like it should, it just puts "0000-00-00" in for you. Argh!

      Regarding referential integrity, I'm not sure why you think MySQL is sub-par, but InnoDB tables seem to behave sanely for what I'm using them for.

    52. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0

      OK, I'm convinced. Thanks for the info!

    53. Re:Why do people use MySQL over Postgres? by Jamesday · · Score: 2, Informative

      Wikipedia uses MySQL's InnoDB storage engine, with row level locking and lots of concurrent inserts and selects. It uses the standard MySQL replication and full text search as well. One database server took the site to the top 1500 or so worldwide. Now, with more than half of the load for search, 5 handle the online load for around 200 million queries and about 1.2 million inserts or updates per day for what Alexa currently ranks as 81st most popular English language site. Before some recent code improvements increased slave server use we had one server doing sustained rates in excess of 3,000 queries per second.

      We'll soon have 40 web servers hitting those database boxes, so we'll take all the speed we can get.:)

      Simply, MySQL gets the job done and has proved sufficient scalability and reliability in practice. PostgreSQL is also clearly an excellent database server. Each has pros and cons. Pick whichever fits the job at hand.

      Memcached, Squid and PHP are also key parts of the scalability picture for Wikipedia.

    54. Re:Why do people use MySQL over Postgres? by aixou · · Score: 3, Funny

      Why swat a fly with a sledgehammer?

      As an exercise of motor skills.

    55. Re:Why do people use MySQL over Postgres? by Bert64 · · Score: 1

      And a default function with the ability to execute SHELL COMMANDS, or write to the registry among other things.. Turning any sql injection vulnerability into a full system compromise.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    56. Re:Why do people use MySQL over Postgres? by zyridium · · Score: 1

      Nice story, apart from the fact it is complete bullshit. Unless you mean you set up your database user to be in the sysadmin role...

      And if you program using the normal database APIs you won't be having any injection attacks anyway... creating SQL commands by concatenating user input is just an ass of an idea anyway...

    57. Re:Why do people use MySQL over Postgres? by hachete · · Score: 1

      Ah, ah. This is the reason that there are a lot of tools out there - which is one of the reasons that I use MySQL in an in-house projects. Not because it's the best featured SQL database in the world. It looks like a benign cycle is in place.

      Most jobs you need tools which are "good enough". Hang on - isn't this one of the reasons that MS win out? It also gives the uber-geeks something to sneer about.

      --
      Patriotism is a virtue of the vicious
    58. Re:Why do people use MySQL over Postgres? by Spacejock · · Score: 1

      I agree - the parts hook together so well and it's a neat acronym to boot.

    59. Re:Why do people use MySQL over Postgres? by higginsm2000 · · Score: 2, Insightful

      I've written a bunch of enterprise-class stuff on MySQL.

      How do you define enterprise class? I certainly wouldn't define a simple website (however large) as an enterprise class application and that seems to be what you are talking about.

    60. Re:Why do people use MySQL over Postgres? by Bert64 · · Score: 1

      Development cost is usually a one-off, bandwidth may be cheap but it soon adds up, as does memory and disk space, therefore the more heavily you plan to use the system the more you benefit from not using xml.. Also, in many places of the world bandwidth, diskspace and cputime are not cheap or readily available while developers are cheap.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    61. Re:Why do people use MySQL over Postgres? by sgtrock · · Score: 0

      Oh, I don't know. I think Slashdot qualifies as enterprise class, don't you? Almost one million subscribers, Lord alone knows how many lurkers, thousands of hits per minute, etc.

      However, I must say that I have no idea what it's an enterprise of. :)

    62. Re:Why do people use MySQL over Postgres? by justins · · Score: 1
      Slightly off topic, but if it's really performance you want, why don't people just use Postgres?

      If it's really performance you want from a database, you setup multiple disk volumes before you even begin worrying about multiple CPUs. The test machine this guy used is sort of symbolic of the knowledge level of the average MySQL user.
      --
      Now before I get modded down, I be to remind whoever might read this that what I am saying is FACT. - bogaboga
    63. Re:Why do people use MySQL over Postgres? by james_orr · · Score: 1

      Yeah, I didn't say that postgres was around first, I said mysql did more first.

    64. Re:Why do people use MySQL over Postgres? by Decaff · · Score: 1

      Saying things like "hardware is cheap" leads to the performance problems of today. It's extremely bad thinking by a developer and leads to bad code.

      The is completely the wrong attitude. Performance problems should be the last worry of a developer. Other concerns like 'does it work right?' and 'Can others make use of this software?' and 'Will this software go out of date because no-one can understand the format of my text files?' are FAR more important than raw speed.

      There are plenty of areas where text files are fine but XML is not.

      Name one.

    65. Re:Why do people use MySQL over Postgres? by chez69 · · Score: 3, Insightful

      conidering that slashdot often gives 503 errors, I wouldn't consider it even close to a real high availabily application

      slashdot enterprise quality? my shit is more enterprise quality

      --
      PHP is the solution of choice for relaying mysql errors to web users.
    66. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0

      Is it just MySQL is slightly easier to setup? (my emphasis)

      How easy a db is to setup and maintain is definately a consideration. s/just/because/

      Phillip.

    67. Re:Why do people use MySQL over Postgres? by Ragica · · Score: 2, Informative
      One thing that i don't usually see factored in to the PostgreSQL vs MySQL debate is security.

      Writing as an admin who generally keeps his systems up to date, and is forced to maintain MySQL on several boxes, I can tell you if you pay attention to security advisories MySQL is a pain in the ass. So much so that I let the security updates lag a bit (maybe more than a bit). I finally got around to updating the MySQL servers a few weeks ago when no less than six security advisories had been outstanding. Granted, some of these were minor issues, but still... they warrented security advisories.

      In the same period, how many security advisories were posted against PostgreSQL? Zero.

      (Though to be fair, one security update was released on PostgreSQL just after I did these upgrades.)

      All I can say is there is a curious similarity between the name of this "My" SQL server and Microsoft Windows' well known naming convention for folders. I dare not think if there are any further comparisons between these two products could be drawn...

    68. Re:Why do people use MySQL over Postgres? by Bert64 · · Score: 1

      Either way, there are thousands of websites out there with sql injection attacks where you can execute shell commands on the database server. Were this any other type of database then these users would be slightly protected from their poor coding since the attackers could only corrupt the database and not infiltrate the system hosting it.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    69. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0

      Hmm. "Unicode" isn't an encoding. Apps that call it that usually think that Unicode means "16-bit characters" and only support UCS-2, not UTF-8 or UTF-16 which can encode the full range of Unicode.

    70. Re:Why do people use MySQL over Postgres? by arkanes · · Score: 2, Insightful

      On the other hand, Wikipedia suffers from intermittent timeouts and editing errors. Perhaps the lesson here is not that MySQL is optimal for enterprise scalability, but that it can be leveraged into it, although there may be better options?

    71. Re:Why do people use MySQL over Postgres? by ozzee · · Score: 1
      Hmm. "Unicode" isn't an encoding.

      I think the Unicode and ISO10646 comittees agreed that UNICODE is both the description of the standard and when used as an encoding specifier, it indicates UTF-16. (Not that I liked the idea but it is a valid interpretation.)

      In the case of Postgresql, I think it uses utf-8 as the encoding which IMHO is the best encoding for Unicode since it is not stateful, whereas UTF-16 is.

    72. Re:Why do people use MySQL over Postgres? by arkanes · · Score: 1

      If you're reading too and from files, and performance is such a factor that your XML parser is too slow (by the way, expat is *amazingly* fast and will often beat hand-rolled parsers that are not written by experts, even for simple grammars), then you probably shouldn't use a text file. XML has a huge share of warts. I'll go so far to say that it sucks. But it does have very clear and real advantages over raw text files. Data exchange is the most obvious and the most real, although the hype makes it bigger than it is, and it's realistically not a concern for many people. The other advantages are the saving in developer time of a consistent, well known set of APIs and file formats.

    73. Re:Why do people use MySQL over Postgres? by Qbertino · · Score: 1

      I'm been working on a custom ERP system for 2 years now. Recently we went from flatfile to DB. Yes, you can have a flatfile ERP system, although the amount of maintanance modules does grow pretty fast.

      We chose MySQL over Postgres and Firebird. Why?

      One answer:
      10 times the amount of available tools and resources.

      Time to market is a fraction of what it would be with any other DB.

      Otherwise I'd be using Firebird.

      --
      We suffer more in our imagination than in reality. - Seneca
    74. Re:Why do people use MySQL over Postgres? by SerialHistorian · · Score: 0, Troll

      Your post was flamebait, but I'll answer it anyway. If an entire business runs their operations on it and I have a 99.9% or greater SLA on it, then it's enterprise-class. The systems I generally build integrate all of the operations of a business ... from the external customer service integration with the internet website to email handling to lead generation to the sales & billing & commission / affiliate payouts processes... it's all web-based, everyone in the company uses it constantly, there's very little training required because everyone's familiar with the way the web works, and it's never slow or down. It's funny, one of my clients is opening a 2nd office halfway across the city, and we sat down today with their telecom provider to talk about connectivity. They thought my client was using something like GoldMine or Act, and said they'd need to do a dedicated T1 haul. When we told them what we were actually using and gave them the bandwidth figures, they almost freaked out because they couldn't believe my client had something that ran their whole business and could work effectively over a 56k line...

      --

      --
      Vote for your hopes, not for your fears - Vote Third Party

    75. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0

      I just can't figure out why people like you can't shut the fuck up. Maybe people choose mysql because they fucking want to.

      I hate it when MySQL fanboys jump into threads like this only to scream their childish "you must not fucking talk about PostgreSQL because it makes my beloved MySQL look bad!" I'll tell you something, pal: this is fucking bullshit! If MySQL is so great as you paint it, it will defend itself witout your fucking bitching. If not, then don't you fucking think that people should use the right tool for the job? Why are you trying to censore any mention of other options? Why don't you want people to know about alternatives and their advantages? Why do MySQL zealots always freak out whenever PostgreSQL is mentioned? Would you care to enlighten us please? Because you act like fucking Microsoft salesmen when they hear "Linux". You just freak out and act like a retarded child when someone don't want to play with you on your rules never mentioning that you might be stupid. This is just dumb. And this is why I hate MySQL zealots.

    76. Re:Why do people use MySQL over Postgres? by jadavis · · Score: 1

      I've never quite understood that. I just download the debian packages for postgres and it works right away. The source isn't much harder to install, and I can't really see how the mysql source would be easier.

      If you have an actual suggestion to make it easier to install postgres I'm sure the developers would implement it.

      --
      Social scientists are inspired by theories; scientists are humbled by facts.
    77. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0

      Wow. That's total flamebait.

    78. Re:Why do people use MySQL over Postgres? by Anonymous Coward · · Score: 0

      ur a bitch and so's ur mom

    79. Re:Why do people use MySQL over Postgres? by Jamesday · · Score: 1

      In this case, it's more a question of maximising use of limited resources. Timeouts and saving problems at present are generally because of overloaded Apache web servers. A batch of 10 more (taking us over 50 machines total) was delivered a few days ago and will be entering service soon. On the database side I'm putting together specifications for our next batch of machines.

      With enterprise considerations, putting a database-driven top 100 site together with equipment costing in the $100,000 range is probably contraindicated.:) While the equipment, tools and people are capable, that does produce some load stresses. Fortunately, we can deal with those, though exponential growth with doubling times in the 8-16 week range when not performance-limited are always a challenge. If money was being lost due to response time or problems, the economics would shift dramatically, in favor of larger budgets. In our case, we might even get increased revenue from modest problem levels, though not from significant ones, since that cuts growth.

      For web applications the enterprise trend today seems to be to move away from big iron when it comes to delivering services directly to end users, even if the big iron remains present in the background. Very much a case of picking the best tool for each job, in my opinion. That could easily be a mixed environment.

      I do wonder what Microsoft, Oracle or other major corporate players would charge a corporation for a license for a 6 dual CPU server license with Wikimedia query and traffic levels. Anyone know?

    80. Re:Why do people use MySQL over Postgres? by decefett · · Score: 1

      MySQL was faster (slightly faster on reading, waaaaaay faster on writing)

      The default install of PostgreSQL is paranoid about writing data to disk, basically as soon a you do an insert it is written, there is no buffering by the OS which means if your server crashes you don't lose data.

      MySQL on the other hand lets the OS buffer the data before writing, this is much more efficient but dangerous (depending on your application).

      If you are willing to sacrifice data integrity for performance (if you use MySQL you obviously don't care about data integrity), PostgreSQL can also be configured to allow OS to buffer disk writes with a one line config file change, fsync=false.

      With fsync=false PostgreSQL should be at least as fast as MySQL.

      --
      Australian? Join EFA
    81. Re:Why do people use MySQL over Postgres? by Decaff · · Score: 1

      XML has a huge share of warts. I'll go so far to say that it sucks

      I really don't understand this sort of comment. XML is based on years of research into how to add meaningful markup to textual information in a way that is easy for software to parse and process. It is also designed for internationalisation and extensibility.

    82. Re:Why do people use MySQL over Postgres? by ErikZ · · Score: 1

      I have yet to be able to install and use postgres.

      This "Slightly easier to setup" is one of the big reasons MySQL took off. People could EASILY install MySQL.

      Postgres? Not so much.

      --
      Democrats or Republicans. They are both taking us to the same place and they are not afraid of us anymore.
    83. Re:Why do people use MySQL over Postgres? by arkanes · · Score: 1
      ... by committee, with all the political problems, design inefficencies, and contradicting goals that would indicate. People have this idea that "years of reasearch" neccesarily means "better", let me tell you it ain't neccesarily so.

      Furthermore, even if XML were the best way to markup text, and it was the easiest for software to parse and process, and it had the best support for extensibility and i18ln (and I wouldn't neccesarily grant any of those things), XML could still suck because of all it's design warts that are unrelated to those features.

  9. Slashdotted too soon by BobPaul · · Score: 0, Flamebait

    This article is kind of a let down. There's NO benchmark results!

    From the article:
    After having performed all of the tests and compiled the results, there were quite a few surprises that I think will challenge a few tightly-held assumptions in regards to which operating systems are fast and which aren't. In the next article, I'll present the results for all six operating systems.

    1. Re:Slashdotted too soon by isometrick · · Score: 1
    2. Re:Slashdotted too soon by BobPaul · · Score: 1

      Oh wow! You mean there were too links in the summary.

      Hee-haw! Hee-haw!

    3. Re:Slashdotted too soon by Anonymous Coward · · Score: 0

      Christ... and why do things get Slashdotted? Because stupid /. users don't bother to even read the article, they just clickerty on the links! It's like they're on a DDoS mission.

      If you read you'd realise it hasn't been slashdotted (yet) otherwise you wouldn't have even got that far, and also the benchmarks are linked to seperately, see "find out for yourself"

    4. Re:Slashdotted too soon by Anonymous Coward · · Score: 0
      "This article is kind of a let down. There's NO benchmark results!"
      Sorry, their DB server is running on NetBSD!
    5. Re:Slashdotted too soon by Anonymous Coward · · Score: 0

      No, but there were two

    6. Re:Slashdotted too soon by Anonymous Coward · · Score: 0

      and why do things get Slashdotted? Because stupid /. users don't bother to even read the article, they just clickerty on the links! It's like they're on a DDoS mission.

      This doesn't make any sense at all. Whether users read the page or just click the link, wait till it loads and then leave (cause they decide their not interested or whatever) the page still suffers the same amount of bandwidth usage. This is the stupidist argument I've ever heard.

      I've also heard "slashdotted" refer to topics and articles posted on slashdot, not just pages that are suffering from the "slashdot effect." Maybe that's what he meant?

  10. Useless Benchmarks by Anonymous Coward · · Score: 4, Informative

    From the article: I used the GENERIC configurations unmodified, expect for above-mentioned changes and adding SMP support.

    FreeBSD's GENERIC kernel config is for i486. If he'd commented out two lines, he could've tested for i686, which is what a P3 is. As it is, these benchmarks aren't helpful at all, because the optimizations assume a machine inferior to what's actually being used. He failed to eliminate enough variables for these to be meaningful.

    1. Re:Useless Benchmarks by setagllib · · Score: 3, Insightful

      Entirely right, and some user-space optimization could have gotten the final few percent in too. He installed stock BSDs and recompiled their kernels straight, didn't tweak any options that weren't necessary to run the suite, and compared to a Linux optimized from the ground up (Gentoo + his knowledge of Linux itself). Real clever benchmark.

      That NetBSD performed worse than FreeBSD for disk IO is really strange. I have never seen this happen in any of the machines I've tried both on (hint: a lot), so either he has a very exotic disk controller which isn't supported properly (weird) or there's a disturbance in the force. Members of the mailing lists are talking it over with him now, and a follow-up should arrive eventually.

      I would have liked to see results of FreeBSD 5-STABLE too, because he compared a refined Linux and a solid NetBSD to a FreeBSD release that was deemed not-ready-for-benching-let-alone-production on day 0, which gave it little chance. It's interesting to see if the claims 5.4 will be much better hold water.

      --
      Sam ty sig.
    2. Re:Useless Benchmarks by Anonymous Coward · · Score: 0

      Entirely right, and some user-space optimization could have gotten the final few percent in too. He installed stock BSDs and recompiled their kernels straight, didn't tweak any options that weren't necessary to run the suite, and compared to a Linux optimized from the ground up (Gentoo + his knowledge of Linux itself). Real clever benchmark.

      He didn't have to tune Linux at all. The gentoo world may have been compiled for i686, but that wouldn't explain the huge performance difference seen between Linux and any of the BSDs.

      Also, Gentoo compiles with propolice and other crap like that as default, so turn that off and Linux gains too.

      I would have liked to see results of FreeBSD 5-STABLE too, because he compared a refined Linux and a solid NetBSD to a FreeBSD release that was deemed not-ready-for-benching-let-alone-production on day 0, which gave it little chance. It's interesting to see if the claims 5.4 will be much better hold water.

      FreeBSD 5.3 was the last STABLE release.

    3. Re:Useless Benchmarks by setagllib · · Score: 1

      In name only. Read the errata and lists, it was to get it out into the open for testing, not for adoption by production environments (although some have done so very successfully).

      I would argue that a stock Linux kernel given out with an unfortunate binary distribution wouldn't have features that do make a difference. Many skimp on things like local APICs (for interrupt routing), add on SMP (which is slower on UP), and root knows what else. He configured a Linux from scratch and would NOT have made it generic, since he knows what he's doing. He did NOT reconfigure the BSDs (save the essentials) and we all know how conservative their defaults are.

      It wouldn't make all the difference, but it would mean NetBSD 2 would beat Linux better in the UP case, and would hopefully stink less in the IO case (but I repeat, that's something really weird, and it's boggling the mailing lists). FreeBSD would do better too, which it really needs to.

      Just saying, someone who knows what they're doing for all systems should benchmark, not a Linux yuppie who decides the world needs another biased benchmark to decide not to use a BSD. But I'm not saying Linux isn't a marvel of performance (well, there's still eth1394 sucking, but nobody seems to care), it's just not as far ahead as this bench would 'indicate'.

      --
      Sam ty sig.
    4. Re:Useless Benchmarks by Anonymous Coward · · Score: 0

      I can't believe anyone would skip on APICs, considering this has been a standard Intel server feature for like 10 years. At least every RedHat I've used recently finds my APICs.

    5. Re:Useless Benchmarks by Anonymous Coward · · Score: 0

      NetBSD 2 doesn't beat Linux in UP at all, actually. It is *slightly* ahead in one test, and gets absolutely demolished when the going gets tough.

      Compiling Linux without propolice and stack smashing protection would put it on a more level field with NetBSD 2. In which case, it would probably beat it on even the first benchmark.

    6. Re:Useless Benchmarks by Anonymous Coward · · Score: 0

      FreeBSD 4.5 was the last stable release.

      4 > 5

    7. Re:Useless Benchmarks by justins · · Score: 1
      That NetBSD performed worse than FreeBSD for disk IO is really strange. I have never seen this happen in any of the machines I've tried both on (hint: a lot), so either he has a very exotic disk controller which isn't supported properly (weird) or there's a disturbance in the force. Members of the mailing lists are talking it over with him now, and a follow-up should arrive eventually.

      I wouldn't worry about it. Running the OS software, the swap space, the database software, and all the database storage on the same disc is going to torpedo I/O performance regardless. Having to rattle the drive head back and forth between all that stuff is ridiculous, and the test results would have been skewed by simple problems like where on the disc the database files are in relation to the OS files, and crap like that.

      But he could afford 2 CPUs for some reason.
      --
      Now before I get modded down, I be to remind whoever might read this that what I am saying is FACT. - bogaboga
    8. Re:Useless Benchmarks by LuSiDe · · Score: 0, Troll

      Whine, whine.

      The guy received feedback from Sun regarding his optimalisations. So he's open to optimalisations.

      He didn't recompile his Linux kernel for i686 and even if he did that won't give you a lot more performance.

      He compiled MySQL for every OS he posted. Fair compare ain't it.

      He compiled Gentoo from the ground, yes. So? Gentoo's default compile options are just as FreeBSD's aimed at stability and it has conservative flags. I've never seen benchmarks which showed Gentoo, with whatever flags, delivers a significant better performance than e.g. Mandrake or Debian (fact i named *those* 2 is a hint!). With significant i mean ~ 5% or more.

      As for his Linux knowledge i don't see why he's a Linux guru. In the past his articles were just as well about OpenBSD and other BSDs. Perhaps you're just seeking stupid arguments? Why not whine that he didn't use the same filesystem?!

      You BSD zealots are losers who can't stand it that Linux is better in a regard such as this. Even though its quite known FreeBSD 5.3 ain't doing very well (DFBSD is) and even though its known NetBSD and OpenBSD have biglock and even though they weren't doing well in Fefe's Scalability benchmark (but improved a lot!!!) why not cut the dodging and admit? Or start doing something about it? When you'd just said: "this is merely MySQL, i'll do the same test but then with PostgreSQL" i'd say 'good point' and 'kudos' afterwards because those are valid points. Go ahead, go test it with Debian instead of Gentoo while you're at it. I challenge you -- but n/m, i already know its just chewbacca who's talking..

      --
      WE DON'T NEED NO BLOG CONTROL.
    9. Re:Useless Benchmarks by Fweeky · · Score: 1

      These benchmarks are actually pretty close to what you get no matter how well you tune things. FreeBSD consistantly performs a lot poorer than Linux for some reason, although they're slowly improving.

      Disk IO is irrelevent; you see this even on on read-only tests against completely cached tables. Believe me, I wish to hell it wasn't.

    10. Re:Useless Benchmarks by Brandybuck · · Score: 1

      Let me guess, the benchmarks you use to prove this didn't optimize FreeBSD either?

      --
      Don't blame me, I didn't vote for either of them!
    11. Re:Useless Benchmarks by Brandybuck · · Score: 1

      Even though its quite known FreeBSD 5.3 ain't doing very well (DFBSD is)...

      Considerign that Dragonfly hasn't yet released a stable version, this marks your whole post as a troll.

      --
      Don't blame me, I didn't vote for either of them!
    12. Re:Useless Benchmarks by Anonymous Coward · · Score: 0

      Well, as a dedicated Linux user, I could call sour grapes, but since Solaris got a big optimization (for large disks) certainly FreeBSD deserves one too. Linux used to need a lot of optimizations, but newer versions usually do all optimizing for you (on a machine by machine basis). Nevertheless, your point is taken and fair game. He might read /. or get more feedback from FreeBSD users. Certainly more tests could clarify things a bit. I'm sure Sun would like additional testing with tweaks too.

    13. Re:Useless Benchmarks by Fweeky · · Score: 1

      Let me guess, you don't follow any FreeBSD mailing lists, you've never done any MySQL benchmarks yourself, you've never spent countless hours tweaking everying imaginable to try to improve MySQL's performance under FreeBSD, and you've never had to manage a heavily loaded production MySQL cluster in a primarily FreeBSD environment?

    14. Re:Useless Benchmarks by Brandybuck · · Score: 1

      Gee, we were talking about benchmarks. Benchmarks. As in objective comparisons between two different things. Not anecdotes from mailing lists.

      I am under no delusions that FreeBSD is is perfect, but to assume from its imperfection that it must be worse than Linux is unwarranted. It may very well be true that Linux is faster in all aspects than FreeBSD, but without fair and objective benchmarks with optimizations for both sides, I have no way of knowing.

      --
      Don't blame me, I didn't vote for either of them!
    15. Re:Useless Benchmarks by LuSiDe · · Score: 1

      1.0 got released in july 2004. But i weren't even meaning it terms of 'stability' or 'stable version' so back off.

      --
      WE DON'T NEED NO BLOG CONTROL.
    16. Re:Useless Benchmarks by Fweeky · · Score: 1

      Huh? I'm talking about MySQL on FreeBSD and you take it as an attack on FreeBSD's general performance? You've completely missed my point here; FreeBSD's great for most use, it just happens that MySQL on Linux performs much better than MySQL on FreeBSD (and just about everything else it seems).

      This isn't an OS advocacy issue (I vastly prefer FreeBSD to Linux), this is a real problem for certain heavy MySQL users. I'm not on the "FreeBSD suxx Linux r0xx!!" side here, I'm on the "Someone please track down and remove the bottleneck(s) so we can depenguinate the few Linux servers we've been forced to migrate to" side. Sheesh.

  11. use windows! by mboverload · · Score: 5, Funny
    I use Windows Server 2003 for all my SQL needs. It is 20% faster than an equivilent Linux machine!

    Well, at least thats what Microsoft told me...

    1. Re:use windows! by nbritton · · Score: 0

      A windows machine that is 20% faster then the Linux equivilent?, hmm...

      Windows Machine:
      CPU 1.4GHz
      RAM 1GB

      Linux Machine:
      CPU 550MHz
      RAM 256MB

      Yea... that sounds about right.

    2. Re:use windows! by davidpb145 · · Score: 1

      I take it your using a 5 year old SQL server 2000...

  12. Did you even read the article? by BobPaul · · Score: 1

    From what I gathered in the article he never GAVE benchmark results? Where the hell did all of what you posted come from?

    From the article:
    In the next article, I'll present the results for all six operating systems.

    1. Re:Did you even read the article? by isometrick · · Score: 2, Funny

      Click the second link in the summary, sir.

    2. Re:Did you even read the article? by someonehasmyname · · Score: 0, Troll

      Trolls like to make shit up. FreeBSD4 + LinuxThreads is gonna rock the house.

      --
      Common sense is not so common.
    3. Re:Did you even read the article? by Anonymous Coward · · Score: 0

      Says the Parent -
      Trolls like to make shit up. FreeBSD4 + LinuxThreads is gonna rock the house.

      "For both FreeBSDs, I included the results for native threading (KSE for 5.3 and libc_r for 4.11) as well as linuxthreads."

      Apparently freebsd isn't going to be rocking anything.

    4. Re:Did you even read the article? by Anonymous Coward · · Score: 0

      Where the hell did all of what you posted come from? From the article:
      In the next article, I'll present the results for all six operating systems.


      from the next article, maybe? you think it possible?

  13. NewsForge == OSDN == Slashdot by Anonymous Coward · · Score: 0

    They can't get slashdotted, they're run by the same group as slashdot is.

    Also, you made all of that shit up. All he really said about linux was that he was using ReiserFS in his benchmarks, that's it.

    Fscking karma whore. Too bad slashdot moderators don't read the articles either. Fscking slashdot

    1. Re:NewsForge == OSDN == Slashdot by Anonymous Coward · · Score: 0

      You're forgetting that Slashdot *can* get slashdotted - it happened at least once: on the elections day.

    2. Re:NewsForge == OSDN == Slashdot by Anonymous Coward · · Score: 0

      What'd they do? Link to themselves?

    3. Re:NewsForge == OSDN == Slashdot by Anonymous Coward · · Score: 0

      They had too much traffic, you couldn't post comments - you couldn't even read the comments, for some hours. The only things that never stopped working, IIRC, were the homepage and the sections' homepages.

    4. Re:NewsForge == OSDN == Slashdot by MikeCapone · · Score: 1

      I think you missed the joke. Not that it was that funny...

  14. Different filesystems? by dolphinling · · Score: 3, Insightful

    I might just be naive, but doesn't database performance depend a lot more on filesystem than OS?

    --
    There are 11 types of people in the world: those who can count in binary, and those who can't.
    1. Re:Different filesystems? by bn557 · · Score: 2, Informative

      Depends on the amount of ram in the box, really. If you have 4 gigs of ram and a 1gig database, it can cache the whole DB, so reads can execute quickly, while writes do take a bit of time to update the physical files. Tuning the cache in mysql can greatly improve performance(and also bring a machine to it's knees, if my memory serves me correctly).

      --
      Humans are slow, innaccurate, and brilliant; computers are fast, acurrate, and dumb; together they are unbeatable
    2. Re:Different filesystems? by negative0 · · Score: 1

      Your sig says 11 types who can count in binary, and then names only two? Who's the third group? Or did you mean 10 types? Maybe the third type are the people who can count *and* tell jokes in binary?

    3. Re:Different filesystems? by Shano · · Score: 1

      Or maybe he's in the latter group?

    4. Re:Different filesystems? by tayhimself · · Score: 1

      Why is irony so lost on some people?

    5. Re:Different filesystems? by PedanticSpellingTrol · · Score: 3, Funny

      He's obviously added another layer of depth to the joke by counting in base one.

    6. Re:Different filesystems? by bill_mcgonigle · · Score: 1

      I might just be naive, but doesn't database performance depend a lot more on filesystem than OS?

      Ideally, no. For most databases the filesystems just get in the way. They maintain a set of plain files for the database and try to do almost everything themselves.

      To the extent that the filesystem can stay out of the way various filesystems may bench better than others.

      In fact, Oracle would rather you gave it a raw partition than a filesystem, so there's nothing to get in the way.

      --
      My God, it's Full of Source!
      OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
    7. Re:Different filesystems? by bill_mcgonigle · · Score: 1

      Why is irony so lost on some people?

      You have to consider the odds of a given comment/sig on Slashdot being wrong, ill-conceived and inappropriate vs. the odds of it containing a deep irony.

      If Stephen Wright had made the comment it might have garnered different respect.

      --
      My God, it's Full of Source!
      OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
  15. same reason people use windows by RelliK · · Score: 3, Insightful

    because everyone else does.

    --
    ___
    If you think big enough, you'll never have to do it.
  16. Mac OS X. by freemacmini · · Score: 2, Insightful

    Too bad he could not test on Mac OS X.

    Of course in order to do that he would have to install the OSes on a PPC machine and I don't think freebsd on PPC is ready for prime time yet.

    1. Re:Mac OS X. by Anonymous Coward · · Score: 0

      You sir, are one step away from sucking dick on a Hollywood street corner to feed your heroine addiction. I mean Jesus H. Christ, you're a living breathing advertisement, how does that feel?

      I swear no one has any self-respect any more. Get a fucking job!

    2. Re:Mac OS X. by Anonymous Coward · · Score: 0

      Get a fucking job!

      Both of you should.

    3. Re:Mac OS X. by Anonymous Coward · · Score: 0

      Obviously trolling on Slashdot pays better then you think.

    4. Re:Mac OS X. by Anonymous Coward · · Score: 0

      Obviously trolling on Slashdot pays better then you think.

      I meant real jobs.

    5. Re:Mac OS X. by inertia187 · · Score: 1

      Nevermore.

      --
      A programmer is a machine for converting coffee into code.
  17. Is that a complete review? by Exter-C · · Score: 0

    Is it complete.. doesnt really seem to answer

  18. How relevant are those benchmarks by Donny+Smith · · Score: 5, Insightful

    Does anyone go: "OK, I need the OS for my mySQL project. I'll benchmark BSD, Linux, Windows, and choose the fastest OS."

    Difference among OS should be pretty much unimportant unless one's an ISP or big enterprise. I would choose the OS based on completely different criteria:
    1) Existing skillset (advantage to existing skills)
    2) Existing deployed OS (advantage to OS already deployed)
    3) My company's OS strategy (advantage to the OS and the CPU platform we chose to standardize on)
    4) Existing software (if I already have X vendor's backup agent for mySQL on Linux or database tuning tools, I wouldn't use BSD just to (potentially) gain an extra 5% in some ludicrous benchmark result).

    Today's hardware (and operating systems) are so cheap that it's almost irrelevant what OS and hardware goes into many a project.
    Look at the new HP's 25p and 35p blades (Opteron-based) - a 2 processor 1GB RAM version is just some $1,700 more expensive than a 1 processor 512MB RAM version.
    It's easy to lose that $1,700 in downtime, spend it on a Windows engineer's new RHCE or such...

    1. Re:How relevant are those benchmarks by zeromemory · · Score: 1

      Does anyone go: "OK, I need the OS for my mySQL project. I'll benchmark BSD, Linux, Windows, and choose the fastest OS."

      They do if they want to build a single-purpose, high-performance MySQL server or cluster.

    2. Re:How relevant are those benchmarks by Black+Art · · Score: 1

      Not to mention what it takes to tune the OS and keep it running correctly.

      In my experience Linux is MUCH easier to keep running than Windows.

      Windows administration relies on far too many "black magic" registry tweaks. In order to make adjustments in many cases, you need to set obscure registry entries that are usually only known through rumor and hearsay. (If you can fix it at all.) Every place I have worked with a mixed environment, the Windows admins spent more time fixing and patching and tuning to keep machines running instead of getting other projects done. I controlled 5x the Unix boxes and rarely had a problem.

      Anyone who says "Windows is easier to admin" has either never admined a Unix network, a Windows network or both.

      --
      "Trademarks are the heraldry of the new feudalism."
    3. Re:How relevant are those benchmarks by Anonymous Coward · · Score: 0

      And tuning Solaris or Linux for (eg) Oracle, isn't "Black Magic"?

      Look, if "recompile the kernel" is a step, it's not exactly an intutive setting.

      At least from what I've seen, nobody bothers with *nix except for specialized applicaitons. So the windows people spend 5x the time for 5x the services. Run all the printers, calandaring, and grudgework crap on *nix and then come back and compare.

    4. Re:How relevant are those benchmarks by Anonymous Coward · · Score: 0

      How can there be too much black magic for you whose name is Black Art?

    5. Re:How relevant are those benchmarks by Bert64 · · Score: 2, Interesting

      Recompiling the kernel to remove unnecessary features/drivers and enable support for modern processor features seems very intuitive to me. Removing as many unnecessary features as possible and runing it as closely as possible to the host system is a basic step when configuring a system, the difference is linux lets you take the tuning several steps furthur.

      And your second coment depends on the organisation, a lot of strongly-microsoft shops work the way you describe, and only use unix for jobs where windows can't handle the task at hand (even microsoft run a lot of their backend stuff on solaris and as/400 systems for instance). While many other companies use unix for most backend tasks while leaving windows strictly for end user interaction.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    6. Re:How relevant are those benchmarks by oconnorcjo · · Score: 1
      Look at the new HP's 25p and 35p blades (Opteron-based) - a 2 processor 1GB RAM version is just some $1,700 more expensive than a 1 processor 512MB RAM version.

      If you read the article you would know that only Linux and Solaris took any real advatage of multiple processors.

      might as well buy cheaper hardware unless you are planning to use one of those two OS's

      --
      I miss the Karma Whores.
    7. Re:How relevant are those benchmarks by klreed42 · · Score: 1

      Um, YES.

      Not explicitly, no. But while I worked at a large HedgeFund (700 people or so) they benchmarked various hardware/OS platforms to determine moving from Sun boxes to PC boxes.

      For a 200 CPU IBM blade server it would cost them 400k, for the equivalent SUN box it would cost them 1.6M. The blade outperformed the Sun box by 2-4 for their applications, which was a significant performance boost for their real time applications.

      They made a strategic direction to go and replace all SUN boxes with Linux boxes.

      So, the OS may not have been evaluated, other than on vendor support, expected longevity, and reliability. But I find this comment unnerving "It's easy to lose that $1,700 in downtime, spend it on a Windows engineer's new RHCE or such...". Simply because it assumes that Windows is (and will be) more reliable than the alternatives.

    8. Re:How relevant are those benchmarks by ShieldW0lf · · Score: 1

      So, the OS may not have been evaluated, other than on vendor support, expected longevity, and reliability. But I find this comment unnerving "It's easy to lose that $1,700 in downtime, spend it on a Windows engineer's new RHCE or such...". Simply because it assumes that Windows is (and will be) more reliable than the alternatives.

      I believe what he was saying was "If you have the option to choose between changing architechtures or doubling the hardware to achieve a certain performance, doubling the hardware will be cheaper. It's cheaper to double your hardware than to train a favorite monkey to use another OS."

      --
      -1 Uncomfortable Truth
    9. Re:How relevant are those benchmarks by YU+Nicks+NE+Way · · Score: 1
      even microsoft run a lot of their backend stuff on solaris and as/400 systems for instance
      Not true now, and hasn't ever been true. We got rid of our last Unix box -- which ran Xenix mail -- on the main campus about eight years ago, and got rid of the last of the solaris boxes at Hotmail about three years ago.
  19. Anybdoy had the cohones to put it in production... by Anonymous Coward · · Score: 0

    For the last couple of weeks I've been looking at different free groupware solutions and it seems some developers prefer the other free db. I wonder why?

  20. You know you're a nerd when... by Anonymous Coward · · Score: 0

    you get in a MySQL vs. Postgres shouting match.

    1. Re:You know you're a nerd when... by Profane+MuthaFucka · · Score: 1

      ...and you claim that emacs will kick the shit out of both of them.

      --
      Fascism trolls keeping me up every night. When I starts a preachin', he HITS ME WITH HIS REICH!
    2. Re:You know you're a nerd when... by Anonymous Coward · · Score: 0

      I find your ideas intriguing and would like to subscribe to your newsletter

  21. It's the cutsie name by toadlife · · Score: 1

    "MySQL" sounds like something Yahoo or Microsoft would release. PostgreSQL sounds like ... an open source application.

    --
    I don't always use unix-like operating systems; but when I do, I prefer FreeBSD.
    1. Re:It's the cutsie name by Anonymous Coward · · Score: 0

      What I want to know is whether it is called, "My S-Q-L" or "MySequel." I always thought it was "MySequel," but everyone I work with spells it out.

    2. Re:It's the cutsie name by Anonymous Coward · · Score: 0

      why? do you actually discuss this shit with people in meatspace?

    3. Re:It's the cutsie name by CmdrGravy · · Score: 1

      Personally I say it MyS-Q-L and think MySequel is a horrible term but then I also refer to Microsofts S-Q-L Server in the same way and pronounce Linux as Lie-nux.

    4. Re:It's the cutsie name by Anonymous Coward · · Score: 0

      For MySQL I say 'my-school', like 'old-school' - which sounds natural and this is how I say 'SQL' in Polish - like 'school' in English - the fastest and easiest pronunciation, one fast syllable.

    5. Re:It's the cutsie name by FrostedChaos · · Score: 1

      That's because you're a LIE-beral, isn't it?

      --
      "Any connection between your reality and mine is purely coincidental." -Slashdot
  22. Please by Anonymous Coward · · Score: 0

    Would you please put up a site and explain your ideas instead of/in addition to posting this stuff? I tried to understand it but can't. Thanks.

  23. The only thing worse than your 80th DB argument... by abulafia · · Score: 1
    ...on slashdot is the 81st.

    As someone who develops on PG, Mysql, Oracle and several other DBs, let me just say that if you're so wrapped up with your RDMBS that you react like that, you should really take up jogging, get a dog, start doing heroin, or something.

    Christ on a cracker, some geeks are more of a downer than condom breakage. Coding is supposed to be fun.

    --
    I forget what 8 was for.
  24. Procedural problem with NetBSD multiprocessor by Bushcat · · Score: 5, Informative
    It seems like the performance of NetBSD will be re-evaluated, so expect the results to be recast in the next few days.

    See the message thread titled "NetBSD performance" at http://software.newsforge.com/article.pl?sid=04/12 /27/1243207: an anonymous reader asks "Did you enable PTHREAD_CONCURRENCY? You have to set that variable to the number of CPUs in your system, else you won't be able to run more than one thread at a time, even you have more than one...". He replies "Sunofa. The $PTHREAD_CONCURRENCY environment variable wasn't set, as I had no idea it was an option. ... It could very well be the issue. In the next few days I'll re-run the NetBSD tests with that set."

    1. Re:Procedural problem with NetBSD multiprocessor by Anonymous Coward · · Score: 0

      damn that's a stupid requirement.

    2. Re:Procedural problem with NetBSD multiprocessor by Anonymous Coward · · Score: 1, Insightful

      it's because NetBSD insist on N:M threading, and there's no sane way to do that (which is why the people behind NPTL gave up trying on Linux and just made threads so lightweight you could afford a few thousand running at once)

      So NetBSD is really asking the user for a hint: How many _real_ threads should we use to emulate the threads you've asked for ?

      Needless to say providing performance hints could always help a threading implementation, but as we saw here, it also means the administrator must painfully figure out which settings are optimal.

    3. Re:Procedural problem with NetBSD multiprocessor by Anonymous Coward · · Score: 0

      Kinda convienent how *BSD performance sucks unless you know about the _undocumented_ variables they put in, most likely just for situations like this.

      Since you could count tne number of > 2 proc NetBSD systems on one hand, I have no idea why this would be an issue.

    4. Re:Procedural problem with NetBSD multiprocessor by Anonymous Coward · · Score: 0
      Anyone who would use NetBSD SMP for real work has a problem. They are either in denial about performance problems or they are a hopeless fanboy.

      Rather than use NetBSD SMP you'd be smarter to:

      1. buy two machines
      2. or buy one machine with the fastest processor available.
      Either of those two alternatives will show better performance on real work than running NetBSD SMP. At this date in time, NetBSD SMP is little more than a toy. It's OK for hobbyists to play with, but not ready for real work.
  25. Wikipedia by MikeCapone · · Score: 3, Informative

    Well, it's good enough for Wikipedia.org so it's good enough for me.

    1. Re:Wikipedia by Anonymous Coward · · Score: 0

      Well, it's good enough for Wikipedia.org so it's good enough for me.

      Seriously, how much relational stuff are you going to need to run a wiki? Very little I imagine.

      So just because Wikipedia uses MySQL doesn't mean the OP doesn't have a point.

    2. Re:Wikipedia by HvitRavn · · Score: 1

      Hehe, it's good enough for wikipedia/mediawiki allright, but look how slow it [wikipedia] is. I use mediawiki on a website of mine as well, and it lags the entire system.

    3. Re:Wikipedia by MikeCapone · · Score: 1

      That's true. My post just meant that I don't need anything more than Wikipedia, though. More than one person can have a point at the same time.. Heh.

  26. MySQL vs PostgreSQL by Pan+T.+Hose · · Score: 4, Informative

    what about postgresql?

    That is a very good question, I don't know why has it been moderated as off-topic. Naturally it is useless to compare MySQL performance to MySQL performance ignoring any other options. (It is essentially the same tactic Micro$oft is doing all the time! Do we really want to parrot them?) First of all, there are MySQL gotchas and PostgreSQL gotchas, so you have to know whether the particular glitches are acceptable for you before you decide to use either RDBMS. Understanding the relational algebra, set theory and predicate calculus is essential to understand what the relational model is all about. Lack of this knowledge often leads to confusing tuples with OOP-style objects and other stupidity, so you will save a lot of time learning it first.

    Now, the performance. Generally speaking MySQL is faster for a heavy load of simple read-only queries (like Slashdot) while PostgreSQL is faster for complex read-write queries (like a bank). Once you turn on the ACID support in MySQL it is no longer so fast, and it can really crawl because of row or even table (sic!) locking, a mistake avoided for decades by any advanced database. Here is another comparison. See also this recent thread on Slashdot. One of the best comparisons of Oracle, MySQL and PostgreSQL was done by the Computer division of Fermilab (Fermi National Accelerator Laboratory), this is a must-read.

    There is a lot to read about it if you need more comarisons, but the general rule of thumb is that if you want lots of very simple read-only and very few read-write queries when the integrity of your data is not critical, you should probably choose MySQL. When you need that (or better) speed but the data is critical and you need ACID transactions which would severly slow down MySQL, try SQLite, the easiest choice there is, especially using Perl where you don't even need to install it (but just like with every other database, there are SQLite gotchas too, you need to be aware of them). If you need full ANSI SQL compatibility, ACID transactions, scalability and your data integrity is important, you should probably choose Oracle or PostgreSQL. There are also licensing issues. Oracle is proprietary. MySQL is GPL so you need to pay if you want to use it in any non-GPL software. PostgreSQL is released under a free-for-all BSD license. SQLite is public domain.

    As you can see, there is no one-size-fits-all database. Every one has its strengths and weaknesses. The correct choice is a matter of trade-offs and finding out which database is optimal for your particular niche. Good luck.

    --
    Sincerely,
    Pan Tarhei Hosé, PhD.
    "Homo sum et cogito ergo odi profanum vulgus et libido."
    1. Re:MySQL vs PostgreSQL by Donny+Smith · · Score: 1

      > MySQL is GPL so you need to pay if you want to use it in any non-GPL software.

      I find it quite amazing how dozens of companies I know have no clue about mySQL licensing. They think everything one finds on a Linux install CDs is free.

      While it's unlikely mySQL.com will ever squeeze these guys into paying up, it's funny to see all those bozos thinking they've living in compliance.

    2. Re:MySQL vs PostgreSQL by renoX · · Score: 2, Informative

      Uh?
      As long as you don't redistribute it, doing whatever you want with a GPL program is safe..

    3. Re:MySQL vs PostgreSQL by Anonymous Coward · · Score: 0

      You are correct. This just another example of a company trying to take advantage of the Free Software's world bizarre "viral" ideas about dynamic libraries.

      Using Oracle doesn't give Oracle Inc rights to your application, and nothing about the GPL changes that for MySQL.

    4. Re:MySQL vs PostgreSQL by Red+Pointy+Tail · · Score: 1


      Thanks for the wonderfully written post!

    5. Re:MySQL vs PostgreSQL by agilen · · Score: 5, Interesting

      He was modded offtopic, because this article was about OS benchmarks, not database benchmarks. The title of TFA is "Using MySQL to benchmark OS performance"...so its seeing which OS mySQL runs best on, not which database is best.

    6. Re:MySQL vs PostgreSQL by kannibal_klown · · Score: 1

      GPL only applies to redistributing the software/information-system that uses it.

      Most companies use it as an in-house database. Maybe it hosts something for a web page, maybe it holds non-sensitive information to query against, etc. In this case, they're free to use MySQL for, well, free.

    7. Re:MySQL vs PostgreSQL by 3ryon · · Score: 1

      Your post was so informative and reliable, I think you must be on ACID.

    8. Re:MySQL vs PostgreSQL by Anonymous Coward · · Score: 0

      you forgot this other comparison: Ope nsource database comparison

    9. Re:MySQL vs PostgreSQL by natedgreat · · Score: 1

      My experience with SQLite though is that later if you want to migrate to another database, it is very cumbersome. I would up spend $10k just to have a DBA come in and move tables becasue I could not import SQLite into something like SQL or Oracle directly.

    10. Re:MySQL vs PostgreSQL by Anonymous Coward · · Score: 0

      My experience with SQLite though is that later if you want to migrate to another database, it is very cumbersome. I would up spend $10k just to have a DBA come in and move tables becasue I could not import SQLite into something like SQL or Oracle directly.

      This is easy. Let's create some database first:

      shell$ sqlite testdb
      SQLite version 2.4.7
      Enter ".help" for instructions
      sqlite> create table table1 (one varchar(10), two smallint);
      sqlite> insert into table1 values('hello!', 10);
      sqlite> insert into table1 values('bye', 20);
      sqlite> update table1 set one = 'hi' where two < 15;
      sqlite> select * from table1;
      hi|10
      bye|20
      sqlite> .exit


      And modify it later:

      shell$ sqlite testdb
      SQLite version 2.4.7
      Enter ".help" for instructions
      sqlite> create table table2 (x smallint, y smallint, z smallint);
      sqlite> insert into table2 values(1, 2, 3);
      sqlite> insert into table2 values(4, 5, 6);
      sqlite> insert into table2 values(7, 8, 9);
      sqlite> update table2 set z = z * (select two from table1 where one = 'hi');
      sqlite> select * from table2;
      1|2|30
      4|5|60
      7|8|90
      sqlite> .exit


      So we have a database.

      Now we want to migrate it, so we dump it:

      shell$ echo .dump | sqlite testdb > testdb.sql

      Now the file testdb.sql contains:

      BEGIN TRANSACTION;
      create table table1 (one varchar(10), two smallint);
      INSERT INTO table1 VALUES('hi',10);
      INSERT INTO table1 VALUES('bye',20);
      create table table2 (x smallint, y smallint, z smallint);
      INSERT INTO table2 VALUES(1,2,30);
      INSERT INTO table2 VALUES(4,5,60);
      INSERT INTO table2 VALUES(7,8,90);
      COMMIT;


      i.e. an atomic SQL code ready to feed to any other SQL database.

      In fact, we don't even have to save it in a file, we can e.g. pipe it directly to PostgreSQL:

      shell$ echo .dump | sqlite testdb | psql newcopydb

      That's it. One shell command. Can I have my $10k now please?

    11. Re:MySQL vs PostgreSQL by Anonymous Coward · · Score: 0

      I don't think that is what MySQL AB believes. That is why they claim it is _not_ GPL, but dual licensed.
      I know of purists who won't use it on that basis alone, because they believe MySQL AB is using "bait and switch"-ish tactics.
      They want money if you use it in a commercial setting - whether you distribute it or not, IIRC.
      Their web site seems purposefully vague on this topic.

    12. Re:MySQL vs PostgreSQL by renoX · · Score: 1

      I doubt that it is possible to do this: dual licensing *increase* the user possibilities not limit it.
      As long as the GPL allows you to use the program without any consequence if you don't redistribute it, the other license doesn't matter..

    13. Re:MySQL vs PostgreSQL by Anonymous Coward · · Score: 0

      One problem is the Fermi study was done in 2003, a lot has changed since then with PostgreSQL including the higher performance of 7.x (very fast) and now the release of 8.X.

  27. Missing option by xgamer04 · · Score: 4, Interesting

    What about Mac OS X? I know (actually, not really) that Solaris doesn't run on Apple hardware, but it would be interesting to compare the same stuff on an Xserve and also be able to test the OS X performance.

    --
    When you look at the state of the world, how can you not become a radical, liberal anarchist?
    1. Re:Missing option by Mishura · · Score: 1

      PPC architecture, yes. All these OSes run on x86.

      However, I'd like to see on the PPC side; Mac OSX server vs. opensource Darwin (not apple's OSX server) vs. Yellowdog (or debian, or gentoo..) linux. Plase, just for f**ks sake, do not try to compare these with the x86 results. Apples n Oranges. (or is that Intels?)

    2. Re:Missing option by prockcore · · Score: 1

      What about Mac OS X?

      We use MySQL on a G5 xserve. Performance hasn't been a problem for us, but we haven't really stress tested it yet. We also use MySQL on two of our Suns (V210 Dual 1.25) and it has been rock solid and extremely fast on both machines. We stress tested Apache2 on the xserve and it fell apart before the V210... so I'm going to say that the v210 is probably a better mysql box than the xserve as well.. but the xserve is $1000 cheaper.

      FWIW, mysql says that the most *stable* platforms for mysql is Solaris and SuSE Linux. Strange, I know.

    3. Re:Missing option by Anonymous Coward · · Score: 0

      Darwin also runs on x86, see e.g.

  28. Re:Hilarious commentary from linux crowd on TFA by Anonymous Coward · · Score: 0

    shut up fucktard!

  29. Why are we even doing this? by l33t-gu3lph1t3 · · Score: 1, Interesting

    No serious DBA uses MySQL. Oracle, Sybase, PeopleSoft(soon to be oracle), IBM...

    MySQL is what they use to teach you structured query in school. Databases have come a long way in FEATURES in the last 10 years...

    --
    ------- "From bored to fanboy in 3.8 asian girls" ----------
    1. Re:Why are we even doing this? by freemacmini · · Score: 1

      "MySQL is what they use to teach you structured query in school"

      And it's terrible for that. People should use firebird it has much better SQL compliance.

    2. Re:Why are we even doing this? by cranos · · Score: 1

      For its niche target MySQL is perfect. We manage to run a nice little sales reporting system using MySQL as the backend and we haven't had any problems.

      The DB's you have listed can be serious overkill when you are dealing with small to medium sized businesses especially when you have OSS dbs such as MySQL and PostgreSQL available.

    3. Re:Why are we even doing this? by Patoski · · Score: 1
      No serious DBA uses MySQL. Oracle, Sybase, PeopleSoft(soon to be oracle), IBM...

      MySQL is what they use to teach you structured query in school. Databases have come a long way in FEATURES in the last 10 years...

      Any decent craftsman will use the correct tool for the work at hand.

      Sometimes the right tool is the most feature packed product you can find (Oracle). Other times the smaller tool with fewer features but better performance is preferable (MySQL).

      Don't go squirrel hunting with an elephant gun.
      --
      G. Washington on Government "it is force. Like fire, it is a dangerous servant and a fearful master."
    4. Re:Why are we even doing this? by Anonymous Coward · · Score: 0
      No serious DBA uses MySQL. Oracle, Sybase, PeopleSoft(soon to be oracle), IBM...


      I think the parent's nick and url pretty much sums it up.
    5. Re:Why are we even doing this? by Anonymous Coward · · Score: 0

      Oh I beg to differ little cowboy. MySQL didn't match every last feature of Oracle, but it's performance and scalability seem to be on par. There are a lot of businesses/organizations that use MySQL for their needs (and are very happy thank you). As I seem to recall NASA was one of the first... That also isn't to say that MySQL is done by any means. They are aiming for SQL99 compliance (ok 6 years out), but ummm as I seem to recall, Oracle had a bit of a head start on this one. MySQL5.0 will have stored procedures (triggers) and views, full union and intersection commands (with all sub-possabilities), and all of the performance optimizations. Oh, and for a lot less than $25,000US/processor. Do you know that for 25,000 I could buy a couple of Tyan Quad-Opteron motherboards stuffed full of 800 MHz Ram and some big fat SATA drives...

    6. Re:Why are we even doing this? by Anonymous Coward · · Score: 0

      Peoplesoft? Peoplesoft is a suite of applications that run on top of other DBs, like Oracle, DB/2, etc. It isn't a database.

  30. Benchmarking all major DB and OS by Anonymous Coward · · Score: 0

    Hi all,

    Nice to have is one benchmark tool (http://benchw.sourceforge.net/) and run it for all major DB on all major OS (also Windows).

    Create a nice overview and update regularly. Maybe it can act as a reference.

  31. Re:Huh by DenDave · · Score: 1
    Perhaps if they had a little bit of that old magic SQL compliance

    Certainly you have read the documentation and noted their standpoint on compliance. It's a question of choice and that's all yours..
    --
    -if at first you don't succeed, stay the heck away from paragliding.
  32. I don't believe you! by Phidoux · · Score: 1

    They only said 20% faster?

  33. Re:If TFA gets slashdotted, these are his conclusi by Anonymous Coward · · Score: 0

    And of course, the distro of choice? Gentoo...

    Both Linux 2.4 and 2.6 had the strongest showing overall for these tests, dominating just about every benchmark no matter the workload.

    Linux++;

  34. MySQL still faster than Firebird by plibnik · · Score: 1

    Our company uses Firebird as a main database engine, it is indeed feature-rich compared to MySQL (triggers, stored procs, events, transactions, versions) and more mature/stable than PostgreSQL; yet we replicate the base to MySQL/PHP system for web portal functionality.
    It turns out cheaper to establish a replication between two databases and use strong features of both (rich feature set and Borland's visual data controls + PHP/MySQL integration and raw speed), than settle for any single DB.

    It would be disgusting to have no triggers/procedures on main DB; but working from PHP with Firebird seems to be not too native.

    (We did also consider PostgreSQL but dropped it due to our 24x7 requirements and its VACUUM problems...)

    1. Re:MySQL still faster than Firebird by Unordained · · Score: 1

      working from PHP with Firebird seems to be not too native

      Really? I've found the ibase_* functions rather clean, though php.net's examples fail to clearly indicate how to use transactions, even though it's quite easy (and a really good idea.) I wonder if that's just part of the "get up and going" approach, or a hold-over from other *cough*MySQL*cough* RDBMSs that didn't have/encourage transactions.

      While we use IBX for our Win32 apps, we don't use any of the visual components, and we could just as easily do with IBObjects, or even a few wrappers around the C API. We use IBX about as much as I use the ibase_* functions in PHP, with wrappers to STL structures. (Note: IBX isn't guaranteed to continue working with Firebird, as Borland does its own thing with Interbase. We're screwing ourselves over by using it.)

      Do you convert the database layout to a data-warehouse/star topology for use with MySQL? I could see how a simpler table layout, particularly for mostly read-only operations, would make MySQL more appealing. (Firebird has a read-only mode in which transactions are ignored and things speed up, but we've never used it. All our reporting is done against the live database, up to the last committed transaction. Managers won't have it any other way.)

      I thought I heard something about PG's "vacuum" being fixed/replaced in the near future, so the 24x7 thing won't be an issue anymore?

    2. Re:MySQL still faster than Firebird by Anonymous Coward · · Score: 0

      I thought I heard something about PG's "vacuum" being fixed/replaced in the near future, so the 24x7 thing won't be an issue anymore?

      It was in fixed in 7.2 and it no longer locks the table when run (in the normal mode). That's three years ago, after that came 7.3, 7.4 and now 8.0.

  35. Re:The only thing worse than your 80th DB argument by Anonymous Coward · · Score: 0

    coding is supposed to be fun? what the fuck kind of hippie bullshit is that? lay off the acid.

  36. Wow am I disappointed in FreeBSD by Billly+Gates · · Score: 0



    FreeBSD use to be many times faster and more stable than Linux. Yahoo and hotmail picked the OS over Linux for that reason.

    Notice that all but one of the benchmarks showed FreeBSD 5.x performing worse than 4.10?

    Only 1 benchmark did 5.x do better.

    What an utter disapointment. and its a shame all the big developers left hte project.

    I will say kudos to the netbsd 2.0 team!

    It is turning into a fine freebsd replacement and if the admins rerun the test with the correct SMP settings it will perform quite well. There is a comment above mine in the replies outlining the issue.

    1. Re:Wow am I disappointed in FreeBSD by Zemplar · · Score: 2, Interesting

      Learn more about the benchmarks and WHY FreeBSD is slightly slower NOW. This time next year you will likely fully understand FreeBSD's decisions when they are again the benchmark leader on a 'typical' hardware configuration. The future is all about multi-processors and multi-core processors. Guess what? FreeBSD 5.x is ready.

    2. Re:Wow am I disappointed in FreeBSD by chrysalis · · Score: 1

      This is why the DragonFlyBSD project does exist.

      --
      {{.sig}}
    3. Re:Wow am I disappointed in FreeBSD by Brandybuck · · Score: 0, Flamebait

      And this is why Dragonfly advocates troll FreeBSD. Really, they're starting to sound like the Gentoo freaks of the BSD world. Everytime FreeBSD is mentioned some twit has to pop up with Dragonfly FUD.

      --
      Don't blame me, I didn't vote for either of them!
    4. Re:Wow am I disappointed in FreeBSD by Anonymous Coward · · Score: 0

      FreeBSD 5.3 has serious performance problems. I talked to Robert Watson about this very issue last week. He says wait for 6.0. Maybe you are the troll. Everyone who knows anything about FreeBSD 5.3 has voiced concern over its sluggish and unreliable performance issues.

    5. Re:Wow am I disappointed in FreeBSD by CryBaby · · Score: 1

      Funny, I had the opposite reaction. Considering that he tested optimized Gentoo (I'm assuming it was comiled from source for i686) w/ ReiserFS (isn't it still considered non-standard in Linux?) against binary installations (i.e. compiled for i486) of FreeBSD 4 & 5, I would say that FreeBSD delivered a very strong performance.

      Regarding 4 vs. 5: if you consider that many code paths in FreeBSD 5 are considerably more expensive than in 4 due to the fine-grained mutexing, it's impressive that the first truly useable release of 5.x is already keeping up (for the most part) with the simpler, highly uni-processor optimized FreeBSD 4. It was also impressive that KSE delivered roughly the same performance as LinuxThreads, again considering the small amount of time that KSE has been in widespread use.

      If you read the FreeBSD developer lists even a little bit, you would find that the focus of work so far has been on laying the foundation for fine-grained SMP and threading to eliminate the scalability cap of FreeBSD 4's fully locked (i.e. non-SMP) kernel. It will take some time before the fruits of that labor result in significantly higher performance (especially in the uni- and dual-processor cases). In some areas (e.g. packet throughput), FreeBSD 5 already trounces FreeBSD 4 and Linux 2.6. In others, the shorter code paths and years of optimization in FreeBSD 4 still can't be beat. This seems quite reasonable to me.

      I have to point out just a few of the most significant flaws in these benchmarks in the hope that people will interpret the results appropriately:

      1.) The domain socket (i.e. local, non-network) tests were performed using super smack. As the author notes, super smack does not compile out-of-the-box on FreeBSD. That's because it is developed on Linux and (obviously) the author(s) don't test or optimize it for FreeBSD. It's reasonable to assume that it's performance may therefore suffer quite a bit on FreeBSD and no benchmarks were performed to isolate this potential penalty. If you think I'm stretching, consider this: PostgreSQL was (and may still be) primarily developed on FreeBSD. If the development team never tested and optimized it to perform well on Linux, would you consider a PostgreSQL on Linux vs. PostgreSQL on FreeBSD a fair (or even meaningful) benchmark?

      2.) While the author fails to clarify whether the sysbench tests were performed remotely or locally, he does mention that he thought sysbench gave meaningful results over the network, so I'm going to go out on a limb and guess that the sysbench results are over a network connection. If the sysbench tests were local, then the same criticism applies as the super smack tests - the benchmarking tool performance and load on each OS must be accounted for so that it may be isolated in the results if they are to have any meaning.

      I'm sure you can see where I'm heading but, if any of these benchmarks are remote, we need to know the OS and hardware of the client machine. This is never mentioned. While remote database testing is a good idea in that the benchmark workload is automatically isolated, one must take into account that the benchmarks now reflect network performance between different OS's (assuming the same client machine is used for each test). If careful, informed TCP/IP tuning is not performed on each server to eliminate differences (and the author mentions nothing about this), the OS with the most aggressive default tuning or default tuning that most closely matches the client will certainly show superior results that have nothing to do with MySQL performance. Givens the author's obviously increased familiarity with Linux over the other OS's tested, I would guess that his client machine (if any) was running Gentoo Linux, giving that OS an extreme advantage in network performance. If you're not familiar with FreeBSD, it's default TCP/IP settings are extremely conservative. A good example is the kern.ipc.somaxconn kernel tunable which controls the maximum number of simultaneous TCP connections. It is set to

    6. Re:Wow am I disappointed in FreeBSD by Anonymous Coward · · Score: 0

      Funny, I had the opposite reaction. Considering that he tested optimized Gentoo (I'm assuming it was comiled from source for i686)

      This would make a few % difference, if you're lucky.

      w/ ReiserFS (isn't it still considered non-standard in Linux?) against binary installations (i.e. compiled for i486) of FreeBSD 4 & 5, I would say that FreeBSD delivered a very strong performance.

      No ReiserFS is probably the first shipping journalling filesystem for Linux. SUSE has used it in SLES for many years.

      Regarding 4 vs. 5: if you consider that many code paths in FreeBSD 5 are considerably more expensive than in 4 due to the fine-grained mutexing, it's impressive that the first truly useable release of 5.x is already keeping up (for the most part) with the simpler, highly uni-processor optimized FreeBSD 4. It was also impressive that KSE delivered roughly the same performance as LinuxThreads, again considering the small amount of time that KSE has been in widespread use.

      Not when you consider than Linux 2.6 is far and away more scalable than FreeBSD 5, while also having much better single threaded performance than FreeBSD 4.

      If you read the FreeBSD developer lists even a little bit, you would find that the focus of work so far has been on laying the foundation for fine-grained SMP and threading to eliminate the scalability cap of FreeBSD 4's fully locked (i.e. non-SMP) kernel. It will take some time before the fruits of that labor result in significantly higher performance (especially in the uni- and dual-processor cases). In some areas (e.g. packet throughput), FreeBSD 5 already trounces FreeBSD 4 and Linux 2.6. In others, the shorter code paths and years of optimization in FreeBSD 4 still can't be beat. This seems quite reasonable to me.

      Actually no, this is forwarding performance that you are thinking of. Linux is much faster in end to end packet processing than FreeBSD, but apparently FreeBSD 5 was supposed to be quicker than Linux when doing forwarding.

      But I think their tests were flawed - they claimed they did 1Mpps while Linux couldn't do much over 100Kpps, although I have seen many reports of Linux doing 4-600 on similar hardware.

      Also - some tweaking to their driver shows performance can be improved past what FreeBSD can do - 1.1Mpps with a *single* Opteron (rather than dual Xeons), and 2.1Mpps with dual Opterons.
      link

      1.)

      This is a copout. Linux exposes a POSIX API to userspace, and that's what it runs. If FreeBSD can't provide POSIX API services any faster, then it is slower.

      2.) It was local. And the same benchmark is being run on each OS, so there is no need to isolate it.

      3.) Dude, you had earlier been bashing the Gentoo results for compiling the system with different options, and also thinking things weren't consistent enough.

      Also, like super smack, MySQL is primarily developed on Linux, so it's to be expected that it would perform best on that platform especially without compiler optimizations or platform-specific patches.

      If there is a patch that improves performance on some OS, it will be included in MySQL if it isn't a cludge to work around some horrible performance limitation.

      Most of my criticisms could also be applied in defense of the other OS's.

      No they couldn't.

      In conclusion, while these benchmarks are mildly interesting and I think the author attempted to achieve unbiased results, the methodology is primitive, cursory, and leaves muliple significant factors unaddressed. Forming an opinion based on these benchmarks is really not possible due to all the shortcomings and unknown variables.

      What would you have him test? Some imaginary database that is developed on FreeBSD and which runs fastest on FreeBSD? OK. Meanwhile, the rest of us will try to get some useful work done.

    7. Re:Wow am I disappointed in FreeBSD by CryBaby · · Score: 1
      You misunderstood most of my points. For instance, you say that the benchmark tools were run locally (although I don't see in the article where the author clarifies that all tests were local) so their workload does not need to be isolated. What if super smack runs 15% slower on FreeBSD because it is not well-written, portable code and/or has had very little testing on FreeBSD? Since super smack is not a real-world client, that 15% performance difference MUST be isolated (are we disagreeing on the meaning of "isolated" or do you get my point?). In fact this post seems to confirm my suspicion of super smack's poor performance on FreeBSD, and even my initial guess at the percentage.

      What would you have him test? Some imaginary database that is developed on FreeBSD and which runs fastest on FreeBSD? OK. Meanwhile, the rest of us will try to get some useful work done.
      Alright, calm down tough guy. I can't really see how an imaginary database benchmark would help, but niether do the benchmarks we're discussing now becuase of the all the points I raised in my last post. What would be interesting is to see the tests repeated with the client workload properly isolated by alternately running each benchmark on two different client machines. The client machines would ideally have identical hardware but different OS's (say SUSE and FreeBSD 4.11). An attempt would then be made to tune all TCP/IP stacks (clients and servers) for the highest compatibility. That means only enabling common features (e.g. no SACK because NetBSD doesn't have it) and probably disabling window scaling altogether. Since this is not supposed to be a network benchmark, the goal would be to eliminate network performance variations to hide any networking advantages one OS has over another.

      While using MySQL for a benchmark is useful because it is a real world app in every sense, the benchmarks would be far more useful if another similar app such as PostgreSQL was used in addition. This would still not provide anything close to a scientific control to eliminate unknown variations, it would at least be one step closer.

      I'll close by mentioning that when I moved the busiest MySQL server that I administer (avg ~ 200 queries/sec) from Red Hat Linux 8 to FreeBSD 4 on a Dell 6650, I saw a drop in load average and CPU utilization of about 20% (same MySQL version and config). There was no noticeable speed difference. So FreeBSD ended up providing a meaningful benefit that would never have been reflected in this or similar benchmarks. All benchmarks have their shortcomings and holes, this one just happens to be especially riddled with them.
    8. Re:Wow am I disappointed in FreeBSD by Anonymous Coward · · Score: 0

      You misunderstood most of my points. For instance, you say that the benchmark tools were run locally (although I don't see in the article where the author clarifies that all tests were local) so their workload does not need to be isolated. What if super smack runs 15% slower on FreeBSD because it is not well-written, portable code and/or has had very little testing on FreeBSD?

      FreeBSD developers have had plenty of time to look at the supersmack code. Anyway, it is pretty small and unlikely to be a large proportion of the benchmark time.

      Since super smack is not a real-world client, that 15% performance difference MUST be isolated (are we disagreeing on the meaning of "isolated" or do you get my point?). In fact this post seems to confirm my suspicion of super smack's poor performance on FreeBSD, and even my initial guess at the percentage.

      You misunderstand the author of that post - he is talking about MySQL performance with supersmack, not the performance of the actual supersmack code itself. And the improvements cited are improvements to the FreeBSD kernel (or perhaps, threading libraries), *not* MySQL or supersmack code.

      Alright, calm down tough guy. I can't really see how an imaginary database benchmark would help, but niether do the benchmarks we're discussing now becuase of the all the points I raised in my last post. What would be interesting is to see the tests repeated with the client workload properly isolated by alternately running each benchmark on two different client machines. The client machines would ideally have identical hardware but different OS's (say SUSE and FreeBSD 4.11). An attempt would then be made to tune all TCP/IP stacks (clients and servers) for the highest compatibility. That means only enabling common features (e.g. no SACK because NetBSD doesn't have it) and probably disabling window scaling altogether. Since this is not supposed to be a network benchmark, the goal would be to eliminate network performance variations to hide any networking advantages one OS has over another

      I think that's just the same old tired copout that I always hear from FreeBSD people when they're down in performance. The tests you describe may be interesting, but in no way does anything you say invalidate these results.

      While using MySQL for a benchmark is useful because it is a real world app in every sense, the benchmarks would be far more useful if another similar app such as PostgreSQL was used in addition. This would still not provide anything close to a scientific control to eliminate unknown variations, it would at least be one step closer.

      I don't see how a test of how well various operating systems run MySQL would be any more useful if PostgreSQL were tested as well. You may get a more rounded view on general OS performance, but it would not help you specifically with MySQL performance.

      I'll close by mentioning that when I moved the busiest MySQL server that I administer (avg ~ 200 queries/sec) from Red Hat Linux 8 to FreeBSD 4 on a Dell 6650, I saw a drop in load average and CPU utilization of about 20% (same MySQL version and config). There was no noticeable speed difference. So FreeBSD ended up providing a meaningful benefit that would never have been reflected in this or similar benchmarks. All benchmarks have their shortcomings and holes, this one just happens to be especially riddled with them.

      I don't think this added anything constructive. If you are worried trying to pick nits in a pretty well set up benchmark, then your anecdoes are just ramblings in comparison.

      There are quite a few people I noticed on the FreeBSD lists recently who are at their wits end because they have to move to Linux for MySQL performance, and nobody seems to be able to help them.

    9. Re:Wow am I disappointed in FreeBSD by Anonymous Coward · · Score: 0

      Er, yeah, and so is Linux.
      In fact, it's been ready for years (let me know when FreeBSD runs and scales on 128 CPU machines.)

      FreeBSD has never been the benchmark leader (er, well, not in the last 5 years anyway.) It's all just hollier-than-thou "real UNIX" crap that FreeBSD bigots like to pedal. "Slightly slower" isn't what I saw in the benchmarks in the article. Nor in fefe's scalability testing.

      Get a clue. Have you ever performed *actual* benchmarks comparing various OSes? Do you have the numbers?

      Real-world apache (and IIS) benchmarks I've done suggest that FreeBSD 5.2.1 (I'll have to rebench on 5.3, since it seems they've fixed various issues there) is twice as slow as Linux 2.4 or 2.6, but is on par with Windows 2003.

      Oh, and I don't think any other OS is going to stand still for a year whilst FreeBSD catches up. Quite frankly, the Linux kernel is probably the best kernel in existence right now, and with such a wide and ever-growing developer base, that is unlikely to change any time soon.

      Suck it up. How you get an "interesting" is a mystery to me.

    10. Re:Wow am I disappointed in FreeBSD by Billly+Gates · · Score: 1

      Acutally I agree with you 100% on FreeBSD4.

      I still like FreeBSD and I did not intend to start a flamewar.

      I am talking about FreeBSD 5.x.

      If you put it on your Dell server at work I guarantee you that a decrease in performance would be observed.

      All the really good developers left Fbsd and 5.x is a disaster to many old time BSD hackers who either left the project or switched to another version.

      Dragonfly looks interesting and many of the former FreeBSD and BSDunix hackers are working on it. I hope it stabilizes soon but that wont happen until more people use it and more software is ported to it.

  37. Solaris 10 -- the *good* x86 Solaris by tesmako · · Score: 3, Interesting

    Must say that it is very nice to see Solaris up there in the top in the tests that it was featured in. Seems Sun was not joking around when they claimed that Solaris 10 would be greatly improved on x86. As is often said around here; More choice is good.

  38. What about Firebird? by Futurepower(R) · · Score: 1


    What about the Firebird relational database?

    Evans Data says it is the best, in a survey done for 2005, but copyrighted 2003. (I'm uncertain how much they should be trusted.)

  39. The fastest OS by Anonymous Coward · · Score: 0

    Firstly, they only compare XP to other versions of Windows. As to reliability, XP scores rather better than '95, '98 or ME. As to speed, they only claim:

    - XP boots faster than other Windowzes
    - applications start faster on XP than on others

    Of course, Windows 3.1 boots lightning fast, compared to later versions. Microsoft once claimed Windows 2000 performance to be generally higher than for Windows NT 4, but benchmarks indicate the reverse to be the case.

    I once did a quick benchmark on a small program (the hello.c program after removing the printf() call), in a small script that ran this program 1000.000 times in succession: SCO Unix was real fast, Linux about twice as slow (e.g. bloated), Windows NT 4, much slower still, and Windows 2000
    took longest of all.

  40. XP isn't a server operating system by blorg · · Score: 1

    As an other poster hinted, Windows 2000 server or 2003 server _would) be an interesting comparison. And Windows (albeit with SQL Server) does not do too badly when it comes to database performance, particularly when you consider Price/Performance.

    1. Re:XP isn't a server operating system by Anonymous Coward · · Score: 2, Informative

      And Windows (albeit with SQL Server) does not do too badly when it comes to database performance,

      You can't just fire a MySQL benchmark at SQL Server, though, and expect it to perform well. SQL Server is much less of a SELECT engine than MySQL; you need to use different paradigms, notably heavy use of stored procedures and functions.

      Oracle is the middle ground - it performs very well if you program to its own model or not.

  41. Firebird relational database by Futurepower(R) · · Score: 0


    Firebird relational database.

    1. Re:Firebird relational database by Anonymous Coward · · Score: 0

      Whoosh! Joke-alert! Joke-alert! Ding-ding-ding-ding-ding!

  42. Re:What about Firebird? - good point by Anonymous Coward · · Score: 4, Interesting

    What about the Firebird relational database?

    Good point. "Firebird is a relational database offering many ANSI SQL-92 features" [emphasis added] PostgreSQL "supports SQL92 and SQL99" [emphasis added]. "New code modules added to Firebird are licensed under the Initial Developer's Public License. (IDPL). The original modules released by Inprise are licensed under the InterBase Public License v.1.0. Both licences are modified versions of the Mozilla Public License v.1.1." On the other hand, "PostgreSQL is released under the BSD license." Other than that they are mostly comparable, so you have risen a very good point. If you don't need standard SQL support and the license is acceptable, Firebird is a very good option.

  43. MOD PARENT UP! by Anonymous Coward · · Score: 0

    This is really interesting stuff. The first objective "MySQL vs PostgreSQL" post on slashdot I've ever read. Thanks Mr. Hose. :) I'm reading the Wikipedia links and I think I am finally starting to get the relational model... And I've been using SQL for years! :D Thanks!

  44. HA feature sets by Anonymous Coward · · Score: 0

    You also have to consider mySQL feature sets for high-availability, online backups, point-in-time recovery strategies and so forth for serious production system (simple things, like can db be online while making recovery). These things mySQL had lacking back afaik long time.

    Why mySQL is then so popular? I think answer i pretty simple, it offered long time easy to install win32 binaries freely available, when nobody else did. I guess many developers didn't want to start hassling with cygwin and so forth, and most of progs are still developed on win32 platforms.

  45. mysql speed for OLAP/DW roles by Anonymous Coward · · Score: 0

    Mysql speed is linear to complexity of the role defined for the rdbms.

    Put mySQL to demanding OLAP role or DW stuff, it will suffocate miserably. For very small transactions where commit rate is high - logging and so forth (where all the speed is actually going to rotate disk and such logic) mySQL is fast, but real business systems aren't nearly never that simple ;-)

  46. Say what? by blorg · · Score: 4, Informative

    Where Oracle ... can return simple select queries or complex insert or joined select queries in .5 to 1.0 seconds each

    If Oracle is taking .5 to 1.0 seconds to return 'simple select queries', you are doing something wrong. Very large unindexed tables, perhaps. Alternatively if Oracle is taking the same amount of time to return simple and complex queries, that might indicate that something is wrong with the connection between your app and Oracle.

    Your 'code library' sounds an awful lot like what stored procedures tend to be useful for - presenting a stable external 'API' for accessing the database. If the database changes internally, you just change the stored procedures, and all applications using these procedures carry on as normal.

    I don't need to have "good habits" ... I don't need to have nth degree optimized queries.

    Uh huh.

    I agree completely that you don't need to 'swat a fly with a sledgehammer' and some applications genuinely only do need a simple database with a few simple tables.

    But good habits come in useful, particularly if circumstances change and you have to scale up rapidly - your website becomes massively more popular, your HR application suddenly needs to incorporate new features, whatever. And in any case MySQL has been getting a lot more advanced database features lately, so it's no harm to know them. They might just come in handy.

    1. Re:Say what? by ErikZ · · Score: 1


      Heh. It only takes once.

      "Why bother?" I thought. "It's just a dinky little website with a few hundred stories. No need to normalize the tables. One table will do."

      Man, trying to normalize the database a few years later as more functionality was added to the website was a pain in the ass, and a lot of work I could of avoided if I did it right the first time.

      The school of "Learning the hard way" is always open and accepts everyone, even if they didn't apply.

      --
      Democrats or Republicans. They are both taking us to the same place and they are not afraid of us anymore.
  47. databases ? where ? by robnauta · · Score: 1, Interesting
    The heading is misleading. What do 'database performance' and testing a toy like mySQL have to do with eachother ?

    MySQL may be fast, because its features are so limited. Sure, it stores and retrieves records, but its partial implementation of SQL (without subqueries etc) and blatant bugs that violate SQL (try inserting '123456' into a varchar(4) column, it will silently truncate to '1234' instead of giving a 'Inserted value too large for column' error) make it useless for anything reliable.

    If 'fast' is your only important concern you should be using flat files or dbm/ndbm files, but there is more to a database than speed.

    1. Re:databases ? where ? by Anonymous Coward · · Score: 0

      MySQL are listening to biggots like you...

      They support subqueries (as of 4.1), and there is also a config setting that you can set to return an error for an incorrect data length.

      Of course you validate your data before blindly inserting it into the database...

    2. Re:databases ? where ? by gregfortune · · Score: 1

      Argggg... It has subqueries (MySQL 4.1). It has transactions (INNOdb tables). It has a binary log. etc, etc, etc. Please check this kind of bull against the crash-me section of MySQL's site.
      http://dev.mysql.com/tech-resources/features.html

      Not sure what to say about the truncation because MySQL does perform in the manner you describe. What confuses me is why you're even allowing bad data to reach the database... How about you just let your users know they entered more data than you had designed the schema to handle?

    3. Re:databases ? where ? by Anonymous Coward · · Score: 0

      The last time I tried (over a year ago), MySQL supported subqueries. The big advancements for MySQL5.0 (due in a few months) are views and triggers. Subqueries were one of the big highlighed features in the production version of MySQL 4.0 (out about a year ago). If you want to see how the work on view and triggers is coming along, you can download a beta version of MySQL 5.0 right away. It isn't ready yet, but the daily snapshot version might work ok for you. If isn't supposed to be finished for a few months though.

  48. Re:How relevant are those benchmarks [winhat] by Anonymous Coward · · Score: 0

    The dinosaurs were a family of reptiles which lived on the wrong side of the box, it doesn't matter what's in them. But if you ever plan to use computers to something other than what they current doing, then you need to be obsessed with that!

    Does anyone go: "ok, i need the os for my mysql project. I'll benchmark bsd, linux, windows, and choose the fastest os.

    I've seen elderly kangaroos with better typing skills than you!

    Existing skillset (advantage to os already deployed.

    Existing skillset (advantage to the os for my mysql project. I'll benchmark bsd, linux, windows, and choose the fastest os.

    This society based on greed fuels the onslaught of destruction. The circle of death ends with the login name faye runs the id command (under se linux is not as smart as you.

    What's the point of no return has not changed to root. However, if identity faye has been used for hearing, and it converts sound into electrical impulses that are fed to the os for my mysql project. I'll benchmark bsd, linux, windows, and choose the fastest os.

    A plant is a sack in the lock tcb for a trusted dbms application. In the extension, new tcb subjects are straightforwardly prevented from interfering with the calf of the alimentary canal.

    A carnivore is a large, ostrich-like flightless bird found in new zealand.

  49. Amazing by cranos · · Score: 5, Insightful

    Somebody posts a comparison of an application running on different OS's as a system benchmark, and what do people do? Attack MySQL.

    God guys get over it, MySQL is here and it has actually proven itself to be usefull. Yes its missing features and has issues, but it fills the niche it is aimed at.

    1. Re:Amazing by ducomputergeek · · Score: 1
      I've noticed this over the years, especially from the postgres fans and more recently firebird SQL. However, people should read what MySQL was designed for orginally (raw speed with SELECT) and what the project use is going to be.

      MySQL is ideal for running a CMS or other website with slight or moderately changing content. Why? Because, from my experience, your running more SELECT queries than Update or INSERT commands. Plus the fact that there are way more web apps (especially OSS) that have been written in PERL/MySQL or PHP/MySQL.

      I ran a browser-based online game that was orginally designed for php/MySQL simply because I could deploy on most hosting accounts with that combo the cheapest. After a while, MySQL would become easily corrupted and crashed because of high loads with many more Updates, Insert, and delete queries. As more people were playing and I was able to switch to self-managed dedicated servers I switched to PostgreSQL and rewrote the code base and it solved most of the problems, but if more than 400 users were online, the system would slow down considerably. Granted everything was run on a single OpenBSD box, but it was only costing me USD 65 a month to host and on a college budget that was about what I could afford with revenues from the game.

      It still largely depends on what your objectives and type of project your going to be doing. If I were to develop some in house intranet system or the like, probably would consider a system like PostgreSQL. Same with an E-commerce site. But if its a blog site or other CMS powered system where there aren't tons of content added on a daily basis, chances are I am going to go with some MySQL based solution.

      Something else to consider, especially in being in the consulting world, is on staff talent. If all your people are MSCE's then using any *iux-based solution isn't a good Idea because of the huge overhead costs in retraining or hiring new/additonal staff. If the people and systems are Solaris/SPARC-based, then find a solution for that situation. If a company is building an IT division or system from scratch, then its time to look at various *iux solution including Linux, *BSD, and Apple. Company I work for now is in video production. 99% of our systems are Macintosh. When it came time to build a 6TB SAN, we went with Xserve. More expensive than an x86/Linux or *BSD based system. Not when you start comparing solutions (including support agreements) from vendors like IBM. But on staff are 6 full-time Apple Nerds. We already had a couple small workgroup servers with 10.2 Server on them so training costs were not significate for us.

      Right tool for the right job period. When I worked as a consultant for 2 years I learned real quick that being a zealot for one system over another doesn't work and there are many more factors involved in IT decision making and TCO decisions than just hardware and software. Learned very quick that hardware and software are much cheaper than labour and downtime.

      --
      "The problem with socialism is eventually you run out of other people's money" - Thatcher.
  50. "usefulll". by Anonymous Coward · · Score: 0

    Actually, the most correct form requires three l's ("usefulll"). Two l's is acceptable, but it's somewhat frowned upon.

  51. Re:If TFA gets slashdotted, these are his conclusi by jmcneill · · Score: 2, Informative

    By default NetBSD's threading library in 2.0 only runs on one processor. To enable (experimental) support for scheduling a threaded process against multiple processors, you can set the environment variable PTHREAD_CONCURRENCY=.

  52. Impressed with Solaris by MajorDick · · Score: 3, Interesting

    I have always had a soft sop for Solaris since 2.51, it secure, and stable, in my experience, but alas its always been SLOW on x86 hardware.
    These benchmarks show that at least with mySql its pretty fast, but more importantly look at the solaris benchmarks, they are nearly identically consistent across all test, where others vary much.

    Ive always kinda thought of Solaris as a 4 wheel drive truck in low range, but it looks like they added a turbo :) I wonder if its a result of better x86 optimization or the new Filesystem

    1. Re:Impressed with Solaris by Anonymous Coward · · Score: 0

      I bet you haven't used AIX

    2. Re:Impressed with Solaris by htd2 · · Score: 2, Interesting

      Ive always kinda thought of Solaris as a 4 wheel drive truck in low range, but it looks like they added a turbo :) I wonder if its a result of better x86 optimization or the new Filesystem

      The test was done with standard Solaris UFS+ apparently they used forcedirectio. UFS+ on Solaris 10 is pretty much the same as UFS+ on Solaris 9.

      I hope they re-run the tests on Solaris 10 when ZFS ships in the next release which is due mid year.

      I was suprised by how close Solaris 10 was to Linux, after all they used a beta OS on a very tiny system, hardly Solaris's sweet spot in the past.

    3. Re:Impressed with Solaris by chez69 · · Score: 1

      yeah, if you run AIX you really see how much faster the RS/6000s are compared to SUN

      --
      PHP is the solution of choice for relaying mysql errors to web users.
    4. Re:Impressed with Solaris by bpechter · · Score: 1

      Not with AIX on x86.
      8-)

      I've used Solaris 1.x-9 and Aix 3.2.x->4.1.4
      and I've had good luck and results with both.
      I'm sorry IBM didn't put AIX on x86 and went with Linux. I'd have liked the availability of both.

      I think AIX is easier for non-tech heavy sites with the gui based admin tools.

      Webmin's not quite as slick. And when an RS6000
      dies with numbers in the LED's it's rather cool.

      Bill

    5. Re:Impressed with Solaris by Anonymous Coward · · Score: 0

      IBM went with Linux? Since when? IBM has Linux "compatability" with AIX 5L.

      I hope AIX will never run on x86. I think Sun is making a big mistake by even putting Solaris on x86. Then again, its Sun (who cares)....

      I think AIX is much better then Solaris IMO.

  53. [OT] re: your .sig by pgilman · · Score: 0, Flamebait

    "'Try not. Do or do not, there is no try.'
    -- Dr. Spock, stardate 2822.3.
    "

    what the hell? first of all, the quotation is from yoda, from star wars . second, the character from star trek is named mr. spock; dr. spock was a noted pediatrician. thirdly, following on from the first two points, the "stardate" you have there is presumably just made up and meaningless. again, i ask: what the hell?

    now, i figure nobody could be that wrong; i figure you must already know all this. but if so, what's the point? is it supposed to be funny? is it just a troll, to get people like me wondering what's the matter with you? what's the point? what the hell?

    --
    if i'm a grammar nazi, you're an illiteracy nazi.
    1. Re:[OT] re: your .sig by Anonymous Coward · · Score: 0

      don't anthropomorphize computers. they don't like it.

      what the fuck? first of all, i'll anthropomorphize computers all i want. second, using the phrase "they don't like it" means you yourself are anthropomorphizing computers. again, i ask: what the fuck?

      now, i figure nobody could be that dumb; i figure you must already know this. but if so, what's the point? is it supposed to be funny? is it just a troll, to get people like me wondering what's the matter with you? what's the point? what the fuck?

  54. The SMP results are wrong. by Anonymous Coward · · Score: 0

    He has NetBSD setup to use a single kernel thread, so its only running on a single CPU. That's why it "doesn't seem to scale well" to two processors.

    1. Re:The SMP results are wrong. by Anonymous Coward · · Score: 0

      Oh, I see. NetBSD isn't smart enough to automatically detect how many processors are in the system. My bad.

    2. Re:The SMP results are wrong. by setagllib · · Score: 1

      It does, but you might not WANT to have a single process taking up more than one processor because of threads. The change is entirely trivial and not hard to do, but the flexibility allows you to share load on a per-process or close to per-thread basis, depending on this value.

      But I agree it'd be saner to have the default be the number of processors, and if I read correctly this is the situation in -current right now.

      --
      Sam ty sig.
  55. Get real. by Anonymous Coward · · Score: 0

    Painfully figure out which settings are optimal? THE NUMBER OF CPUS IN YOUR MACHINE. Fuck, that was pretty painful. It could take weeks to do the math on that.

  56. Solaris 10 by SQLz · · Score: 1

    Its good to see that Linux 2.6 kicked Solaris's ass.

    1. Re:Solaris 10 by Anonymous Coward · · Score: 0
      Its good to see that Linux 2.6 kicked Solaris's ass.


      And it's good to see the fanboi brigade is out in force.

      Call Linus at 2am when you need a patch because your system keeps taking a shit.. go ahead.. do it.

      Have a Sun Platinum contract? Then it can happen.
    2. Re:Solaris 10 by SQLz · · Score: 1

      Never had a linux system that took a shit, sorry. Never had a linux system that kept me up till 2am either. Actually, I've never had a Solaris box die on me other but on the flip side, I've only used solaris for low bandwidth tasks like DNS.

    3. Re:Solaris 10 by htd2 · · Score: 1

      Its good to see that Linux 2.6 kicked Solaris's ass.

      So you think that Linux 2.6 being ~5% faster than a beta version of Solaris 10 is evidence that Linux 2.6 kicked Solaris's ass ??

      Interesting, the reality is more like a wakeup call for Linux advocates. Single CPU performance is hardly Solaris's sweet spot up to now but Sun seem to have managed to deliver rather good single CPU performance which coupled with Solaris's undoubted scalability will make a rather daunting combination when compared with Linux.

  57. Comparing MySQL to PostgreSQL by Sierpinski · · Score: 2, Interesting

    One thing I noticed about version of mysql (prior to version 4.1, I believe) was that mysql didn't support the notion of nested queries, which at the time, was what I really needed to perform. An upgrade to mysql 4.1 solved this, but something that what I would consider to be an integral part of sql was just "left out" of previous versions just reinforced my decision to use PostgreSQL instead. (The mysql databaase was a product of a coworker, not using our organizational standards.)

  58. Anyone heard of an abstract? by tod_miller · · Score: 0, Offtopic

    Abstract: In the next article, I'll present the results for all six operating systems.

    Comment:

    Or does that really negate the point of the meandering artcile? I mean, is it so damn hard to say, this article comapred blah foo schmoo and bar and found schmoo to kick ass, but also that foo was fairly good. It is a bad news article

    What an annoying whoring article, it promises so much, a delivers so little, I hope thier advertising was worth it.

    That is why I fucking hate bloggers who whore themselves out at the expense of my search result time. Whores!! :-) (yeah yeah, mod down for language, but it pisses me off!)

    --
    #hostfile 0.0.0.0 primidi.com 0.0.0.0 www.primidi.com 0.0.0.0 radio.weblogs.com
  59. Nice flamewar in the comments by tayhimself · · Score: 1

    RTFA and then check out the comments. There is a moron AC (who happens to love gentoo) who thinks recompiling the toolchain gives him faster binaries. Another AC spends a great deal of time trying to explain that this is not possible before the flaming starts. Fun stuff! If all the OS's are configured similarly (which the author didnt say they were) they should perform the same except for the 2cpu tests. There simply isnt a whole lot for the OS to do in these tests other than retrieve stuff from disk or something. The 2cpu tests are definitely interesting.

  60. License correction on MySQL by scorp1us · · Score: 4, Interesting

    While your post is thorough and accurate,
    you glossed over the fact that MySQL is now dual licensed. This DOES have repercussions. The GPL version can only be used by GPL software OR as a special exception. The special exception is made for PHP (and maybe others). If you are a Bank and choose MySQL you have to BUY a license.

    I wonder how much there is to the MySQL great for websites (many read, few write) and the PHP license exception.

    MySQL 4+ is not the MySQL that we all came to know and love in the 3.x days. Previously, I used MySQL 3.x but when I needed to upgrade, I moved to PostgreSQL because of the new license alone.

    Let me re iterate my take. PHP license allows you to make commercial websites with it. MySQL allows its GPL license to be used with PHP regardless of purpose of the PHP scripts by special exception. Had there been no special exception, we'd have seen the downfall of MySQL and the upshoot of PostgreSQL or SQLite.

    As a user/admin of all 3, I find that you can either use PostgreSQL or get away with using SQLite. Incedentally, try using SQLite with SQLRelay if you need network access for SQLite.

    --
    Slashdot's rate-of-post filter: Preventing you from posting too many great ideas at once.
    1. Re:License correction on MySQL by Rasta+Prefect · · Score: 1

      While your post is thorough and accurate,
      you glossed over the fact that MySQL is now dual licensed. This DOES have repercussions. The GPL version can only be used by GPL software OR as a special exception. The special exception is made for PHP (and maybe others). If you are a Bank and choose MySQL you have to BUY a license.


      Uhhh...No. If you want to use MySQL _code_ in non GPL software, you have to buy a license. Theres nothing that prevents MySQL from working _with_ non-GPL software. I have no idea where you got this idea about dual licensing, but there appears to be a lot of it posted on this article.

      --
      Why?
    2. Re:License correction on MySQL by _xeno_ · · Score: 1

      Probably from MySQL's license page, which seems to be confused about how you can or can't distribute their database. Specifically:

      Under the Open Source License, you must release the complete source code for the application that is built on MySQL.

      ...

      Free use for those who never copy, modify or distribute. As long as you never distribute the MySQL Software in any way, you are free to use it for powering your application, irrespective of whether your application is under GPL license or not.

      Obviously if your application only uses their database there's no reason it would need to be GPLed, since you're distributing two separate pieces of software.

      However, there appears to be some sort of confusion when it comes to using the drivers, which are also under the GPL. I expect that no matter what MySQL says, if you're using JDBC or ODBC drivers than you don't need to GPL your application, since the linking doesn't occur until runtime and you never actually call any MySQL methods, just ODBC/JDBC methods. (Same for Perl's DBI, probably.) PHP's MySQL drivers are more questionable, because they're explicitly only for MySQL.

      Basically, MySQL seems to want people to believe that you need to GPL your code if you so much as use their database. Otherwise, you'd need a license. That's BS - you aren't allowed to add restrictions to a GPLed product. And the GPL is pretty clear that your use of a product does not make you fall under the GPL.

      Using the MySQL DB drivers in non-Open Source code, on the other hand... That's much more murky. Personally I believe that it's a non-issue in cases where your code uses a public interface like ODBC, JDBC, or Perl's DBI to access MySQL.

      --
      You are in a maze of twisty little relative jumps, all alike.
  61. What about QNX ? by Touisteur · · Score: 0

    Unfortunately too much people forget about QNX when they make their benchmarks...

    MySQL and PostgreSQL have been ported to QNX, and QNX clustering capabilities are amazing, because of it's built-in distributed architecture...

    Perhaps a benchmark including a distributed realtime micro-kernel could make a better comparison...

    1. Re:What about QNX ? by Anonymous Coward · · Score: 0

      Can you get a eval copy without paying?

    2. Re:What about QNX ? by Touisteur · · Score: 0

      Hmmmmm... Once upon a time it was possible. Now... I don't think.

  62. what a lightweight by justins · · Score: 1, Insightful

    (1) 9 GB SCSI-160 (7200 RPM)

    Okay, this guy is not a database person. Now, the choice of database product to benchmark with might have been a dead giveaway, but so is the choice of configuration. If you're not going to test with a real database configuration (which the author of the article has probably never seen) why bother? Funny that he'd test on a machine with two CPUs and one drive, though. Great judgement in hardware selection.

    Releasing the results against an old build of Solaris x86 a few days after the general release of Solaris 10 is pretty funny, too.

    Compiling his own versions of the software without even looking at the patches the maintainers of the FreeBSD and OpenBSD ports of MySQL use was really good judgemenet. I mean, heck, they might know something about how to make that software perform properly on their platforms, and we wouldn't want that skewing the results! "After all, I'm testing the operating systems, not their pre-packaged MySQL distributions or source builds."

    What... a... loser...

    --
    Now before I get modded down, I be to remind whoever might read this that what I am saying is FACT. - bogaboga
    1. Re:what a lightweight by Anonymous Coward · · Score: 0
      "Okay, this guy is not a database person. " You probably think that only because he has more experience with high-end databases than you do.


      Read the papers on how the larger databases are configured (Microsoft Terraserver's whitepaper ; Google (yes, it's a database, if not a relational one)) and you'll see that the biggest databases are clusters of large numbers of small commodity systems not unlike the one he described.


      Don't let your ignorance pre-judge his experience from the perspective of the small-to-medium databases that run on under 64CPU clusters with under a petabyte. Yeah, it's easy to scale just by adding disks to a box. No, you won't get far doing that.

    2. Re:what a lightweight by justins · · Score: 1

      You're completely full of beans as anonymous cowards so often are but even still, I have to thank you, since you actually responded to my message instead of just modding it, as several others have done. (both up and down)

      Anyway, those are two totally disparate examples, since Terraserver uses a fancy-schmancy SAN and Google's strategy has been to stuff as many drives as possible into commodity hardware. And it's irrelevant to anything anyhow since if you're benchmarking a database configuration you might as well benchmark one that people use.

      Okay, that's not totally fair, I'm sure a lot of people use the article's configuration. I'm sure a lot of MySQL admins have all their stuff on one big drive rather than moving data out across spindles. Because they're so clever and ahead of the curve.

      --
      Now before I get modded down, I be to remind whoever might read this that what I am saying is FACT. - bogaboga
    3. Re:what a lightweight by Anonymous Coward · · Score: 0

      Huh?
      Real databases don't need processors as much as they need fast IO (read, multiple spindles). Yes, and one ALWAYS has a separate disk, if not totally separate channel, for logs and data. Raid1 for logs and 5 for data. Logs are write intensive and are the preformance limiter for any transactions. They go on separate fast write storage systems. I think the Linux guys who've never really seen a real database (much less a real datacenter) are doing a disservice to those who are looking for knowledge on slashdot, and get drivel from inexperienced hobbiests.

  63. FreeBSD still compiles with DEBUG and assertions by mi · · Score: 3, Informative
    The FreeBSD-5.x releases still compile with the debug code and assertions. From the libc_r/Makefile :
    # Uncomment this if you want libc_r to contain debug information for
    # thread locking.
    CFLAGS+=-D_LOCK_DEBUG

    # enable extra internal consistancy checks
    CFLAGS+=-D_PTHREADS_INVARIANTS

    It was foolish, in my opinion, to keep this in the release. I wonder, how many points the OS lost in the benchmarks because of it...

    --
    In Soviet Washington the swamp drains you.
  64. MySQL had better be fast - price increase by xxxJonBoyxxx · · Score: 2

    MySQL had better be fast - they just cranked the price again. In the last two months the per-100-copy bulk price of MySQL jumped from about $100 to about $230 a server.

    (Yeah, I'm looking hard at Postgres now.)

    1. Re:MySQL had better be fast - price increase by csnydermvpsoft · · Score: 2

      Why would you buy a license unless you need support, which you wouldn't get with Postgres unless you payed as well?

    2. Re:MySQL had better be fast - price increase by xxxJonBoyxxx · · Score: 2, Informative
      Why would you buy a (MySQL) license unless you need support...

      For that price you still don't get support. We pay for licenses because we ship MySQL as part of a commercial software package.

      Read this: http://www.mysql.com/company/legal/licensing/

  65. SLOWARIS. Don't forget its!!! by Anonymous Coward · · Score: 0
    ... but alas its always been SLOW on x86 hardware ...

    Remember, Solaris is named as Slowaris, so
    Don't forget its!!!

  66. Re:performance by ShieldW0lf · · Score: 1

    With the introduction of the 2.6 Linux kernel, FreeBSD 5-STABLE, Solaris 10, and now NetBSD 2.0, you might be wondering which of them offers superior database performance.

    Shouldn't you be using a database to do the performance testing then?

    --
    -1 Uncomfortable Truth
  67. Write-through verses Write-back by Anonymous Coward · · Score: 0

    Isn't BSD write-through and linux write-back. This has been how linux has obtained there filesystem performance. But write-back is not what you really want when doing databases. (Leaving commited transactions in buffers waiting to be written to disk is a bad thing.)

  68. it comes with webhosts by hawk · · Score: 1

    I pay something like $4/month for my host. I get one mysql db. If I want a different db, I have to go to a more expensive plan.

    hawk

  69. Appropriate Tools for appropriate people by WillAffleckUW · · Score: 1

    seems to me that not everyone needs Oracle, which can cost tens of thousands per CPU, even with the educational or non-commerical discount, and that we have to look at each person's needs individually.

    Do we need field-level locking, or will row-level locking suffice?

    Do we need distributed servers with failbacks and rollbacks or will a simpler solution with a periodic backup suffice?

    Each database system design should match the needs and at least reasonable expectations of growth - One Size does not necessarily fit all.

    --
    -- Tigger warning: This post may contain tiggers! --
    1. Re:Appropriate Tools for appropriate people by Anonymous Coward · · Score: 0

      Which databases do field level locking (vs. row, block, or table level)?
      Wouldn't you want to keep all the fields in a record consistent?

  70. Give me ANSI SQL or give me death by WillAffleckUW · · Score: 2, Insightful

    well, i've been having some interesting ODBC issues passing the same SQL queries to Access and to Oracle, so let's not pretend that the ANSI SQL compatible world is that compatible ...

    --
    -- Tigger warning: This post may contain tiggers! --
  71. Heh! They used excel to build their graphs by Anonymous Coward · · Score: 0

    I guess we know which OS performs best for analysis, at least for Newsforge....

  72. MOD this down by Anonymous Coward · · Score: 0

    Postgresql is off-topic because the article is about comparing MySQL performance between different platforms.

    If Postgresql is on topic, then so are posts about the performance of grep.

    1. Re:MOD this down by Anonymous Coward · · Score: 0

      I hate it when MySQL fanboys jump into threads like this only to scream "you must not talk about PostgreSQL because it makes MySQL look bad!" I'll tell you something, pal: bullshit! If MySQL is so great as you paint it, it will defend itself. If not, then don't you think people should use the right tool for the job? Why are you trying to ignore other options? Why don't you want people to know about alternatives and their advantages? Why do MySQL zealots always freak out whenever PostgreSQL is mentioned? Would you care to enlighten us please? Because you act like Microsoft salesmen when they hear "Linux".

  73. OS X? How about OpenDarwin? by bshroyer · · Score: 1

    There's nothing preventing you from installing OpenDarwin http://www.opendarwin.org/ on x86. This puts you effectively in an OS X environment on x86, only without the Aqua UI.

    --
    The cure for cancer is coming: Reovirus
    1. Re:OS X? How about OpenDarwin? by ErikZ · · Score: 1

      The last OpenDarwin news item was 5 months ago. That can't be good.

      --
      Democrats or Republicans. They are both taking us to the same place and they are not afraid of us anymore.
    2. Re:OS X? How about OpenDarwin? by bshroyer · · Score: 1

      (+1 Funny)

      I agree. I don't know what kind of developer community they've got, or if they just stop development to let Apple catch up... I also don't know why anyone would want to run Darwin on x86. But there it is.

      --
      The cure for cancer is coming: Reovirus
  74. Depends by Stone316 · · Score: 1
    The filesystem is an important factor but its just one piece to the puzzle. Bottlenecks could exist anywhere... When talking about disk you have to make sure it is indeed the root cause of the problem.

    ie, we had a job that would take 40 minutes to complete and it needed to run hourly.. That only allowed 20 minutes for users to analyze those results. The root cause of the problem was the poorly designed application but we couldn't get management approval to fix it.

    A contributing factor to the problem was the server... Even tho we had multiple disks, they were only setup in concat mode. We convinced the unix team to strip the data and our job went from 40 minutes to 20. (If we were able to properly redesign the app, including the disk change, we could probably had most of the application almost real-time...)

    In another case a DBA had set their SGA to have a buffer cache of 1 Meg. Server was tuned, app was tuned but not the database.

    What i'm trying to say is.. if your experiencing performance problems you have to make sure you find the root cause before you make any recommendations.

    --
    "Thanks to the remote control I have the attention span of a gerbil."
  75. Re:What about Firebird? - good point by Best+ID+Ever! · · Score: 3, Informative

    If you don't need standard SQL support

    Firebird implements standard SQL. Firebird supports full SQL92 and most SQL99, according to the project website.

  76. Re:If TFA gets slashdotted, these are his conclusi by Anonymous Coward · · Score: 0

    This sort of makes NetBSD useless for real world SMP doesn't it? Thanks.

  77. Re:What about Firebird? - good point by Anonymous Coward · · Score: 0

    Firebird implements standard SQL. Firebird supports full SQL92 and most SQL99, according to the project website.

    If so then their web page needs to be updated because the first sentence of the very first paragraph on the main page is: "Firebird is a relational database offering many ANSI SQL-92 features that runs on Linux, Windows, and a variety of Unix platforms."

  78. Gentoo From Scratch??? by RoadWarriorX · · Score: 4, Insightful

    After reading the benchmarks, I noticed that the Linux distribution chosen was Gentoo. I like Gentoo (and use it myself). The author of the newsforge article does not really state if the all of the kernel, libraries and applications were built completely from scratch or did he use a stage 2 or 3 install.

    If the box was built from source, I would expect that Linux benchmarks would be higher simply because the kernel, libraries, and applications were most likely tuned to the hardware. Otherwise, I would like to see RedHat, or SUSE, or other "out of the box" distros in addition to the others.

    Just my $0.02

  79. Why do people use Oracle over MySQL? by Anonymous Coward · · Score: 0

    Enterprise means "built for idiots".

    MySQL will hardly tout the word around yet its used a hell of a lot in my large, IT driven company (Some people will call it an Enterprise).

    Oracle is all voodoo, you need a procedure for everything, do not think for yourself the instructions say run this command. Please call an Oracle DBA to start that database.. OR ELSE!!

    Remember you need to get an Oracle[tm] DBA, not just any DBA to run this Enterprise class database.

    Your manager will buy the "RedHat, Dell, Oracle Gold Configuration" becuase it's Enterprise ready, no need to get your hired expert to look at the best platform to run the Oracles.
    (RHEL AS 2.1 (Redhat 6.2 in disguise), OCFS 1.0.9 (buggy as hell ending in several cluster reboots)) BUT ITS GOLD!!!

    Don't worry just build ANOTHER Oracle cluster so we (DBA's) can test OCFS 1.0.13 for 3 months before rolling it into production. You know RedHat, Dell and Oracle have not told us that its a gold supported configuration yet, we need to test it.

    Look at how Harold Hunt just got a job working on a more "Enterprise" suitable X server because cygwin and x.org isn't suited.
    Obviously Enterprise class admins or soe packagers need gui installers and none of that complicated cygwin.dll stuff. Too hard.

    Cygwin/X.org looks exactly like exceed but the users much prefer the pretty spash screen. Cygwin was $20,000 cheaper to implement too.

    Saving $20k was not smart for the Enterprise so they got Exceed too because it was recommeneded by the Enterprise applicaion vendor. Funny the same application bugs were aparent.

    I can't think of how many more talented coders we could have hired if we used MySQL to write our financial system instead of the managers getting on their knees to suck up the goodness that is the Oracle e-Business suite.

    MySQL* all the way. Don't be an Enterprise.

    %s/Enterprise/Idiot/g

    * Actually I prefer postgres. It'll run all yer pl/sql stuff too. MySQL rocks also.

  80. MySQL not a real database by Anonymous Coward · · Score: 0

    Who cares? Its not a real database.

    You know why there database is faster?
    - it does not have transactions
    - it does not validate data being inserted or updated. Dates, for example, are not checked to see if the date is a valid date. It will glady accept '02/32/2004' for example.

    It does other "shortcuts" to gain speed. Yes, years later programmers are puzzled why all their data is wrong.

    PostgreSQL or Firebird is a real database.

    .

  81. Re:Huh by Anonymous Coward · · Score: 0
    Yes. It's bloody horrible. Then again, so are most proprietary databases.

    However, as a professional programmer (hah. even my cousin's dog is a professional programmer these days.) I find this kind of quasi-implementation of perfectly good if vague and previously ill-implemented standards with the excuse of "code quality" and "implementation efficiency" reprehensible when the excuses speak more of the implementors' ability to manage their own code and to pay attention to the things that actually matter efficiency-wise, than real issues. No one is going to care whether your database does a "SELECT 1+1 FROM implicit_temporary" in a microsecond or one and a half. What people actually care about, and what they get angry about, are things like those listed on the MySQL Gotchas page.

    And don't get me started on the "sorry, we don't support subselects or IN joins or EXISTS clauses and our LEFT JOINs behave in a deviant manner; perhaps you should do the join inside the application!" garbage.

    Sorry to vent my spleen on an unsuspecting target like this. I'm mostly just frustrated with people who refuse to think things through before jumping headfirst into implementation, as evidenced by the longstanding MySQL policy with regard to transactions, atomicity and locking policy.

  82. Why is it out of the question? by PCM2 · · Score: 1

    I don't think it would be out of the question at all to compare benchmarks of an Apple machine with a street price comparable to the Intel machine used. After all, if you're going to buy a machine to run MySQL on and you have budget XX, why wouldn't you consider a Mac if it turned out to be faster?

    --
    Breakfast served all day!
  83. MySQL and data integrity by Jamesday · · Score: 1

    MySQL ships with the InnoDB database engine as a standard part. InnoDB will write to its log with every completed transaction, flushing that to the hardware. If you lose power, it'll reapply the transactions from that log automatically, without hassle, when the database server is restarted. The log writes are sequential so you can get both excellent write caching (into dirty database pages in RAM) and transaction durability (via those immediate flushes of the log to disk). InnoDB is also the database engine which offers transaction support, so if you want the normal transaction guarantees like durability, you're going to be using it anyway. This isn't a theoretical capability - I've had production Wikipedia servers go down with tens of thousaands of dirty database pages in RAM and come back up with all data, while I was asleep.

    Alternatively, though it's still in alpha, there's the choice to use the Cluster engine to spread the load over many redundant servers via mirroring in the database storage engine. Very interesting technology for me, though still too early for Wikipedia to use.

    For those with high read load or worries about single machine failure, replication is also standard and it's easy to set up a web server or two to do replication in the background to get the last bits of data saved before a disaster hit the master. On the Wikipedia technical to do list is a replicating slave in Paris, so the building falling down on the main site will still leave even very recent updates available.

    The combination of InnoDB and replication makes it easy for me to sleep well. The one thing it doesn't yet do as a standard part of the package to complete the picture is automatic failover to the best slave if the master dies and stays dead. I think the failover bit is on the to do list for the 5.n series. Cluster does, though - one of the reasons why I'm watching it with interest.

    None of this means PostreSQL is bad. Just different.

    1. Re:MySQL and data integrity by alan_d_post · · Score: 1

      The combination of InnoDB and replication makes it easy for me to sleep well.

      Wow, collision of theory and practice can be painful, huh?

  84. Re:FreeBSD still compiles with DEBUG and assertion by confusion · · Score: 1

    I think they only used lc_r on the 4.11 release test. For 5.3 they used the new KSE and the older LinuxThreads.

    I did expect KSE to do better against LT, though. KSE has been sold as being lighter weight and faster than LT.

    Jerry
    http://www.syslog.org/

  85. table locks? by Anonymous Coward · · Score: 0

    I recently picked up the official MySQL manuals, and they say InnoDB (the ACID-compliant storage) never does table locks because the rowlocks are so lightweight....which impressed me, since we use MS SQL at work and that *does* do tablelocks, if you hit enough of the table. It also said Slashdot has converted now to InnoDB.

  86. fight stupidity with stupidity? by Anonymous Coward · · Score: 0
    There is a moron AC (who happens to love gentoo) who thinks recompiling the toolchain gives him faster binaries.
    Actually, yes unless you do something silly including use the sort of "optimizations" that cause a slowdown due to the nature of the app. You sound like an anti-gentoo zealot which is just another zealot. The fact is that the apps will usually be faster if the entire toolchain was in fact compiled for your architecture. The issue is whether or not that speed increase is significant. Significant is relative and I doubt you know enough about compilers, assemblers, and in process linking to qualify any judgment on the matter.

    There is a difference between the possibility and the reality of significant differences in whether the toolchain was compiled for a platform. Similarly there is a difference between theory and reality. However, there is no difference than a Gentoo-ricer and a anti-gentoo zealot.

  87. Test Results by sourceview · · Score: 1

    ARGHH!! This is worse than the cliff hanger cowboy thrillers I saw every Saturday afternoon at the old State Theatre on the East Side of Waterloo, Iowa. I had to wait a week to find out how the hero survived going over the cliff. How long will I have to wait this time???