Skip to content
Features

POWER5, UltraSparc IV, and Efficeon: a look at three new processors

Introduction The recent Microprocessor Forum produced some great details on forthcoming processors from a variety of companies for a whole range of market segments. This article originally started life as an MPF CPU roundup, but it has evolved into more of an overview of three specific upcoming processors: IBM’s POWER5, Sun’s UltraSparc IV, and Transmeta’s … Continued

Jon Stokes – | 0
Story text

Introduction

The recent Microprocessor Forum produced some great details on forthcoming processors from a variety of companies for a whole range of market segments. This article originally started life as an MPF CPU roundup, but it has evolved into more of an overview of three specific upcoming processors: IBM’s POWER5, Sun’s UltraSparc IV, and Transmeta’s Efficeon. Actually, the article focuses mostly on IBM’s POWER5 and Transmeta’s Efficeon, but I also cover Sun’s UltraSparc IV because it’s relevant to the “big picture” that I want to paint with this report. Hopefully, by the time you’re done reading you’ll have a better sense of what these three designs say about the direction the industry is headed in, and why it’s headed that way.

IBM’s POWER5

Of great interest to the Mac community was IBM’s disclosure of more details on the upcoming POWER5. POWER5 is an evolutionary advance over POWER4, retaining many of the same characteristics and adding some new features into the mix. I’ll just give a brief rundown of the basic stats before talking in more detail about the aspects of the design that interest me specifically. For more info on things like die size and process technology, see MacWorld’s coverage for some of the details that I’ve left out.

Like POWER4, POWER5 is a dual-core design, but the POWER5 sports some changes to its caches as well an integrated DDR controller. However, neither of these are really the big news for Mac fans, because neither of them would necessarily be included in a stripped-down design for Apple. Besides, my suspicion is that we’ll see a version of the 970 with an integrated DDR controller well before we see a full-blown POWER5 derivative for the Mac.

No, the big news is that POWER5 is an SMT (a.k.a. “hyperthreading”) design, with each core capable of running two threads at once. This means that a single dual-core POWER5 chip will look like four logical processors to the OS. The rest of the big changes to the core are related to the addition of SMT, which IBM claims increased the size of each core by 24%. (This increase in die size is another reason why an SMT-capable POWER5 derivative for the Mac is a ways off.)

Let’s take a look at a few of the core enhancements made for SMT.

The first order of business is to clear up any potential confusion that might arise from the following quote in the MacWorld coverage of the POWER5 talk:

The Power4 collects a group of up to five instructions per clock cycle and can complete one group of instructions per clock cycle. The Power5 doubles that throughput by collecting two groups of up to five instructions per clock cycle and completing two groups per clock cycle. Sinharoy said that is was not uncommon to see a “40 percent improvement for SMT (Symmetric Multithreading) instructions,” a key performance characteristic for server processors, over the Power4.

Now, the POWER5 can fetch two groups per cycle, for a total of 10 instructions per cycle (two groups of five instructions each). However, it cannot decode and dispatch a total of 10 instructions per cycle. This would, of course, be pointless, since it only has 8 execution units anyway. Instead, the fetch groups are alternately* passed one at a time into the decode/dispatch stages, so that only five instructions per cycle ? all from a single thread ? are dispatched to the core’s issue queues. Since the issue logic is group-agnostic, I’d assume that it’s thread-agnostic as well, so that up to eight instructions per cycle can issue out-of-order to the various execution units from either of the two threads in any possible combination (e.g., three from one thread, two from another; one from one thread, four from another; and so on).

*(I say that they’re sent along “alternately” from the fetch stage, but this is probably not quite the case. More on that in a moment, though.)

Since increasing execution unit utilization is one of the main goals of SMT, the increase in issue bandwidth utilization as described above is going to be key, especially for the POWER5. I say this because in my first articles on the G5 I suggested that the POWER4/970’s group-based dispatch scheme and issue queue configuration probably constrains issue flexibility and therefore execution unit utilization in some peculiar ways under certain worst-case scenarios (i.e., one execution unit of a pair is overloaded while the other is starved, due to a combination of poor instruction ordering on the part of the programmer/compiler and the group dispatch limitations). Apple’s recently-released G5 programming manual talks about this phenomenon explicitly. The fact that the issue queues will be populated by instructions from two different threads probably lessens the chances of this degenerate case occurring, thus providing a boost to execution unit utilization.

Another very nifty feature of POWER5’s SMT implementation is the support for dynamic thread prioritization. The POWER5 can dynamically, under software control, assign each thread what we might call “priority points” from a eight-point “priority pool.” So thread zero might have a score of 6, meaning that thread one would have a score of 2. Or, thread zero might have a score of 3, so that thread one would have a score of 5. The higher a thread’s priority relative to that of the other thread, the more of the processor’s resources it can monopolize.

The way this priority scheme is implemented is fairly simple, at least going from the PDF of IBM’s Hot Chips presentation (I’ve been led astray by reading too much into presentation slides before, so take that into account when reading the following). The chip simply controls the decode rate of instructions from the two threads, decoding more of the instructions from the higher-priority thread than from the lower-priority thread on each cycle. So the higher-priority thread has higher instruction density in the issue queues, and hence takes up more of the core’s execution resources.

I suspect that there’s more to things than just controlling the decode rate, though. For instance, I’m sure that the fetch rate is affected along with the decode rate, so that higher-priority threads have more instructions fetched over the course of a number of cycles. Anyway, when the tech docs come out, it’ll be nice to have more detail.

For workloads that don’t benefit much from SMT, and there are a number of application types that fall into this category, POWER5 can dynamically turn off SMT altogether and devote its expanded menu of resources to a single thread. I’m sure these would include the POWER5’s increased number of rename registers (up to 120 from 80 on the POWER4), increased issue queue depths, and so on.

In all, POWER5’s SMT implementation looks more refined and mature than Intel’s implementation on the P4. In fact, with the dynamic thread prioritization and other such features that give the OS better control over execution, I think that IBM has probably given us a glimpse of the kinds of stuff that we can expect to see in future iterations of Intel’s SMT implementations.

At this point, I could talk about the need for SMT in an Apple system, but I’ll just leave off that sort of commentary for now and observe only that Apple’s long-standing and ongoing affinity for SMP designs has resulted in two things: 1) a huge potential for wasted execution resources on the current crop of non-SMT-capable G5s and 2) a body of natively-developed and -ported applications that have been subjected to years of pressure to use multithreading wherever possible in order to wring the best performance out of Apple hardware. I think both of these factors will converge to make a SMT a significant improvement for the Mac platform.

Sun’s UltraSparc

Also hopping on the “SMT” bandwagon is Sun. I put “SMT” in quotes, because Sun’s recently announced UltraSparc IV, which will debut in Q2 2004 on TI’s 13u process at 1.2 GHz before moving to a 90nm process sometime later, isn’t a true SMT design ala Prescott or POWER5. This is probably why Sun is using the term “chip multithreading” (CMT) to describe what is basically just single-chip SMP (aka, chip multiprocessing or CMP). To get the “hyperthreading” effect of two processors on one chip, Sun stuck two full-blown UltraSparc III cores on a single chip, which is chip-pin compatible with the UltraSparc III.

This move to CMT marks the first move to a strategy that Sun calls “throughput computing.” You might also call “throughput computing” a sort of “pervasive multithreading” approach (to borrow a phrase from BeOS) where you (ideally) have loads of threads all running in parallel to make the best use of hardware resources. Of course, as with SMT, this relies a lot on the software end of things for success, but Sun may be able to make really good use of this tech because they sell the whole software stack, and so can optimize across the stack to take advantage of CMT.

Ultimately, Sun’s CMT push is part of a larger effort to address the effects of increasing load latencies (that is, load latencies as measured from the point of view of the CPU). This is also true of both IBM’s and Intel’s SMT-based approaches with POWER5 and Prescott, respectively. So we could say that at present there’s an industry-wide trend towards bolder and more large-scale “software-hardware hybrid” attempts at hiding load latencies dynamically. These attempts differ from earlier combinations of techniques like load hoisting (static, compiler-based) and caching (dynamic, hardware-based) in that they rely on the application, the OS, and the hardware to work in tandem to hide latencies through a combination of pervasive multithreading (dynamic, software-based) and hardware support (dynamic, hardware based via SMT and attendant methods for managing multiple threads’ use of shared resources). And as I said above, because Sun controls all three pieces of this puzzle ? hardware, OS, and application software ? they have the potential to make excellent use of CMT. Whether they can execute on that better than a combination of dedicated hardware providers (i.e., Intel and eventually AMD, I’d imagine) and both open source and proprietary OS and application writers remains to be seen.

Actually, when it comes to making the whole stack, IBM is in an even better position to benefit from SMT than Sun. With AIX and IBM’s suite of server applications, they’re in a very strong position to optimize for SMT, especially considering the amount of control that the POWER5 gives the OS over thread priority.

Transmeta’s Efficeon

It seems like ages ago that I covered the unveiling of Transmeta’s eagerly awaited Crusoe processor. At the time, I was sold on it, and had hoped it would deliver, first on performance per watt and ultimately on raw performance. I also speculated that TM had something else up their sleeves besides just power efficient chips, and that they’d eventually make a processor aimed at the high-performance workstation/server market.

Well, I turned out to be clearly wrong about the second point, and arguably wrong about the first. Now, two years later, with the announcement of Transmeta’s new Efficeon processor, the wrongness of my initial prediction regarding a high-performance TM CPU has been given further confirmation. As I’ve written before, it looks like Transmeta thought that they could do the so-called “RISC revolution” all over again by simplifying processor hardware and moving more functionality back into software. But though the RISC movement did indeed have a profound impact on processor design, the real advances in processor performance have come disproportionately more from process technology than from architectural voodoo. Thus TM, with their RISC redivivus approach, was never quite able to get the kinds of performance gains that I and many others think they were expecting by making the extremely-difficult and very-risky design moves that they made.

If I’d have known then what I know now, I might’ve called it differently, because I think that TM bumped up against a combination of two things: 1) a set of fundamental design constraints inherent in the basic architecture of the stored-program computer and 2) Moore’s Law. Let me offer the beginnings of an explanation of what I mean by this:

Ultimately, modern computers do one simple sequence of steps, over and over and over again:

  1. Load a number
  2. Use the number in some way
  3. Store a number

Steps 1 and 3 are what take the most time, with step 1 ? the load ? being by far the most critical of the three. (Generally, you can think of a store as a “fire and forget” operation, whereas with a load the computer is almost always waiting on that data in order to perform some function with it.) The result of all this is that modern CPUs spend a lot of time waiting for data to load. And as as Moore’s law marches forward and the “distance” (as measured in latency) between main memory and the CPU increases, so does the amount of time the CPU spends waiting on loads (to unpack the previous sentence as much as I’d like to would take more space than I’m willing to spend in this article; but I’ll cover it as part of a later article on this same topic, which I’m working up for a forthcoming talk).

Let’s hold that thought for a moment, and turn to Transmeta’s Efficeon presentation.

TM claims that what makes their architecture more efficient is that they’re able to do the same amount of work as a regular CPU but using fewer transistors. This, says the TM spokesperson, is due to their software-based approach to microprocessor hardware design, where “fundamentally, we trade transistors for software” through the use of Code Morphing Software (CMS). Well, you’ve got to store that CMS application somewhere, and it gets stored in . . . you guessed it: transistors. Now, these transistors are located in memory and not on the CPU, but they’re transistors nonetheless. And the fact that a significant portion of the CPU’s functionality is stored in memory means that the numbers (remember, instructions are just numbers) which make up the software part of Crusoe and Efficeon must be loaded before they can be used. And you know what I just said about loading and storing numbers ? it takes time and draws power. Even more importantly, now that Moore’s Law has given us processors that are growing ever faster in relation to memory read latencies, load latencies as seen from the processor’s perspective are growing longer. This makes CMS’s increased dependence on load-store traffic even more detrimental to performance.

In the end, nothing is “free” ? everyone has to make tradeoffs. As I just stated, the information on how to do dynamic execution and runtime profiling has to be stored somewhere, and if it’s stored off-die then it has to be loaded before it can be used. So putting dynamic execution features “in software” doesn’t make them “free” in terms of transistors, power dissipation or performance. It just shifts the burden of encoding the “know-how” for doing dynamic code optimization from one place in the system to another ? a shift that’s not inherently bad in and of itself, but that can be more or less optimal depending on the state of process, memory and interconnect technologies. Right now, it’s less optimal, rather than more optimal.

Anyway, in a later article I’ll place TM in historical perspective and look in more detail at the particular tradeoffs that they made and what the fact that those tradeoffs didn’t quite succeed the way many of us thought they would says about where computer architecture is heading. But for now the take-home message is that load latency is currently the biggest challenge to be overcome by computer architects, and the performance optimizations that work are those that minimize the effects of load latency, not those that get tangled up in them.

More on the Efficeon

So TM’s tactic of aggressively optimizing application code in real-time to get maximum execution efficiency could translate into significant performance improvements if the processor were closer to main memory, but it isn’t. It’s far away and getting further with each process shrink. Hence TM is solving the wrong problem ? at least from the perspective of performance ? whereas POWER5, UtraSparc IV, and Prescott are all solving the right problem: hiding load latencies.

All of this is not to say that there are no power-saving benefits to TM’s approach. First, nobody outside of TM knows the exact statistics on the amount and nature of load traffic generated by the Code Morphing software. I’m sure it starts out rather high and then falls off rapidly as caching and translation kick in. But it’s never going to even approach zero, no matter how long you run the same application. Second, I don’t know the exact details of how and where TM stores most of their CM software. I’ve been using the term “memory” and not “main memory” because I think part of it is stored in some kind of nearby Flash memory, the contents of which are probably paged into RAM during execution. This would be no means abrogate any of the fundamental criticisms outlined above, but it does make their real-world effects harder to quantify.

Finally, because CMS has intimate knowledge of both the hardware and the currently executing application it can more closely tailor the chip’s power needs to fit the workload dynamically. Let’s take a quick look at this to see how it works, because this seems to me to be where Efficeon’s real savings are likely to happen. Here’s a brief description of the Long Run 2’s four stages of optimization:

  1. Execute one instruction at a time. Preliminary run-time profiling. Gather data: flow analysis,
    load store analysis (“load-store typing”), and information on conditional branch
    frequencies and directions.
  2. Translate instructions into a region. More optimization.
  3. Heavy optimization of regions.
  4. More advanced optimization for power consumption.

By the time an application has been through all four “gears” worth of CMS’s Long Run optimization, the software part of Efficeon knows exactly and in great detail how this particular application is using the processor, and even how this particular user is using the application. So depending on the Efficeon hardware’s level of support for very fine-grained control of which functional blocks are drawing power and which aren’t, Long Run can conceivably tailor power needs to match real-time usage to a very fine level of granularity. And given the fact that LR2 can dynamically control transistor threshold voltages, I’m sure they’ve got plenty of control and then some.

(Regarding the last point above, though I won’t go into it here one of LR2’s major innovations lies in its ability to dynamically adjust transistor threshold voltages in order to eliminate unwanted and wasteful voltage fluctuations. This attack on the growing problem of transistor power leakage is a novel one, at least as far as I’m aware, so we’ll see if other processor companies follow TM’s lead in addressing this problem, as they have in addressing the issue of power consumption in general.)

I think that these optimization- and dynamic-power-adjustment-based gains probably do quite a bit to offset the added power consumption resulting from the increase in load-store traffic and the added memory used to store CMS. The question is, how much do they do and/or do they do enough?

These questions are why I wasn’t particularly pleased with TM’s Efficeon benchmarks. They seemed to be isolating the processor in a way that would show Efficeon comparing most favorably to comparable Intel offerings in terms of MIPS/Watt. But the best metric would be a MIPS/watt benchmark that includes all of the relevant hardware ? the chipsets, any specialty memory used for CMS, main memory, and so on ? for both systems.

My instinct is to say that under such benchmark conditions, Efficeon would edge out Centrino in terms of MIPS/Watt on the same process technology. However, would it be by enough of a margin to warrant going with the smaller TM instead of the larger Intel, both in terms of any added design costs incurred from using the TM parts and in political terms of angering Intel, and of course in terms of questions surrounding TM’s long-term viability? Of that I’m not so sure.

Now that all the theoretical stuff is out of the way, let me briefly run down the chip’s details.

Efficeon now brings full support for SSE and SSE2 to TM’s lineup. The new chip also sports on-die DDR, AGP, and HyperTransport interfaces (the HT interface supports up 1.6 GB/s peak bandwidth), which will help with the power consumption and system integration issues outlined above.

The total number of instructions decoded per clock has doubled from four to eight. Transmeta claims that this means “more instruction-level parallelism” for Efficeon, but the problem is that ILP is a property of code and not the architecture running the code. Just because a given architecture supports more ILP doesn’t mean that such parallelism is magically going to appear in the code that’s run on it. I’m sure that CMS helps in extracting the maximum amount of ILP, but still Ditzel’s presentation is simplistic enough to be slightly misleading here.

Here’s a breakdown of the chip’s execution units, for those interested:

  • 2 LSUs. The LSU pipe is 6 stages.
  • 2 integer ALUs. The integer pipes are 6 stages.
  • 1 FPU/SIMD unit (MMX/SSE/SSE2). The FPU pipe is 8 stages.
  • 1 SIMD unit (MMX/SSE/SSE2)
  • 1 branch execution unit
  • Exec1 and exec2
  • Control
  • Alias (address alias checking for loads and stores)

I won’t comment on this listing, because it wouldn’t really mean a lot without a better look at the chip’s overall design. The chip also includes the following register files:

  • 64 32-bit integer
  • 64 80-bit fprs
  • 4 predicate registers

As far as caches go, there’s a 128K L1 split cache (64K code and 64k data), as well as a 1MB ECC L2 cache.

All in all, Efficeon is a welcome improvement over Crusoe, but I really expected something like it to be out much sooner. I think the fact that it has taken this long to get this product out speaks to just how difficult it is to develop and maintain something as complex as the Code Morphing software. That stuff must be a beast to work with, a fact that in and of itself goes to show that the performance problems associated with CMS (as outlined above in relation to load latencies) are only one aspect of a whole complex of problems associated with this approach, with many of the other aspects being logistical in nature (e.g., getting different design disciplines to work together efficiently and productively; managing, maintaining and improving the code base itself; and various other software engineering issues.)

We’ll see how TM fares in the long run (no pun intended), but with the rest of the industry focusing on latency hiding while at the same time doing a good job of keeping up with TM in terms of MIPS/Watt, things don’t look good. Perhaps the upcoming 90nm version of Efficeon will give them enough of an edge to allow them to score some much needed design wins.

Conclusions

I think that all three of the architectures I mentioned above illustrate in one way or another the ways in which increasing load latencies affect the entire hardware-software ecosystem, from the motherboard and CPU all the way up to the OS and end-user applications. I suppose that on some level, this is perhaps an obvious and almost trivial observation, but it’s still remarkable to me just how these effects are working themselves out. And this is happening at all levels of system design as more and more devices get more and more connected while feature sizes continue to shrink. Latency matters at the level of the network, at the level of microprocessor layout due to wire delay, and at every level in between.

In fact, you could tell the story of the past 15 years of computer evolution ? from the rise of the PC to the rise of the Internet ? in terms of the effects of the amount of time it takes various components ? from a processor all the way out to a networked computer ? to load data. This is why the advances that have the most striking impact on the nature and function of the computer are the ones that move data closer to the functional units. A list of such advances might look something like: DRAM, PCI, on-die caches, DDR signaling, and even the Internet. I imagine that future architectural articles from me will be centered around discussions of how the architecture in question tackles the issues I’ve outlined here.

?

Revision History

Date Version Changes
11/19/2003 1.0 Release
0 Comments