Quad Xeon vs. Dual Itanium

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Gibson

    Quad Xeon vs. Dual Itanium

    Hi, all.

    I need to upgrade my dual Xeon PostgreSQL engine.

    Assuming similar memory and disk sub-systems, I am considering a Quad
    Xeon system vs. a Dual Itanium for PostgreSQL. I believe that the
    PostgreSQL code is written for 32 bit and not optimized for the 64 bit
    Itanium cpu. That makes me think that the Xeon system would be a better
    choice.

    Do any of you have thoughts on:

    1. Straight performance capability
    2. Price/Performance


    I would appreciate any feedback you might have.


    ....john


    ---------------------------(end of broadcast)---------------------------
    TIP 1: subscribe and unsubscribe commands go to majordomo@postg resql.org

  • Doug McNaught

    #2
    Re: Quad Xeon vs. Dual Itanium

    John Gibson <gib@edgate.com > writes:
    [color=blue]
    > Assuming similar memory and disk sub-systems, I am considering a Quad
    > Xeon system vs. a Dual Itanium for PostgreSQL. I believe that the
    > PostgreSQL code is written for 32 bit and not optimized for the 64 bit
    > Itanium cpu. That makes me think that the Xeon system would be a
    > better choice.[/color]

    Postgres runs on many 64-bit systems, including UltraSPARC, MIPS, and
    Alpha, plus the Intel and AMD offerings. What makes you think it's
    'not optimized'?

    -Doug

    ---------------------------(end of broadcast)---------------------------
    TIP 7: don't forget to increase your free space map settings

    Comment

    • Stephen Howard

      #3
      plperlu and 'use' statement scope question

      Hello list,

      I'm designing a plperlu function and i was wondering about scoping on
      use statements for external libraries. I couldn't find any information
      on it in the documentation or in the mail archives, so any information
      would be much appreciated.

      The function is intended to be used as part of a select statement:

      select foo,my_function (bar) as baz from table where baz > some_value
      order by baz

      And the function uses an external module to do much of the heavy
      lifting. What I'm wondering is will the function have to reload the
      external module for every row, or is plperlu smart enough to only load
      it once for the entire query? In the other extreme, I'm hoping that it
      does reload the external module for each query, as I expect to be
      dynamically rewriting one of the modules that that external module requires.

      -Stephen


      ---------------------------(end of broadcast)---------------------------
      TIP 7: don't forget to increase your free space map settings

      Comment

      • Rob Sell

        #4
        Re: Quad Xeon vs. Dual Itanium

        -----Original Message-----
        From: pgsql-general-owner@postgresq l.org
        [mailto:pgsql-general-owner@postgresq l.org] On Behalf Of Doug McNaught
        Sent: Monday, February 09, 2004 10:44 AM
        To: John Gibson
        Cc: pgsql-general@postgre sql.org
        Subject: Re: [GENERAL] Quad Xeon vs. Dual Itanium

        John Gibson <gib@edgate.com > writes:
        [color=blue]
        > Assuming similar memory and disk sub-systems, I am considering a Quad
        > Xeon system vs. a Dual Itanium for PostgreSQL. I believe that the
        > PostgreSQL code is written for 32 bit and not optimized for the 64 bit
        > Itanium cpu. That makes me think that the Xeon system would be a
        > better choice.[/color]

        Postgres runs on many 64-bit systems, including UltraSPARC, MIPS, and
        Alpha, plus the Intel and AMD offerings. What makes you think it's
        'not optimized'?

        -Doug
        -------------------------

        The only way I can see that its not optimized for 64 bit would be to use
        32bit binaries on it, and the only way that can even happen is on the new
        amd chips I believe, or will itanium run 32bit apps also?

        Rob


        ---------------------------(end of broadcast)---------------------------
        TIP 6: Have you searched our list archives?



        Comment

        • Christopher Browne

          #5
          Re: Quad Xeon vs. Dual Itanium

          Clinging to sanity, gib@edgate.com (John Gibson) mumbled into her beard:[color=blue]
          > I need to upgrade my dual Xeon PostgreSQL engine.
          >
          > Assuming similar memory and disk sub-systems, I am considering a
          > Quad Xeon system vs. a Dual Itanium for PostgreSQL. I believe that
          > the PostgreSQL code is written for 32 bit and not optimized for the
          > 64 bit Itanium cpu. That makes me think that the Xeon system would
          > be a better choice.
          >
          > Do any of you have thoughts on:
          >
          > 1. Straight performance capability
          > 2. Price/Performance[/color]

          First thing: What, in particular, makes you think that PostgreSQL code
          was written to make it slower or otherwise more restrictive on 64 bit
          systems than it needs to be?

          Lots of people have been running it on 64 bit systems for _years_ now.
          The Digital Alpha architecture, for instance, was introduced in the
          1992, and Sun UltraSPARC in 1995. PostgreSQL has been running well on
          these sorts of systems for a lot of years now.

          Your belief of it being "written for 32 bit" should fly away in the
          wake of that.

          Secondly, there's a significant counterargument to this, on Intel,
          when you look at memory availability.

          I have been tearing hair out with some FreeBSD testing in that I have
          some quad Xeon systems with 8GB of memory, which gives me the dilemma
          of choosing between:

          a) Ignoring 4GB of it, or
          b) Not having disk connected.

          The problem is that having large amounts of memory requires invoking
          an Intel "hack" (on FreeBSD, the option is called "PAE"), which
          happens to break the disk subsystem. (At least for the controller I
          have got.)

          And irrespective of any "successful hacks," you are still limited to
          either 2GB or 4GB of memory for the postmaster.

          If you jump into a 64 bit platform, those sorts of hacks evaporate as
          unnecessary, and the main process can get as big as you need it to.
          --
          (format nil "~S@~S" "cbbrowne" "acm.org")

          ``God decided to take the devil to court and settle their differences
          once and for all. When Satan heard of this, he grinned and said, "And
          just where do you think you're going to find a lawyer?"''

          Comment

          • James Moe

            #6
            Re: Quad Xeon vs. Dual Itanium

            John Gibson wrote:[color=blue]
            >
            > Assuming similar memory and disk sub-systems, I am considering a Quad
            > Xeon system vs. a Dual Itanium for PostgreSQL. I believe that the
            > PostgreSQL code is written for 32 bit and not optimized for the 64 bit
            > Itanium cpu. That makes me think that the Xeon system would be a better
            > choice.
            >[/color]
            The Itanic hasn't lived up to its marketing hype. The comparisons
            I've seen between it and a 32-bit CPU show performance differences
            primarily due to clock speeds. So far the only advantage of 64 bits is
            address space. And because they are new, itanics cost much more.
            So with 2 itanics you get a slight improvement. With 4 xeons you get
            about 1.7x improvement over your current setup.

            --
            jimoe at sohnen-moe dot com

            ---------------------------(end of broadcast)---------------------------
            TIP 5: Have you checked our extensive FAQ?



            Comment

            • Joshua Drake

              #7
              Re: Quad Xeon vs. Dual Itanium

              John Gibson wrote:[color=blue]
              > Hi, all.
              >
              > I need to upgrade my dual Xeon PostgreSQL engine.
              >
              > Assuming similar memory and disk sub-systems, I am considering a Quad
              > Xeon system vs. a Dual Itanium for PostgreSQL. I believe that the
              > PostgreSQL code is written for 32 bit and not optimized for the 64 bit
              > Itanium cpu. That makes me think that the Xeon system would be a better
              > choice.
              > '[/color]

              Bang for the buck per CPU you are best off using an Opteron based
              solution from AMD. This will give you the 64bit address space that Xeon
              can't but for a heck of a lot less money than an Itanium.

              Sincerely,

              Joshua D. Drake




              [color=blue]
              > Do any of you have thoughts on:
              >
              > 1. Straight performance capability
              > 2. Price/Performance
              >
              >
              > I would appreciate any feedback you might have.
              >
              >
              > ...john
              >
              >
              > ---------------------------(end of broadcast)---------------------------
              > TIP 1: subscribe and unsubscribe commands go to majordomo@postg resql.org[/color]



              ---------------------------(end of broadcast)---------------------------
              TIP 2: you can get off all lists at once with the unregister command
              (send "unregister YourEmailAddres sHere" to majordomo@postg resql.org)

              Comment

              • Lincoln Yeoh

                #8
                Re: Quad Xeon vs. Dual Itanium

                At 11:44 AM 2/9/2004 -0500, Doug McNaught wrote:
                [color=blue]
                >John Gibson <gib@edgate.com > writes:
                >[color=green]
                > > Assuming similar memory and disk sub-systems, I am considering a Quad
                > > Xeon system vs. a Dual Itanium for PostgreSQL. I believe that the
                > > PostgreSQL code is written for 32 bit and not optimized for the 64 bit
                > > Itanium cpu. That makes me think that the Xeon system would be a
                > > better choice.[/color]
                >
                >Postgres runs on many 64-bit systems, including UltraSPARC, MIPS, and
                >Alpha, plus the Intel and AMD offerings. What makes you think it's
                >'not optimized'?[/color]

                Maybe compilers aren't as good at doing Itanium yet?

                John Gibson <gib@edgate.com > writes: "I need to upgrade my dual Xeon
                PostgreSQL engine."
                It just might be helpful if you could tell us "where it hurts".

                Unless you need cutting edge floating point performance I doubt you'd want
                an Itanium (and even if you do, you might wish to consider powerpc as well).

                Without any more info, I'd ask why not dual/quad Opteron? Even if you don't
                recompile or wait for better compilers or use 64 bit such a system would
                probably run faster than your dual Xeons.
                ---



                "Tests were run on three separate hardware platforms: Intel Xeon (x86),
                Intel Itanium (IA-64), and AMD Opteron (x86_64). The x86 tests were
                conducted on an IBM eServer x335 1U rack-mount server with dual 3.06GHz P4
                Xeon processors and 2GB of RAM. The Itanium tests were run on an IBM
                eServer x450 3U rack-mount server with dual 1.5GHz Itanium2 processors and
                2GB of RAM. And the Opteron tests were run on a Newisys 4300 3U rack-mount
                server with dual 2.2GHz Opteron 848 processors and 2GB of RAM. "

                Summary: Dual Itanium slower than Xeon in many tests, Opteron fastest in
                most tests.




                ---------------------------(end of broadcast)---------------------------
                TIP 7: don't forget to increase your free space map settings

                Comment

                • scott.marlowe

                  #9
                  Re: Quad Xeon vs. Dual Itanium

                  On Mon, 9 Feb 2004, John Gibson wrote:
                  [color=blue]
                  > Hi, all.
                  >
                  > I need to upgrade my dual Xeon PostgreSQL engine.
                  >
                  > Assuming similar memory and disk sub-systems, I am considering a Quad
                  > Xeon system vs. a Dual Itanium for PostgreSQL. I believe that the
                  > PostgreSQL code is written for 32 bit and not optimized for the 64 bit
                  > Itanium cpu. That makes me think that the Xeon system would be a better
                  > choice.
                  >
                  > Do any of you have thoughts on:
                  >
                  > 1. Straight performance capability
                  > 2. Price/Performance[/color]

                  This really depends on what you'll be doing. If your data set is very
                  large, then having a fast drive subsystem and lots of REALLY fast memory
                  matters more than CPU most of the time.

                  If you'll be doing lots of CPU intensive stuff, then having four CPUs is
                  likely to be nice.

                  It really kinda depends on what you're doing, and how fast the memory
                  busses / caches are in the two machines. The CPUs in a well tuned
                  database server tend to sit near idle mostly, while the drives spin and
                  the data in memory gets pumped around.

                  If the Itaniums have twice the memory bandwidth of the Xeons, it might
                  well be a wash for most loads.

                  So, what kinda profile are we looking at for your server?


                  ---------------------------(end of broadcast)---------------------------
                  TIP 8: explain analyze is your friend

                  Comment

                  • John Gibson

                    #10
                    Re: Quad Xeon vs. Dual Itanium

                    Doug McNaught wrote:
                    [color=blue]
                    >John Gibson <gib@edgate.com > writes:
                    >
                    >
                    >[color=green]
                    >>Assuming similar memory and disk sub-systems, I am considering a Quad
                    >>Xeon system vs. a Dual Itanium for PostgreSQL. I believe that the
                    >>PostgreSQL code is written for 32 bit and not optimized for the 64 bit
                    >>Itanium cpu. That makes me think that the Xeon system would be a
                    >>better choice.
                    >>
                    >>[/color]
                    >
                    >Postgres runs on many 64-bit systems, including UltraSPARC, MIPS, and
                    >Alpha, plus the Intel and AMD offerings. What makes you think it's
                    >'not optimized'?
                    >
                    >-Doug
                    >
                    >
                    >[/color]
                    Please help educate me. That is why I am asking. :)


                    ....john



                    ---------------------------(end of broadcast)---------------------------
                    TIP 3: if posting/reading through Usenet, please send an appropriate
                    subscribe-nomail command to majordomo@postg resql.org so that your
                    message can get through to the mailing list cleanly

                    Comment

                    • William Yu

                      #11
                      Re: Quad Xeon vs. Dual Itanium

                      John Gibson wrote:[color=blue]
                      > Assuming similar memory and disk sub-systems, I am considering a Quad
                      > Xeon system vs. a Dual Itanium for PostgreSQL. I believe that the
                      > PostgreSQL code is written for 32 bit and not optimized for the 64 bit
                      > Itanium cpu. That makes me think that the Xeon system would be a better
                      > choice.[/color]

                      Unfortunately, both have issues.

                      With Itanium, you absolutely have to use the Intel compiler. GCC is
                      beyond unoptimized for Itanium; you should expect 1/3rd the performance
                      with Postgres of what the Intel compiler would do. On the otherhand,
                      I've heard a few caveats about the Intel compiler that a lot of the
                      tricks they use are 100% designed for the Spec benchmarks and could
                      break real world code. Depends on what your stomach is for risk taking
                      on how many of the optimization flags you are willing to turn on.

                      Quad Xeon has it's own problems. The shared bus makes the 2P to 4P
                      scaling a bit problematic. The more intensive you use the memory
                      subsystem (which probably is the case with database uses), the bigger
                      hit you will take. As an example, SpecIntRate's 2->4 scaling for the
                      XeonMP is 75% but the SpecFPRate (SpecFP uses much larger datasets)
                      scaling drops to a mere 31%. Which memory usage model your DB would fall
                      under unfortunately can only be tested by you. Also throw in the need
                      for PAE to go over 2GB (~1GB for caching under most OS's) and you could
                      see some performance penalties there versus a 64-bit server.

                      But looking at the straight SpecIntRate numbers though, a 4P Xeon MP
                      will be faster than an 2P Itanium. There's enough of a performance gap
                      where penalties for shared memory bus and PAE won't make enough of a
                      difference.

                      4P XeonMP 2.8GHz 47.4
                      4P Xeon 2GHz 34.7
                      2P Itanium2 1.5GHz 25.4

                      As for pricing, you'll have to look that up yourself. :) Personally, I'm
                      very fond of Opteron servers due to the combination of 64-bit + ondie
                      memory controller + point-to-point inter-cpu connect. As a point of
                      comparison, 2P-4P Opteron Spec scaling numbers are 87% ad 76%.

                      Comment

                      • Bruce Momjian

                        #12
                        Re: Quad Xeon vs. Dual Itanium

                        James Moe wrote:[color=blue]
                        > John Gibson wrote:[color=green]
                        > >
                        > > Assuming similar memory and disk sub-systems, I am considering a Quad
                        > > Xeon system vs. a Dual Itanium for PostgreSQL. I believe that the
                        > > PostgreSQL code is written for 32 bit and not optimized for the 64 bit
                        > > Itanium cpu. That makes me think that the Xeon system would be a better
                        > > choice.
                        > >[/color]
                        > The Itanic hasn't lived up to its marketing hype. The comparisons
                        > I've seen between it and a 32-bit CPU show performance differences
                        > primarily due to clock speeds. So far the only advantage of 64 bits is
                        > address space. And because they are new, itanics cost much more.
                        > So with 2 itanics you get a slight improvement. With 4 xeons you get
                        > about 1.7x improvement over your current setup.[/color]

                        Here is an interesting article about the Opteron/Itanium issue:



                        --
                        Bruce Momjian | http://candle.pha.pa.us
                        pgman@candle.ph a.pa.us | (610) 359-1001
                        + If your life is a hard drive, | 13 Roberts Road
                        + Christ can be your backup. | Newtown Square, Pennsylvania 19073

                        ---------------------------(end of broadcast)---------------------------
                        TIP 7: don't forget to increase your free space map settings

                        Comment

                        • Michael Glaesemann

                          #13
                          Re: Quad Xeon vs. Dual Itanium


                          On Feb 10, 2004, at 2:18 AM, Lincoln Yeoh wrote:
                          [color=blue]
                          > At 11:44 AM 2/9/2004 -0500, Doug McNaught wrote:
                          >[color=green]
                          >> John Gibson <gib@edgate.com > writes:
                          >>[color=darkred]
                          >> > Assuming similar memory and disk sub-systems, I am considering a[/color]
                          >> Quad[color=darkred]
                          >> > Xeon system vs. a Dual Itanium for PostgreSQL. I believe that the
                          >> > PostgreSQL code is written for 32 bit and not optimized for the 64[/color]
                          >> bit[color=darkred]
                          >> > Itanium cpu. That makes me think that the Xeon system would be a
                          >> > better choice.[/color]
                          >>
                          >> Postgres runs on many 64-bit systems, including UltraSPARC, MIPS, and
                          >> Alpha, plus the Intel and AMD offerings. What makes you think it's
                          >> 'not optimized'?[/color][/color]

                          <snip />
                          [color=blue]
                          > Unless you need cutting edge floating point performance I doubt you'd
                          > want an Itanium (and even if you do, you might wish to consider
                          > powerpc as well).[/color]

                          Speaking of PowerPC, has anyone out there run PostgreSQL on a G5
                          (either PowerMac or Xserve)? From looking at the specs, it seems it's
                          got great throughput in terms of moving data around.

                          Michael Glaesemann
                          grzm myrealbox com


                          ---------------------------(end of broadcast)---------------------------
                          TIP 7: don't forget to increase your free space map settings

                          Comment

                          • Vivek Khera

                            #14
                            Re: Quad Xeon vs. Dual Itanium

                            >>>>> "JG" == John Gibson <gib@edgate.com > writes:

                            JG> Hi, all.
                            JG> I need to upgrade my dual Xeon PostgreSQL engine.

                            JG> Assuming similar memory and disk sub-systems, I am considering a Quad
                            JG> Xeon system vs. a Dual Itanium for PostgreSQL. I believe that the

                            Save the money from the dual itanium or quad xeon and buy a dual xeon
                            but faster disks with a larger cache in the RAID controller, and
                            perhaps a dedicated RAID controller for the disk set that holds the
                            write-ahead log.

                            You're sure to find that you saturate the disk system faster than you
                            fill up even one CPU, let alone 4.

                            I assume that the box will be running *only* the database and any
                            other applications will run elsewhere.


                            --
                            =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
                            Vivek Khera, Ph.D. Khera Communications, Inc.
                            Internet: khera@kciLink.c om Rockville, MD +1-301-869-4449 x806
                            AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/

                            ---------------------------(end of broadcast)---------------------------
                            TIP 4: Don't 'kill -9' the postmaster

                            Comment

                            • Andrew Sullivan

                              #15
                              Re: Quad Xeon vs. Dual Itanium

                              On Mon, Feb 09, 2004 at 12:46:58PM -0500, Christopher Browne wrote:[color=blue]
                              > Lots of people have been running it on 64 bit systems for _years_ now.
                              > The Digital Alpha architecture, for instance, was introduced in the
                              > 1992, and Sun UltraSPARC in 1995. PostgreSQL has been running well on
                              > these sorts of systems for a lot of years now.[/color]

                              But actually, there are problems with using postgres as a 64 bit
                              application on Solaris. It works, and it's reliable, but I've never
                              seen any evidence that it helps anything (and I've looked plenty).

                              A

                              --
                              Andrew Sullivan | ajs@crankycanuc k.ca
                              In the future this spectacle of the middle classes shocking the avant-
                              garde will probably become the textbook definition of Postmodernism.
                              --Brad Holland

                              ---------------------------(end of broadcast)---------------------------
                              TIP 9: the planner will ignore your desire to choose an index scan if your
                              joining column's datatypes do not match

                              Comment

                              Working...