Friday, April 24, 2009

AMD Catalyst 7.12 Linux Driver

It's that time of the month again where we get to share with you all of the details on the latest ATI/AMD Linux driver release. This month, the ATI Catalyst 7.12 Linux driver (formally, what is known as fglrx 8.44) brings a host of new changes, mostly in the form of bug fixes. In total, there are just under a dozen noteworthy bug fixes in this release -- including addressing 3D acceleration issues on AGP graphics cards and the well-known OpenGL memory leak that was introduced with the new driver code-base. In addition, the FireGL graphics cards are now supported on this new driver code-base.

One of the largest problems that have continued with fglrx 8.41, 8.42, and 8.43 drivers has been a memory leak. This issue has affected a variety of ATI Linux users and was summarized by Hakan Bayindir in ATI's New Drivers: Did The Paradise Come? This OpenGL memory leak has also been brought up in the Phoronix Forums with the driver leaking globs of memory and being hoped for as a fix for Catalyst 7.12. Fortunately, the AMD software engineers have addressed the OpenGL memory leak in Catalyst 7.12, so be sure to upgrade.

There have been some fixes in past driver releases for those using an AGP graphics card with a Rialto bridge chip and the proprietary Linux driver, while this release is also reported to fix an issue with 3D not working on some AGP cards. In addition, a CMMQS initialization issue on the Lenovo ThinkPad T43p has been addressed as well as a corruption problem with the RS690 IGP. Some of the other bugs that were fixed in this release include the wrong libGL soname, OpenGL overlay fixes, and fixing a server crash in X -configure.

For the packaging scripts that are included with the ATI Catalyst installer, there is now Red Flag DT 6.0 support and script updates for some of the other distributions. One of the noteworthy updates is to for Ubuntu as there is now listed support for Ubuntu 8.04 "Hardy Heron" and Dell's DKMS (Dynamic Kernel Module Support) is used for automatically rebuilding the kernel module with kernel upgrades, which comes to replace module-assistant for the fglrx driver. This is also the first ATI/AMD Linux driver release where the packaging scripts are being pulled from the Phorogit repository at Phorogit.com. If you are interested in checking out the scripts at Phoroit, there is a "7.12" branch for this driver. As you can see from viewing the repository, work on the ATI/AMD Catalyst 8.1 Linux packaging scripts is already underway with the Ubuntu scripts beginning to use LSB (Linux Standards Base) detection for the distribution/version.

Since AMD had rolled out their new Linux driver code-base in September, the ATI FireGL series hasn't been supported. Finally, however, with Catalyst 7.12 this workstation support has reappeared. If you are a FireGL owner, you can finally experience this new driver code-base finally, with its AIGLX support and heightened performance. On the topic of card support, the Catalyst 7.12 Linux driver properly identifies the Radeon HD 3850 and Radeon HD 3870, and benchmarks using this new driver can be found in our ASUS EAH3850 TOP / EAH3870 TOP review.

It has been a while since talking about the AMD Catalyst Control Center Linux Edition (AMDCCCLE) and the 7.12 driver does bump the version to 1.7, but there are no apparent end-user changes in this release.

Saturday, April 18, 2009

Processor Performance

Let’s try to determine what the performance of a processor may depend upon, without sticking to any particular implementation. In the long run, software for any processor is reduced to a set of elementary arithmetic and logical operations. Thus, the processor will be faster if it can perform more such operations per a certain period of time.

The amount of calculations the processor can make depends on two basic things: how many elementary operations the processor performs in one clock cycle and what frequency it works at. The number of calculations is then estimated by multiplying the frequency by the number of operations per clock cycle. Accordingly, we have two ways to higher performance: either create an architecture oriented at making more work in a clock cycle (processors with “heavy” clock) or boost the frequency to the maximum. Of course, in the ideal world, we would do both things at a time, but it seldom happens in reality. As a result, the architecture developer team usually faces the problem of choosing the priority direction.

Many developers of server processors chose the variant with a “heavy” clock. In other words, the priority is to execute as many operations within a clock cycle as possible. The manufacturers go for various tricks to achieve this. For example, they integrate two processor cores into one die as IBM did in its Power4. Intel chose two directions in its two server processor series: the Xeon is rather a representative of frequency-growth-oriented CPUs, while the Itanium family includes processors that should do a lot of work per cycle. The frequencies as well as performance of CPUs from the two series differ greatly and the lower-clocked Itanium has an advantage. Both directions involve certain difficulties, though.

There are serious obstacles on the way to further increase of the work performed per cycle. There are many algorithms (in some areas they form a majority of algorithms) that are not easily paralleled, being sequential in their nature. Thus, it takes some effort – recompilation of software – to load with work as many execution units of the processor as possible. Technologies like Hyper-Threading from Intel serve the same purpose (they load idle units of the CPU with work). We will see below that a majority of RISC processors remained at the level of 6 pipelines – more pipelines don’t provide any performance gains. The only exception is the Itanium family, but at a high cost: performance of this processor heavily depends on the quality of the compiler. Let’s summarize: the increase in work performed per clock cycle is limited by the nature of many existing algorithms.

Frequency growth also brings about a series of unpleasant surprises and predictable consequences. It results in the processor’s higher power consumption and heat dissipation. Then, any circuit – especially the sophisticated circuitry of a modern processor - has a frequency ceiling. This ceiling is mainly because of the necessity to synchronize different processor units. There’s always a tiny difference between the operational timings of different units of the CPU and the units start working out of sync at a certain frequency. This frequency is the limit, conditioned by the architecture of the particular processor.

Modern Server Processors

Intel Itanium Platform

This is a famed platform. Once it was supposed to replace the “out-dated and slow” x86 platform. Today there’s less certainty about the Itanium being the x86 killer, though.

The main idea of the Itanium is making the processor perform more work per clock cycle. This is achieved by increasing the number of execution units operating in parallel. The work of this processor is described by the VLIW concept (Very Long Instruction Word). I won’t cite it in detail, just a few basic things:

  • The CPU performance is increased by making it perform more work per clock cycle. Optimized code is necessary for that, which is created by a special compiler;
  • Data and instructions are packed into long “words” and sent for execution;
  • There’s no (!) paralleling logic – it is the compiler that must create the optimal and dense command stream. Thus, there’s no out-of-order execution – the proper planning of the execution order is also the compiler’s job;
  • The processor consists of a set of execution units, buffers and cache. All other things being equal, it allows higher performance because it’s now possible to use the free space for enlarging cache or including more execution units;
  • The Itanium contains many general-purpose registers, 328 in total. They are 128 general-purpose registers, 128 FPU registers and 72 “predicate” registers (see below). A unique register rotation mechanism is employed for reducing the load on this unit and increasing its efficiency.

So the general ideas of the VLIM concept are revealed above - we make the processor perform better by feeding it not chaotic code that the processor’s logic then tries to comb up “on-the-fly”, but pre-optimized code, created with a special compiler. The problem of efficiency is thus solved beforehand. Intel terms this concept EPIC - Explicitly Parallel Instruction Computing. This concept can be considered as a post-RISC concept to some extent.

The Itanium architecture started to be developed about twenty years ago, when Intel found itself obliged to offer its alternative to the leaders in the high-performance CPU sector of those times. It wanted a processor that could be used in top-end servers. Of course, that architecture had to be 64-bit - this requirement ensued from the need for a large address space and large amounts of supported memory. It had to be scalable both in frequency and in the number of processors. In perspective, if everything went right, this platform was to oust x86 CPUs (which were lagging behind all other processor architectures in performance). Thus, Intel conceived a smooth transition to the architecture of the future. It would be an architecture where the compiler, rather than hardware, played the crucial part, although hardware solutions would be important, too.

Processor Performance

Let’s try to determine what the performance of a processor may depend upon, without sticking to any particular implementation. In the long run, software for any processor is reduced to a set of elementary arithmetic and logical operations. Thus, the processor will be faster if it can perform more such operations per a certain period of time.

The amount of calculations the processor can make depends on two basic things: how many elementary operations the processor performs in one clock cycle and what frequency it works at. The number of calculations is then estimated by multiplying the frequency by the number of operations per clock cycle. Accordingly, we have two ways to higher performance: either create an architecture oriented at making more work in a clock cycle (processors with “heavy” clock) or boost the frequency to the maximum. Of course, in the ideal world, we would do both things at a time, but it seldom happens in reality. As a result, the architecture developer team usually faces the problem of choosing the priority direction.

Many developers of server processors chose the variant with a “heavy” clock. In other words, the priority is to execute as many operations within a clock cycle as possible. The manufacturers go for various tricks to achieve this. For example, they integrate two processor cores into one die as IBM did in its Power4. Intel chose two directions in its two server processor series: the Xeon is rather a representative of frequency-growth-oriented CPUs, while the Itanium family includes processors that should do a lot of work per cycle. The frequencies as well as performance of CPUs from the two series differ greatly and the lower-clocked Itanium has an advantage. Both directions involve certain difficulties, though.

There are serious obstacles on the way to further increase of the work performed per cycle. There are many algorithms (in some areas they form a majority of algorithms) that are not easily paralleled, being sequential in their nature. Thus, it takes some effort – recompilation of software – to load with work as many execution units of the processor as possible. Technologies like Hyper-Threading from Intel serve the same purpose (they load idle units of the CPU with work). We will see below that a majority of RISC processors remained at the level of 6 pipelines – more pipelines don’t provide any performance gains. The only exception is the Itanium family, but at a high cost: performance of this processor heavily depends on the quality of the compiler. Let’s summarize: the increase in work performed per clock cycle is limited by the nature of many existing algorithms.

Frequency growth also brings about a series of unpleasant surprises and predictable consequences. It results in the processor’s higher power consumption and heat dissipation. Then, any circuit – especially the sophisticated circuitry of a modern processor - has a frequency ceiling. This ceiling is mainly because of the necessity to synchronize different processor units. There’s always a tiny difference between the operational timings of different units of the CPU and the units start working out of sync at a certain frequency. This frequency is the limit, conditioned by the architecture of the particular processor.