Memory test method, device, test equipment and system
By selecting combinations from multiple devices under test based on hardware attributes and business requirements, and performing fault injection based on historical fault injection results, this solves the problem of joint testing of multiple devices in the existing technology and improves the accuracy of fault injection. and memory test reliability.
Patent Information
- Application Number
- CN202310203326.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-23
- Publication Date
- 2024-08-23
AI Technical Summary
Existing memory testing methods can only perform fault testing on a single device and cannot jointly test multiple devices in a cluster, resulting in insufficient accuracy and reliability of fault injection.
By selecting different combinations from multiple devices under test based on hardware attributes and business requirements, and performing fault injection based on historical fault injection results, the system-level memory test of multiple devices can be linked to improve the accuracy and reliability of fault injection.
It realizes the linked system-level memory test of multiple devices, improves the accuracy of fault injection and the reliability of memory test, and enables system maintenance personnel to intuitively see the test results.
Smart Images

Figure CN118535402A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a memory testing method, device, testing equipment and system. Background Art
[0002] As memory architecture evolves, in order to place more storage cells on a circuit board of limited size (such as a silicon wafer) and read and write memory faster, the process line width of memory is getting smaller and smaller, and the operating frequency is getting higher and higher, which makes the memory easy to heat up. Furthermore, in order to control the heating of memory, the operating voltage is forced to be continuously reduced, resulting in a continuous decrease in the reliability of memory.
[0003] Usually, fault-tolerant redundancy (such as Error Correction Code (ECC)) technology is used to correct memory errors and ensure the reliability, availability and serviceability (RAS) of the memory. As a result, the demand for memory testing to ensure the functional integrity of memory RAS is increasing. However, the current memory testing method can only test the memory injection fault of a single device, and cannot jointly test multiple devices in a cluster. Summary of the invention
[0004] The present application provides a memory testing method, apparatus, testing equipment and system to implement joint memory testing of multiple devices.
[0005] In a first aspect, a memory testing method is provided, the method comprising: determining at least two devices under test from multiple devices under test according to at least one of a hardware attribute and a business requirement indicated by a selection method. Performing fault injection on the at least two devices under test according to historical fault injection results of the at least two devices under test to obtain a fault injection result. The fault injection result is used to indicate a result of implementing a fault test on the memory in the at least two devices under test.
[0006] In this way, different combinations of devices under test are selected from multiple devices under test according to different conditions, and fault injection is performed on the devices under test according to historical fault injection results, so as to realize linkage system-level memory testing of multiple devices under test, thereby improving the accuracy of fault injection.
[0007] The hardware attributes include the type of device under test, memory manufacturer, and memory type. The business requirements include at least one of storage capacity, reliability, and latency.
[0008] In a possible implementation, performing fault injection on at least two devices under test according to historical fault injection results of at least two devices under test includes: controlling fault injection parameters for performing fault injection on at least two devices under test according to historical fault injection results of at least two devices under test, wherein the fault injection parameters include fault type, fault injection frequency, fault quantity, and fault injection stop. Thus, by controlling the fault injection parameters for performing fault injection, the injected faults are quantified when performing fault injection, thereby improving the accuracy of fault injection and the reliability of memory testing.
[0009] In another possible implementation, the fault injection includes at least one of hardware fault injection and software fault injection, and the hardware fault injection is used to indicate the injection of a fault into the memory of at least two devices under test, and the software fault injection is used to indicate the injection of a fault into software running on at least one device under test.
[0010] For example, hardware fault injection is performed on at least two devices under test according to historical fault injection results of the at least two devices under test.
[0011] For another example, software fault injection is performed on at least two devices under test according to historical fault injection results of the at least two devices under test.
[0012] For another example, hardware fault injection and software fault injection are performed on at least two devices under test according to historical fault injection results of at least two devices under test, thereby realizing a linkage test of hardware fault injection and software fault injection when testing the memory.
[0013] In another possible implementation, the device under test includes a fault injection module, which is respectively connected to the memory and the memory slot in the device under test; the fault injection module is used to tamper with the data obtained from the memory in the device under test. Thus, the fault injection module is set in the device under test to implement hardware fault injection on the device under test.
[0014] In another possible implementation, the method further includes: displaying the fault injection result, so as to facilitate obtaining the fault injection result and enable system maintenance personnel to intuitively see the result of the memory test.
[0015] In another possible implementation, performing fault injection on at least two devices under test according to historical fault injection results of the at least two devices under test includes: performing fault injection on at least two devices under test according to physical addresses of the at least two devices under test and slot numbers of memories in the devices under test.
[0016] In another possible implementation, before performing fault injection on at least two devices under test according to historical fault injection results of the at least two devices under test, the method further includes: receiving a remotely controlled memory test request, the memory test request being used to instruct to perform fault injection on multiple devices under test.
[0017] In a second aspect, a memory testing device is provided, the device comprising modules for executing the method in the first aspect or any possible design of the first aspect.
[0018] In a third aspect, a test device is provided, which includes at least one processor and a memory, wherein the memory is used to store a set of computer instructions; when the processor executes the set of computer instructions as a controller in the first aspect or any possible implementation of the first aspect, the operating steps of the method in the first aspect or any possible implementation of the first aspect are executed.
[0019] In a fourth aspect, a memory testing system is provided, which includes a controller and multiple devices under test, where the multiple devices under test include memory. The controller is used to execute the operating steps of the method in the first aspect or any possible implementation of the first aspect, and perform fault injection on the multiple devices under test.
[0020] In a fifth aspect, a computer-readable storage medium comprises: computer software instructions; when the computer software instructions are executed in a controller, the controller executes the operating steps of the method described in the first aspect or any possible implementation of the first aspect.
[0021] In a sixth aspect, a computer program product is provided. When the computer program product is run on a computer, the computer is caused to execute the operation steps of the method described in the first aspect or any possible implementation manner of the first aspect.
[0022] Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A schematic diagram of the architecture of a device under test provided for this application;
[0024] Figure 2 A schematic diagram of a memory testing system provided for this application;
[0025] Figure 3 A schematic diagram of another memory testing system provided for this application;
[0026] Figure 4 A flowchart of a memory testing method provided in this application;
[0027] Figure 5 A schematic diagram of a fault injection module provided in this application;
[0028] Figure 6 A schematic diagram of a fault injection provided for this application;
[0029] Figure 7 A schematic diagram of another fault injection provided for this application;
[0030] Figure 8 A schematic diagram of another fault injection provided for this application;
[0031] Fig. 9 A schematic diagram of the structure of a memory testing device provided in this application;
[0032] Fig.10 A schematic diagram of the structure of a test device provided in this application. DETAILED DESCRIPTION
[0033] For ease of description, the terms involved in this application are first briefly introduced.
[0034] Main memory is also called internal memory, abbreviated as main memory or memory. Main memory is an important component of the computer system, that is, the bridge for communication between external memory and central processing unit (CPU). Main memory is used to temporarily store the calculation data in the CPU and the data exchanged between the CPU and external memory such as hard disk. For example, when the computer starts running, the data to be calculated is loaded from the main memory to the CPU for calculation. After the calculation is completed, the CPU stores the calculation result in the main memory. For example, main memory includes dynamic random access memory (DRAM) and double data rate synchronous DRAM (DDR SDRAM).
[0035] Memory testing refers to the testing of memory appearance, memory structure and memory function during the memory production process. Among them, memory function testing includes memory reliability testing to ensure the availability, reliability and serviceability (RAS) of the memory.
[0036] Fault injection is a reliability verification technology that deliberately introduces faults into the system through controlled experiments and observes the behavior of the system when the fault exists. For example, injecting faults into the system to cause memory failures and observing the behavior of the system when the memory failure exists.
[0037] Software fault injection refers to the process of generating errors at the software level to cause hardware-level faults, such as modifying memory data, generating faults through application software, or generating faults through underlying software (such as the operating system).
[0038] Hardware fault injection refers to generating errors at the physical level, interfering with the hardware by changing environmental parameters (such as heavy ion radiation, electromagnetic interference, power supply interference, etc.) or by changing the pin input of the integrated circuit chip to achieve the effect of fault injection.
[0039] A computer cluster is a group of loosely or tightly connected computers that work together to perform large jobs. For example, a high performance computing (HPC) cluster. An HPC cluster contains multiple computers connected together using various interconnect technologies. Interconnect technologies can be, for example, infiniband (IB), remote direct memory access over converged Ethernet (RoCE), or transmission control protocol (TCP). HPC provides ultra-high floating point computing capabilities, which can be used to solve the computing needs of computing-intensive and massive data processing businesses. The combined computing power of multiple computers connected together can be used to handle large computing problems. For example, industries such as scientific research, weather forecasting, finance, simulation experiments, biopharmaceuticals, gene sequencing, and image processing involve large computing problems and computing needs that are solved using HPC clusters. Using HPC clusters to handle large computing problems can effectively shorten the computing time for processing data and improve computing accuracy. Generally, the management node in an HPC cluster can decompose the job, assign the decomposed job to multiple computing nodes, and multiple computing nodes complete the job in parallel.
[0040] The present application provides a memory testing method, that is, according to at least one of the hardware attributes and business requirements indicated by the selection method, at least two devices under test are determined from multiple devices under test. According to the historical fault injection results of the at least two devices under test, fault injection is performed on the at least two devices under test to obtain the results of fault testing of the memory in the at least two devices under test. Compared with injecting faults into a device under test by short-circuiting the link between the processor and the memory, it is impossible to control the fault type, fault injection frequency, number of faults, etc. The solution provided by the present application selects different combinations of devices under test from multiple devices under test according to different conditions, performs fault injection on the devices under test according to the historical fault injection results, and realizes the linkage system-level memory test of multiple devices under test, thereby improving the accuracy of fault injection.
[0041] The device under test is a device that provides a storage function. For example, the device under test is a device that contains a storage device (such as a memory) (such as a computer device or a server).
[0042] In some embodiments, multiple tested devices may form different types of clusters. For example, multiple tested devices for providing computing resources may form a computing cluster. The tested devices may be computing nodes in a computing cluster. For another example, multiple tested devices for providing storage resources may form a storage cluster. The tested devices may be storage nodes in a storage cluster.
[0043] The device under test may include multiple controllers. For example, the device under test is a blade server, each blade in the blade server can be used as a controller, and different controllers can provide different functions. Another example is that the device under test is a dual-control device, including two controllers, one controller serves as a backup for the other controller, improving the reliability of the device under test.
[0044] For example, Figure 1 As shown, the device under test A includes controller A and controller B. The device under test B includes controller A and controller B. Controller A and controller B include CPU, memory bar, hard disk and software system respectively. The software system includes operating system, application software and hardware driver, etc. Controller B can be used as a backup system for controller A to improve the reliability of the system. Controller B can also process different tasks from controller A to improve the computing power of the system.
[0045] In a possible networking architecture, the memory test system may include a test device that is connected to multiple devices under test via a network (eg, Ethernet or a local area network (LAN)).
[0046] The test device is used to determine at least two devices under test from multiple devices under test according to a selection method, and perform fault injection on the at least two devices under test according to historical fault injection results of the at least two devices under test, to obtain the result of fault testing of the memory in the at least two devices under test. The fault injection includes at least one of hardware fault injection and software fault injection.
[0047] In some embodiments, the device under test further comprises a fault injection module, which is respectively connected to the memory and the memory slot in the device under test. When the test device performs hardware fault injection on the device under test, the fault injection module is used to tamper with data obtained from the memory in the device under test.
[0048] The application scenarios of the memory testing method provided in the present application include: performing linkage testing on multiple controllers in a device under test; performing linkage testing on at least one controller in multiple devices under test, for example, each device under test provides one controller or multiple controllers; performing linkage testing on multiple devices under test that constitute a cluster.
[0049] For example, Figure 2 As shown, the memory test system includes a device under test 110 and a test device 120. The test device 120 is connected to the device under test 110 via a network. The device under test 110 includes a controller A and a controller B, each of which includes a CPU, a memory, a hard disk, an operating system, and application software. The test device 120 performs software fault injection on the controller A and the controller B included in the device under test 110. The controller A also includes a fault injection module A, and the memory in the controller A is connected to the memory slot of the controller A through the fault injection module A, so that the test device 120 performs hardware fault injection on the controller A through the fault injection module A.
[0050] For example, Figure 3 As shown, the memory test system includes N devices under test and a test device 120. The test device 120 is connected to the N devices under test via a network. The test device 120 can perform software fault injection on the N devices under test to perform linkage testing. The device under test A includes multiple fault injection modules. The test device 120 can perform hardware fault injection on the device under test A through multiple fault injection modules.
[0051] In some embodiments, the test device may include a test control platform. The test device may provide an application programming interface (API) module, i.e., an external software interface of the test device, for the test control platform or other upper-layer software to encapsulate as a human-computer exchange interface. The user may operate the user interface (UI) of the test control platform, the device under test may send a memory test request, and remotely control the execution of fault injection on at least two of the multiple devices under test.
[0052] Next, the implementation of the memory testing method provided in the present application is described in detail with reference to the accompanying drawings. Figure 4 A flowchart of a memory testing method provided in this application.
[0053] Step 410: The testing device determines at least two devices under test from multiple devices under test according to a selection method.
[0054] Method 1: The test device selects at least two devices under test from multiple devices under test according to the hardware attributes indicated by the selection method. The hardware attributes include the type of device under test, memory manufacturer, and memory type.
[0055] For example, the types of devices under test include computing devices and storage devices. Computing devices are mainly used to provide computing functions. Storage devices are mainly used to provide storage functions. A computing device is selected from multiple devices under test, and a memory test is performed on the memory in the computing device. Alternatively, a storage device is selected from multiple devices under test, and a memory test is performed on the memory in the storage device.
[0056] For another example, a device under test including memory of the same manufacturer is selected from multiple devices under test to perform memory testing.
[0057] For another example, a device under test including a memory of the same type is selected from a plurality of devices under test for memory testing, and the memory types include synchronous dynamic random access memory (SDRAM) and double data rate synchronous dynamic random access memory (DDR SDRAM).
[0058] In a second method, the test device selects at least two devices under test from multiple devices under test according to the business requirements indicated by the selection method. The business requirements include at least one of storage capacity, reliability, and latency. It is understandable that the memory contained in the two devices under test selected from the multiple devices under test meets at least one of storage capacity, reliability, or latency indicated by the business requirements.
[0059] In method three, the test device randomly selects at least two devices under test from multiple devices under test.
[0060] The present application does not limit the method for selecting the device under test. Any one or more methods may be used in combination for selection. For example, the test device selects at least two devices under test from multiple devices under test according to the hardware attributes and business requirements indicated by the selection method. For another example, the test device determines at least two devices under test and the memory in the device under test according to the association between the physical address of the device under test and the slot number of the memory in the device under test.
[0061] Step 420: The testing device performs fault injection on at least two devices under test according to historical fault injection results of the at least two devices under test to obtain a fault injection result.
[0062] The test device performs fault injection on at least two devices under test, and can refer to historical fault injection results to control fault injection parameters for performing fault injection on at least two devices under test. Thus, fault injection scheduling, software fault injection and hardware injection coordination are achieved, and the accuracy of the test device performing fault injection on the device under test is improved. The historical fault injection results include historical software fault injection results and historical hardware fault injection results. The fault injection parameters include fault type, fault injection frequency, fault number and fault injection stop.
[0063] For example, whether to perform hardware fault injection is determined based on historical software fault injection results, or whether to perform software fault injection is determined based on historical hardware fault injection results. For example, if the historical software fault injection results indicate that the reliability of the device under test is high, the test device can stop performing software fault injection and perform hardware fault injection, thereby testing the reliability of the device under test through different fault injection methods.
[0064] As another example, the test equipment injects a small number of faults into the device under test, determines that the reliability of the device under test is high based on historical fault injection results, and tests the fault tolerance capability of the device under test to handle a large number of faults by increasing the number of faults.
[0065] Optionally, the test device may obtain historical fault injection results of the device under test from a log of the test device. Alternatively, the test device obtains historical fault injection results of the device under test from the device under test based on a query instruction.
[0066] The historical fault injection results are used to indicate the expected results of performing fault injection on the device under test, that is, the result of performing fault injection on the device under test and the device under test being able to handle the injected fault. For example, the device under test has an ECC function, and the device under test injects a memory data tampering fault into the device under test. The expected result is that the device under test corrects the erroneous data according to the ECC function. For another example, the test device injects a CE storm fault into the device under test. The expected result is that the device under test has a CE storm fault and the device under test triggers a storm suppression start event.
[0067] In some embodiments, when the test device performs software fault injection on the device under test, it instructs the device under test to generate an error at the software level, causing a hardware-level fault in the memory of the device under test. For example, the test device instructs the device under test to modify the data of the software adaptation layer to implement software fault injection on the device under test. The software adaptation layer refers to the software layer between the hardware layer and the application layer, such as the Basic Input Output System (BIOS) system layer, the device management system (such as the Baseboard Management Controller (BMC)) layer, the driver software layer, etc., and the corresponding system-level faults can be realized respectively for the software injection errors of the software adaptation layer.
[0068] In other embodiments, when the test device performs hardware fault injection on the device under test, the test device may instruct a fault injection module included in the device under test to generate a hardware fault. For example, the fault injection module is used to tamper with data obtained from the memory of the device under test according to the hardware fault instruction of the test device.
[0069] Figure 5A schematic diagram of a fault error annotation module provided for the present application. The fault error annotation module includes a gold finger that can be inserted into the device under test, a gold finger socket that can be inserted into the memory stick, a data processing unit and a memory. After the fault error annotation module obtains the hardware fault instruction, the fault error annotation module reads data from the memory stick to which it is connected through the data bus and saves it to the memory. The data processing unit obtains data from the memory and performs error annotation by tampering, and then stores the tampered data in the memory. When the device under test reads data from the memory stick, the tampered data is read from the memory of the fault error annotation module. The data processing unit can be a high-speed microcontroller unit (MCU) (such as ARM, FPGA, DSP, etc.). The clock frequency of the data processing unit is the same as the clock frequency of the memory, and the clock frequency of the data processing unit is higher than the clock frequency of the memory.
[0070] Optionally, the test device stores a fault library, which includes software faults and hardware faults. Figure 6 As shown, the test device can select software faults or hardware faults from the fault library and inject the software faults or hardware faults into the device under test. For example, the software faults can be stored in the test device in the form of scripts or command sets. The test device converts the scripts or commands of the software faults into instructions that the device under test can recognize, and injects the instructions of the software faults into the software adaptation layer of the device under test. The device under test can also convert the hardware faults into instructions that the device under test can recognize, and inject the instructions of the hardware faults into the fault injection module of the device under test.
[0071] For example, Figure 7 A schematic diagram of a flow chart of a test device performing fault injection on a device under test provided in the present application.
[0072] Step 710: The test device selects a fault from the fault library and determines the scheduling operation of the fault injection according to the historical fault injection results. The scheduling operation includes adjusting the fault injection frequency, terminating the fault injection, etc. The test device selects the corresponding fault injection workflow according to the fault type and starts the fault set injection test.
[0073] Step 720: The testing device determines whether it is a hardware failure.
[0074] If the selected fault is a software error, execute step 730. If the selected fault is a hardware error, execute step 760.
[0075] Step 730: The testing device determines a device under test for executing software fault injection.
[0076] Step 740: The test device selects a corresponding error injection script or command, calls a preset software script, or needs to inject a corresponding command into the device under test to complete the error injection or operation preparation.
[0077] Step 750: The test device performs software fault injection on the software adaptation layer of the device under test, and sends the software script or command to the node to complete the fault injection.
[0078] Step 760: The test device determines a device under test for performing hardware fault injection.
[0079] Step 770: The test equipment encapsulates the error annotation instruction and converts the hardware fault into an instruction recognizable by the fault error annotation module. The instruction here can be dynamically generated or preset in advance.
[0080] Step 780: The test device injects a hardware fault into the fault injection module of the device under test, and sends an injection instruction to the corresponding hardware injection module to complete the injection.
[0081] Step 790: The test device evaluates the fault injection result.
[0082] In some embodiments, the test device stores the physical address of the device under test and the slot number of the memory in the device under test. The test device performs software fault injection into the device under test according to the physical address of the device under test. The test device performs hardware fault injection into the device under test according to the physical address of the device under test and the slot number of the memory in the device under test.
[0083] After the test device performs fault injection on at least two devices under test, the devices under test feed back the fault injection result to the test device, or the test device obtains the fault injection result from the devices under test based on the query instruction. The fault injection result is used to indicate the result of the fault test on the memory in the at least two devices under test. The fault injection result may indicate whether it meets the expected result after the fault injection is performed on the devices under test or whether it does not meet the expected result after the fault injection is performed on the devices under test.
[0084] For example, assume that the test device performs a memory test on cluster C based on fault set E, that is, injects the faults in fault set E into the nodes in cluster C to evaluate the fault tolerance of the nodes in cluster C. Cluster C includes 3 nodes for load balancing and backup. Fault set E includes drive abnormal reset faults and memory correctable error (CE) storm faults.
[0085] Fault 1: Perform a driver abnormal reset fault injection on node 1. The expected result is that the driver abnormal reset occurs on node 1, and there are no alarms on other nodes.
[0086] Fault 2: Node 1 is resetting due to a driver abnormality, and a CE storm fault is injected into Node 2. The expected result is that a CE storm fault occurs on Node 2. Node 2 triggers a storm suppression start event, and no new alarms are generated on other nodes.
[0087] Fault 3: After the driver abnormality of node 1 is reset, the CE storm fault of node 2 is eliminated. The expected result is that after the driver abnormality of node 1 is reset, the CE storm fault of node 2 is eliminated, the storm suppression stop event is triggered, and no new alarms are generated on all nodes.
[0088] Figure 8 A test operation flow diagram of a test device provided in the present application that performs fault injection on node 1 and node 2. Since the driver abnormal reset fault is a software fault, the test device injects the driver abnormal reset fault into the software adaptation layer of node 1. After the test device performs driver abnormal reset fault injection on node 1, it determines that node 1 meets the expected result based on the fault injection result, and then performs CE storm fault injection on node 2. Otherwise, the driver abnormal reset fault injection is repeatedly performed on node 1. If the requirement is still not met after the number of retries is reached, the fault injection result is fed back that does not meet the expected result, and the test is terminated.
[0089] Since the CE storm fault is a hardware fault, the test equipment injects the CE storm fault into the fault injection module of node 2. After the test equipment performs CE storm fault injection on node 2, it determines that node 2 meets the expected result based on the fault injection result and resolves the CE storm fault. Otherwise, the CE storm fault injection is repeated on node 2. If the requirement is still not met after the number of retries is reached, the fault injection result is fed back as not meeting the expected result and the test is terminated.
[0090] The memory testing method provided by the present application is that the test equipment injects the fault concentration software fault and / or hardware fault indicated by the user into the device under test, injects the software fault into the software adaptation layer of the device under test, and injects the hardware fault into the hardware error injection module of the device under test. The two are linked to each other to achieve a linked system-level memory test of multiple devices under test. In addition, the test equipment can also perform fault injection on at least two devices under test based on historical fault injection results to improve the accuracy of fault injection. Evaluate the fault tolerance of the device under test based on the fault injection results to facilitate the correction of the device under test and improve the fault tolerance of the device under test.
[0091] It is understandable that in order to implement the functions in the above embodiments, the controller includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and method steps of each example described in the embodiments disclosed in this application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.
[0092] Combined with the above Figures 1 to 8 , describes in detail the memory test method provided according to this embodiment, and will now be combined with Fig. 9, describing the memory testing device provided according to this embodiment.
[0093] Fig. 9 Schematic diagram of the structure of possible memory test devices provided in this embodiment. These memory test devices can be used to implement the functions of the test equipment in the above method embodiment, and thus can also achieve the beneficial effects possessed by the above method embodiment. In this embodiment, the memory test device can be as follows Figure 4 The test device shown may also be a module (such as a chip) applied to a server.
[0094] like Fig. 9 As shown, the memory testing device 900 includes a communication module 910, a fault injection module 920 and a storage module 930. The memory testing device 900 is used to implement the above Figure 4 The method embodiments shown in the figure test the functionality of the device.
[0095] The communication module 910 is used to obtain a selection method, where the selection method is used to indicate at least one of a hardware attribute and a business requirement.
[0096] The fault injection module 920 is used to determine at least two devices under test from multiple devices under test according to the selection method, and perform fault injection on the at least two devices under test according to the historical fault injection results of the at least two devices under test to obtain the fault injection results. The fault injection results are used to indicate the results of the fault test on the memory in the at least two devices under test. For example, the fault injection module 920 is used to perform Figure 4 Step 410 and step 420.
[0097] The storage module 930 is used to store software faults, hardware faults, and hardware attributes, so that the fault injection module 920 can determine the device under test and perform fault injection on the device under test.
[0098] Optionally, the fault injection module 920 is specifically used to control fault injection parameters for performing the fault injection on the at least two devices under test according to historical fault injection results of the at least two devices under test, and the fault injection parameters include fault type, fault injection frequency, fault number and fault injection stop.
[0099] It should be understood that the memory test device 900 of the embodiment of the present application can be implemented by an application-specific integrated circuit (ASIC) or a programmable logic device (PLD), and the PLD can be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof. It can also be implemented by software. Figure 4 The memory testing method shown and its various modules may also be software modules, and the memory testing device 900 and its various modules may also be software modules.
[0100] The memory testing device 900 according to the embodiment of the present application may correspond to executing the method described in the embodiment of the present application, and the above and other operations and / or functions of each unit in the memory testing device 900 are respectively to implement Figure 4 For the sake of brevity, the corresponding processes of each method in are not repeated here.
[0101] Fig.10 A schematic diagram of the structure of a test device 1000 provided in this embodiment. As shown in the figure, the test device 1000 includes a processor 1010, a bus 1020, a memory 1030, a communication interface 1040 and a memory unit 1050 (also referred to as a main memory unit). The processor 1010, the memory 1030, the memory unit 1050 and the communication interface 1040 are connected via the bus 1020.
[0102] It should be understood that in this embodiment, the processor 1010 may be a CPU, and the processor 1010 may also be other general-purpose processors, digital signal processors (DSP), ASICs, FPGAs or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0103] The communication interface 1040 is used to implement the communication between the test device 1000 and an external device or component. Figure 4When the function of the test device is shown, the communication interface 1040 is used to obtain a selection method, the processor 1010 determines at least two devices under test from multiple devices under test according to the selection method, performs fault injection on the at least two devices under test according to the historical fault injection results of the at least two devices under test, and obtains a fault injection result.
[0104] The bus 1020 may include a path for transmitting information between the above components (such as the processor 1010, the memory unit 1050, and the memory 1030). In addition to the data bus, the bus 1020 may also include a power bus, a control bus, and a status signal bus. However, for the sake of clarity, various buses are marked as bus 1020 in the figure. The bus 1020 may be a Peripheral Component Interconnect Express (PCIe) bus, or an extended industry standard architecture (EISA) bus, a unified bus (Ubus or UB), a computer express link (CXL), a cache coherent interconnect for accelerators (CCIX), etc. The bus 1020 can be divided into an address bus, a data bus, a control bus, etc.
[0105] As an example, the test device 1000 may include multiple processors. The processor may be a multi-core (multi-CPU) processor. The processor here may refer to one or more devices, circuits, and / or computing units for processing data (such as computer program instructions).
[0106] It is worth mentioning that Fig.10 In the example, the test device 1000 includes a processor 1010 and a memory 1030. Here, the processor 1010 and the memory 1030 are respectively used to indicate a type of device or equipment. In a specific embodiment, the number of each type of device or equipment can be determined according to business requirements.
[0107] The memory unit 1050 can be used to store software failures and hardware failures. For example, the memory unit 1050 can be a volatile memory pool or a non-volatile memory pool, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0108] The memory 1030 may be used to store a set of computer instructions for implementing the above method embodiments. For example, the memory 1030 may be a disk, such as a mechanical hard disk or a solid state disk.
[0109] The test device 1000 may be a general device or a dedicated device. Optionally, the test device 1000 may also be a server or other device with computing capabilities.
[0110] It should be understood that the test device 1000 according to this embodiment may correspond to the memory test device 900 in this embodiment, and may correspond to the memory test device 900 according to the embodiment. Figure 4 The corresponding subject in any method, and the above and other operations and / or functions of each module in the memory testing device 900 are respectively to achieve Figure 4 For the sake of brevity, the corresponding processes of each method in are not repeated here.
[0111] An embodiment of the present application provides a memory testing system, which includes a testing device and multiple devices under test, where the multiple devices under test include memory. The testing device is used to execute the operating steps of the memory testing method described in the above method embodiment and perform fault injection on the multiple devices under test.
[0112] The method steps in this embodiment can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a computing device. Of course, the processor and the storage medium can also exist in a computing device as discrete components.
[0113] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is executed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device or other programmable device. The computer program or instruction may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instruction may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, for example, a floppy disk, a hard disk, a tape; it may also be an optical medium, for example, a digital video disc (DVD); it may also be a semiconductor medium, for example, a solid state drive (SSD). The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A memory testing method, characterized in that: include: Determine at least two devices under test from a plurality of devices under test according to a selection method, wherein the selection method is used to indicate at least one of a hardware attribute and a business requirement; Fault injection is performed on the at least two devices under test according to historical fault injection results of the at least two devices under test to obtain fault injection results, where the fault injection results are used to indicate results of fault testing of memories in the at least two devices under test.
2. The method according to claim 1, characterized in that: The hardware attributes include the type of the device under test, memory manufacturer and memory type.
3. The method according to claim 1 or 2, characterized in that: The business requirements include at least one of storage capacity, reliability and latency.
4. The method according to any one of claims 1 to 3, characterized in that Performing fault injection on the at least two devices under test according to historical fault injection results of the at least two devices under test includes: Fault injection parameters for performing the fault injection on the at least two devices under test are controlled according to historical fault injection results of the at least two devices under test, wherein the fault injection parameters include fault type, fault injection frequency, fault quantity, and fault injection stop.
5. The method according to any one of claims 1 to 4, characterized in that The fault injection includes at least one of hardware fault injection and software fault injection, the hardware fault injection is used to indicate the injection of a fault into the memory of the at least two devices under test, and the software fault injection is used to indicate the injection of a fault into the software running on the at least one device under test.
6. The method according to claim 5, characterized in that The device under test comprises a fault error injection module, which is respectively connected to the memory and the memory slot in the device under test; the fault error injection module is used to tamper with the data obtained from the memory in the device under test.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: The fault injection result is displayed.
8. A memory testing device, characterized in that: The device comprises: A communication module, used to obtain a selection method, where the selection method is used to indicate at least one of a hardware attribute and a business requirement; A fault injection module, used for determining at least two devices under test from a plurality of devices under test according to a selection method; The fault injection module is further used to perform fault injection on the at least two devices under test according to historical fault injection results of the at least two devices under test to obtain fault injection results, wherein the fault injection results are used to indicate the results of fault testing of the memory in the at least two devices under test.
9. The device according to claim 8, characterized in that The hardware attributes include the type of the device under test, memory manufacturer and memory type.
10. The device according to claim 8 or 9, characterized in that The business requirements include at least one of storage capacity, reliability and latency.
11. The device according to any one of claims 8 to 10, characterized in that When the fault injection module performs fault injection on the at least two devices under test according to the historical fault injection results of the at least two devices under test, it is specifically used to: Fault injection parameters for performing the fault injection on the at least two devices under test are controlled according to historical fault injection results of the at least two devices under test, wherein the fault injection parameters include fault type, fault injection frequency, fault quantity, and fault injection stop.
12. A testing device, characterized in that: The testing device comprises a memory and at least one processor, wherein the memory is used to store a set of computer instructions; when the processor executes the set of computer instructions, the operation steps of the method described in any one of claims 1 to 7 are performed.
13. A memory testing system, characterized in that: The memory testing system includes a testing device and a plurality of devices under test, wherein the plurality of devices under test include memory, and the testing device is used to execute the operation steps of the method described in any one of claims 1 to 7 to perform fault injection on the plurality of devices under test.
Citation Information
Cited By
Memory error injection test method, interface, device, storage medium and electronic equipment
CN119440931A
Memory injection error test method, interface, device, storage medium and electronic device
CN119440931B
Server alarm function detection method and electronic equipment
CN121396851A
