Slashdot Mirror


ArsTechnica Compares the P4 and G4e: Part II

Deffexor writes "It looks like Hannibal of ArsTechnica fame has put Part 2 of his original comparison article between Intel's P4 and the Apple/Motorola G4e. In a nutshell, this second article covers the execution core, the AltiVec unit and SSE2, as well as a myriad of other interesting factoids. An interesting read, if not a little technically intense for those of us with less than a CE/EE degree. Have at it boys!"

49 of 192 comments (clear)

  1. Allright! by Ashcrow · · Score: 2, Interesting

    This is exactly what I've been trying to find out for some time now. I've been increasingly upset with the x86 line of chips since it seems that there is hardly any diffrence between 600Mhz and 1.2Ghz.

    1. Re:Allright! by JCMay · · Score: 2

      I disagree completely.

      Doubling the clock speed *should* provide noticable differences in performance for *all* applications, not just new games. If these new games are all that benefit, then the hardware has been designed wrong for a general-purpose PC.

      Case in point: here at work my old P2-266 was replaced with a P3-500. I noticed absolutely NO difference in performance. My Linux box (K6-2/400) at home seemed slow with only 64 MB of RAM. Adding 128MB to it (192 MB total) did more for performance than doubling the clock speed of the machine at work!

    2. Re:Allright! by reflective+recursion · · Score: 2, Informative

      Not exactly. I'm sure you know clock speed is meaningless for determining how fast a CPU really is. Now higher model numbers should mean huge advancements, and they do many times. One reason all applications are not sped up is because the bottleneck is in different places for different applications. If you tried to play those same games that sped up on a newer CPU, but with an older graphics card, well it would be exactly the same. The word processor would then seem faster than games. Another thing, many games take advantage of special CPU instructions which many applications do not need.

      Anyone who has ever upgraded or put together their own PC should know that performance depends on all parts, not just the CPU or memory. Maybe your applications don't speed up because you are still using that old hard drive, which is the bottleneck? Yes, it would be nice to purchase a magic chip that you throw into a computer which speeds everything up dramtically, but the reality is no computer (that I know of) works that way. I'd love it if I could install a new CPU and get 20% more bandwidth, but it just ain't gonna happen. The reason your applications do not seem faster is because they are probably already as fast as possible (to detect by any mere mortal, that is).

      --
      Dijkstra Considered Dead
    3. Re:Allright! by Datafage · · Score: 2

      Um, yeah, but he said he just upgraded the system, which means it had the same OS, so that doesn't apply.

      --

      Nicotine free Amish .sig.

  2. Another view by Mik!tAAt · · Score: 5, Funny

    Here's another comparison: Joy Of Tech (and the next 6 pages as well)

    --
    This is the place where you write something that will make you seem like a complete idiot.
  3. technically intense.. by smaughster · · Score: 4, Funny

    >An interesting read, if not a little technically intense for those of us with less than a CE/EE degree.

    Tell me about it, I do have more then CE, two letters even, namely MCSE and even I had to stop when they started throwing around the heavy stuff. I mean, A = A + B is supposed to make sense even if B isn't equal to zero.

    --
    I intend to live forever, so far so good.
  4. conclusion by Scrameustache · · Score: 2, Redundant

    Big article, only had time to glance over it (and I'm not technically qualified to understand it in its full detailed glory), but as far I can see, the dude isn't picking sides. Wich is a rare treat.

    Although he does confirm Steve Job's words of wisdom: Mhz aren't everything :)

    (I, on the other hand, am picking sides)

    --

    You can't take the sky from me...

  5. G5 is coming soon by Lemur+catta · · Score: 3, Interesting
    Its not really fair to compare the G4 and the P4, since the G4 was aimed at competing with the P3.

    A more interesting comparison will be to pit the P4 against the comming G5. According to the Register, Apple has begun seeding early G5's at up to 1.6GHz to key devlopers. Other sources are claiming limited yeilds in the 2.4GHz range already.

    There's still bugs to be worked out before production ramps up for release early next year, and supposedly AltiVec will not be as strong on the G5 as it is in the G4. But at 2.4GHz on an already-superior FPU, who needs it?

    1. Re:G5 is coming soon by tmark · · Score: 3, Insightful

      It *is* fair to make these comparisons since the G4 and the P4 are the best Motorola and Intel have to offer us, right now. It's irrelevant what the G4 was "aimed at competing with"; what is relevant is what we have in our hands now.

    2. Re:G5 is coming soon by Sloppy · · Score: 2

      Its not really fair to compare the G4 and the P4, since the G4 was aimed at competing with the P3.

      It is fair to compare whatever happens to be on the market at any point in time.

      If Motorola is reacting instead of acting, that's just too bad for them. It doesn't make the comparison unfair.

      A more interesting comparison will be to pit the P4 against the comming G5.

      Yes, that will be a good and interesting comparison when I can buy a machine with a G5 in it.

      --
      As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
  6. ppc power by peachboy · · Score: 4, Insightful

    i personally believe that flexibility of the assembly instructions as well as the number of instructions executed per cycle contribute greatly to the dominant speed (at any given MHz/GHz) of the ppc processor. compare any intel/amd processor to a ppc at the same clock speed, and the ppc will kick its x86 ass.

    the high end ppc desktops are topping out around 900MHz, while the p4's are hitting 2GHz. there has to be another explanation besides the complaint that jobs is ignorantly sitting on his thumbs. i think he knows what he's doing.

    note: i am not a mac zealot.. i don't even own a mac - only 4 x86 pc's (1 athlon, 2 p133, 1 p120). i simply can appreciate the speed of the ppc.

    --
    "I just want to thank my coach Eric a.k.a. Disco for shattering my reality..."
    1. Re:ppc power by tswinzig · · Score: 3, Insightful

      the high end ppc desktops are topping out around 900MHz, while the p4's are hitting 2GHz. there has to be another explanation besides the complaint that jobs is ignorantly sitting on his thumbs. i think he knows what he's doing.

      What a strange statement, considering that neither Jobs nor Apple create the PPC chips!

      --

      "And like that ... he's gone."
    2. Re:ppc power by Christopher+Thomas · · Score: 5, Interesting

      the high end ppc desktops are topping out around 900MHz, while the p4's are hitting 2GHz. there has to be another explanation besides the complaint that jobs is ignorantly sitting on his thumbs.

      Two factors come into play here.

      The first is that, if I remember correctly, PPC and x86 chips use a different clocking scheme. This means that clock rates between them aren't even directly comparable (what a "clock" is depends on the clocking scheme).

      The second is that it's perfectly possible that the PPC architecture is limited to lower clock rates than the x86 architecte. Signal propagation through gates takes time. If one architecture expects signals to propagate through logic three gates deep per clock, and another architecture expects signals to propagate through logic five gates deep, then of *course* one will have a faster maximum clock rate than the other. They would hopefully still be doing the same amount of work per unit of real time.

      You should already be familiar with this from the Athlon/P4 spin war. A 0.18 micron Athlon core simply cannot be clocked as quickly as a 0.18 micron P4 core - no matter what you do. Does this make the Athlon automatically a poor performer? No, because it can do more per clock. Does this make the Athlon automatically kill the P4, because it "can do more per clock"? No, because the P4 can be clocked faster. Only real benchmarks will tell.

      A point against Apple is that Apple has been allergic to publishing SPECmarks for its processors for the past couple of years (the only PPC-ish benchmarks are IBM's benchmarks of the Power series of chips, which forked after the G3 IIRC). This removes a very consistent (if somewhat flawed) means of comparison.

    3. Re:ppc power by Webmonger · · Score: 3, Interesting

      Of course there's another explanation-- namely, it's not Jobs who's sitting on his thumbs-- it's Motorola. (Ouch-- can you imagine Motorola sitting on Jobs' thumbs?)

      Furthermore, Motorola isn't sitting on their collective thumbs-- they're simply targetting a market whose requirements are different from Apple's. The embedded market.

      This is all hugely ironic, because the RISC architecture was s'posed to result in chips that could cycle faster but did less per cycle. Instead, it's the CISC chips that are cycling faster and doing less per cycle.

    4. Re:ppc power by Arandir · · Score: 2

      It's mainly the internal architecture of the chips. Is the memory address you need in cache or will you have to spend 50 clock cycles to fetch it? What if you want to read an address before a previous instruction finished writing it?

      The Intel chips are really fast at "hurry up and wait", but not nearly as fast at "hurry up and do something".

      --
      A Government Is a Body of People, Usually Notably Ungoverned
    5. Re:ppc power by Webmonger · · Score: 2

      Sorry, try again:

      In the end, I'm not calling the Athlon or P6 "RISC," but I'm also not calling them "CISC" either. The same goes for the G3 and G4, in reverse. Indeed, in light of what we now know about the the historical development of RISC and CISC, and the problems that each approach tried to solve, it should now be apparent that both terms are equally nonsensical when applied to the G3, G4, MIPS, P6, or K7."

      Of course I know that current x86 CPUs have a RISC-like core. They're still the heirs of the 8086, and that's what's ironic.

    6. Re:ppc power by iso · · Score: 3, Insightful

      Someone should create a site debunking the Photoshop myth.

      Actually the Photoshop benchmark is completely valid. Apple's largest market for their G4s is the designer community. The most popular application for those people, and the application they spend the most time waiting for, is Photoshop. Therefore, when they're out to buy a new computer, the most important thing to them is ... the speed of Photoshop!

      Additionally Apple has been using two benchmarks lately: Photoshop and movie compression. High-end video is Apple's second-largest market for their G4s, and this market spends most of their time waiting for video effects, such as compression. This is also a valid benchmark.

      Thirdly, microprocessors are increadibly complex, plus the end-user speed is also dependant on many factors including software and OS optimizations. It is absolutely useless to compare the speed of processors by some numerical benchmark. What's important to anybody who wants to be productive on a computer, is how quickly your key applications run. And lo and behold, this is what Apple is benchmarking.

      Remind me again why this benchmark is invalid? If anything I would suggest that any benchmark besides end-application speed is useless.

      - j

    7. Re:ppc power by Amoeba+Protozoa · · Score: 2
      Remind me again why this benchmark is invalid? If anything I would suggest that any benchmark besides end-application speed is useless.

      Well, that is of course unless you are an applications developer: in which case you would like to know some lower level benchmarks so you can take advantage of the things that the hardware is good at and converely stay away from the stuff that stinks.

      -AP

  7. Nice. by tcc · · Score: 5, Interesting

    But with the G5 around the corner, I think THAT will be THE interresting comparison.. expecially since Intel plans on keeping the P4 for a while (, ramping it up in speed, when you Read adobe saying the G5 are significantly faster than P4 (and if you go read the article, the same people do say that the P4 is faster than a G4 (exept for altivec stuff) so if they say G5 is faster than P4, it probably will be :)...it should be really nice to see something that kills the P4 in raw performance other than AMD).

    --
    --- Metamoderating abusive downgraders since my 300th post.
    1. Re:Nice. by shut_up_man · · Score: 2, Interesting

      Hang on... that article says "we'd caution against taking them as gospel", and that's coming from The Register, a site that has been... uh... less than correct on some issues in the past.

      Plus, the reports are from Adobe, who make Photoshop... an extremely Mac-optimised piece of software usually held up by the Mac brigade whenever they attempt comparative benchmarks.

      Look, I *want* to believe that the G5 makes great coffee, gives fantastic backrubs, cures cancer and runs faster than every P4. I do. I've just heard all these lines before, with the G4.

    2. Re:Nice. by Space+Coyote · · Score: 2, Insightful
      You don't think Adobe optimizes any of their code for x86? Of course they do, the reason why the G4 so soundly whips the P4 in Photoshop is because of the nature of the AltiVec units. If you had read the article, you would know this.

      I'm pretty sure Adobe doesn't care whether you spend your $900 on the Windows or the Mac version of Photoshop.

      --
      ___
      Cogito cogito, ergo cogito sum.
    3. Re:Nice. by Arandir · · Score: 3, Informative

      Look, I *want* to believe that the G5 makes great coffee, gives fantastic backrubs, cures cancer and runs faster than every P4. I do. I've just heard all these lines before, with the G4.

      I just got back from a seminar with Motorola and the architecture of their new and upcoming chips. Some nice stuff on the horizon. The did mention some of the less than stellar performance on prior chipsets, and explained that it was due to not taking advantage of the chip features. An operating system or user application that must be backwards compatible will not be able to utilize the chipsets to full advantage.

      You don't judge high end chipsets based on mass market consumer applications.

      --
      A Government Is a Body of People, Usually Notably Ungoverned
  8. Maybe pointlessly detailed by Junks+Jerzey · · Score: 5, Interesting

    Note: I have a B.S. in computer science, a solid understanding of hardware issues, and have been programming for 19 years.

    When I read articles like this, there's so much detail that I find myself--even willingly--losing sight of the big picture. Sure, you could read a detailed write-up about Toyota's new engine, but those details don't really matter much unless you've just made a hobby of knowing about engines. Realistically, you'll have a hard time connecting those details to your driving experience. Heck, someone could put in a different engine, tell you that its a Toyota, and you'd be saying things like "Oh, yes, this feels just like a Toyota, I can tell that the designers did blah and blah."

    After the Pentium II generation of CPUs, things have gotten very, very muddled. Amazing features that are supposed to increase performance don't always do so. Sometimes they make things worse. Little compiler tweaks can make one program be twice as fast as another, given the same hardware. Chips with higher clock rates can be significantly slower than chips with 20% slower clocks. Certain applications run much faster than on previous chips, but there are others that show no increase.

    It's all very chaotic and confusing, even for people in the know. I suspect that if you took a program that people claimed to need a P4 or Athlon for--something very performance sensitive--and set yourself the task of making it run faster on a PII than an Athlon, you could do it. But that doesn't matter, as everyone seems to be clamoring for newer chips.

    1. Re:Maybe pointlessly detailed by Rogerborg · · Score: 2
      • Will whomever modded the parent post "Insightful" please cue me into the insight?

      Feel free to debunk it. Explain why it's better for developers (and the user experience) to have to work out how to optimise to a new pipeline every couple of years, rather than to squeeze every last drop of speed out of one design before moving onto the next on (e.g.) a five year cycle.

      Ever looked at the specification of a Playstation and wondered how on earth developers got it to do what they had it doing by the end of its lifecycle? Ever wondered why early Playstation 2 games bit the weenie?

      I'm not claiming that the original poster was right, or you are wrong (if that's indeed your position), I'm saying that it's debatable. How about debating rather than sneering?

      --
      If you were blocking sigs, you wouldn't have to read this.
    2. Re:Maybe pointlessly detailed by wct · · Score: 3, Insightful

      Feel free to debunk it. Explain why it's better for developers (and the user experience) to have to work out how to optimise to a new pipeline every couple of years, rather than to squeeze every last drop of speed out of one design before moving onto the next on (e.g.) a five year cycle.

      The whole point of modern processor architectures is for the work of pipeline optimisation be done by either the processor or the compiler. The goal is less work for the application developer. This coincides with the trend towards higher level programming languages - I can't think of any large major applications architected such that the code needs to be hand optimized at instruction level. Sure, after profiling some parts may be tuned, but the size of applications today are just too difficult to design in overview with that scope. A huge amount of the transistor budget these days is taken by microcode that performs these optimizations on the fly, but with architectures such as Itanium you're seeing a move towards compile time ordering. But now I'm getting sidetracked...

      Ever looked at the specification of a Playstation [e-scapegames.co.uk] and wondered how on earth developers got it to do what they had it doing by the end of its lifecycle?

      This is a time-honoured trend in closed-hardware systems. Look at the last generation of games on the SNES. Look at the scene demos being put out for the Amiga in the mid 90's, essentially a decade old hardware platform at that point.

      Ever wondered why early Playstation 2 games bit the weenie?

      All first generation titles do not harness the full capacity of a machine; I think this is your point. But on open systems developers don't have to optimize anything, thanks to Moore's Law. Maybe it doesn't strictly live up to the "small-is-beautiful" aesthetic, but software development is about optimizing results. Time will be spent where the greatest payoff is, and since performance boosts are a natural consequence of progress more resources are devoted to development.

    3. Re:Maybe pointlessly detailed by Rogerborg · · Score: 2
      • The whole point of modern processor architectures is for the work of pipeline optimisation be done by either the processor or the compiler

      How long has Microsoft Visual Studio 6.0 been out for? How many new pipelines have come out in that period. Thanks for making my point for me. ;-)

      --
      If you were blocking sigs, you wouldn't have to read this.
    4. Re:Maybe pointlessly detailed by the_2nd_coming · · Score: 2

      that is why I think the best compilers are the ones that the chip makers create. Intel releases a new compiler or update with every iteration of the pentium because they want to have an optimised compiler for the chip to take full advantage of its abilities. If MS and other groups whould make deals with the hardware vendors
      to use there compiler and have a plugable interface into the IDE so you can place the compiler of your choice into it......but MS would neve do that would they :-)

      --



      I am the Alpha and the Omega-3
    5. Re:Maybe pointlessly detailed by the_2nd_coming · · Score: 2

      ok, cool, then what is all the fuss about?

      --



      I am the Alpha and the Omega-3
    6. Re:Maybe pointlessly detailed by Brand+X · · Score: 2

      The price tag on that compiler. $499 per seat for the first few developers. For Windows. And another $499 for the Linux version. Added to the V$ cost. (And then there's the $5k for the Forte package to extract the sun C++ compiler, which requires hacks to automake and autoconf to switch on)

      Guess who does the porting and profiling where I work...

      --
      -- Still waiting for the Nike endorsement
  9. Great Article! by Uttles · · Score: 5, Insightful

    This article is extremely informative and gives you a good insight into how these processors are designed, as well as how they compare. I disagree with the poster though, you don't need a CE or EE degree to get the idea of what's going on. I'm a CE and I had classes on this sort of thing so yes I could follow all the gritty details, but I think the author did a good job of explaining things so that most people could understand. Also, I thought the author summed things up perfectly saying:

    The preceding discussion should make it clear that the overall design approaches I outlined in the first article can be seen in the execution cores of each processor. The G4e continues its "wide and shallow" approach to performance, counting on instruction-level parallelism to allow it to squeeze the most performance out of code. The P4's "narrow and deep" approach, on the other hand, uses fewer execution units, eschewing ILP and betting instead on increases in clock speed to increase performance.

    This is exactly the case. Unfortunately the popular masses don't understand all of this wide vs narrow stuff, so they go for the higher clock speeds. In reality, Intel is really pulling one over on us, charging more money and all we're getting is a higher clock rate, not a whole lot of performance gain. PPC has proven itself time and time again to be the better processor, but unfortunately they aren't used in very popular machines (mostly Macs,) so we don't get to reap the benefits.

    On a related note, this article touches on one of the many reasons why the Gamecube will run circles around the Xbox. GameCube's processor is a 485Mhz PPC designed specifically for video games, while the Xbox just uses a common Pentium running at 733 MHz.

    This all brings up a good question: why haven't Macintosh's or GameCube's marketers come up with a bench mark to put next to the processor speed? Maybe I missed it, but I've never seen a Macintosh commercial saying "comes with a G4 800 MHz, comparable to a P4 1.5 MHz." There might be too many legalities involved to do something like that, but it seems like they need to educate people somehow of the non 1 to 1 relationship between clock speeds of P4s and PPCs.

    --

    ~ now you know
    1. Re:Great Article! by west · · Score: 3, Interesting

      This all brings up a good question: why haven't Macintosh's or GameCube's marketers come up with a bench mark to put next to the processor speed? Maybe I missed it, but I've never seen a Macintosh commercial saying "comes with a G4 800 MHz, comparable to a P4 1.5 MHz."

      The problem is that you can compare processors in far too many ways. Apple likes to use Adobe Altivec-enabled applications when it compares speed (big suprise), but the reality is that comparing two processors is only marginally more useful than comparing two human beings. Computers are far too multi-purpose to be able to come up with a useful comparison.

      Processors are even worse... It's like trying to compare two brains without letting education or experience skew the comparison.

      In the end, manufacturers will choose from the dozens of possible benchmarks to make their processor look the best (or make up their own if none of the others will do).

    2. Re:Great Article! by bmajik · · Score: 4, Informative


      In reality, Intel is really pulling one over on us, charging more money and all we're getting is a higher clock rate, not a whole lot of performance gain


      This is a debatable point. I think it is wrong to conclude intel is "pulling one over on us". It has been demonstrated that as more EU's are added, the effectiveness and utilization of EU's goes down. The quest for ILP comes to a crashing screeching halt before you even get to 4 EU's. IIRC, only one processor-scheduled CPU is designed with more than 4 EUs.

      The necessity of the chip to extract ILP in realtime is what leads us to these big hairy controllers and limited clock speeds. Controller shrink was what led to RISC in the first place, and now that we've had to add in superscalar "goo" there's hardly a difference between the CISC philosophy and the RISC one. Never mind that Intel chips have been re-writing CISC instructions as multi-EU uops forever.

      The point is, adding additional EU's has been desmontrated to be of dubious merit. Right NOW, the P4 speed improvements come from SSE2, just like the G4's speed improvements come from AltiVec. Both do essentially the same thing, although i've read more about AltiVec and it seems "cooler" :)

      The difference is this - When the P4 core hits 3ghz, its retire rate will just destroy anything a G4 or Athlon will do. Intel took the pipeline length hit NOW and will reap the benefits later.

      They also spent the time to get their prediction units as top notch as possible, because iirc statistically there will be > 3 conditional branches in progress in those ridiculous 20 stage pipes :)

      So - the problem with intel's approach - a single instruction takes longer to complete, and the fill/drain penalty for mispredictions is high.
      The retire rate however, is amazing, and the clock rate ramping ability is similarly amazing.

      Your assertion that MOTs approach _relies_ on adding additional EU's is surely incorrect, because "everyone" knows that controller complexity is again dominating cpus, and much of that is dedicated to extracting and managing ILP on 4 or less EUs (and that it just isn't there beyond 4.. i think the Power4 was supposed to have 6 EUs, and the Alpha 364 or 464 was going to have 8 ?)

      Intel has already "side stepped" the SuperScalar risc EU problem with IA64 - Thats what LIW does. LIW is interesting again now because of the reliazation that controller extracted ILP was too expensive and not good enough for the performance increases needed.

      --
      My opinions are my own, and do not necessarily represent those of my employer.
    3. Re:Great Article! by bmajik · · Score: 2

      Oh, I forgot to address this in my other reply:


      On a related note, this article touches on one of the many reasons why the Gamecube will run circles around the Xbox. GameCube's processor is a 485Mhz PPC designed specifically for video games, while the Xbox just uses a common Pentium running at 733 MHz.


      What horseshit. All console CPUs are outright or adapted cores of commodity outdated CPUs.

      the gamecubes cpu is not any more specifically designed for gamecube than the R4300 was "specifically designed" for the nintendo 64.

      Does the fact that XBox has a different memory system, "northbridge", cache size, etc, mean its 733mhz proc was "specially designed" for xbox ? You wont find any of the xbox core components in anything besides an xbox... it must all be CUSTOM ENGINEERED FOR GAMING!

      I try not to be a fan boy, I only ask that others do the same. Have you played anXbox ? What about a gamecube ? Have you done performance testing on their respective processors ? What about their GPUs ?

      You can speculate all you want to, but dont write some article about how "I've taken CE classes, I can tell that gamecube whoops xbox". It just smears your credibility all over the place.

      --
      My opinions are my own, and do not necessarily represent those of my employer.
    4. Re:Great Article! by Uttles · · Score: 2

      OK, well, first of all, I've played both. Like I said, the GameCube runs circles around the XBox. The animation is smoother, the control is more responsive, the load times are shorter, etc, etc.

      Secondly, they could be telling and outright lie, but in a press release by Nintendo which I unfortunately can't find right now, I read that the processor was a modified design that originated from a general purpose PPC and was designed specifically for the GameCube. Now, you may not believe that, but that's not the only time I've heard it, and based on the performance of the thing, I don't doubt it.

      --

      ~ now you know
    5. Re:Great Article! by Cheese+Metal+Rulez!! · · Score: 2, Informative

      The Gamecube's CPU is a PPC 603 with its FPU split in two and very fast custom busses for connection to the rest of the console so yes, I'd say it's "custom engineered for gaming".

      At least compared to that of the X-Box.

  10. His CPU Articles are like Tootsie Pops by well_jung · · Score: 2
    You start reading one, and pretty soon you're just scrolling down looking for pictures and key statements, too impatient to process or understand his evidence.

    Like with a Tootsie Pop, you start licking, and finally get too impatient and just bite the damn thing.

    Mmm...chocolatey goodness...

    --
    Carl G. Jung
    --
    "With one breath, with one flow, You will know Synchronicity" -La Policia
  11. He misses one important difference... by Anonymous Coward · · Score: 4, Informative
    about floating point instructions: on the PPC, both the clsassical FPU and the Altivec unit have fused multiply-add instructions, i.e. a single machine instruction computes: RA=RB*RC+RD where RA, RB, RC and RD are arbitrary floating point registers. This takes the same time as a multiply, basically the add (which can also be a substract) step is free.

    The two operand Intel architecture does not allow the fused multiply add, so that the latency of such an operation is the latency of a multiply plus the latency of an add (and the destination register has to be one of the operands, although the other operand can be in memory, saving you a load). There are plenty of practical algorithms which benefit greatly from the fused multiply-add, for example polynomial evaluations, matrix multiplications, etc, a feature pioneered by IBM in the RS6000 series and that Intel is using in Inanium.

    And people who claim that you can do loop unrolling to hide the latencies should check their math: with only 8 registers, there is no way to hide the latencies of a multiply plus an add on a P4, while it is almost trivial on a G4 (32 registers and shorter latencies between accumulates). Furthermore many transcendental function evaluations are evaluated in libraries through polynomial approximations, which cannot be unrolled nor easily sped up: the number of coefficients is usually large enough to make the routine limited by the latency of the back to back floating point operations, but not large enough to take a divide and conquer approach.

    While the G4 is clearly the better architecture (not having double precision Altivec is not that important, I consider vector processing is only worth if you can do more than 4 elemnts per vector), the memory susbystem of the P4 is far superior. Hopefully the G5 will be comparable in this area (and I can't buy a desktop Power4 system :-().

  12. Error in the article by LSD-OBS · · Score: 3, Funny

    ----snip----
    add A, B
    mov C, A

    The first command adds the two numbers, and the second command moves the result from A to C. Of course, you still have the potential problem that the original value of A was erased by the add command, so if you wanted preserve A's value then you'd have to insert even more instructions to store A in a temporary register and then restore its value once the addition has been performed.
    ----snip----

    Not quite. I'm sure even people who _dont_ know x86 assembly language will realise all you don't need any extra instructions at all. Simply reorder them:
    mov C, A
    add C, B

    Obviously, the example was being used to show how much nicer it would be to have three or more operands in your instructions, but it was a lousy example.

    On a sidenote, we've been able to specify more than two operands with certain instructions since the 80386. Look up the syntax for the "imul" instruction.

    --
    Today's weirdness is tomorrow's reason why. -- Hunter S. Thompson
    1. Re:Error in the article by Uttles · · Score: 2

      Not quite. I'm sure even people who _dont_ know x86 assembly language will realise all you don't need any extra instructions at all. Simply reorder them:
      mov C, A
      add C, B

      True, but that's going to create some stalls, and is still two commands rather than one:
      add C, A, B
      as with the PPC chip.

      --

      ~ now you know
    2. Re:Error in the article by denzo · · Score: 2
      Why is this moderated as funny? :)
      Because the moderator had a "mov" operation performed on their brain before they could evaluate the content of the message.

      I don't know either, I don't understand. ;)

  13. Maybe because it doesn't really matter by bill_mcgonigle · · Score: 2, Insightful

    This all brings up a good question: why haven't Macintosh's or GameCube's marketers come up with a bench mark to put next to the processor speed? Maybe I missed it, but I've never seen a Macintosh commercial saying "comes with a G4 800 MHz, comparable to a P4 1.5 MHz." There might be too many legalities involved to do something like that, but it seems like they need to educate people somehow of the non 1 to 1 relationship between clock speeds of P4s and PPCs.

    Cyrix used to sell PR parts, PR133 might have been a 116Mhz chip, but it was as fast as a 133Mhz pentium. So there's precedent, and it's probably legally OK, but I suspect the reason is it doesn't really matter.

    What really matters is that the CPU is fast enough for what you want to do. I run OS9, OSX and linux on my machines. My home machine is a G3/350, and it's plenty fast for running OS9 for everthing but compressing MPEG1 video. It's not fast enough for running OSX. My work machine is a G4/400 and it's just fast enough for running OSX. But it's not fast enough for compressing MPEG1 video. If I had a dual-800 G4 it would be more than fast enough for OSX, but it would still be too slow for compressing MPEG1 video. My linux machine is a Dual-800, P3. It's just fast enough for running linux with all the crap I have running. It's still too slow for compressing MPEG1 video, though. I also use a 1.2GHz Athlon machine occasionally, and I consider that just fast enough to run Windows 2000. I assume XP is similar. But it would still take a long time to compress MPEG1 video.

    So, how would you structure a comparison benchmark? SPECint? BYTEMark? PhotoShop duals? I think the answer is that you don't. It doesn't matter, as long as the computer is fast enough to do what you want it to do. The semi-annual MacWorld Photoshop duals are interesting since they actually show that the computer is too slow for designers but the Windows machines aren't any better. Perhaps they need to enunciate more, but I think their current stand of , "it's fast enough," is the mature one.

    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
  14. Re:Who let this one out of his cage? by smaughster · · Score: 2

    Next time, I'll include those humour tags for those who do not recognize it :)

    As for the math part, (yes I knew it was about computer instructions) there isn't a single problem with A = A + B with B not equal to 0. Modulo arithmic for example. But then again, I am not sure what grade math level you need to have for that :-)

    --
    I intend to live forever, so far so good.
  15. not pointless by overunderunderdone · · Score: 2, Insightful

    If you are a consumer who wanted a comparison to decide which kind of computer to buy, you are right the article was (mostly) useless.

    BUT, for the audience the article is intended for - geeks, technophiles, nerds & propeller heads it was not pointless at all. On this forum in particular there are a lot of people that use neither Windows nor MacOS but other operating sytems which run happily on either processor. Even if there is no *practical* point there is always sheer geek curiosity - alot of us find such articles entertaining.

    Might as well have Car and Driver running a comparison of a Jaguar S-type and a 10-ton dumptruck.

    I don't think that the difference between a P4 and a G4 is quite as wide as that - and they are being marketed by both sides as roughly equivalent products. Most techie people may know which is the "dumptruck" and which the "Jaguar" but it is still interesting to see a technical explanation of WHY and precisely HOW they are so different.

  16. Re:Um... by Matthias+Wiesmann · · Score: 3, Insightful
    The problem is, Apple has stopped offering motherboard upgrades some time ago. So you can pop the board out and... do nothing. Buying a never motherboard is not trivial. Also both motherboard and case design tend to change a lot, there is no such thing as an ATX case.

    The whole market for motherboard upgrades comes from this situation. Apple does not support motherboard that it did not manufacture, and the OS used to check for the precence of genuine ROMs. So third parties could not build replacement boards. By upgrading only the CPU subsystem, the rest of the motherboard would remain genuine Apple and therefore run the system without problems.

    Also remember that Mac hardware tends to be more expensive and last longer than PCs. While the performance boost you win by upgrading only the CPU system is lower, the impact on the workstation is also lower. Changing a motherboard means changing the system, having new drivers, so basically more maintainance work.

    This situation might change with darwin, theoretically, nothing prevents some company from producing PPC motherboards, recompile Darwin for it and then build a installer that instals OS X on top of Darwin. Old machines that Apple does not support can run OS X this way.

  17. Re:What Good is the G4? You're mistaken by alfredo · · Score: 2, Informative

    Yes XP will run on it using VPC. The question is why.

    On the G4 you can run OSX, OS9, XP and rootless XWindows all at the same time. The only problem is you have to reboot to run Linux. But then you can run the MacOS from within Linux.

    Flexibility of the Mac is one of its strong suits. Check out the different Gnu Darwin, Darwin, and Xon X sites. That is where the action is

    Yes I am running BSD, you still running Windows?

    --
    photosMy Photostream
  18. Resources by rusti999 · · Score: 2, Informative

    A good general resource for this kind of advanced computer architecture is the book Computer Architecture by David Patterson and John Hennessy. It's quite dense. For the latest in processor architecture, the IEEE Micro magazine is useful.

  19. Masking loop latency. by Christopher+Thomas · · Score: 2

    The two operand Intel architecture does not allow the fused multiply add, so that the latency of such an operation is the latency of a multiply plus the latency of an add (and the destination register has to be one of the operands, although the other operand can be in memory, saving you a load). There are plenty of practical algorithms which benefit greatly from the fused multiply-add, for example polynomial evaluations, matrix multiplications, etc, a feature pioneered by IBM in the RS6000 series and that Intel is using in Inanium.

    And people who claim that you can do loop unrolling to hide the latencies should check their math: with only 8 registers, there is no way to hide the latencies of a multiply plus an add on a P4, while it is almost trivial on a G4


    Actually, it turns out that you can still mask the loop latency with a limited register set.

    First, you can use "software pipelining" to mask quite a bit of the loop latency without having to unroll (it's a clever reshuffling of the loop instructions; for brevity, I won't describe it here). This requires one extra FP register over the straightforward implementation of an x86 dot-product loop (four instead of three, because I can no longer re-use scratch registers between steps).

    Second, branch prediction will to a limited extent perform unrolling for you. While the architectural register file has only 8 registers, there are many more internal registers on the chip. Register renaming allows the processor to run several iterations of the loop in parallel without having to worry about namespace conflicts (though true dependencies remain intact). This works as long as the total number of iterations being unrolled fits within the scheduler's window (usually 8-16 instructions; I don't know how big the P4's window is).

    In summary, for something as straightforward as a dot product, it's certainly possible to write x86 code that will avoid the penalty of having separate add and multiply instructions.

    [You'll really be bound by the memory subsystem for both chips, but that's moot point for this discussion.]

  20. Very, very Off Topic by ffatTony · · Score: 3, Informative

    Thats a very amusing comic, much more so than UF. Any idea why its never mentioned on SD?

  21. Re:Be more specific by bill_mcgonigle · · Score: 2

    Yes, if you have to wait for a computer it's too slow. Realtime is too slow. If anything takes more than 10 seconds it's too slow.

    But MPEG2 implementations typically do *way* less compression than MPEG1. MPEG2's bitrate is typically at least twice as high as MPEG1, sometimes 10x more, and when you're doing discrete cosine transforms that greatly increased size along with motion vectors and variable bitrate encoding allow you to do alot less work during encoding. That's why it's so much faster. You also need alot more space to store the resultant file (DVD vs. CD) Just because 2>1 doesn't mean it's compressing more, it just means it came after.

    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)