What Improvements Will 64-Bit Processors Bring?
RyanG asks: "Everyone always looks at numbers (MHz, RAM, HD) when they're considering buying a new computer. Recently, more users have been eyeing bits, as in 64-bit processors, namely the Itanium and to a lesser extent the G5. A lot of people remember the performance increases that were seen when moving from 16 to 32-bit processors and some people seem to think similar performance increases will be realized when moving from 32 to 64-bit pocessors. From what I've read this isn't going to be the case given that 64-bit percision isn't needed in all but a few cases and that moving around that extra data can actually hurt the performance of 64-bit processors when compared to 32-bit processors. Anyone care to comment?"
The ClawHammer and SledgeHammer processors are going to be 64bit processors as well, don't forget to include the competition!
501 Not Implemented
On older machines, this was either an absolute hard limit (64K, period) or kludged in some way (Apple //c had a special bit to bankswitch in one or the other 64K memories, but both couldn't be used at the same time.)
The IBM PC had its segment registers and so could address 1MB, but it was far from transparent. There was no way to declare, say, a 200K array of strings. The programmer's data structures had to be tied quite closely to the peculiarities of the architecture. We spent as much time working around the limitations as we did writing useful code.
When 32 bit computing came along, bam! What a change! Want to declare a 20MB data structure? Go for it! In terms of articifial restrictions, there just weren't any practical limits to run into, or around, day in and day out.
The reason 64 bits won't be as revolutionary as 32 bits is that, for the most part, 32 bits is still good enough. Even with the bloated software we have these days, 4 billion is still plenty when it comes down to most things. Take time_t; that's still not going to overflow for another 30 years. 4 billion is a lot.
A 64-bit CPU working with 32-bit data is being slightly inefficent, but don't worry too much about a slowdown from that, as they'll tend to be inherently faster over time, which should more than make up for it.
So, basically, you heard right. I think.
--
I don't want to rule the world... I just want to be in charge of mayonnaise.
About a year ago, my engineering frim replaced almost the entire computing network with Win2K based PCs and servers, most running Pentium III CPUs @ 933 MHz.
Why does this matter? Because in the years before the PCs, I had *four* different 64-bit workstations on my desk. Over a period of about six years I had a Sun Ultra 2 (64-bit UltraSPARC II), SGI Indigo2 (64-bit MIPS R10K), and two AlphaStations (64-bit Alpha 21164 and 21264).
How are things now, with our 32-bit PCs? Faster, for the most part. 64-bit computing is about the size of numbers that can be used. With 64 bits, you can address more RAM, address more disk space, and put more in each address. It really has nothing to do with performance (unless you're doing a task with big numbers that is a slow kluge under a 32-bit CPU).
We haven't had too many growing pains. The servers were a nightmare for awhile, but that was mostly due to software. Thankfully our visualization room is still running off an old Onyx2 (I don't know of any easy way to run 4 full screen projectors off a single PC and still have good gfx performance). Several of our senior engineers still use their old dual CPU Octanes, too. We're saving money buying new PCs versus buying new UNIX workstations. Thankfully, most PC components are now capible enough for our tasks and software, but really, everything about PC hardware is *crap* even the so-called "professional" components. But, given the low price we're able to buy one of everything and find out what works.
*shrug*
This makes question #11 on my Architecture midterm today. . .
The jump from 32 to 64 bits isn't about speed or precision, it's about the amount of useable address space on a given architecture. For whatever reason (call it functionality, call it bloat, whatever), the amount of address space that programs require is going up by .5 to 1 bit per year. Have you noticed that a lot of people are starting to complain that their PC's are maxed out at 4GB, especially for things like heavyweight apps like db servers, simulation programs or MSWord? Or that there's been a lot of work on Linux or NT to allow the user to access more of the 4GB on the box? Guess what? The 80386 came out 16 years ago.
So the jump now is mostly to allow us to continue to grow for another 32 years. Most processor manufactures tried to get the migration started early - the SPARC, MIPS and Power(PC) chips have all supported 64-bit operation for some time now. The Alpha was origionally designed as a 64-bit processor 10 years ago. Intel and AMD are actually rather late to the game.
It's been said that the only thing that killed the PDP-11 from DEC was its small (16-bit) address space - Users were very happy with it, but when they needed more room for their programs, the PDP just couldn't be expanded to handle them. This is probably why DEC started migrating everyone to the Alpha 10 years ago. The origional release of the Alpha only used a 34-bit address path (so it could access 16GB of RAM - the rest is reserved). If you want the details check out chapter 5 of Computer Architecture, A Quantitative Approach by Patterson & Hennessy.
-"Zow"
Mainly it seems people are talking about the register width, precision, and of course address space.
;;
Keep in mind the first Itaniums have a 64-bit virtual adddress space, while the physical space is limited to 52-bits I think.
The Hammer series processors are really just an x86 extension. They offer no where near the capabilities of Intel's fresh start with IA64.
Here are some of the features of the IA64:
-> Heavy use of ILP (Instruction Level Parallelism) - speaks for itself.
-> Predication - less branches taken and hence stalling. The conditional handling is done through a controlling predicate, rather than jumping. look at this C code:
if (!eax) ebx=VALUEB; else ebx=VALUEA;
Now the i386 code:
testl %eax,%eax
jz 1f
movl $VALUEA,%ebx
jmp 2f
1: movl $VALUEB,%ebx
2:
Now the IA64 code:
p2,p3 = cmp.ne r5,0
(p2)ld8 r4=$VALUEB
(p3)ld8 r4=$VALUEA
/* last two statements run in parallel */
Now whereas the i386 code jumps all over the place, stalling the CPU, the IA64 code uses the controlling predicate registers to decide (p2,p3)
->Huge register sets
r0-r127 are the general 64-bit registers, compare this to eax,ebx,ecx,edx,esi,edi,ebp?
p0-p63 are the predicates
As well as 128 82bit floating registers f0-f127
->Speculation
Normally you can't reschedule a load to run before a store because the addresses can overlap
*ptr=b;
some_code_that_does_not_touch_b_c_ptr_ptr2();
c=*ptr2;
Previously, you couldn't move c=*ptr2 prior to the start of this code because ptr could overlap the same memory as ptr2.
Now you can - basically the load (using the "advanced load" instruction) is performed anyway, which allocates an entry in an internal table, then the store, and _if_ that store overwrites the load the load is performed again. Hopefully though, this shouldn't happen often. And its more flexible and powerful than this, this was just a simple example.
-> Remappable registers - the registers can be mapped kind of in a way that memory can be paged - that way when calling a new function the stack is not necessarily needed to push and pop various registers.
->"Modulo" loop scheduling
The beginning of the next iteration of a loop before the last one has finished - the remappable registers "rotate" to give each iteration a new set of the virtual registers
->An interesting way of handling paging
Which reduces TLB flushes on task switches by tagging an entry in the page tables with a unique ID specific to a process - I'm not fully sure on the details on this since I've never looked at IA64 system programming.
Sorry I'm sounding like an Intel brochure, but it really is quite amazing if your coming from x86 programming background - IA64 is a lot more than doubling data unit sizes. I suggest if you're familiar with assembly programming read the IA64 manual at developer.intel.com.