Method and apparatus for monitoring component latency drifts6374371Abstract A method and apparatus for monitoring the response times of computer system components in order to improve computer system reliability and performance are provided. The method and apparatus are particularly applicable to computer systems with memory circuits, such as SLDRAMs, that have programmable response times. A response time monitoring circuit in the form of a phase detector includes a plurality of flip-flops with the data inputs commonly connected to receive a response ready signal from a component, such as a memory circuit, in response to a command to perform a task. Each clock input of the flip-flop is connected to a clock signal at a different phase of a response period. The outputs of the flip-flops determine the phase at which the response ready signal was generated by the component. Claims What is claimed as new and desired to be protected by Letters Patent of the United States is: Description BACKGROUND OF THE INVENTION
TABLE 1
PHASE A B C D E F G H
Initial Calibration 0 0 0 0 1 1 1 1
Access Time Decreasing 0 1 1 1 1 1 1 1
(Severe)
Access Time Increasing 0 0 0 0 0 0 1 1
(Severe)
Access Time Decreasing 0 0 1 1 1 1 1 1
(Moderate)
Access Time Increasing 0 0 0 0 0 1 1 1
(Moderate)
The first row of the table shows the output of the phase detector for a component, here a memory circuit, that has just been calibrated. As shown, it is expected that the RESPONSE READY SIGNAL will be received approximately in the middle of a master CLOCK cycle. Thus, the flip-flops 12 clocked by CLOCKS A-C will have "0" output. Because the rising edge of CLOCK D occurs essentially at the mid-point of the master CLOCK signal, the output of the flip-flop 12 clocked by CLOCK D may be a "0" or a "1". This result is not of concern, however, as drifts of a single phase or less are not of concern. The flip-flop 12 clocked by CLOCK E will have a "1" output because the RESPONSE READY SIGNAL occurs well before the rising edge of CLOCK E signal. The remaining flip-flops 12 also have "1" outputs. The second row illustrates a severe decrease in response time, signifying that the RESPONSE READY SIGNAL is occurring much earlier than desired. An early response can be as much of a problem as a late response when multiple devices share a data bus. Referring back to row 2 of the table, it can be seen that the early response occurred between the rising edges of phases A and B. Row 4 of the table also shows a decreasing response time, although the here the decrease is not as severe as that shown in row 2. Similarly, row 3 shows a severe increase in response time, while row 5 shows a more moderate increase. By monitoring the phase A to H outputs of the flip-flops 12 of the phase detector 10 for different memory circuits, a memory controller can determine how the respective memory circuits are responding to data retrieval commands. An exemplary system for doing this is now described. FIG. 3 depicts the phase detector 10 of FIG. 1 integrated into a controller 40 for monitoring SLDRAM memory circuits 30. The controller 40 is shown as a separate chip in FIG. 3, but may integrated together with other electronic circuits if desirable. A simplified description of the operation of an SLDRAM memory circuit and controller now follows. For a more complete description of the operation and control of an SLDRAM, reference should be made to the DRAFT STANDARD FOR A HIGH-SPEED MEMORY INTERFACE (SYNC-LINK), Draft 0.99 IEEE P1596.7-199X, the contents of which are hereby incorporated by reference. The functions described below are performed by the control logic 70. As used herein, the control logic is intended to encompass dedicated low level logic, a processor, or any combination of the two. The actual implementation is dependent upon the environment and application and is a matter of engineering judgment. A subset of the connections between the SLDRAM memory circuit 30 and the controller 40 are shown including a command link 44, a data link 42, a master clock (CCLK) signal 46 and a data clock signal (DCLKx) signal 48. When the controller 40 wishes to communicate with an SLDRAM memory circuit 30, such as to perform a write or read operation, or to adjust the response time as part of the aforementioned calibration process, a command packet is sent from the control logic 70 to an addressed SLDRAM memory circuit via the command link 44. An example of a command packet is shown in FIG. 4. The command packet is a set of four 10 bit words that specify the command. The command packet contains fields for specifying the unique identification number of the SLDRAM memory circuit 30 to which a command pertains (ID0-ID8); the type of operation (CMD0-CMD5); and the bank, row, and column on the SLDRAM memory circuit 30 to which the command applies (BNK0-BNK2, ROW0-ROW9, and COL0-COL9). The SLDRAM memory circuit 30 is internally organized into 8 banks of 128K 72 bit words, with each bank organized into 1024 rows by 128 columns. The Flag bit shown in FIG. 4 is a separate signal on the command link that is used to indicate the start of a command packet to the SLDRAM memory circuit 30. Referring back to FIG. 3, the data link 42 is used to transfer data to and from the SLDRAM memory circuit 30. For example, in response to a read command packet, the SLDRAM memory circuit places the contents of the requested memory cells on the data link 42. The SLDRAM memory circuit 30 then asserts the DCLKx signal to alert the controller 40 that the data is present. The data is sent without any header or other identifying information. The controller 40 is able to identify the SLDRAM memory circuit 30 from which the data originated because the controller 40 itself has previously issued the read command packet and knows on which clock cycle the response is expected as the controller 40 has previously calibrated the SLDRAM memory circuits 30 and thus knows the latency, that is, how long is should take for the DCLKx signal to be generated. The DCLKx signal 46 functions as the RESPONSE READY SIGNAL discussed in connection with FIG. 2. The CCLK signal is supplied by the controller 40 as the master clock for all SLDRAM memory circuits 30. It should be noted that the CCLK and DCLKx signals 46, 48 are actually differential signals, and that the DCLKx signal 48 actually represents two separate differential clock signals that are alternately used in actual operation. These signals are shown as single signals for ease of representation. The DCLKx signal 48 (or a derivative of this signal), besides being input to the control logic 70, is also input to the data input 14 of each of the flip-flops 12. Each of the flip-flops 12 is clocked by one of a set of separate clock signals, CLOCK A through CLOCK H. The clock signals are produced by an offset clock generator 72 which, although shown apart from the control logic 70, is a part thereof. A clock signal PCLK 68 is provided by the control logic 70 at the earliest time a response is expected from an SLDRAM memory circuit 30. The offset clock generator 72 simply adds varying delays to the PCLK signal 6 to produce the clock signs CLOCK A through CLOCK H input to the flip-flops 12. The outputs 18 of the flip-flops 12 clocked by CLOCKs B and G are input to an OR gate 64. The output of the CLOCK G flip-flop is inverted by inverter 66, although the complement data output (not shown) of the flip-flop 12 may be used rather than inverting the output with the inverter 66. The output of the OR gate 64 provides an EXCESSIVE LATENCY DRIFT signal to the control logic 70. The operation of the control logic 70 upon receipt of an EXCESSIVE LATENCY DRIFT signal is described in further detail in connection with FIG. 5 below. Referring back to Table 1, it is apparent that either of the outputs shown in rows 2 or 3 will cause the EXCESSIVE LATENCY DRIFT signal to be generated by the OR gate 64. The choice of the flip-flops 12 to be connected to the OR gate 64, which corresponds to the choice of the phase upon which recalibration will be triggered, is a matter of engineering judgment and is dependent upon the actual timing of the clocks for the flip-flops 12 and the environment in which the invention is used. Referring now to FIG. 5, upon receipt of an EXCESSIVE LATENCY DRIFT signal from the OR gate 64, the control logic 70 determines the latency drift of the SLDRAM memory circuit at step 5-1 by reading the phase detector 10 of the phase detector-monitor circuit 60. This latency is compared to a recalibration threshold at step 5-2. The recalibration threshold may be a simple threshold which may be set so that recalibration is automatically performed every time an occurrence of an excessive drift is detected. The threshold may also be a more sophisticated threshold, and may be set so that calibration only occurs if a predetermined number of excessive drifts occur within a predetermined time period. The threshold may also depend upon the magnitude of the latency drift. This is one reason why it is desirable to provide a phase detector with multiple flip-flops, rather than a phase detector with only two flip-flops. If the component latency exceeds the recalibration threshold, recalibration is performed at step 5-3. If the latency drift does not exceed the recalibration threshold, or after recalibration has been performed, latency drift information is stored in the memory 50 at step 5-4. Latency drift information consists of, at a minimum, the time, taken from an onboard clock (not shown), and identification of the component exhibiting the excessive latency drift. The the amount and direction of latency drift, as well as the location of the component exhibiting the excessive drift, may also be stored. Which information is stored is dependent upon the environment and is a matter of engineering judgment. Next, the response time "history" of the SLDRAM memory circuit 30 is examined to determine whether the SLDRAM memory circuit 30 has begun to exhibit marginal behavior possibly indicative of an impending failure. One possible way to express this latency drift history is in the form of long and short term averages of the time between excessive latency drifts. The averages could be maintained using a simple alpha filter of the form: AVG.sub.n =(Drift Time/alpha)+(AVG.sub.n-1 *(1-(1/alpha))) In the above equation, AVG.sub.n represent the new average time between excessive latency drifts; AVGN.sub.n-1 represents the previous average time between excessive latency drifts, Drift Time represents the time between the currently observed excessive latency drift and the previously observed excessive latency drift, and alpha is a constant. A large alpha value is selected for the long term average, while a small alpha value is selected for the short term average. For example, alphas of 8 and 128 might be chosen for the short and long term values, respectively. The actual alphas chosen depend upon the actual SLDRAM devices themselves and are a matter of engineering judgment. The aforementioned averages are calculated at step 5-5. Next, the ratio of the short term average to the long term average is compared to a threshold at step 5-6. The threshold value is a constant between 0 and 1. This comparison determines whether the component has recently begun exhibiting excessive drifts. For example, a ratio of 0.25 signifies a "recent" four-fold decrease in the average time between excessive latency drifts of an SLDRAM memory circuit 30. If the threshold value is exceeded, the controller 40 sends a message to the user to replace the component at step 5-7. This is accomplished by sending a message to the processor 110 via the system bus 120 as shown in FIG. 7 (FIG. 7 will be discussed in greater detail below). If the threshold is not exceeded, the response time drift is acceptable and does not require corrective action. The above technique for determining the response time history of the SLDRAM memory circuit 30 is only one among a large number of alternatives. For example, the average latency drift, rather than the average time between latency drifts, could be calculated. Another possible implementation is to measure a combination of the frequency and magnitude of the excessive latency drifts. Still another possible implementation is determine what percentage of the detected excessive latency drifts have been caused by the particular SLDRAM memory circuit 30. The "history" of the component could be determined using standard deviation calculations rather than long and short term averages. Preventive maintenance could be triggered by a user message when the number of successive drifts above a threshold based on the standard deviation exceeds a certain value. Many other techniques for determining the response time history are also possible. The aforementioned technique requires the failure data to be stored in the memory 50. Such storage could be temporary, such as in volatile memory. However, if volatile memory is used, the failure data would be lost each time the system is turned off. Non-volatile memory, such as in flash memory or battery backed-up RAM, may be used to retain the failure information while the system is turned off. The operation illustrated by FIG. 5 is only performed when the OR gate 64 generates an EXCESSIVE LATENCY DRIFT signal. However, in other environments and applications, it may be desirable to read the latency drift from the phase detector 10 even when an EXCESSIVE LATENCY DRIFT signal is not present. For example, the phase detector 10 may be read periodically, or for each memory read command. In such embodiments, reading the latency drift allows the control logic 70 to observe both normal and excessive drifts in latencies. The choice of when to read the phase detector 10 depends upon the application and is a matter of engineering judgment. The response time drift data could also be used by the controller 40 to perform more sophisticated system preventive maintenance and performance enhancement. An example of such a technique is illustrated in FIG. 6. The procedure illustrated by FIG. 6 is the identification of memory circuits that exhibit the least latency drift (the most stable components) and the physical locations for memory circuits in the system that cause the most latency drift (the worst locations) and the placement of the most stable components in the "worst" locations. Some locations may be worse than others due to environmental conditions such as temperature. For example, the air flow in particular locations may be less than in others, resulting in higher temperatures at that location. Other locations may be near system components, such as power supplies, that give off excessive heat or otherwise cause electrical signal aberrations. Other environmental conditions that might cause component response times to drift include power supply fluctuations, which also may be position dependent. The controller 40 determines the average time between excessive latency drift, also known as the average drift time, for each memory circuit at step 6-1. The average drift time is determined over a predetermined period of time. The average drift time for each memory circuit and the location of each memory circuit is stored at step 6-2. If each memory circuit has not yet been rotated to a sufficient number of other locations in the system at step 6-3, the system prompts the user to rotate the memory circuits at step 6-4. The number of locations sufficient to obtain averages of memory circuit drift times that are independent of the location of the memory circuit depends upon the physical characteristics of the particular system. For example, one system may have very little variation in temperature. In such a system, determining the average drift time in just two locations may be sufficient to identify the least stable memory circuits. The actual number of locations that are sufficient is therefore a matter of engineering judgment. Because step 6-4 requires an actual physical rotation of the memory circuits, power-down may be necessary. Therefore, the memory circuit and location averages must be stored in some form of non-volatile memory on the controller itself, or on some form of permanent system storage such as a hard disk. Once all memory circuits have been rotated to a sufficient number of locations, "global" averages are calculated for each memory circuit and for each location at step 6-5. The global average for each memory circuit is the average of the average drift time for that memory circuit at each location. The global average for each location is the average of each memory circuit drift time at that location. In other words, if there are N memory circuits and locations, then the global average for the memory circuit is the average drift time of that memory circuit in each of the N locations, and the global average for the location is the average drift time of each of the N memory circuits while each memory circuit was at that location. When the global averages are calculated in this fashion, they represent the average memory circuit drift time independent of location, and the average location drift time independent of memory circuit, respectively. At step 6-6, the most stable memory circuits are assigned to the least stable locations. Said another way, the memory circuits having the longest global drift times are assigned to the locations having the shortest global drift times. The results of this assignment are displayed to the user at step 6-7. Configuring the system in this manner improves performance because the necessity for recalibration, during which the system is unable to access the components, is minimized. Configuring the system in this manner also improves reliability, because the most sensitive memory circuits are placed in the most benign locations. The foregoing procedure could be performed as part of a periodic preventive maintenance schedule. In this fashion, as memory circuit drift times are degraded due to exposure to relatively harsh environments, they are rotated out of these locations and replaced by other components. Similarly, once relatively harsh locations are identified by the foregoing procedure, memory circuits may be evenly rotated in and out of these locations. The procedure could also be performed whenever the system is reconfigured in such a way that environmental characteristics may be changed, such as by adding an expansion card, or when memory circuits are replaced or added. Another method for enhancing performance is to measure the response time for all devices and associating the devices with the fastest response times with those locations that are accessed most frequently. The association may be accomplished either physically (by physically placing the components in desired locations) or logically (by assigning logical addresses to the components/locations). FIG. 7 illustrates a system 100 incorporating the memory controller 40 of FIG. 3. A processor 110 interfaces with the controller 40 via a system bus 120. The processor 120 communicates read and write requests to the controller 40 on the system bus 120. The controller 40 also communicates informational prompts to the user, such as notices that a memory circuit may be going bad or to rotate a component, to the processor 110 via the system bus 120. The processor 110 then displays these prompts on the monitor 112. The controller 40 includes local memory 50 and a phase detector-monitor circuit 60 connected to control logic 70. A plurality of SLDRAM memory circuits 30 are connected to the controller 40 by a DCLKX signal 190 and a communication path 180. The communication path 180 includes all of the remaining signals required for the control logic 70 to interface with the SLDRAM memory circuits 30, including the command path, data path, and CCLK signal discussed in connection with FIG. 3. It should again be noted that although the invention has been described with specific reference to memory circuits as the electronic components whose response time is monitored, the invention has broader applicability and may be used in the fashion described above to check the response time of any electronic component to an issued command. For example, it could be used to determine the response time of flash memories, CD readers, hard disks, or other electronic components. Accordingly, the above description and accompanying drawings are only illustrative of preferred embodiments which can achieve and provide the objects, features and advantages of the present invention. It is not intended that the invention be limited to the embodiments shown and described in detail herein. The invention is only limited by the spirit and scope of the following claims.
|
Same subclass Same class Consider this |
||||||||||
