Slashdot Mirror


Pentium 4 Under Linux

A reader writes "I just ran across this article over at LinuxHardware.org that reviews the Pentium 4 under Linux. It gives a lot of insite as to why anyone would want to buy a Pentium 4 and has some great clips from Alan Cox and Jan Hubicka (from the GCC team). Very thorough job."

13 of 110 comments (clear)

  1. Optimizing your OS by Webmonger · · Score: 3

    As Ace's Hardware discovered, the best way to optimize is to use Intel's latest beta compiler. But you can't use this compiler to compile Linux, because Linux uses gcc-specific extensions to C that the Intel compiler does not support.

  2. Pentium 4 is still broken by steveha · · Score: 4
    The article talked a bit about how future versions of gcc and the kernel will be working to take better advantage of the Pentium 4. That's sort of nice, but it doesn't really matter because the Pentium 4 is still broken.

    The Pentium 4 has several glaring faults that cripple it.

    the level 1 cache is way too small

    it can only pass the decoded micro-ops to 3 of its internal execution units per clock, so it can only execute 3 micro-ops per clock (compare to the Athlon, with up to 9 micro-ops executed per clock)

    instructions that execute very quickly on other Pentium chips now execute slowly (in particular, anything involving bit-shifting)

    These faults and more are discussed here.

    Unlike the Pentium 4, the Athlon executes exisiting x86 code very quickly. You don't need fancy optimization tricks to get code to run fast on an Athlon; it has no major faults to work around.

    A Pentium 4 system, with its expensive high-speed RDRAM, will be very fast for certain uses. And it has the lead in raw clock speed. If Intel can crank the clock speed way up, say to double what AMD can do, it won't matter that the Pentium 4 is broken; it will still be the fastest chip you can get. I predict this will not happen; AMD will continue to make ever-faster Athlon chips, which will remain competitive with anything Intel can make. (And of course if you look at the performance-over-price ratio, the AMD chips totally crush the Intel chips.)

    Of course, it must be said that the chips are so fast these days that few people will really notice any difference between a good AMD system and a good Intel system. The AMD may out-benchmark the P4, but if both of them can run Quake 3 nice and fast, few people will actually care about the differences.

    steveha

    --
    lf(1): it's like ls(1) but sorts filenames by extension, tersely
  3. Re:As it says... by steveha · · Score: 5
    The AMD core is primarily x86, where the P3's and P4's are more RISC-like.

    This is so wrong. The AMD core breaks up an x86 instruction into RISC-like "micro-ops" or ROPs, and then various RISC-like execution units go to work executing the ROPs. Up to 9 ROPs can be executed at the same time! This is why the Athlon so thoroughly stomps all over the Intel chips at equivalent clock rates--the AMD chips can get more done per clock. This is especially true for floating point, where the Athlon can execute 3 floating point instructions at once.

    Full details here in the AnandTech article. I linked to page 8, the one that has the discussion of how instructions get executed.

    This is the reason why Pentiums cost more than AMD's

    Total nonsense. Intel chips cost more because Intel charges more. The Pentium 4 is expensive because its die size is freaking huge.

    Let's just say I have inside knowledge of Intel products. :-)

    You don't seem to know very much about AMD products.

    steveha

    --
    lf(1): it's like ls(1) but sorts filenames by extension, tersely
  4. As it says... by 11thangel · · Score: 5

    The P4 has all the 3d optimizations, just like the old p3's. The only thing is, most of the programs (not all, but most) that depend on those optimizations and dont use athlon optimizations are originally designed as wintel programs, like quake 3. Those programs are also available as binary only, not source. While the P4 is apparently a great system for an avid gamer, for developers the AMD line will probably remain cheaper and more useful to *nix developers like myself.

    --

    I am !amused.
  5. insite? by small_dick · · Score: 4

    for even more insite, try learning to spell.


    Treatment, not tyranny. End the drug war and free our American POWs.

    --


    Treatment, not tyranny. End the drug war and free our American POWs.
    See my user info for links.
  6. broken link by prog-guru · · Score: 3

    I assume http://www.linuxhardware.org%3C/a means http://www.linuxhardware.org ;)

    --

    chris@xanadu:~$ whatis /.
    /.: nothing appropriate.

  7. Biased Bashing? by BadBlood · · Score: 4

    It seems to me that the P4/Athlon debate has brought out a lot of bashing of the P4, as it benchmarks slower than comparable or even slower Athlon CPU's.

    These same people, however, don't seem to be bashing the GeForce 3, which in many cases benchmarks slower than some GeForce 2 ultra cards. Sure, it's OK for a video card to change its architecture but not the CPU????

    People seem to understand that eventually the GF3 will be the card to get IF games are written to that architectures. The same could be said of the P4 IF APPS are written to the new architecture.

    --


    Praying for the end of your wide-awake nightmare.
  8. Pentium 4 SUCKS! by BiggestPOS · · Score: 3
    According to a lot of benchmarks I've run, my pentium 3 850 is FASTER when running at 950 (112 mhz FSB) than a pentium 4 1.2 ghz. Now THATS a wasteful architecture. Sure, the longer pipeline will allow the clock speeds to hit the stratosphere, but until they do, I'd stay away from this paperweight.

    --
    What, me worry?
    1. Re:Pentium 4 SUCKS! by pjgunst · · Score: 5

      Errr, I tend to disagree on this.
      1) First of all, the Pentium4 is indeed slower according to some benchmarks. And indeed, it doesn't perform as well as you might have expected. Why? Because of its "revolutionary" design. It's a completely different architecture, you may want to go to the specs on intels website for more detailed info on this (I did).
      2) The P4 outperforms the P3 when it comes to memory-intensive applications. Using the Intel850 chipset, it has far superior memory bandwith. A Intel845 chipset is in the making, which will be able to use more common SDRAM instead of Rambus. Although this solution might be less expensive, it will seriously hurt performance. Intel has finished the design of a similar board using DDR-chips. This will by far be the most cost-effective solution. Don't expect it before christmas though, since they have a deal with Rambus until 2002.
      3) Bandwith from CPU -> northbridge: a stunning 3.2Gb
      4) If you're running an open-source OS, noone's gonna stop you from recompiling the source and optimize programs for your architecture. I would.
      5) The P4 currently sold, as well as the mainboards, don't offer an upgrade path. If you upgrade regularly, I'd stick with AMD for a while. Intel will soon release a different chipset and a new version of the P4.
      6) Needing a little more beef than a uniprocessor platform? I would wait a little. Since AMD designed their multiprocessor chipset to scale beautifully (2 CPUs / northbridge), one would expect some mainboard manufacturer to design a "hot rod" with at least 4 or 8 CPUs in the near future. The P4s future is uncertain. I really don't know what kind of rabbit Intel will pull out of their hat to counter AMD.

  9. Slashcode needs ispell plugin! (was Re:insite?) by IvyMike · · Score: 3

    Somebody needs to work on an ispell module for slashcode; in theory it shouldn't be that difficult. Put computers to work for you. Everybody would be happier, and would look smarter to boot!

  10. Megahertz Sells by darkov · · Score: 3

    Looks like the P4 goes pretty much as fast as anything else unless they turn on the chip specific optimisations, but I don't think that will matter at all, since the average PC purchaser will look at the 2Ghz(ish) ratings and go "Ohmygod - must be weelly fast!" I'm suprised they didn't have a 40 stage pipeline and really get people excited.

    I wonder if they'll consider on-board 802.11b when they hit 2.5Ghz?

    1. Re:Megahertz Sells by jeffy124 · · Score: 3

      You're absolutely correct. People only look at the clock speed when picking out a machine. Here's a did you know: The 500 MHz G4 processor by Apple performs roughly the same in benchmark tests as the 1 GHz Pentium III.

      --
      The One Rule Of Chess You'll Ever Need: Don't play someone who carries a kit in their bookbag.
  11. SSE and gcc by ryants · · Score: 5
    All the talk of SSE and SSE2 was fairly interesting, but for us user space coders it's pretty useless since gcc doesn't properly align stack variables on x86 (see GNATS, problem report 3299, as well as this, this, and this.)

    If any gcc hackers out there are reading, just le me know where to start poking and I'll try and implement a solution.

    Ryan T. Sammartino

    --

    Ryan T. Sammartino
    "Ancora imparo"