Larger computer systems generally include a number of discrete subsystems, known as cells, for performing tasks under control of an operating system. In these systems, multiple copies of an operating system may be running at the same time. Each copy of the operating system is referred to as an instance of the operating system. Each instance of the operating system causes tasks to be performed by having one or more cells allocated to it and causing the cell(s) to perform the tasks. The type and number of cells allocated to an instance of the operating system may vary over time with the type and number of tasks the instance has to perform.
A system may include a number of cells that are not allocated to an instance of the operating system at a given time. These cells, known as floating cells, remain unused until they are allocated to an instance of the operating system. The other cells, known as allocated or owned cells, are under the control of an instance of the operating system. Many of the allocated cells may be constantly used by their respective operating system instances. Some of these allocated cells, however, may go unused by the instance to which the cells are allocated for relatively long periods of time.
The reliability of a computer system may depend on the reliability of the individual cells in the system. For example, if a cell in the system fails, the failing cell could potentially cause other cells in the system to fail and cause undesirable results to occur during operation of the system. Because both floating and allocated cells may be unused for relatively long periods of time, failures associated with these cells may take extended amounts of time to appear and may cause undesirable results when they do appear.
Accordingly, it would be desirable to be able to detect cell failures in a computer system before the failures cause undesirable results during operation of the system.
According to one exemplary embodiment, a computer system is provided that includes a system module, a test module, a first cell, and a second cell. The system module is configured to cause the test module to test the first cell subsequent to the second cell being allocated to a first instance of an operating system.
a is a block diagram illustrating an embodiment of selected portions of the computer system shown in
b is a block diagram illustrating an embodiment of selected portions of the computer system shown in
c is a block diagram illustrating an embodiment of selected portions of the computer system shown in
In the following detailed description of the preferred embodiments, reference is made to the accompanying drawings which form a part hereof, and in which is shown by way of illustration specific embodiments in which the invention may be practiced. It is to be understood that other embodiments may be utilized and structural or logical changes may be made without departing from the scope of the present invention. The following detailed description, therefore, is not to be taken in a limiting sense, and the scope of the present invention is defined by the appended claims.
In one aspect of the present disclosure, a computer system includes a test module configured to perform tests on cells in the computer system during operation of the computer system. To test a cell, a system module causes the cell to be de-allocated from use by an operating system, if necessary, and then causes a test module to perform functional and/or electrical tests on the cell. The test module detects any errors in response to the tests and causes remedial action to be performed by the system module in response to any errors.
The set of floating cells 30 includes cells 40a through 40(n) where n is greater than or equal to one and represents the nth cell. The set of cells allocated to the first instance of the operating system 50a includes cells 60a through 60(o) where o is greater than or equal to one and represents the oth cell, and the set of cells allocated to the mth instance of the operating system 50(m) includes cells 70a through 70(p) where p is greater than or equal to one and represents the pth cell. Each set 30 and 50a through 50(m) may include any number of cells.
As used herein, ‘operating system instance 50’ refers to any one of the sets of cells allocated to an instance of the operating system 50a through 50(m). ‘Cell 40’, ‘cell 60’, and ‘cell 70’ refers to any one of cells 40a through 40(n), cells 60a through 60(o), and cells 70a through 70(p), respectively, and ‘cells 40’, ‘cells 60’, and ‘cells 70’ refers to the set of cells 40a through 40(n), cells 60a through 60(o), and cells 70a through 70(p), respectively.
System module 12 comprises hardware and/or software configured to manage computer system 10. In particular, system 12 allocates floating cells 40 to operating system instances 50 in response to requests from the instances and de-allocates cells 60 and 70 in response to releases from the instances. System 12 also causes floating cells 40 as well as allocated cells 60 and cells 70 to be tested periodically during operation of computer system 10 using test module 20.
Test module 20 comprises hardware and/or software configured to test cells 40, cells 60, and cells 70 of computer system 10. In response to signals from system module 12, test module 20 performs functional and/or electrical tests on individual cells 40, 60, and 70. Test module 20 detects any errors that occur in response to the tests and causes remedial action to be taken by system module 12 in response to the errors.
As illustrated in
a is a block diagram illustrating an embodiment of selected portions of the computer system shown in
As used herein, ‘processor 110’ refers to any one of processors 10a through 110(q), and ‘processors 110’ refers to the set of processors 10a through 110(q). Processor 110a is coupled to a cache 112, and processor 110b includes a cache 114. Caches 112 and 114 may store any type of information such as instructions and data. Other processors 110 may include or be operable with any type or number of caches. Processors 110 execute instructions from an operating system (not shown) and other programs using memory 130.
Core electronics complex 120 includes a system controller 122 coupled to a set of I/O controllers 124 using one or more connections 128. System controller 122 includes a memory controller 126 which is configured to store information into and read information from memory 130 in response to write and read transactions, respectively, from processors 110 and I/O devices 140. Memory controller 126 may include hardware and/or software configured to perform memory scrubbing or other error correction functions on memory 130 in response to reading information from memory 130.
I/O controllers 124 may include any type and number of controllers configured to manage one or more I/O devices 140. Examples of I/O controllers 124 include I2C controllers, IDE/ATA controllers, SATA controllers, PCI controllers, SCSI controllers, USB controllers, IEEE 1394 (Firewire) controllers, PCMCIA controllers, parallel port controllers, and serial port controllers. In one embodiment, I/O controllers 124 comprise multiple microchips that include an intermediate bus coupled to system controller 122, PCI controllers coupled to the intermediate bus, and SCSI, IDE and others controllers coupled to the PCI controllers. As used herein, ‘I/O controller 124’ refers to a single I/O controller in I/O controllers 124, and ‘I/O controllers 124’ refers to the set of I/O controllers 124.
Memory 130 comprises any type of memory managed by memory controller 126 such as RAM, SRAM, DRAM, SDRAM, and DDR SDRAM. In response to commands from system firmware (not shown) or operating system 132, memory controller 130 may cause information to be loaded from an I/O device 140 such as a hard drive or a CD-ROM drive into memory 130.
I/O devices 140 may include any type and number of devices configured to communicate with computer system 100 using I/O controllers 124. Each I/O device 140 may be internal or external to computer system 100 and may couple to an expansion slot in a motherboard (not shown) or a connector in a chassis (not shown) that houses computer system 100 that is in turn coupled to an I/O controller 124. I/O devices 140 may include a network device (not shown) configured to allow computer system 100 to communicate with other computer systems and a storage device (not shown) configured to store information. As used herein, ‘I/O device 140’ refers to a single I/O device in I/O devices 140, and ‘I/O devices 140’ refers to the set of I/O devices 140.
Test module 20 couples to an I/O controller 124, e.g., an I2C controller, using a connection 150, e.g., an I2C connection. Test module 20 tests cell 40/60/70 using the connection 150.
Cell 40/60/70 communicates with computer system 10 using a connection 152 that is coupled to an I/O controller 124. In other embodiments, cell 40/60/70 may communicate with computer system 10 in other ways.
b is a block diagram illustrating an embodiment of selected portions of the computer system shown in
Test module 20 couples to port of controller 160 using a connection 180. Test module 20 tests cell 40/60/70 using the connection 180.
Cell 40/60/70 communicates with computer system 10 using a connection 182 that is coupled to controller 160. Controller 160 receives transactions, such as read and write transactions, from computer system 10 and causes information to be read from or written to one or more of storage devices 170 in response to the transactions. In other embodiments, cell 40/60/70 may communicate with computer system 10 in other ways.
c is a block diagram illustrating an embodiment of selected portions of the computer system shown in
Test module 20 couples to port of controller 190 using a connection 210. Test module 20 tests cell 40/60/70 using the connection 210.
Cell 40/60/70 communicates with computer system 10 using a connection 212 that is coupled to controller 190. Controller 190 receives transactions from computer system 10 and causes the transaction to be provided to I/O devices 200. Controller 190 also receives transactions from I/O devices 200 and causes the transaction to be provided to computer system 10. In other embodiments, cell 40/60/70 may communicate with computer system 10 in other ways.
Processor 300 is configured to execute system processes 330 and communicate with test module 20 and cells 40, 60, and 70 using interface 310. System processes 330 include a set of software routines configured to manage cell usage by instances of an OS. System processes 330 creates and manages floating cell list 340 to track cells 40 that are not allocated to an OS instance. System processes 330 creates and manages each OS cell list 350 to track cells that are allocated to an OS instance. Each OS cell list 350 is associated with an instance of the operating system and identifies cells allocated to that instance. For example, a first OS cell list 350 lists cells 60 that are assigned to an OS instance 50a (shown in
System processes 330 also manage the testing of cells 40, 60, and 70 by identifying cells that are to be tested and causing test module 20 to test the cells during operation of computer system 10, i.e., while at least one instance of the operating system is running. System processes 330 may identify cells that are to be tested according to a schedule or other algorithm that determines when a cell 40, 60, or 70 should be tested. In one embodiment, floating cell list 340 and OS cell lists 350 include information with each cell identifier that indicates when a cell is to be tested or when a cell was previously tested. System processes 330 may use this information to identify cells that are to be tested. In another embodiment, floating cell list 340 and/or OS cell lists 350 include information with each cell identifier that indicates the applications or type of applications that a cell is running or is configured to run. The testing of cells that are running or are configured to run performance-critical applications may be deferred or delayed to allow a system to maintain performance levels. In a further embodiment, floating cell list 340 and/or OS cell lists 350 include information with each cell identifier that indicates a cell testing value that is used to determine the frequency and/or test priority of a cell. Certain cells, such as system-critical cells, may be given cell testing values that ensure that they are tested with increase regularity and/or priority of other cells in the system. In other embodiments, system processes 330 may access other information to identify cells that are to be tested.
If a cell to be tested is allocated to an OS instance, system processes 330 may cause the cell to be de-allocated from the OS instance to allow the cell to be tested. System processes 330 may cause a substitute cell to be allocated to the OS instance to replace the cell to be tested. System processes 330 cause test module 20 to be notified of cells that are to be tested using interface 310.
Processor 400 is configured to execute diagnostic processes 430 and communicate with system module 12 and cells 40, 60, and 70 using interface 410. Diagnostic processes 430 include a set of software routines configured to test cells identified by system module 12. Diagnostic processes 430 manage the execution of diagnostic tests 440 and cause remedial action to be performed in the event that an error is detected. Diagnostic tests 440 include a set of software routines that are configure to test cells and store the status and results of the tests in status and results 450. The software routines cause functional and electrical tests to be performed on a cell. If an error is detected by a diagnostic test 440, the test causes diagnostic processes 430 to be notified of the error. Diagnostic processes 430 cause remedial action to be performed in response to the error. The remedial action may include notifying the operating system and/or a system administrator of the error or keeping the cell de-allocated from use. Diagnostic processes 430 may also allow an operating system or system administrator to access status and results 450.
Subsequent to being tested, system module 12 may allocate a cell to an operating system instance 50.
Although shown as separate modules in
A determination is made by system module 12 as to whether a request for a cell has been received as indicated in a block 506. If a request has been received, then a cell 40 is allocated from floating list 340 and added to the OS instance list 350 associated with the OS instance that requested the cell as indicated in a block 508.
If a request has not been received, then a determination is made by system module 12 as to whether a release of a cell has been received as indicated in a block 510. If a release has been received, then a cell 60 or 70 is de-allocated from the OS instance that released the cell, removed from the OS instance list 350 associated with the OS instance, and added to floating list 340 as indicated in a block 512. The function of block 506 is repeated subsequent to the functions of blocks 510 and 512.
If there is a cell 40 to be tested, then tests are performed on cell 40 by test module 20 as indicated in a block 606. System module 12 notifies test module 20 of cell 40 to cause the cell to be tested. A determination is made by test module 20 as to whether an error has been detected in cell 40 as indicated in a block 608. If an error has been detected, then test module 20 causes system module 12 to perform remedial action as indicated in a block 610 and results of the test are stored by test module 20 as indicated in a block 612. If an error has not been detected, then results of the test are stored by test module 20 as indicated in the block 612.
Subsequent to the function of block 612, a determination is made by system module 12 as to whether there is another cell 40 to test as indicated in a block 614. If there is another cell 40 to test, then the method returns to the function of block 606. If there is not another cell 40 to test, then the method repeats the function of block 602.
If there is a cell 60 or 70 to be tested, then system module 12 de-allocates cell 60 or 70 from OS instance 50 as indicated by a block 706. System module 12 allocates a substitute cell 40 from floating cell list 340 to OS instance 50 as indicated in a block 708. Tests are performed on cell 60 or 70 by test module 20 as indicated in a block 710. System module 12 notifies test module 20 of cell 60 or 70 to cause the cell to be tested. A determination is made by test module 20 as to whether an error has been detected in cell 60 or 70 as indicated in a block 712. If an error has been detected, then test module 20 causes system module 12 to perform remedial action as indicated in a block 714 and results of the test are stored by test module 20 as indicated in a block 716. If an error has not been detected, then results of the test are stored by test module 20 as indicated in the block 716.
Subsequent to the function of 716, a determination is made by system module 12 as to whether there is another cell 60 or 70 to test as indicated in a block 718. If there is another cell 60 or 70 to test, then the method returns to the function of block 710. If there is not another cell 60 or 70 to test, then the method repeats the function of block 602.
Although specific embodiments have been illustrated and described herein, it will be appreciated by those of ordinary skill in the art that a variety of alternate and/or equivalent implementations may be substituted for the specific embodiments shown and described without departing from the scope of the present invention. This application is intended to cover any adaptations or variations of the specific embodiments discussed herein. Therefore, it is intended that this invention be limited only by the claims and the equivalents thereof.