Slashdot Mirror


NZX Moves To Oracle On Linux

sn00ker writes "In this story in The New Zealand Herald, we learn that the NZX stock exchange has moved their database systems to Oracle running on RedHat Linux, running on commodity Intel-based hardware. What's really impressive are the performance numbers they're claiming. Quoth the article, "One key query - searching the data on historical trades to identify maximum trade values - has been cut from 36 seconds to 0.03 seconds." An improvement of over 1000 times is spectacular in anybody's books, and is one hell of a boost for the proponents of Linux at the back-end of the financial world."

29 of 213 comments (clear)

  1. Linux? by Dr+Rick · · Score: 5, Insightful
    "An improvement of over 1000 times is spectacular in anybody's books, and is one hell of a boost for the proponents of Linux at the back-end of the financial world."

    Oh come on! They consolidated 21 databases and moved to Oracle. That's why it is 1000 times faster. The move to Linux is a footnote as far as the performance issue is concerned -- as stated in the article, the move to Linux was for cost. I'm sure Solaris or god help me, Windows Server 2003 would have given similar performance results. Now if they had moved to MySQL...

    --

    Dr. Rick
    - "It's such a fine line between clever and stupid" (Nigel Tufnel)
    - Zort! (Pinky)
    1. Re:Linux? by killjoe · · Score: 5, Insightful

      The article is a bit short on details. There is no mention of the previous hardware or software for example. Did they move from 21 SQL servers running on windows to 1 oracle running on linux? Maybe they just got rid of a bunch of aging unix machines and build a cluster of intel servers running linux.

      Either way though the fact that a major exchange is running linux is big news. Their database is their life and they are trusting it to linux. That says a lot.

      --
      evil is as evil does
    2. Re:Linux? by Anonymous Coward · · Score: 5, Insightful

      So perhaps it's time we coin a new term here. anti-FUD? I love Linux, but it's been obvious to me from the get go over four years ago now that pro-Linux articles and pro-Linux users sometimes stretch the truth or slightly warp reality to make it seam better than it is. There is no doubt...Linux is better than MS anything in my mind...but come on let's be realists and scientific here...not religious. Linux needs to win on factual merits...not more marketing gimicks that look a lot like those latest MS Office comercials that give it's users joy gasms.

    3. Re:Linux? by 0racle · · Score: 4, Insightful

      You could argue that Linux was a factor if it was a move from 2003 to Linux, though to back that up you'd have to show that Linux handles assloads of threads better then 2003 does. Solaris on the other hand does handle assloads of threads and then some just fine, its one of Solaris's selling points and as far as I know it does handle them better then Linux currently does. So they may have lost performance by choosing Linux over Solaris, but that was more then made up for in the consolidation.

      --
      "I use a Mac because I'm just better than you are."
    4. Re:Linux? by Anonymous Coward · · Score: 1, Insightful

      than again...considering we are marketing to the masses now...dumbing down our advertisements might be well warrented. Since when has any salesman ever been honest anyway? That's what Linux needs now...people touting it over MS products anywhere a user can buy MS products...then there is that entire issue of how to pay those salesmen...

    5. Re:Linux? by rodgerd · · Score: 4, Insightful

      While you're correct that the article conflates a bunch of work that happened, it's entirely possible that Linux was an enabler for this - for example, the cost per (unit of performance) of Solaris is still (IMO) fucking ridiculous at the lower and middle ranges compared to the cost of the same on Lintel.

      And while Windows Server 2k3 can run on the same cheap hardware, can you get a production quality release for AMD64 if you need gobs of RAM? What about the cost of multi-CPU licenses, and any client licenses needed? All money that buys you more power in the Linux world.

      It may well have been the case "well, with Linux, we can buy enough CPU, I/O, and DBA tuning time to make this thing sing. With Windows we blow money of software licenses. With Solaris we blow it on licenses and proprietary hardware."

    6. Re:Linux? by supersnail · · Score: 4, Insightful

      An inprovement of 1000 times might not be that sectacular, it depends what the system was replacing.

      Most likely it would be some unix hardware circa 1997. (say 4 x 200 Mhz Solaris, 512MB, with SCSII II disks, or, perhaps even a VAX complete with snails pace IO would be typical for that period in that environment). So a 2 x 3 gHz, 2 GB, with fibre channel ought to be faster. Plus it looks like they rewrote the whole system to take advantage of Oracle 10 features.

      What is perhaps more interesting for slashdot readers is that for most people working at the trading end of finacial services this is very much a non news story. The last two sites I worked at had implemented or were implementing Linux cluster server based systems, and, these were both for volume performance critical systems.

      --
      Old COBOL programmers never die. They just code in C.
    7. Re:Linux? by christophersaul · · Score: 2, Insightful

      Check what a 4 way 16GB V440 costs compared to a 4 way Dell!

      Lintel systems have fast CPUs, but no decent memory bandwidth. On the famous HPC Linux clusters everyone loves on Slashdot you'll see the first CPU running happily at 90% plus, the second sitting way below that - you're simply waiting very quickly for nothing to happen.

      Opteron systems are another thing entirely though - that's why Sun are focussing a great deal on that platform. There are even a couple of reference architectures for Oracle on their site using the new V20z and Linux.

      Oracle 10G will be out on Solaris x86 soon, so we'll see Sun promoting Opteron boxes with Solaris for situations where Oracle RAC makes sense (which isn't every Oracle implementation!)

  2. 1000 times faster? by darnok · · Score: 3, Insightful

    I'm inclined to think that having a request suddenly run 1000 times faster might be due to something a DBA has done, rather than a change of OS.

    Of course, if you want to yell from the treetops "Linux runs 1000 times faster..." I'm sure people will back you up.

    1. Re:1000 times faster? by mcrbids · · Score: 4, Insightful

      I'm inclined to think that having a request suddenly run 1000 times faster might be due to something a DBA has done, rather than a change of OS.

      Yeah. My call would be that they were operating an RAM-starved server. I've seen similar numbers doing basic PC upgrades!

      I remember on case (this was a few years ago) where somebody with a customer information database of about 400,000 records came to me because generating a list from a query would often take several minutes.

      They were using a Pentium-90 with 32 MB of RAM. I set them up with a (then) top-of-the-line PIII 600 with 256 MB RAM. Query time dropped to 1 second.

      No matter what O/S you run, you're going to get JACK for performance if your running your app in swap.

      --
      I have no problem with your religion until you decide it's reason to deprive others of the truth.
    2. Re:1000 times faster? by BlackHawk-666 · · Score: 2, Insightful
      I'd tend to agree with you, even though I *am* a Linux zealot. It's likely they either got some performance boost from using Oracle 10i (what was it running before?), or from the improved hardware. I do know that Linux runs a lot of stuff faster than Windows, since I use both daily on exactly the same hardware. My Windows boot-up is godawful slow (XP, fresh install, 8 months old) and thrashes the disk relentelssly, whilst the Linux boot (Debian, fresh install, same age) runs like a dream. I think it's because of a couple of things:

      better scheduling - I use kernel 2.6

      better file system access - Linxu just does it faster, I can't explain why except to say when everything is a file you tune the crap out of your filesystem handling code

      better memory management - Linux doesn't use 500MB to show me my desktop, 300MB of which is often paged even though I have 512MB in the machine

      These factors add up to a user experience that is probably 3 times faster, and vastly faster if I want to burn a DVD and do something else at the same time, but I don't see a 1000 fold improment in speed.

      --
      All those moments will be lost in time, like tears in rain.
  3. That has *nothing* to do with Linux by autopr0n · · Score: 3, Insightful

    I can't believe you'd get a three order of magnitude improvement in a single function simply because of a change in operating system. I mean, unless they had been using SCO or something.

    Sure, a more efficient process scheduler, a more efficient IO scheduler, but really. It would make a lot more sense for the difference to be in the DBM, or even more likely, in the design of the database itself.

    Just because someone works for a big company doesn't mean they know what their doing. The most likely reason for the speedup would have been an optimization in their own software, or their database schema. Followed by an improvement in the RDBM, and finally the OS.

    A thousand fold increase in speed simply from changing the OS is just impossible to believe -- unless there was something very wrong to begin with.

    --
    autopr0n is like, down and stuff.
    1. Re:That has *nothing* to do with Linux by horza · · Score: 3, Insightful

      Just because someone works for a big company doesn't mean they know what their doing. The most likely reason for the speedup would have been an optimization in their own software, or their database schema. Followed by an improvement in the RDBM, and finally the OS.

      I agree totally. I can't see there is any way changing a DB or an OS will change execution time by an order of magnitude such as that. My guess is that they rewrote the code since the system they were moving to is so different, and had smarter programmers that also learned from the mistakes of the previous creators. I would say they recreated the schema, eliminated useless joins, replaced loops with queries in with one single query using an IN, and the rest of the usual optimisations. I think rather than showing how fast the new system is, it showed how poor the old one had become.

      Phillip.

    2. Re:That has *nothing* to do with Linux by BlackHawk-666 · · Score: 3, Insightful

      Possibly, but maybe not. The article mentioned it was 1000x improvement in *one function*. The rest of the app may only be a few times faster, with just one query benefitting greatly from improved OS, indexing, or an updated Oracle. I'd like to see a white paper on this and some more balanced reporting. Linux doesn't need sloppy claims made on it's behalf, it can stand on it's own merits, leave that to the MS shills.

      --
      All those moments will be lost in time, like tears in rain.
  4. 1000x performance increases... by david_reese · · Score: 4, Insightful
    are NOT gotten by changing your OS.

    I'm no windows sympathizer, but in the world of enterprise software, only optimizations at the database layer (or reworking badly written networking layer) can yield those kind of results.

    Sounds like they data warehoused and redesigned the schema/indexes to better match usage.

  5. Quite an improvement, but from what? by tuomasr · · Score: 3, Insightful

    The article states a really big improvment, but is seems hard to swallow. The article fails the mention what system they were running before, aside from mentioning "propietary Unix". I don't know, maybe they had some 10-year old system running the database before and with that I could buy the big improvement but with crucial information omitted in the article, feels kind of like puffed up hype.

  6. as I said by autopr0n · · Score: 2, Insightful

    Apart from being able to consolidate 21 databases into one, the new NZX system runs faster, more reliably and at less cost, says the company's tech team.

    One key query - searching the data on historical trades to identify maximum trade values - has been cut from 36 seconds to 0.03 seconds.


    Well yeah. They consolidated 21 databases. It sounds like they had an 'overgrown' design, with lots of hacks. That's why it was slow, the consolidated the whole thing into one. Probably with help from Oracle themselves on optimization. Anyone would get a huge speedup out of that.

    --
    autopr0n is like, down and stuff.
  7. Impressive, but.. by nayigeta · · Score: 4, Insightful

    The improvement is impressive - but I would credit the overall architecture, rather than some single specific factors - like Oracle10g+Redhat or DBA or systems consolidation.

    I mean, every part of the architecture has its role.

    Some other contributing factors not mentioned, I suspect, would includes - focused performance requirements, specific purpose optimised query framework.

    Can someone point to some public material on the architecture? It would be a interesting read.

    --
    Sunset over the lake, cool mist over the bridge; A leave upon the ripples, the snow reflects its glow.
  8. Re:A pretty telling statement in there... by Soko · · Score: 5, Insightful

    I doubt they're your garden variety "OMG BillG iz teh debil" Loonix fanbois, friend.

    They are a serious enterprise, and there must be a reason something as provocative as " not just because we hated Microsoft" would come out in an interview.

    IOW - It's likley that Microsoft's products and/or policies have left a very, very bad impression with these people, and they're glad that they have a compeditor with which to smack Microsoft in the head with.

    Soko

    --
    "Depression is merely anger without enthusiasm." - Anonymous
  9. Re:Slashdot: fair and balanced by Anonymous Coward · · Score: 1, Insightful

    the kind that would reply to you, "you must be new here"

  10. Not really by CaptainZapp · · Score: 4, Insightful
    An improvement of over 1000 times is spectacular in anybody's books, and is one hell of a boost for the proponents of Linux at the back-end of the financial world."

    Unless specifics about the query and the physical database model are comparable in both systems this isn't really impressive.

    Comparable - not equal - since each database engines optimizer has it's individual quirks and strength.

    Assuming that you have large joins on huge tables a couple of good indexes, which make the optimizer happy can reduce execution time from hours to seconds.

    Table scans are expensive in database speak.

    --
    ich bin der musikant

    mit taschenrechner in der hand

    kraftwerk

  11. Re:Some kind of cluster by killjoe · · Score: 4, Insightful

    I know that. I read the article. The question is what they were using before that. If you are going to say something is 1000 times faster the least you could do is explain both your old setup and your new one.

    --
    evil is as evil does
  12. Unbelievable by KidSock · · Score: 3, Insightful

    I cannot believe the spin on this post. Even for slashdot this is way below the bar. Anybody who knows the slightest thing about databases knows that a performance improvment like this is not attributed to which operating system or database you use. They would have had to be running Access on Windows98 on a 386 ACER laptop to see a performance to increase like this. Obviously there's something else going on. For example, a simple change in how tablespaces are organized could be responsible in which case it would be possible do precisely the same thing with just about any reasonably DB/OS.

  13. Bullshit it's downtime that counts by notany · · Score: 3, Insightful

    Let's see how many hours NZX is down during next five years due hw/sw malfunction. That's meaninful.

    --
    Dyslexics have more fnu.
  14. Linux and assumed Performance increase by nettdata · · Score: 3, Insightful

    Everyone seems to be thinking that the story is all about a thousand times performance increase because they switched to Linux.

    I don't see the article make that claim... they just said that they changed a bunch of stuff, and they now have a different system in which one sample query is 1000x faster.

    This could be (and probably is) due to a number of reasons:

    -- consolidated many separate databases into 1
    -- probable new data model
    -- probable new application design
    -- upgraded system resources (more RAM, better CPUs, faster SAN, etc.)
    -- different OS
    -- Oracle tuning / kernel tweaking

    It doesn't make sense that they'd just re-implement the exact same system and application design... they probably spent a lot of time redoing the apps to make them smarter and faster.

    To assume that Linux is singly responsible for the performance increase is kind of silly.

    --



    $0.02 (CDN)
    1. Re:Linux and assumed Performance increase by I_am_the_man · · Score: 2, Insightful

      "Everyone seems to be thinking that the story is all about a thousand times performance increase because they switched to Linux.

      I don't see the article make that claim..."

      Ah the subtle things that we miss... The whole reason this article was posted here on Slashdot is because Linux is in the mix. Get it? If this was an article with the word "Windows" or "Solaris" substituted for "Linux" then it would never be on Slashdot. If this way about a 1000% increase in performance with our new Solaris, Oracle RAC on such and such hardware it might have appeared on sun.com instead. It should be apparent to everyone reading Slashdot why articles make it on the front page.

  15. Also by Sycraft-fu · · Score: 3, Insightful

    I really question the cost thing. I am guessing someone pushed Linux, and is justifying it as a cost based decision.

    Now, I'm sure people are about to jump on me, given that Linux is free... But WAIT! We are talking Linux for running Oracle here. Well, if one checks Oracle requirements you find that in additon to Windows, HP-UX, xOS and such, it does run on Linux, but it's pickey. They require and only support enterprise Linuxes such as RHEL and SUSE Enterprise.

    Ok, fair enough, but these AREN'T free. RHEL is to the effect of $800. Hmmmmm... Given that ORacle will also run on XP Pro, doesn't seem like such a deal any more.

    We've dealt with Oracle in this regard and found out that:

    1) It won't work on stock SUSE or RedHat systems. Dunno why, but there must be something different in the enterprise versions because it won't install properly on the normal ones.

    2) More importantly Oracle REFUSES to support you if you aren't on a supported OS. They just say "run a supported OS" and that's it.

    Well, given that, for the kind of apps one would want an Oracle database, support is important,I'm not seeing them running on a normal Linux distro hacked to make Oracle happy. So given that they are probably on an enterprise Linux, I'm not seeing the cost savings.

    The whole thing sets off my zealotry bells. It sounds like that had a horrible hacked-ass, old database system. They needed to modernize it. So they elected to use Oracle, Makes sense, when it comes to unlimited scalibility and rock solid reliability, Oracle just has it. However then someone sold them on doing it on Linux. No problem, except it sounds like cost was the selling point, which isn't really valid for Oracle.

    So now we have the justification scramble. Make sure everyone, espically the bosses, buy the cost argument. Pointing out the speed increase is also a good idea, never mind what caused it, obviously it was your brilliant decisions.

    I've seen this happen plenty, and it's not limited to people advocating Linux, any platform that they like will work. You get a zealot for platform X, that uses BS arguments to sell it. They then produce lots of hype, to make sure people think it was the right choice.

  16. Vindication is sweet by hey! · · Score: 3, Insightful

    Just because someone works for a big company doesn't mean they know what their doing.

    I'd say successfullly pulling off a massive consolidation project on a financially critical system probably puts an upper limit on their incompetence.

    Just because what they say doesn't really make all that much technical sense doesn't mean they are incapable of making technical sense when it serves their purpose. Getting things done in any organization involves using your successes to push you agenda. It also means sensitivity to the other messages your audience may be receiving and what message you need to counteract it.

    For example, the PHBs may have been hearing that Linux was an unsophisticated system cobbled together by a bunch of amateurs from 1980s technology. If you don't think that message is out there, or that it can't possibly be effective , you are extremely naive. If you think you can counter this argument with technical arguments about file systems, virtual memory schemes and schedulers you are even more naive. So, here's a countermessage: "Look, this Linux based system works great. It's a thousand times faster in some important tasks than the systems we spent millions on before. How 'unsophisticated' can that be?"

    You might not think this mode of reasoning is entirely valid, and you'd be right. But it's not without its virtues. Successful decision makers put a higher premium on things being demonstrably "good enough" than on their being "best". And this argument meets the admittedly relaxed corporate standards of truth: it is not literally false and its advanced with the best interest of the company in mind.

    --
    Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
  17. The real costs by kpharmer · · Score: 2, Insightful

    But those linux costs are nothing - compared to the oracle licensing costs:
    - $40,000 / CPU for base product
    - $10,000 / CPU for partitioning
    - $10,000 / CPU for RAC

    So, even a trivial Oracle cluster is just not going to come in under a quarter million dollars. Saving a few thousand dollars by going from windows to linux isn't going to make any difference at all.

    Unless you have a large unix support staff you can leverage, want to diminish security-related patching & vulnerabilities, etc, etc. But those numbers are a little tougher to quantify.