• Aucun résultat trouvé

Bandwidth

Dans le document Red Hat Linux 8.0 (Page 27-30)

II. Resource Management

3. Bandwidth and Processing Power

3.1. Bandwidth

At its simplest, bandwidth is simply the capacity for data transfer — in other words how much data can be moved from one point to another in a given amount of time. Having point-to-point data com-munication implies two things:

A set of electrical conductors used to make low-level communication possible

A protocol to facilitate the efficient and reliable communication of data There are two types of system components that meet these requirements:

Buses

Datapaths

In the following sections, we will explore both in more detail.

3.1.1. Buses

As stated above, buses enable point-to-point communication, and use some sort of protocol to ensure that all communication takes place in a controlled manner. However, buses have other distinguishing features:

Standardized electrical characteristics (such as the number of conductors, voltage levels, signaling speeds, etc.)

Standardized mechanical characteristics (such as the type of connector, card size, etc.)

Standardized protocol

The word "standardized" is important because buses are the primary way in which different system components are connected together.

In many cases, buses allow the interconnection of hardware that is made by multiple manufacturers;

without standardization, this would not be possible. However, even in situations where a bus is pro-prietary to one manufacturer, standardization is important because it allows that manufacturer to more easily implement different components by using a common interface — the bus.

3.1.1.1. Examples of Buses

No matter where in a computer system you look, you will see buses. Here are a few of the more common ones:

Mass storage buses (IDE and SCSI)

Networks (instead of an intra-system bus, networks can be thought of as aninter-system bus)

Memory buses

Expansion buses (PCI, ISA, USB)

3.1.2. Datapaths

Datapaths can be harder to identify but, like buses, they are everywhere. Also like buses, datapaths enable point-to-point communication. However, unlike buses, datapaths:

Use a simpler protocol (if any)

Have little (if any) mechanical standardization

The reason for these differences is that datapaths are normally internal to some system component, and are not used to facilitate the ad-hoc interconnection of different components. As such, datapaths are highly optimized for a particular situation, where speed and low cost are preferred over general-purpose flexibility.

3.1.2.1. Examples of Datapaths Here are some typical datapaths:

CPU to on-chip cache datapath

Graphics processor to video memory datapath

3.1.3. Potential Bandwidth-Related Problems

There are two ways in which bandwidth-related problems may occur (for either buses or datapaths):

1. The bus or datapath may represent a shared resource. In this situation, high levels of contention for the bus will reduce the effective bandwidth available for all devices on the bus.

A SCSI bus with several active disk drives would be a good example of this. The highly-active disk drives will saturate the SCSI bus, leaving little bandwidth available for any other device on the same bus. The end result is that all I/O to any of the devices on this bus will be slow, even if the device itself is not overly active.

2. The bus or datapath may be a dedicated resource with a fixed number of devices attached to it. In this case, the electrical characteristics of the bus (and to some extent the nature of the protocol being used) limit the available bandwidth. This is usually more the case with datapaths than with buses.

This is one reason why graphics adapters tend to perform more slowly when operating at higher resolutions and/or color depths; there is more data that must be passed between the datapath connecting video memory and the graphics processor.

Chapter 3. Bandwidth and Processing Power 29

3.1.4. Potential Bandwidth-related Solutions

Fortunately, bandwidth-related problems can be addressed. In fact, there are several approaches you can take to address bandwidth-related problems:

Increase the capacity

Spread the load

Reduce the load

In the following sections, we will explore each approach in more detail.

3.1.4.1. Increase the Capacity

The obvious solution to insufficient bandwidth is to increase it somehow. However, this is usually an expensive proposition. Consider, for example, a SCSI controller and its overloaded bus. In order to increase its bandwidth, the SCSI controller, and likely all devices attached to it, would need to be replaced. If the SCSI controller is a separate card, this would be a relatively straightforward process, but if the SCSI controller is part of the system’s motherboard, it becomes much more difficult to justify the economics of such a change.

3.1.4.2. Spread the Load

Another approach is to more evenly distribute the bus activity. In other words, if one bus is overloaded, and another is idle, perhaps the situation would be improved by moving some of the load to the idle bus.

As a system administrator, this is the first approach you should consider, as often there are additional buses already present in your system. For example, most PCs include at least two IDEchannels(which is just another name for a bus). If you have two IDE disk drives and two IDE channels, why should the drives both be on the same channel?

Even if your system configuration does not include additional buses, spreading the load might still be a reasonable approach. The hardware expenditures to do so would be less expensive than replacing an existing bus with higher-capacity hardware.

3.1.4.3. Reduce the Load

At first glance, reducing the load and spreading the load appear to be different sides of the same coin.

After all, when one spreads the load, it acts to reduce the load (at least on the overloaded bus), correct?

While this viewpoint is correct, it is not the same as reducing the loadglobally. The key here is to de-termine if there is some aspect of the system load that is causing this particular bus to be overloaded.

For example, is a network heavily loaded due to activities that are unnecessary? Perhaps a small tem-porary file is the recipient of heavy read/write I/O. If that temtem-porary file was created on a networked file server, a great deal of network traffic could be eliminated by simply working with the file locally.

3.1.5. In Summary...

All system administrators should be aware of bandwidth, and how system configuration and usage impacts available bandwidth. Unfortunately, it is not always apparent what is a bandwidth-related problem and what is not. Sometimes, the problem is not the bus itself, but one of the components attached to the bus.

For example, consider a SCSI adapter that is connected to a PCI bus, and providing a SCSI bus. How-ever, if there are performance problems with SCSI I/O, it might be the result of a poorly-performing SCSI adapter, even though the SCSI and PCI buses are nowhere near their bandwidth capabilities.

Dans le document Red Hat Linux 8.0 (Page 27-30)