2011年9月23日星期五

Difference between AGP, PCI and PCI Express




In the first two installments of this series of Tech Tips, we took a look at PCI and AGP, undoubtedly the most common expansion slots in a computer today. With a few key improvements over both of these, PCI Express is destined to replace both and offer a whole new level of computer performance.
As with AGP and PCI, the development of PCI Express can be attributed to Intel. This time, however, they partnered with some other heavy hitters in the industry, such as Microsoft, IBM, and Dell. Although it is now known as PCI Express, that was not their initial choice for its name. If it wasn’t for PCI-SIG, the committee that oversees the PCI standard, we might be referring to this new format at 3GIO (Third GenerationInput / Output).

PCI Express development finds its roots in the PCI and AGP standards, but the physical connections are not interchangeable, and we will see that this is not the only difference. In the PCI standard, data from the various devices travels over a shared bus to the system. In the AGP standard, a dedicated, point-to-point interface transmits the data from the graphics card to the system. The PCI Express approach to data transfer involves a collection of two-way, serial connections that carries data in packets, similar to the way a network connection operates.
The data from a PCI Express device will no longer have to travel over a single bus, or a single dedicated connection, but can use a combination of these two-way serial connections to optimize throughput. The terms “lane” and “link” don’t sound like anything overly technical, but take on special meaning with PCI Express. A link is the physical connection between PCI Express devices, which can consist of multiple lanes that transmit and receive data independently. Links can be composed of 1, 2, 4, 8, 12, 16, or 32 lanes, and the configuration allows flexibility in assigning just as many lanes as needed to any particular device. There are obvious benefits to this approach, and a few of the more significant include the following points…
Each lane of PCI Express communication is dedicated between two points, so there is no sharing of bandwidth. PCI’s main bottleneck was that all the devices were sharing the equivalent of one lane, and all of the available bandwidth also had to be shared.
Multiple lanes can be assigned to devices whose performance would benefit from the extra speed and bandwidth. A PCI Express graphics card might be assigned 16 lanes (also referred to as x16), while a network adaptor might be assigned just 1 lane. Each lane you make available to a device increases the potential for performance, as the data is sequenced up/down each available lane to optimize throughput. This process of sending the next byte of data down the next available lane is referred to as data striping, and obviously more lanes are better for instances where a good   deal of data needs to be transmitted quickly.
Speaking of graphics cards, another benefit is that multiple high performance graphics cards can be installed on one motherboard. The flexibility of PCI Express allows for two x16 PCI Express slots to be included for dual graphics cards, something that in the past required one AGP slot and one PCI slot. And due to the performance limitations, the AGP and PCI combination could not really be considered high performance. In addition to two x16 slots allowing for dual display operation, when incorporating specific graphics cards on a motherboard supporting nVidia’s SLi technology, the resources of the two separate cards can be bridged together for even greater performance on one display. An example of such a motherboard can be seen in DFI’s LAN Party UT nF4 SLi-D.
Just as motherboards supported both AGP and PCI as a means of allowing dual displays, some motherboards offer both an AGP slot and a PCI Express slot. Not only does this allow the user the ability to run dual displays, it provides the added benefit of allowing an upgrade to be completed in stages. If a new PCI Express capable motherboard was just purchased, perhaps in addition to a new processor, the budget conscience user may not want to spring for a new graphics card right away. By making an AGP slot available on boards such as the ECS 915P-A, there is no reason to retire a perfectly good AGP card just because one bought a new motherboard supporting PCI Express.
PCI Express graphics cards are quite similar to AGP cards, except for the connector configuration. The physical size and layout are comparable, and even the prices are not that different. The current selection of graphics cards at Geeks.com doesn’t allow you to compare apples to apples in any one card, but one may find many of the same AGP cards available in PCI Express format for roughly the same price (or for even less money). For the time being, the markets seem to be running in parallel, but in time a shift will occur in favor of PCI Express dominating the market.
Minimizing the cost involved in motherboard fabrication could be another benefit. Let’s look at the example of a network adaptor requiring just 1 lane to operate. If this was a PCI based network adaptor, traces for the standard 32-bit bus would need to reach this device, instead of the four traces required for 1 PCI Express lane. Motherboard design will obviously weigh heavily on this benefit ever being realized, and it is possible that higher-end boards might actually require more traces.
Before taking a look at the ultimate benefit of PCI Express, the performance, let’s have a refresher on the capabilities of PCI and AGP. The standard PCI bus has a width of 32-bit, operates at 33 MHz, and provides a maximum bandwidth of 132 MB/s (which has to be shared by all devices connected). AGP 8x has a 32-bit bus width, operates at 533 MHz, and provides a maximum (dedicated) bandwidth of 2.1 GB/s.
Each PCI Express lane is capable of 250 MB/s in each direction, and as advances in the necessary silicon technologies are realized, that number can be expected to quadruple. Presently, a 164-pin x16 slot can be expected to provide around 4GB/s of usable bandwidth in either direction, which is almost double the 2.1GB/s bandwidth that AGP 8x could offer! Definitely an impressive increase, and as the technology is refined, it will be very interesting to see the performance scale up.
In the previous paragraph, I mentioned that the x16 slot features 164 pins. Each of the different lane configurations is accompanied by a different physical connector, and a sampling of an x16, x8,   x4, and x1 can be seen here. For a real world example, the Chaintech VNF4 Ultra Athlon 64 Socket 939 motherboard shows an actual installation of one x16 slot and two x1 slots.
Graphics cards are obviously going to benefit the most from the power and performance   available with PCI Express, but as mentioned, other devices will also be able to take advantage of this new standard. The example of a network adaptor is just one that not only can use PCI Express, but will also see performance benefits. A Gigabit Ethernet adaptor will be more likely to actually achieve its rated speed thanks to the main bottleneck being removed in the form of the slower, narrower PCI Bus. Other bandwidth intensive devices, such as RAID controllers, can also be expected to jump off of the slower PCI Bus and find a smoother ride on PCI Express. Although PCI devices requiring less bandwidth may not see any performance benefits from going to PCI Express, as the standard achieves greater mainstream acceptance, the cost implications may find these devices shifting over anyway, just as happened with the transition from ISA to PCI.
Final Words
The higher speeds and flexibility available from PCI Express have it destined to not only be the successor to AGP 8x, but to PCI as well. The immediate performance increase over the older technologies is quite impressive, and given time the benefits will be even greater. Only time will tell how long this transition will take, but somewhere in the not-too-distant future we will be talking about motherboards that only support PCI Express, and AGP and PCI will go the way of the lowly ISA slot.

2011年9月18日星期日

What is the difference between DDR1 DDR2 & DDR3



What is the confusion about RAM?
Most of the computer users do some research before upgrading their system so they exactly know about a perfectly matching CPU, motherboard and video card combination that will meet all their needs. But most of them fail when it comes to RAM. They just know the size of the RAM i.e. 1GB, 2GB or 4GB, but they don’t know what this DDR1, DDR2 or DDR3 is all about.
So that’s why I came up with a idiot’s guide for buying a RAM, because it turns out that selecting the proper DDR variant is a very important factor that determines how your overall system will perform, thus every computer user should be well-advised to learn it.

DDR1 Specifications
DDR-DIM (Double Data Rate DIMM or DDR DIMM), or most popularly just plain DDR. Double Data Rate interfaces provide two data transfers per differential clock. The data becomes registered when the CK goes high [the + side], and /CK goes low [the - side]. DDR1 utilizes the JEDEC standard for Double Date Rate [DDR I] SDRAM. Like all DDR RAM it is available as registered or un-buffered. Registered DIMMs are generally known as FB-DIMMs and have their address and control lines buffered in order to reduce signal loading. FB-DIMMs are considerably more expensive than un-buffered DIMMs and are generally reserved for server use. There are very few enthusiast/prosumer/gamers utilizing FB-DIMMs in their CPU’s. Un-buffered DIMMs don’t feature address lines and control line buffering, so they cost quite a bit less. However, they may be system-loading limited and are thus generally restricted in the number that can be fitted onto one system. You’ll find that most un-buffered DIMMs these days can only be installed on one motherboard to a maximum of 4 x 1GB. Buffered or registered DIMMs don’t have these limitations and server boards can accommodate 8 x 1GB, 16 x 1GB or more. An interesting and largely unknown aspect of un-buffered DDR DIMMs is that they are able to operate one clock cycle faster then FB-DIMMs.

DDR2 Specifications
DDR2 memory is the second generation in DDR memory. DDR2 begins with a speed level of 400MHz as the lowest available while the 400MHz speed is actually the highest speed for DDR1. Therefore, DDR2 picks up where DDR1 leaves off. It’s a bit strange but due to different latencies a 400MHz DDR1 will outperform a 400MHz DDR2, but the advantage returns to DDR2 as soon as the speed reaches the next step 532MHz, which DDR1 cannot reach.

DDR3 Specifications
DDR3 is the third generation in DDR memory. DDR3 begins with a lowest capacity level of 800Mbps and goes up to 1600Mbps with bus speed as high as 2000MHz.  Higher performance with lower power consumption is the major benefit, since operating voltage is only 1.5V for DDR3 compared to 1.8V for DDR2.  Lower heat is generated, which means that systems will run cooler.  Ultimately the new technology will result in higher capacity modules: Up to 8GB modules (Using 4Gb Chips) to help lower server/workstation system costs.

Transfer Rates
Another confusion is that RAM is mostly referred in PC-number, so here are the Transfer Rates for the various DDRs:
DDR1 Transfer Rate
DDR SDRAM: Double Data Rate SDRAM (DDR200, DDR266, DDR333 are standard)
PC1600 (DDR-200 SDRAM); Clock Speed: 100MHz, Data Rate: 200MHz, Throughput 1600MB/s
PC2100 (DDR-266 SDRAM); Clock Speed: 133MHz, Data Rate: 266MHz, Throughput 2100MB/s
PC2400 (DDR-300 SDRAM); Clock Speed: 150MHz, Data Rate: 300MHz, Throughput 2400MB/s
PC2700 (DDR-333 SDRAM); Clock Speed: 166MHz, Data Rate: 333MHz, Throughput 2600MB/s
PC3000 (DDR-366 SDRAM); Clock Speed: 183MHz, Data Rate: 366MHz, Throughput 2900MB/s
PC3200 (DDR-400 SDRAM); Clock Speed: 200MHz, Data Rate: 400MHz, Throughput 3200MB/s

DDR2 Transfer Rate
DDR2 SDRAM: Double Data Rate SDRAM II (Quad Edge Clock Rate, 1.8v signaling), Second Generation
PC2-3200 (DDR2-400 SDRAM); Clock Speed: 100MHz, Data Rate: 400MHz, Throughput 3200MB/s
PC2-4300 (DDR2-533 SDRAM); Clock Speed: 133MHz, Data Rate: 532MHz, Throughput 4300MB/s
PC2-5300 (DDR2-667 SDRAM); Clock Speed: 167MHz, Data Rate: 667MHz, Throughput 5300MB/s
PC2-5400 (DDR2-675 SDRAM); Clock Speed: 167MHz, Data Rate: 667MHz, Throughput 5400MB/s
PC2-6400 (DDR2-800 SDRAM); Clock Speed: 200MHz, Data Rate: 800MHz, Throughput 6400MB/s

DDR3 Transfer Rate
DDR3 SDRAM: Double Data Rate SDRAM III (Quad Edge Clock Rate, 1.5v signaling), Third Generation
PC3-6400 (DDR3-800 SDRAM); Clock Speed: 100MHz, Data Rate: 800MHz, Throughput 6.40GB/s
PC3-8500 (DDR3-1066 SDRAM); Clock Speed: 133MHz, Data Rate: 1066MHz, Throughput 8.53GB/s
PC3-10600 (DDR3-1333 SDRAM); Clock Speed: 166MHz, Data Rate: 1333MHz, Throughput 10.67GB/s
PC3-12800 (DDR3-1600 SDRAM); Clock Speed: 200MHz, Data Rate: 1600MHz, Throughput 12.80GB/s

Now it will be really hard to list down which RAM best fits which motherboard. Before buying the RAM you should research your CPU manufacturer’s RAM recommendations and fit that exact type of DDR in it. You would be just as foolish in using a PC3-12800 DDR3-1600 with an AMD Sempron 2800+ as you would be to burden down your Intel QX6800 with a PC1600 DDR-200. Every CPU/chipset combo has its proper DDR fit, and you should find out exactly what they are and stick to them. If you fir a slower than recommended DDR to your system will terminate critical RAM functions and could slow your system.