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."

40 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 orthogonal · · Score: 4, Funny

      NZX stock exchange has moved their database systems to Oracle running on RedHat Linux,... and [this] is one hell of a boost for the proponents of Linux at the back-end of the financial world.

      It's great news that Larry Ellison has Open Sourced Oracle!

      And to think people criticize me for getting all my news from Slashdot.

    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 christophersaul · · Score: 4, Informative

      You don't need to buy licences for Solaris, it comes with the kit. If you mean proprietary in the sense that Sparc doesn't have the largest market share, then Sparc is proprietary - in the normal sense of the word it's a lot more open than Intel.

      Using an Oracle RAC cluster of Sun V440s would have actually been cheaper than clustering 4 way Dells - Sparc kit's a lot cheaper than it was. You'd also have had some decent 64bit capable boxes. Check out the TPC/E benchmarks - Sun boxes blow everyone else away in terms of price/performance on a real world database app.

    7. Re:Linux? by cujo_1111 · · Score: 3, Funny

      Sshhhhh!

      Don't bring facts into any argument for open source. The zealots will lynch you!

      --
      If I point out that you are incorrect, making me a foe does not make you any more correct.
    8. 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.
  2. Always check your indexes by Anonymous Coward · · Score: 4, Funny

    Obviously a much-needed index was added during the migration...

  3. 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.
  4. Slashdot: fair and balanced by Anonymous Coward · · Score: 5, Funny

    A 1000 fold improvement in performance, just by moving to linux. Incredible. Unbelievable even.

    Comon guys. What kind of idiots do you take us for?

  5. 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.
  6. 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.

    1. Re:1000x performance increases... by chegosaurus · · Score: 4, Funny

      > 1000x performance increases are NOT gotten by changing your OS.

      I beg to differ. I have many Slashdot posts from exceptionally informed sources stating that simply by using teh gentoo with -O6 and optimizing for j00r CPU such performance increases are easily obtainable.

  7. I like the quote by Anonymous Coward · · Score: 4, Funny
    I couldn't think of anything funny to say, so I'll just post the quote :)

    "We went for Linux, not just because we hated Microsoft, but because the cost was compelling," Phillips said.

    (Insert funny remark here because I'm unfunny)

  8. 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.

  9. Ja, ja by trifakir · · Score: 5, Informative
    There are even more impressive results with Kdb by Kx Systems.

    Financial organizations are very conservative but even Deutsche Bank are migrating to Linux some of their less important processes.

    In all the cases the future of the financial industry is in cheap linux clusters.

  10. Some kind of cluster by autopr0n · · Score: 4, Informative

    According to the artcle, they built a cluster using Oracle Real Application Cluster, (I guess Beowulf is just for toy apps :P) which allowed them to spread the core DB over multiple machines (!).

    --
    autopr0n is like, down and stuff.
    1. 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
    2. Re:Some kind of cluster by nametaken · · Score: 4, Funny

      Old System: 5 x Apple IIes 1 x Dumptruck full of floppies 3 x Teams of disk-swapping runners

  11. 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.
  12. 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
  13. the NZX runs it's trading system under Linux by Anonymous Coward · · Score: 3, Interesting

    As slashdot only accepts conspiracies for posting this has never really be disseminated:

    The NZX (ex NZSE) runs the Computershare ASTS trading system for their equities and bond trading. They have done so for 4 years.
    This system runs under Linux (Redhat) on Compaq machines.

    That they aggregated some of their databases and achieved better performance is non news but the increase in performance stated is worth a conspiracy post!

  14. Linux at the back-end of the financial world." by elucubra · · Score: 5, Funny

    C'mon, it ain't nice to call NZ that!

  15. 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

  16. 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.

  17. 10^3 performance increase.. No big deal.... by aauu · · Score: 5, Interesting

    I have achieved increases of 10^4 and 10^6 in production systems by recoding a small critical part of an application (usually less than a page of code).

    Most of the time the problem is stupid code or operational ignorance. Rarely is hardware, O/S or data base software changes the sole or main solution in performance problems. Hardware is only a factor when the system is underspecified to save money.

    Given that they consolidated 21 databases into a single database the problem could simply have been network latency between separate physical servers.

    The simplest way to get performance problems is to test on developers personal machines with tiny test databases and implement without full scale testing.

    For those of you who wish to ensure that Microsoft SQL server is slow, invoke a user defined function as part of the where clause that the optimizer cannot recognize as a determinate function when joining two tables. This will ensure a nested loop join that will take an eternity.

    --
    When I was young, I had to rub sticks together to compute.
  18. Controlled environment by Tim+Ward · · Score: 3, Interesting

    What the Oracle guy said was key, that if a software company can target a restricted range of kit, rather than every possible third party gizmo and buggy driver that can be installed under Windows, they've got a vastly easier job.

    For some software applications it makes sense to refuse to ship the software on its own and insist on giving away free hardware with the deal, with the operating system of your choice (it isn't really going to matter which operating system) fully configured and installed. That way you know what the client is running your software on, you've tested it, and you've got an identical setup back in the lab to research problems on, and you know it isn't going to crash because the client's box is running some crap driver you've never heard of.

  19. 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.
  20. Favourite Quote... by Boricle · · Score: 3, Funny
    "We went for Linux, not just because we hated Microsoft, but because the cost was compelling," Phillips said.

    Have To Smile :)

  21. 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)
  22. Ya, pretty much by Sycraft-fu · · Score: 4, Informative

    I've discovered that Oracle is pretty much OS agnostic because it pretty much takes over the system it is installed on. That aside, when a server is pure anything, the OS really isn't relivant. When all it does is run one app, the performance is pretty much tied to that app. All modren OSes provide good disk, memory, network, etc services. Now you can argue specifics till you are blue in the face, but when running one app, it doesn't much matter.

    Where an OS can shine is if you are running lots of stuff (eg webserver, scripts, database server, media server all on one box) and espically when you are screwing around and hence likely to cause problems. However when you do a DB install and run nothing but that, the OS is just a helper. It talks to the hardware and provides some simple APIs. Which OS it is isn't of much consequence to performance.

    The cost thing makes me curious too. We tried Solaris on Linux. The DBA couldn't get it to work, and neither could I. Then I looked at the requirements. We are trying SUSE, since that was listed... Well, sorta. It didn't run on normal SUSE, just SUSE Enterprise Server. Likewise not RedHat, but RHEL, and also UnitedLinux. In otherwords, high dollar server Linuxes. Oracle tech support wouldn't even talk to us unless we used a supported OS. We ended up option for Windows XP Pro, since it was supported. As I said, OS didn't much matter, just that it ran Oracle.

    Now while I'm sure (or at least pretty sure) Oracle could be made to run on a non-enterprise Linux, what would be the point? They wouldn't support you and support is one of the big reasons to buy Oracle (not cheap in case you were wondering).

  23. 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.

  24. 36 seconds to 0.03 seconds by chegosaurus · · Score: 3, Funny

    It does say this was just one operation. I'm betting the first time they ran

    DELETE FROM clients

    It took 36 seconds to return. The second time it pretty much came straight back.

  25. Macho, macho ,men by jotaeleemeese · · Score: 3, Funny

    We tried Solaris on Linux,,,,,

    Man, let me stand up and take my hat in genuine appreciation.

    This ladies and gents, is a real hero.

    --
    IANAL but write like a drunk one.
  26. 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.