Memory fault prediction method and system

Through the collaborative work of the host unit and baseboard management controller, multi-dimensional analysis and fusion prediction models solve the existing problem of low memory failure prediction performance, improve memory failure prediction performance and system reliability, and reduce deployment overhead.

CN118860731APending Publication Date: 2024-10-29INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410851428.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing memory failure prediction methods have weak performance, low system reliability, high deployment overhead, and cannot effectively predict memory failures, resulting in serious failure consequences.

Method used

Through the collaborative work of the host unit and the baseboard management controller, the physical address of the target memory is obtained and analyzed in multiple dimensions, and the analysis results are input into the multi-dimensional prediction model for fusion to predict whether uncorrectable errors will occur in the memory.

Benefits of technology

It improves memory fault prediction performance, enhances system reliability, reduces deployment overhead, realizes full-link automated processing from fault detection to analysis results, and reduces fault consequences.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118860731A_ABST
    Figure CN118860731A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a memory fault prediction method and system, and the method comprises the steps that under the condition that a correctable error occurs in a target memory, a first fault analysis module of a host unit obtains a physical address of the target memory, and analyzes the physical address in M dimensions to obtain M first analysis results, the first analysis result is used for representing that correctable errors occur in corresponding dimensions in the target; the baseboard management controller obtains M first analysis results, and inputs the M first analysis results into M prediction models corresponding to the M dimensions to obtain M prediction values; the baseboard management controller fuses the M prediction values to obtain a fusion value, and the fusion value is used for predicting whether uncorrectable errors occur in the target memory or not. Through the memory fault prediction method and device, the problem that the memory fault prediction performance is poor in the prior art is solved, and the effect of improving the memory fault prediction performance is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of artificial intelligence, and specifically, to a method and system for predicting memory faults. Background Art

[0002] The reliability of memory is an important indicator that affects the performance of the entire server system. Once a memory failure occurs, it may cause a server system failure, resulting in system crash or data loss. When an uncorrectable error occurs, it may even cause the server to shut down. Therefore, reducing the impact of memory failure on the server and ensuring the reliability of memory are crucial to ensure the stable operation of the server system.

[0003] Traditional fault diagnosis technology can only locate the location of the memory fault after it occurs, and the diagnosis result is given after the fault occurs, which cannot reverse the serious consequences of the error that has occurred. Therefore, it is necessary to predict the memory fault of the device before the fault occurs and take corresponding maintenance measures to avoid the serious consequences after the fault occurs. However, the current method of memory fault prediction usually uses a dedicated inference server node, and the prediction model deployed on the inference node performs the prediction action. Since the inference node is usually connected to each server node to be predicted through a star topology, once the inference node fails, the memory fault prediction service will be terminated, making the reliability of the fault prediction system weak and the memory fault prediction performance weak; and the deployment of the prediction system requires additional manpower and material resources. When the data center is large, it requires a large overhead to achieve memory fault prediction.

[0004] There is currently no effective solution to the above problems. Summary of the invention

[0005] The embodiments of the present application provide a method and system for memory fault prediction, so as to at least solve the problem of weak memory fault prediction performance in the related art.

[0006] According to an embodiment of the present application, a method for predicting memory faults is provided, comprising: in the event that a correctable error occurs in a target memory, a first fault analysis module of a host unit obtains a physical address of the target memory, and analyzes the physical address in M ​​dimensions to obtain M first analysis results, wherein M is an integer greater than or equal to 2, and the M dimensions are obtained based on different storage unit granularity divisions of the target memory, and the first analysis result is used to indicate that the correctable error occurs in the target memory in the corresponding dimension; a baseboard management controller obtains the M first analysis results, inputs the M first analysis results into M prediction models corresponding to the M dimensions, and obtains M prediction values; the baseboard management controller fuses the M prediction values ​​to obtain a fused value, wherein the fused value is used to predict whether an uncorrectable error will occur in the target memory.

[0007] In an exemplary embodiment, the first fault analysis module in the host unit obtains the physical address of the target memory, including: when the modular electronic control unit of the host unit detects that the correctable error occurs in the target memory, the detected fault information is sent to a register, and an interrupt signal is sent to an interrupt control management module of the host unit; when the interrupt control management module receives the interrupt signal, the first fault analysis module is triggered to obtain the physical address from the fault information stored in the register.

[0008] In an exemplary embodiment, the baseboard management controller obtains the M first analysis results from the host unit, and inputs the M first analysis results into M prediction models corresponding to the M dimensions, including: during the self-test phase when the system starts up, the host unit reports the M first analysis results output by the first fault analysis module to the baseboard management controller through the first interface of the host unit; the baseboard management controller stores the M first analysis results into a data storage module; the baseboard management controller inputs the M first analysis results into the M prediction models to obtain M prediction values.

[0009] In an exemplary embodiment, when the M prediction models are online models, the baseboard management controller inputs the M first analysis results into the M prediction models to obtain M prediction values, including: when the correctable error occurs in the target memory within the tth prediction cycle, the baseboard management controller obtains, in the data storage module, a correctable error sequence of the target memory within the tth prediction cycle, wherein the correctable error sequence includes an analysis result obtained by the first fault analysis module parsing the physical address of the target memory within the tth prediction cycle, and the correctable error sequence includes the M first analysis results; the baseboard management controller determines a first error sequence corresponding to the target memory within the t-1th prediction cycle; the baseboard management controller inputs the correctable error sequence and the first error sequence into M prediction models to obtain the M prediction values.

[0010] In an exemplary embodiment, the baseboard management controller inputs the correctable error sequence and the first error sequence into M prediction models to obtain the M prediction values, including: the baseboard management controller divides the correctable error sequence into q correctable error subsequences according to the M dimensions, wherein each of the q correctable error subsequences corresponds to one dimension of the M dimensions, and q is a positive integer less than or equal to M; the baseboard management controller determines a target prediction model corresponding to each correctable error subsequence in the M prediction models, wherein each correctable error subsequence has the same dimension to which its corresponding target prediction model belongs; the baseboard management controller inputs the correctable error subsequence and the first error sequence into the target prediction model to obtain the prediction value output by the target prediction model.

[0011] In an exemplary embodiment, the baseboard management controller determines that the target memory has a first error sequence corresponding to the first error sequence in the t-1th prediction period, including: in the case where there is a historical fault score, the baseboard management controller calculates the historical fault score and the actual number distributed in each dimension in the t-1th prediction period by the following formula to obtain the first error sequence;

[0012]

[0013] Where 6 is the error scaling factor, X t is the sequence value in the historical correctable error sequence.

[0014] In an exemplary embodiment, the baseboard management controller determines the historical fault score by:

[0015] The historical fault score in the t-1th prediction period is determined by the following formula:

[0016]

[0017]

[0018] Wherein, yτ is the actual number of correctable errors of the target memory distributed in each dimension in the t-2th prediction period, σ is a constant, α is a preset scaling factor, and β is a preset offset.

[0019] In an exemplary embodiment, the baseboard management controller fuses the M predicted values ​​to obtain a fused value, including: predicting the fused value by the following formula:

[0020] P(t)=P cell (t)+d·(P row (t)+P col (t))+d 2 ·P bank (t)+d 3 ·P dev (t)+d 4 ·P rank (t),

[0021] The d is a decay factor less than 1, P cell (t) is the predicted value output by the prediction model corresponding to the storage unit dimension, P row (t) is the predicted value output by the prediction model corresponding to the storage row dimension, P col (t) is the predicted value output by the prediction model corresponding to the storage column dimension, P bank (t) is the predicted value output by the prediction model corresponding to the storage array dimension, P dev (t) is the predicted value output by the prediction model corresponding to the storage particle dimension, P rank (t) is the predicted value output by the prediction model corresponding to the storage block dimension, and P(t) is the fusion value.

[0022] In an exemplary embodiment, when the M dimensions are divided into multiple levels, the higher the level, the larger the storage unit granularity corresponding to the dimension, and when the M prediction models are rule-based models, the baseboard management controller inputs the M first analysis results into the M prediction models to obtain M prediction values, including: the baseboard management controller obtains the target sub-level included in the fault level in which the target memory is predicted to have an uncorrectable error, wherein the dimension corresponding to the target sub-level is the target dimension in the M dimensions, and the prediction model corresponding to the target dimension is the target prediction model; the target prediction model predicts whether the uncorrectable error will occur at the target sub-level in the target memory based on the first analysis result to obtain a first prediction value, wherein the M prediction values ​​include the first prediction value; the target prediction model determines the target probability that the uncorrectable error will occur at the target sub-level in the target memory based on the first prediction value; the target prediction model determines whether the uncorrectable error will occur based on the target probability.

[0023] In an exemplary embodiment, the target prediction model predicts whether the uncorrectable error will occur at the target sub-level in the target memory according to the first parsing result to obtain a first prediction value, including: when the target sub-level includes a storage array level, the target prediction model determines a second address included in the first parsing result, wherein the second address is an address of a storage array in the same storage block where the correctable error occurs, and predicts whether the uncorrectable error will occur at the target sub-level in the target memory based on a first number of addresses belonging to the same target storage array included in the second address to obtain the first prediction value; when the target sub-level includes a memory granule level, the target prediction model determines based on the first parsing result The target prediction model determines a second number of target storage arrays in which the correctable errors occur in the same memory chip, and a third number of the correctable errors occur in the target storage array, and predicts whether the uncorrectable errors will occur in the target sub-level of the target memory based on the second number and the third number, to obtain the first prediction value; in the case where the target sub-level includes a memory sub-array level, the target prediction model determines a third address of the memory sub-array in which the correctable errors occur in the memory sub-arrays belonging to the same storage array based on the first parsing result, and predicts whether the uncorrectable errors will occur in the target sub-level of the memory of the target server based on a fourth number of storage units included in the third address, to obtain the first prediction value.

[0024] In an exemplary embodiment, whether the uncorrectable error will occur at the target sub-level in the target memory is predicted based on a first number of addresses included in the second address and belonging to the same target storage array, to obtain the first prediction value, including: when the first number is greater than or equal to a first threshold, determining that the first prediction value includes that the uncorrectable error will occur at the target sub-level in the target memory; when the first number is less than the first threshold, determining that the first prediction value includes that the uncorrectable error will not occur at the target sub-level in the target memory.

[0025] In an exemplary embodiment, the prediction of whether the uncorrectable error will occur at the target sub-level in the target memory based on the second number and the third number to obtain a first prediction value includes: when the second number is greater than or equal to a second threshold, and the third number is greater than or equal to a third threshold, determining that the first prediction value includes that the uncorrectable error will occur at the target sub-level in the target memory; when the second number is less than the second threshold, and / or the third number is less than the third threshold, determining that the first prediction value includes that the uncorrectable error will not occur at the target sub-level in the target server's memory.

[0026] In an exemplary embodiment, the prediction of whether the uncorrectable error will occur at the target sub-level in the target memory based on the fourth number of storage units included in the third address to obtain a first prediction value includes: when the fourth number is greater than or equal to a fourth threshold, determining that the first prediction value includes that the uncorrectable error will occur at the target sub-level in the target server's memory; and when the fourth number is less than the fourth threshold, determining that the first prediction value includes that the uncorrectable error will not occur at the target sub-level in the target server's memory.

[0027] In an exemplary embodiment, when the M prediction models are offline models, the baseboard management controller inputs the M first analysis results into the M prediction models to obtain M prediction values, including: the baseboard management controller inputs the M first analysis results into the M offline models to obtain M prediction values, wherein the offline models are trained using training sample data, the training sample data includes sample memories where the correctable errors occur in the M dimensions, and labels of the sample memories, and the labels of the sample memories are whether the uncorrectable errors actually occur in the sample memories.

[0028] In an exemplary embodiment, the baseboard management controller fuses the M prediction values ​​to obtain a fused value, including: the baseboard management controller obtains M weight values ​​corresponding to the M dimensions; the baseboard management controller performs weighted summation of the M weight values ​​and the M prediction values ​​to obtain the fused value.

[0029] According to another embodiment of the present application, a method for predicting a memory fault is provided, comprising: in the event that a correctable error occurs in a target memory, a modular electronic control unit of a host unit sends detected fault information to a register of the host unit; the register stores the fault information; a second fault analysis module of a baseboard management controller obtains a physical address from the fault information of the register through a second interface, and analyzes the physical address in M ​​dimensions to obtain M second analysis results, wherein M is an integer greater than or equal to 2, the M dimensions are obtained based on different storage unit granularities of the target memory, and the second fault analysis result is used to indicate that the correctable error occurs in the target memory in the corresponding dimension; the baseboard management controller obtains the M second analysis results from the second fault analysis module, inputs the M second analysis results into M prediction models corresponding to the M dimensions, and obtains M prediction values; the baseboard management controller fuses the M prediction values ​​to obtain a fused value, wherein the fused value is used to predict whether an uncorrectable error will occur in the target memory.

[0030] In an exemplary embodiment, it includes: when the second fault analysis module cannot obtain the physical address from the register, the first fault analysis module of the host unit obtains the physical address of the target memory from the register, and parses the physical address in M ​​dimensions to obtain M first analysis results, wherein the first analysis results are used to indicate that the correctable error occurs in the target memory in the corresponding dimension; the baseboard management controller obtains the M first analysis results, inputs the M first analysis results into M prediction models corresponding to the M dimensions, and obtains M prediction values; the baseboard management controller fuses the M prediction values ​​to obtain a fused value, wherein the fused value is used to predict whether an uncorrectable error will occur in the target memory; the second fault analysis module cannot obtain the physical address from the register includes: within the preset duration of the host unit shutdown and restart, the second fault analysis module cannot obtain the physical address from the register.

[0031] In an exemplary embodiment, the first fault analysis module of the host unit obtains the physical address of the target memory from the register, including: the modular electronic control unit of the host unit sends an interrupt signal to the interrupt control management module when it detects that the second interface cannot send the physical address to the second fault analysis module; and the interrupt control management module triggers the first fault analysis module to obtain the physical address from the fault information stored in the register when receiving the interrupt signal.

[0032] In an exemplary embodiment, the method also includes: the data storage module of the baseboard management controller obtains the M first analysis results from the first fault analysis module through the first interface, and stores the M first analysis results; the data storage module of the baseboard management controller obtains the M second analysis results from the second fault analysis module, and stores the M second analysis results.

[0033] In an exemplary embodiment, the baseboard management controller obtains the M second analysis results from the second fault analysis module, inputs the M second analysis results into M prediction models corresponding to the M dimensions, and obtains M prediction values, including: when the M prediction models are online models, the baseboard management controller inputs the M second analysis results into the M prediction models, and obtains M prediction values, including: when the correctable error occurs in the target memory within the t-th prediction cycle, the baseboard management controller obtains the correctable error sequence of the target memory within the t-th prediction cycle in the data storage module, wherein the correctable error sequence includes the analysis result obtained by the second fault analysis module parsing the physical address of the target memory within the t-th prediction cycle, and the correctable error sequence includes the M second analysis results; the baseboard management controller determines the first error sequence corresponding to the target memory within the t-1-th prediction cycle; the baseboard management controller inputs the correctable error sequence and the first error sequence into the M prediction models to obtain the M prediction values.

[0034] In an exemplary embodiment, when the M dimensions are divided into multiple levels, the higher the level, the larger the storage unit granularity corresponding to the dimension, and when the M prediction models are rule-based models, the baseboard management controller inputs the M second analysis results into the M prediction models to obtain M prediction values, including: the baseboard management controller obtains the target sub-level included in the fault level in which the target memory is predicted to have an uncorrectable error, wherein the dimension corresponding to the target sub-level is the target dimension in the M dimensions, and the prediction model corresponding to the target dimension is the target prediction model; the target prediction model predicts whether the uncorrectable error will occur at the target sub-level in the target memory according to the second analysis result to obtain a second prediction value, wherein the M prediction values ​​include the second prediction value; the target prediction model determines the target probability that the uncorrectable error will occur at the target sub-level in the target memory based on the second prediction value; the target prediction model determines whether the uncorrectable error will occur based on the target probability.

[0035] In an exemplary embodiment, when the M prediction models are offline models, the baseboard management controller inputs the M first analysis results into the M prediction models to obtain M prediction values, including: the baseboard management controller inputs the M second analysis results into the M offline models to obtain M prediction values, wherein the offline models are trained using training sample data, and the training sample data includes the occurrence of the correctable errors in the M dimensions in the sample memory, and the label of the sample memory, and the label of the sample memory is whether the uncorrectable error actually occurs in the sample memory.

[0036] According to another embodiment of the present application, a system for memory fault prediction is provided, comprising: a host unit, comprising a first fault analysis module, for obtaining a physical address of a target memory when a correctable error occurs in the target memory, and analyzing the physical address in M ​​dimensions to obtain M first analysis results, wherein M is an integer greater than or equal to 2; a baseboard management controller, for obtaining the M first analysis results from the host unit, inputting the M first analysis results into a corresponding prediction model in a multidimensional prediction model to obtain M prediction values, wherein the multidimensional prediction model includes M prediction models corresponding to the M dimensions; the baseboard management controller is also used to fuse the M prediction values ​​through a fusion strategy to obtain a fused value, wherein the fused value is used to represent the probability of an uncorrectable error occurring in the target memory.

[0037] In an exemplary embodiment, the host unit also includes: a modular electronic control unit, an interrupt control management module, and a register. The modular electronic control unit is used to send the detected fault information to the register and send an interrupt signal to the interrupt control management module when the correctable error is detected in the target memory; the interrupt control management module is used to trigger the first fault analysis module to obtain the physical address from the fault information stored in the register when receiving the interrupt signal.

[0038] In an exemplary embodiment, the host unit also includes: a first interface, one end of the first interface is connected to the first fault analysis module, and the other end is connected to the data storage module of the baseboard management controller; the first interface is used to transmit the M first analysis results in the first fault analysis module to the data storage module, so as to record the M first analysis results in the data storage module.

[0039] In an exemplary embodiment, the baseboard management controller also includes: the data storage module, which is used to record the M first analysis results; a multidimensional prediction module, which is connected to the data storage module, and the multidimensional prediction module includes the M prediction models, which are used to obtain the M first analysis results from the data storage module, input the M first analysis results into the corresponding prediction models respectively, and predict the probability of uncorrectable errors occurring at the corresponding level in the target memory through the prediction models to obtain the M prediction values; the baseboard management controller also includes: a fusion module, which is used to fuse the M prediction values ​​based on a fusion strategy to obtain the fusion value.

[0040] According to another embodiment of the present application, a system for memory fault prediction is provided, comprising: a host unit, a baseboard management controller; the host unit comprises a modular electronic control unit, a register, and a second interface, the modular electronic control unit is used to send the detected fault information to the register when a correctable error is detected in the target memory; the register is used to store the fault information of the target memory; one end of the second interface is connected to the register, and the other end is connected to a second fault analysis module of the baseboard management controller; the baseboard management controller comprises: the second fault analysis module is used to obtain a physical address from the fault information of the register through the second interface, and parse the physical address in M ​​dimensions to obtain M second analysis results, wherein M is an integer greater than or equal to 2, and the M dimensions are different levels obtained by dividing the target memory into different storage unit granularities, the higher the level, the larger the storage unit granularity, the high-level storage unit includes multiple low-level storage units, and the second analysis result is used to indicate the level at which the correctable error occurs in the target memory.

[0041] In an exemplary embodiment, the host unit further includes a first fault analysis module, which is used to obtain the physical address from the register and parse the physical address in M ​​dimensions to obtain M first analysis results when the second fault analysis module is unable to obtain the physical address from the register, wherein the first analysis result is used to indicate the level at which the correctable error occurs in the target memory, and the second fault analysis module is unable to obtain the physical address from the register includes: within a preset time length for the host unit to crash and restart, the second fault analysis module is unable to obtain the physical address from the register.

[0042] In an exemplary embodiment, the host unit also includes: an interrupt control management module, connected to the modular electronic control unit, and the modular electronic control unit is also used to send an interrupt signal to the interrupt control management module when it detects that the second interface cannot send the physical address to the second fault analysis module; the interrupt control management module is used to trigger the first fault analysis module to obtain the physical address from the fault information stored in the register when receiving the interrupt signal.

[0043] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0044] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0045] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0046] Through the present application, when a correctable error occurs in the target memory, the first fault analysis module of the host unit obtains the physical address of the target memory, and analyzes the physical address in M ​​dimensions to obtain M first analysis results, wherein M is an integer greater than or equal to 2, and the M dimensions are obtained based on different storage unit granularity divisions of the target memory, and the first analysis result is used to indicate that the correctable error occurs in the target memory in the corresponding dimension; the baseboard management controller obtains the M first analysis results, inputs the M first analysis results into M prediction models corresponding to the M dimensions, and obtains M prediction values; the baseboard management controller fuses the M prediction values ​​to obtain a fused value, wherein the fused value is used to predict whether an uncorrectable error will occur in the target memory.

[0047] Due to the collaborative work of the joint host unit and the BMC, the full-link automated processing process is realized, from target memory fault detection to fault status information recording, to memory fault location analysis, to synchronization of the fault location analysis results to the BMC unit, to the processing and prediction of the fault location analysis results, etc., which solves the problem of weak memory fault prediction performance in related technologies and improves the memory fault prediction performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 is a hardware structure block diagram of a computing device according to an embodiment of the present application;

[0049] Figure 2 The process of the memory fault prediction method according to the embodiment of the present application is as follows Figure 1 ;

[0050] Figure 3 This is an example diagram of the principle of a learning memory fault prediction algorithm according to an embodiment of the present application;

[0051] Figure 4 This is a schematic diagram of a memory row failure in an embodiment of the present application;

[0052] Figure 5 is a schematic diagram of the structure of a DRAM particle according to an embodiment of the present application;

[0053] Figure 6is a schematic diagram of the connection between a central controller and a dual in-line memory module according to an embodiment of the present application;

[0054] Figure 7 is a schematic diagram of the connection between channel and Rank according to an embodiment of the present application;

[0055] Figure 8 is a schematic diagram of storage area level fault prediction according to an embodiment of the present invention;

[0056] Fig. 9 is a schematic diagram of device-level fault prediction according to an embodiment of the present invention;

[0057] Fig.10 is a schematic diagram of memory sub-array level fault prediction according to an embodiment of the present invention;

[0058] Fig.11 It is a flowchart of updating the fusion method according to an embodiment of the present application;

[0059] Fig.12 This is the workflow of the fault prediction system according to the embodiment of the present application Figure 1 ;

[0060] Fig.13 The process of the memory fault prediction method according to the embodiment of the present application is as follows Figure 2 ;

[0061] Fig.14 This is the workflow of the fault prediction system according to the embodiment of the present application Figure 2 ;

[0062] Fig.15 This is the workflow of the fault prediction system according to the embodiment of the present application Figure 3 ;

[0063] Fig.16 The structure of the fault prediction system according to the embodiment of the present application is shown in FIG. Figure 1 ;

[0064] Fig.17 is a schematic diagram of the architecture of a multidimensional prediction model according to an embodiment of the present application;

[0065] Fig.18 The structure of the fault prediction system according to the embodiment of the present application is shown in FIG. Figure 2 ;

[0066] Fig.19 It is a structural block diagram of a device for predicting a memory failure type according to an embodiment of the present application. DETAILED DESCRIPTION

[0067] In recent years, with the rapid development of the artificial intelligence industry, especially the emergence of AIGC (Artificial Intelligence General Certification), various industries have shown diversified explosive development. While the demand for server computing power has increased sharply, the requirements for memory as a fast storage unit have become higher and higher. In particular, the reliability of memory has become an important indicator affecting the performance of the entire server system. Memory failures often cause server system failures, and even cause server downtime when uncorrectable errors occur. According to statistics, it is determined that about 50% of hardware-triggered server downtime is caused by memory failures, and 1.3% to 4% of machines are affected by uncorrectable errors each year. Therefore, how to reduce the impact of memory failures on servers has become a hot issue that needs to be urgently solved in the current server industry.

[0068] Traditional fault diagnosis technology can locate the location of the fault after the memory fault occurs, such as the location number of the faulty memory stick (DIMM), memory channel (channel) MM, etc., but because it can only give a diagnosis result after the fault occurs, it cannot reverse the serious consequences of the error that has already occurred. Therefore, from the perspective of reducing the economic losses caused by the fault, fault diagnosis technology has shown great limitations. In order to predict the memory fault state in advance, memory fault prediction technology came into being.

[0069] Traditional memory fault prediction usually uses a dedicated inference server node, that is, the memory fault information of each server is collected to the inference node, and then the prediction model deployed on the inference node performs the prediction action; in addition, the prediction process basically uses single-dimensional memory information (such as the minimum storage unit (cell) dimension fault information) as the prediction input. However, the above memory prediction scheme has two problems. First, the system reliability is poor and the deployment overhead is high. Since the inference node is usually connected to each server node to be predicted through a star topology, once the inference node fails, the memory fault prediction service will be terminated, that is, the system reliability is weak. In addition, the deployment of the prediction system requires additional manpower and material resources. When the scale of the data center is large, it requires a large overhead to achieve memory fault prediction. Second, the system prediction performance is poor. The factors that cause memory failures are complex and numerous, such as electromagnetic interference between memory cells and damage to the internal amplification circuit, which makes it much more difficult to predict memory failures than hard disks. Traditional prediction only considers cell dimension fault data as input for model training and prediction, and does not make full use of other dimensional fault information, resulting in poor overall system prediction performance.

[0070] In summary, in order to address the above problems, the present application proposes a fault prediction system that improves system reliability and reduces the overall system deployment overhead while ensuring accurate prediction.

[0071] The following is an explanation of the English abbreviations used in this application:

[0072] BMC: Baseboard Management Controller, baseboard management controller, server management unit.

[0073] CPU: Central Processing Unit, as the computing and control core of the computer system, is the final execution unit for information processing and program running.

[0074] PECI: Platform Environment Control Interface, platform environment control interface.

[0075] ECC: Error Checking and Correcting, error checking and correction, ECC checking is a memory error correction principle, which is a more advanced means of memory error checking and correction.

[0076] CE: Correctable Error, which refers to errors that the system can detect and correct automatically.

[0077] UCE: Uncorrectable Error, an error that cannot be corrected automatically by the system.

[0078] eSPI: Enhanced Serial Peripheral Interface, enhanced serial peripheral interface.

[0079] SMI: System Management Interrupt, system management interrupt.

[0080] MSR: Model-Specific Register, model specific register.

[0081] CSR: Control and Status Register, control and status register.

[0082] DRAM: Dynamic Random Access Memory is a volatile memory used in computer systems that needs to be refreshed periodically to maintain stored data.

[0083] DIMM: Dual In-line Memory Module, a modular device used to install and expand computer memory.

[0084] DQs: Data Queue lines, data bus, are signal lines connecting memory modules (such as DRAM) and memory controllers.

[0085] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0086] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0087] The host unit and the basic controller in the method embodiment provided in the embodiment of the present application can be executed in a server device or a similar computing device. Taking running on a computing device as an example, Figure 1 is a hardware structure block diagram of the computing device of the embodiment of the present application. Figure 1 As shown, the computing device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned computing device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above computing device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0088] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for predicting memory faults in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computing device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0089] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0090] Embodiment 1:

[0091] In this embodiment, a method for predicting memory failure is provided. Figure 2 The process of the memory fault prediction method according to the embodiment of the present application is as follows Figure 1 ,like Figure 2 As shown, the process includes the following steps:

[0092] Step S202: when a correctable error occurs in the target memory, the first fault analysis module of the host unit obtains the physical address of the target memory, and analyzes the physical address in M ​​dimensions to obtain M first analysis results, wherein M is an integer greater than or equal to 2, the M dimensions are obtained based on different storage unit granularities of the target memory, and the first analysis results are used to indicate that the correctable error occurs in the target memory in the corresponding dimension;

[0093] The above-mentioned host unit can be a BIOS (Basic Input / Output System, BIOS for short), and the above-mentioned first fault analysis module is used to analyze the physical address of the target memory where a correctable error occurs. The first fault analysis module can analyze the physical address of the target memory from multiple dimensions, wherein the multiple dimensions can be storage dimensions of the target memory, such as the minimum storage unit (cell), storage row (row), storage column (co1), storage array (bank), storage block (DQs), storage path (device), memory particle (rank), memory bar (DIMM), memory channel (channel), etc.; when a correctable error occurs in the target memory, the host unit obtains the fault information of the target memory and stores it in a register inside the host unit, and the fault information includes the physical address of the target memory. At the same time, the first fault analysis module of the host unit analyzes the physical address of the target memory from multiple dimensions to obtain multiple analysis results.

[0094] Specifically, when the modular electronic control unit of the host unit detects that the correctable error occurs in the target memory, the detected fault information is sent to the register, and an interrupt signal is sent to the interrupt control management module of the host unit; when the interrupt control management module receives the interrupt signal, the first fault analysis module is triggered to obtain the physical address from the fault information stored in the register.

[0095] The modular electronic control unit can be an IMC controller, which is used to detect the fault information of the target memory. The fault can be a single-bit error (correctable by ECC logic) or a multi-bit error (causing ECC failure); the register can be an MSR / CSR register, which is used to store the fault information detected by the modular electronic control unit, such as the physical address of the target memory where the fault occurs; when a correctable error occurs in the target memory, the modular electronic control unit detects the fault information of the target memory, at which time the modular electronic control unit triggers an SMI interrupt to the interrupt control management module, and records the fault information of the target memory to the MSR and CSR registers inside the CPU; when the interrupt control management module receives an interrupt signal, the interrupt control management module simultaneously triggers the first fault analysis module to obtain the physical address of the target memory from the register, thereby completing the physical address analysis of the target memory. By parsing the physical address of the target memory where the correctable error occurs from different dimensions through the first fault analysis module, it can help locate the problem from different dimensions, help predict memory faults from different dimensions, and improve the stability and reliability of the system. At the same time, through the analysis of the first fault analysis module, memory faults can be discovered and repaired in a timely manner, reducing the risk of system crashes and improving system performance and efficiency. Through analysis in different dimensions, the causes of memory faults can be more comprehensively understood, targeted measures can be taken to avoid similar problems from happening again, and the maintainability and reliability of the system can be improved.

[0096] Step S204: the baseboard management controller obtains the M first analysis results, inputs the M first analysis results into M prediction models corresponding to the M dimensions, and obtains M prediction values;

[0097] The above-mentioned M prediction models can be prediction modules of different dimensions, such as prediction models corresponding to different dimensions such as the minimum storage unit (cell), storage row (row), storage column (col), storage array (bank), storage block (DQs), storage path (device), memory particle (rank), memory bar (dimm), memory channel (channel), etc. The prediction model can be a variety of models such as an online prediction model, an offline prediction model, and a rule matching prediction model. The corresponding analysis results of the M first analysis results obtained by the first fault analysis module are predicted by the M prediction models to obtain M prediction values. Since different memory fault prediction models are embedded in the baseboard management controller (BMC) of each server to match the different configuration types of each server (such as different configurations of the model, capacity, batch, etc. of the memory bar), the prediction model is flexibly and accurately matched with the configuration of the server to achieve better prediction performance. At the same time, by predicting from multiple dimensions, different types of prediction algorithms and fault information of different dimensions of memory are comprehensively considered, the value of available fault information of memory is fully explored, the utilization rate of fault information is improved, and the memory fault prediction dimension is effectively expanded.

[0098] Specifically, during the self-test phase when the system starts up, the host unit reports the M first analysis results output by the first fault analysis module to the baseboard management controller through the first interface of the host unit; the baseboard management controller stores the M first analysis results in the data storage module; the baseboard management controller inputs the M first analysis results into the M prediction models to obtain M prediction values.

[0099] The data storage module is used to store the parsing results of the target memory physical address; the first interface can be an eSPI interface, which is respectively connected to the first fault parsing module of the host unit and the data storage module of the BMC, and transmits multiple first parsing results of the target memory obtained by the first fault parsing module in the host unit to the BMC unit through the first interface and stores them in the data storage module. During the self-test phase (POST) when the system is started, the host unit transmits multiple first parsing results obtained by the first fault parsing module to the BMC through the first interface, and stores them in the data storage module of the BMC; after the BMC pre-processes the first parsing results stored in the data storage module, the pre-processed first parsing results are input into M prediction models, wherein the pre-processing includes eliminating abnormal data, completing missing data, classifying data, and labeling data, etc. By pre-processing the parsing results of the target memory physical address, the quality and availability of the parsing results are improved, thereby helping to improve the accuracy and efficiency of the model.

[0100] Step S206: the baseboard management controller fuses the M prediction values ​​to obtain a fused value, wherein the fused value is used to predict whether an uncorrectable error will occur in the target memory.

[0101] Through the above steps, the host unit and BMC work together to realize the full-link automated processing process from target memory fault detection to fault status information recording, to memory fault location analysis, to synchronization of fault location analysis results to the BMC unit, to processing and prediction of fault location analysis results, etc., which solves the problem of weak memory fault prediction performance in related technologies and improves memory fault prediction performance.

[0102] At the same time, by predicting the probability of uncorrectable errors in the target memory through BMC, each server has the function of memory failure prediction, thus eliminating the need to rely on additional inference servers, reducing the risk of prediction function paralysis caused by inference server failure, improving the reliability of the prediction function, and avoiding the deployment of inference node servers in the system, saving a lot of manpower and material resources, and reducing system deployment costs.

[0103] The execution subject of the above steps may be a server, a terminal, etc., but is not limited thereto.

[0104] As an optional implementation, when the M prediction models are online models, the baseboard management controller inputs the M first analysis results into the M prediction models to obtain M prediction values, including: when the correctable error occurs in the target memory within the tth prediction cycle, the baseboard management controller obtains the correctable error sequence of the target memory within the tth prediction cycle in the data storage module, wherein the correctable error sequence includes the analysis result obtained by the first fault analysis module parsing the physical address of the target memory within the tth prediction cycle, and the correctable error sequence includes the M first analysis results; the baseboard management controller determines the first error sequence corresponding to the target memory within the t-1th prediction cycle; the baseboard management controller inputs the correctable error sequence and the first error sequence into M prediction models to obtain the M prediction values.

[0105] Optionally, the baseboard management controller inputs the correctable error sequence and the first error sequence into M prediction models to obtain the M prediction values, including: the baseboard management controller divides the correctable error sequence into q correctable error subsequences according to the M dimensions, wherein each of the q correctable error subsequences corresponds to one dimension of the M dimensions, and q is a positive integer less than or equal to M; the baseboard management controller determines a target prediction model corresponding to each correctable error subsequence in the M prediction models, wherein each correctable error subsequence has the same dimension to which its corresponding target prediction model belongs; the baseboard management controller inputs the correctable error subsequence and the first error sequence into the target prediction model to obtain the prediction value output by the target prediction model.

[0106] Optionally, in practical applications, for the online model, after obtaining the fault information of the target memory, the first fault analysis module of the host unit analyzes the physical address of the target memory, and subdivides and classifies the target memory fault data into six different dimensions: minimum storage unit (cell), storage row (row), storage column (col), storage array (bank), storage channel (device), and memory granule (rank). The learning algorithm does not need to load the entire data set into the memory for model training, but takes the minimum storage unit cell as the minimum unit, and updates the model parameters according to the samples in the fault data set at a certain time interval. Since the learning process of each cell in the memory fault prediction learning algorithm is relatively independent, large-scale data sets can be processed more effectively, so that data processing can be performed efficiently in an environment with limited memory resources such as BMC. In addition, a key advantage of the learning algorithm is the continuous learning of new fault data. As new fault data is continuously collected, the model can immediately extract the features of this data and adjust the parameters to maintain the best fit to the current memory usage mode and fault mode.

[0107] That is to say, by dividing the fault dimension and determining the corresponding fault prediction sub-model, the fault sub-model corresponding to different dimensions is used to complete the fault prediction of the current dimension. After the learning algorithm completes the fault prediction of each dimension, it can also collect the first prediction values ​​corresponding to different dimensions for fusion, and finally output a prediction result by fusion of these multi-dimensional prediction values. At the same time, in order to optimize the use of computing resources, only those minimum storage units that have appeared CE at least once will be recorded to assist the fault prediction sub-model in adjustment.

[0108] Through the above steps, the memory fault data corresponding to the t-1th prediction period is determined as a sample for predicting the occurrence of a fault in the t-1th prediction period, and the relationship between the actual situation corresponding to the memory fault data occurring in the t-1th prediction period and the fault prediction value is determined. Based on the relationship, the error sequence used to adjust the algorithm is determined, thereby combining the correctable error sequence of the t-1th prediction period and the error sequence corresponding to the t-1th prediction period to determine the prediction value of the memory fault occurring in the t+1th prediction period, and determining the situation of the same memory failing again according to the prediction value, thereby determining the monitoring method for the memory in advance, and realizing advance prediction before the occurrence of the fault. The above advance prediction only requires the memory fault data at the current moment and the error sequence corresponding to the previous moment, reducing the operating requirements of the system resources. Therefore, the problem that the process of judging the memory fault is complicated and the system resource overhead of the judgment process is large in the related art is solved, so as to achieve the situation of predicting the possible occurrence of the memory fault in advance, and each prediction only adjusts the scoring error at the current moment, avoiding the single large error covering up the previous cumulative effect, and realizing the effect of improving the prediction accuracy.

[0109] By dividing the fault dimensions, the memory fault characteristics on the server are fully explored. Compared with the single-level prediction method, the corresponding fault prediction sub-model is determined for the fault dimension, which can improve the utilization rate of fault information and the accuracy of fault prediction.

[0110] As an optional implementation, the baseboard management controller determines that the target memory has a first error sequence corresponding to the t-1th prediction period, including: in the case where there is a historical fault score, the baseboard management controller calculates the historical fault score and the actual number distributed in each of the dimensions in the t-1th prediction period by the following formula to obtain the first error sequence;

[0111]

[0112] Where δ is the error scaling factor, x t is the sequence value in the historical correctable error sequence.

[0113] As an optional implementation manner, the baseboard management controller determines the historical fault score in the following manner: the historical fault score in the t-1th prediction period is determined by the following formula:

[0114]

[0115] Wherein, yτ is the actual number of correctable errors of the target memory distributed in each dimension in the t-2th prediction period, σ is a constant, α is a preset scaling factor, and β is a preset offset.

[0116] It should be noted that in actual applications, the CE history on the same cell is continuously detected and recorded periodically to obtain the CE history record X. t =(x0, x1, ..., x t-1 , x t ) as input. Among them, x τ Indicates the number of CEs that occur on the cell in the time range (τ-1, τ). At time t, the algorithm will score the memory failure at the next moment based on the CE history, which is determined by the first formula; where the correlation function R(T) in the first formula is defined as follows:

[0117]

[0118] Optionally, since α and β are respectively the scaling factor and the offset in the Gaussian function, they are used to adjust the output value of the correlation function. It should be noted that in the process of optimizing the algorithm of the present application, α and β can be adjusted according to specific needs to achieve the best performance.

[0119] At the same time, at time t, the prediction error can be calculated based on the memory failure prediction value of the t-1th prediction cycle and the actual CE event, and the prediction error sequence y can be constructed. t =(y0, y1, ..., y t-1 ), the second formula can be determined by association based on the first formula, wherein the second formula uses the sigmoid function to normalize the CE records of the t+1th prediction period in order to smooth the violent fluctuations caused by CE. Normalization ensures that the error value is compressed to a suitable interval, maintains the stability of the algorithm and promotes its convergence. In this formula, 6 is used as an error scaling factor, which is used to fine-tune the expansion speed of the error. By reasonably selecting the value of 6, the sensitivity of the learning process can be controlled. This formula compares the actual number of CE observed by the cell (after normalization) with the predicted value to calculate the prediction error. This error is used to correct the prediction behavior of the previous moment. Through the above design, the historical prediction error sequence y of the cell can be made during use. t (x t ) gradually matches the real failure mode.

[0120] In summary, the calculation of the fault prediction value of the first formula takes into account the historical error sequence, and the above-mentioned historical error sequence can be determined by the second formula in combination with the historical memory fault data and the fault correlation determined by R(T) to determine the superimposed influence. In addition, if the past prediction value of a cell is high, this indicates that the cell has experienced multiple CEs and exhibits lower reliability. However, when a cell has not experienced CE for a long time, due to the correlation function R(T), the new prediction value will be affected by time and gradually reduce the previous high prediction value caused by frequent CEs. Therefore, the algorithm of the present application utilizes a dynamic learning process to retain the impact on historical CEs, and each prediction only adjusts the prediction value error at the current moment, avoiding the problem of a single large error masking the previous cumulative effect, and further improving the adaptability of the prediction results to the actual situation.

[0121] As an optional implementation manner, the baseboard management controller fuses the M predicted values ​​to obtain a fused value, including: predicting the fused value by the following formula:

[0122] P(t)=P cell (t)+d·(P row (t)+P col (t))+d 2 ·P bank (t)+d 3 ·P dev (t)+d 4 ·P rank (t),

[0123] The d is a decay factor less than 1, P cell (t) is the predicted value output by the prediction model corresponding to the storage unit dimension, P row (t) is the predicted value output by the prediction model corresponding to the storage row dimension, P col (t) is the predicted value output by the prediction model corresponding to the storage column dimension, P bank (t) is the predicted value output by the prediction model corresponding to the storage array dimension, P dev (t) is the predicted value output by the prediction model corresponding to the storage particle dimension, P rank (t) is the predicted value output by the prediction model corresponding to the storage block dimension, and P(t) is the fusion value.

[0124] The fusion formula is used to calculate the M prediction values ​​of M dimensions to obtain the fusion value output by the multi-level learning prediction model. It should be noted that the failure of the cell dimension directly determines the reliability of the memory, so the cell level occupies the most important position in the prediction model. At the same time, row failure and col failure have equally important reference values ​​in memory failure prediction and are factors that cannot be ignored. Multi-point failures of multiple storage arrays are usually reflected at the bank level, while failures on DQ lines often appear at the device level. Based on the above principles, the present application proposes the above-mentioned polynomial-based accumulation method, which is used to combine the memory failure prediction values ​​of cell, row, col, bank, device and rank, and in the above-mentioned combination process, the influence of row and col is uniformly considered by multiplying by d, while the influence of bank, device and rank is weighted by d^2, d^3 and d^4 respectively, to reflect that their contribution to the overall failure prediction is relatively small.

[0125] In summary, the fault levels are weighted in the prediction process through the above-mentioned multiple cumulative weights, thereby improving the accuracy and recall rate of the prediction, and enhancing the memory failure prediction capability of the server management unit for the newly added memory of the server.

[0126] As an optional implementation, Figure 3 This is an example diagram of the principle of an online memory fault prediction algorithm of an embodiment of the present application. The determination of the above prediction results in combination with the above first formula and the second formula includes 3 cycles. The first cycle is the cycle corresponding to the t-1th moment. The main content is to collect and record the CE history at the t-1th moment, and calculate the memory fault prediction value at the tth moment. This prediction value can be used to predict whether the memory at the tth moment will fail at the t-1th moment; the second cycle is the cycle corresponding to the tth moment. The main content is to collect and record the CE history at the tth moment, and use the real CE number and the memory fault prediction value obtained at the t-1th moment to calculate the error as the prediction error at the t-1th moment. Then, the memory fault prediction value at the tth moment is calculated using the calculated prediction error at the t-1th moment. This score is used to predict whether the memory at the t+1th moment will fail at the tth moment; the third cycle is the cycle corresponding to the t+1th moment, collect and record the CE history at the t+1th moment, and use the real CE number and the memory fault prediction value obtained at the tth moment to calculate the error as the prediction error at the t+1th moment. Then, the predicted error calculated at time t is used to calculate the memory fault prediction value at time t+1. This score is used to predict at time t whether the memory at time t+1 will fail. That is, the fault prediction value needs to be determined based on the fault prediction value at time t and the actual number of CEs at time t+1.

[0127] It should be noted that the above-mentioned moment is equivalent to the prediction period in the above-mentioned embodiment, t is used to indicate the moment when the prediction starts in the prediction period, t-1 is the moment when the previous prediction starts, and 1 here refers to 1 prediction period unit, which can be an hour or a day. Then, at each prediction moment, the error data containing the correctable error sequence is first collected to expand (i.e., update) the correctable error sequence used by the multi-level learning prediction model. After that, the prediction error is calculated based on the prediction result of the previous moment (equivalent to the first error sequence in the above-mentioned embodiment), and then the fault prediction value is calculated through this prediction error.

[0128] The above formula is mainly for a single cell, describing the algorithm's prediction of the potential faults of the smallest storage unit of the memory in the time dimension. It is understandable that the fault characteristics in the spatial dimension also have a significant impact on the occurrence of memory faults, especially when CEs frequently appear in adjacent positions in the same column, the probability of UE occurring in the column will increase accordingly; similarly, when a large number of CEs appear in a row, the probability of UE occurring in the row will also increase. These faults may be caused by permanent faults in shared hardware circuits (such as sense-amplifiers) of rows or columns, or non-permanent faults caused by specific data patterns or repeated read operations of adjacent rows. Simply relying on rule matching to screen such faults may be too rough, sometimes causing some pages to be incorrectly marked as permanent faults, which may quickly exhaust the redundant storage space of the memory. Rule-based predictions in the spatial dimension often ignore the importance of the time dimension, but in fact, the fault characteristics of the spatial dimension will also show their unique patterns over time.

[0129] Furthermore, for higher-level spatial dimensions in memory, such as row, col, bank, device, and rank, the time correlation calculation and fault prediction value can also be performed by slightly modifying the above-mentioned related formulas. Figure 4 is a schematic diagram of a memory row failure in an embodiment of the present application. Figure 4 Take the memory row failure shown in the figure as an example, and focus on the i-th row on a bank. If within the time interval (τ-1, τ), two cells in the row have experienced CE, 3 times and 1 time respectively, then the algorithm considers that the row has experienced CE twice within (τ-1, τ) (here we only focus on the number of cells that have experienced CE, not the number of CE on the cells). Figure 1 The multi-level fault information screening stage shown in the figure constructs the fault history record X in units of this line. t i =(X0 i , X1 i , ..., X t-1 i , X ti ), where X τ i = N. Based on this historical record, the algorithm of this application can evaluate the historical fault correlation, calculate the row fault prediction value and calculate the row prediction error for the row. According to the above analysis, the fault prediction value calculated for the i-th row can be calculated using the formula: In the above formula, y_T^i and R(τ^i) represent the prediction error and correlation in the row dimension respectively.

[0130] Furthermore, by determining the memory fault prediction value of the t+1th prediction cycle, it can be predicted whether there is a fault in the t+2th prediction cycle.

[0131] In summary, through the above prediction method, through online learning capabilities, compared with the traditional offline machine learning algorithm on the server, it can not only use BMC to learn and update the model from the continuously generated CE data in real time, but also does not need to wait for the accumulation of a large amount of data and then use manual batch processing and training. This instant learning feature makes the algorithm more suitable for running in environments such as BMC with limited computing power and storage resources, and improves the maintenance efficiency of the server system.

[0132] As an optional implementation, when the M dimensions are divided into multiple levels, the higher the level, the larger the storage unit granularity corresponding to the dimension, and when the M prediction models are rule-based models, the baseboard management controller inputs the M first analysis results into the M prediction models to obtain M prediction values, including: the baseboard management controller obtains the target sub-level included in the fault level that predicts that the target memory will have an uncorrectable error, wherein the dimension corresponding to the target sub-level is the target dimension in the M dimensions, and the prediction model corresponding to the target dimension is the target prediction model; the target prediction model predicts whether the uncorrectable error will occur at the target sub-level in the target memory based on the first analysis result, and obtains a first prediction value, wherein the M prediction values ​​include the first prediction value; the target prediction model determines the target probability that the uncorrectable error will occur at the target sub-level in the target memory based on the first prediction value; the target prediction model determines whether the uncorrectable error will occur based on the target probability.

[0133] In the above embodiment, the host unit can detect whether a correctable error occurs in the target memory. When the host unit detects that a correctable error occurs in the target memory, the fault information of the target memory is obtained, and the physical address of the target memory is parsed, and the parsing result is sent to the BMC. After receiving the parsing result, the BMC can determine that a correctable error has occurred in the target memory and obtain historical data. The historical data can be data within a predetermined time period before the current time. For example, it can be data within 1 hour before the current time, or it can be data within 30 minutes before the current time. That is, the predetermined time period can be 1 hour, 30 minutes, or 2 hours, 10 minutes, etc., and the present invention is not limited to this. It should be noted that the predetermined time period can be the time period closest to the current time. For example, the last time period included in the predetermined time period can be the current time point.

[0134] In the above embodiment, the memory of the target server may include Channel, Dimm, Rank, Bank, and Row / Column, where Channel refers to the number of channels connected to the memory slot by the memory controller, Dimm refers to the dual in-line memory module, Rank refers to the memory Rank, which is a collection of a group of DRAM particles. These chips share the same data bus (DQs) and can be accessed by the memory controller at the same time, and Bank refers to the memory Bank, which refers to the storage area divided inside the DRAM chip. A memory particle usually contains multiple Banks. Row / Column refers to the physical address location in the memory. Therefore, the location information may include Dimm address, Rank address, Bank address, and Row / Column address.

[0135] In the above embodiment, the structural diagram of the DRAM particle can be seen in the attached Figure 5 ,like Figure 5 As shown in the figure, multiple cells form rows and columns, and rows and columns form a two-dimensional array, called a sub-array, i.e. a memory sub-array, which is the most basic array. Multiple sub-arrays form a bank, i.e. a storage array, and multiple banks form devices, i.e. storage particles. Multiple devices form ranks, i.e. storage blocks. The connection diagram between the central controller and the dual in-line memory module can be found in the attached figure. Figure 6 ,like Figure 6 As shown in FIG. 1 , the central controller is connected to the memory controller, and the memory controller is connected to the DIMM through channels. The DIMM includes multiple ranks, each chip in the rank includes a bank, and the bank includes a row / column. The connection diagram of the channel and the rank can be found in the attached Figure 7 ,like Figure 7 As shown, the channel is connected to the DRAM included in the Rank through the data bus DQs, and each DRAM includes multiple Banks.

[0136] In the above embodiments, the fault level may include a memory sub-array level, i.e., a sub-array level, a storage array level, i.e., a bank level, a storage particle level, i.e., a device level, and a storage block level, i.e., a rank level. Different fault levels may include different target sub-levels. For example, when the fault level is a storage block level, the target sub-level may include a storage block level, a storage particle level, a storage array level, and a memory array level. When the fault level is a memory particle level, the target sub-level may include a memory particle level, a storage array level, and a memory sub-array level. When the fault level is a storage array level, the target sub-level may include a storage array level and a memory sub-array level.

[0137] In the above embodiment, the target algorithm can be used to predict the fault level at which uncorrectable errors will occur in the memory of the target server, wherein the target algorithm can be a neural network model, and the trained neural network model can be used to predict whether uncorrectable errors will occur in the memory of the target server, as well as the fault level at which uncorrectable errors will occur and the target confidence level at which uncorrectable errors will occur. The neural network model can be a convolutional neural network model, or other network models, and the present invention is not limited to this. Exemplarily, the target algorithm can include multiple sub-algorithms, each sub-algorithm is used to predict whether an uncorrectable error will occur in a level in the memory of the target server, and each sub-algorithm predicts a different level. For example, the target algorithm can predict the fault level of the target server's memory that has an uncorrectable error by the following method: determine the correctable error sequence of the target memory in the t-th prediction cycle, and determine the first error sequence corresponding to the target memory in the t-1 prediction cycle; wherein the correctable error sequence includes at least n correctable errors, and the n correctable errors are determined by parsing the memory failure data that occurs in the target memory in the t-th prediction cycle, and the M levels are different levels obtained by dividing the different storage unit granularities of the target memory, and the higher the level, the larger the storage unit granularity, and the high-level storage unit includes multiple low-level storage units, t and n are positive integers, and M is a positive integer greater than 1; input the correctable error sequence and the first error sequence into the target algorithm (such as a multi-level learning prediction model) to obtain the fault prediction value of the target memory having a memory failure in the t+1th prediction cycle, wherein the one or more memories include: the target memory, and the multi-level learning prediction model includes M fault prediction sub-models, and the M fault prediction sub-models are prediction models corresponding to the M levels respectively. After obtaining the fault prediction value, the fault level of the fault can be determined according to the fault prediction value. The correctable error sequence and the first error sequence are input into the multi-level learning prediction model to obtain the fault prediction value of the target memory having a memory fault in the t+1th prediction cycle, including: hierarchical classification of the correctable error sequence to obtain q correctable error subsequences belonging to different levels, wherein q is a positive integer less than or equal to M; determining the target learning prediction sub-model corresponding to the level of the multi-level learning prediction model and each correctable error subsequence; inputting the correctable error subsequence and the first error sequence into the fault prediction sub-model to obtain the prediction value of the level corresponding to the correctable error subsequence; fusing the M prediction values ​​of the M levels corresponding to the target memory to obtain the fusion value. The fusion of the M prediction values ​​of the M levels corresponding to the target memory can be performed by weighted summation, and the value after weighted summation is determined as the fault score.In the above embodiment, it is possible to predict whether the memory of the target server will have an uncorrectable error at the target sub-level based on the physical address. For example, it is possible to predict whether the memory will have an uncorrectable error at the storage array level, at the storage memory particle level, or at the memory sub-array level based on the physical address to obtain a first prediction value. Wherein, Sub-array is a memory sub-array, which can be a further subdivided storage unit inside a DRAM Bank, used to organize and manage cells. The design of the sub-array helps to optimize the access speed and power consumption management of the memory. The first prediction value may include whether an uncorrectable error will occur at the target sub-level, or whether an uncorrectable error will not occur at the target sub-level.

[0138] In the above embodiment, the first prediction value can be converted into a Boolean variable. For example, when the first prediction value is that an uncorrectable error will occur at the target sub-level, 1 is output, and when the first prediction value is that an uncorrectable error will not occur at the target sub-level, zero is output. After obtaining the first prediction value, the first prediction value can be converted into a target probability that an uncorrectable error will occur at the target sub-level. Whether an uncorrectable error will occur at the target server is predicted based on the target probability. For example, when the target probability is greater than or equal to a predetermined threshold, it is considered that an uncorrectable error will occur, and when the target probability is less than or equal to the predetermined threshold, it is considered that an uncorrectable error will not occur.

[0139] It should be noted that in the present application, prediction can be a speculation on the situation in the target time period after the current moment, that is, the future moment. For example, it can be speculated based on the location information whether an uncorrectable error will occur in the memory of the target server at a certain moment in the future. It can also be speculated based on the target algorithm whether an uncorrectable error will occur in the memory of the target server at a certain moment in the future, and the level at which the uncorrectable error will occur.

[0140] As an optional implementation, the target prediction model predicts whether the uncorrectable error will occur at the target sub-level in the target memory according to the first parsing result to obtain a first prediction value, including: when the target sub-level includes a storage array level, the target prediction model determines a second address included in the first parsing result, wherein the second address is an address of a storage array in the same storage block where the correctable error occurs, and predicts whether the uncorrectable error will occur at the target sub-level in the target memory based on a first number of addresses belonging to the same target storage array included in the second address to obtain the first prediction value; when the target sub-level includes a memory granule level, the target prediction model determines a second address included in the first parsing result, wherein the second address is an address of a storage array in which the correctable error occurs in the same storage block, and predicts whether the uncorrectable error will occur at the target sub-level in the target memory to obtain the first prediction value. A second number of target storage arrays in which the correctable errors occur in the same memory chip and a third number of the correctable errors occur in the target storage array are determined, and the target prediction model predicts whether the uncorrectable errors will occur in the target sub-level of the target memory based on the second number and the third number, and obtains the first prediction value; when the target sub-level includes a memory sub-array level, the target prediction model determines the third address of the memory sub-array in which the correctable errors occur in the memory sub-arrays belonging to the same storage array based on the first parsing result, and predicts whether the uncorrectable errors will occur in the target sub-level of the memory of the target server based on the fourth number of storage units included in the third address, and obtains the first prediction value.

[0141] In this embodiment, when the target sub-level includes the storage array level, the Bank-level memory fault prediction algorithm aims to predict whether UE occurs by analyzing the number of CEs occurring on the entire Rank of the server memory system and its spatial distribution. It can be assumed that (C) represents the set of all Channels in the server DRAM system, (D) represents the set of all Dimms in a certain Channel, (R) represents the set of all Ranks in a certain Dimm, and (B) represents the set of all Banks in a certain Rank. DQ(c, d, r, b) represents the number of different DQs in which CE occurs on a specific Channel (c∈C), Dimm (d∈D), Rank (r∈R) and Bank (b∈D) in the historical records. It should be noted that DQ(c, d, r, b) does not represent the total number of CE events. For example, if 5 CEs have occurred on a DQ, the invented algorithm will record DQ(c, d, r, b) = 1, not 5. Therefore, the second address of the storage array bank that sends the correctable error in the same storage block Rank included in the location information can be determined, and the storage array can be from different devices. According to the first number of addresses of the same target storage array included in the second address, it is predicted whether the memory of the target server will have an uncorrectable error at the target sub-level.

[0142] In the above embodiment, Figure 8 is a schematic diagram of storage area level fault prediction according to an embodiment of the present invention, such as Figure 8 As shown. The Rank includes 16 x4 Devices, and each Device contains 4 Banks. In this memory structure, all Banks in each Device share 4 DQs. Each Bank is divided into 4 sub-arrays. During read and write operations, each sub-array contributes data on a DQ. Therefore, when each Device reads data from a Bank, it will obtain 4 bits at a time. These 16 Devices together constitute a 64-bit Rank read operation. It should be noted that each read operation is parallel for the Device, and data will be read from the same Bank of all Devices at the same time, so the Bank here refers to the Rank-level Bank rather than the Device-level Bank.

[0143] In the above embodiment, see the attached Figure 8 , the second address may include DQ1, DQ35, and DQ60. The addresses belonging to the same target storage array may include DQ1 and DQ60. At this time, the target storage array is Bank0.

[0144] In the above embodiment, whether a storage array level failure occurs in the memory of the target server can be monitored and diagnosed according to the storage array address, thereby improving the accuracy of predicting storage array level failures, and further improving the accuracy of predicting whether an uncorrectable error will occur in the target memory.

[0145] In the above embodiment, when the target sub-level includes a memory particle level, i.e., a device level, a second number of banks in which correctable errors occur in the device and a third number of banks in which correctable errors occur can be determined, and predictions are made based on the second number and the third number.

[0146] Fig. 9 is a schematic diagram of Device-level fault prediction according to an embodiment of the present invention, such as Fig. 9 As shown, a storage channel device can include multiple banks, such as Bank0, Bank1, Bank2, and Bank3. Device-level memory fault prediction can focus on capturing potential faults on a single memory device on the target server. For example, it is possible to monitor whether CE occurs on different banks of the same device (it should be noted that the premise of the same device includes the same channel, the same Dimm, and the same Rank). To this end, (B) can be defined as the set of all banks on a device, and the function CE(b) represents the number of CEs that have occurred on a specific bank b. Predict whether a memory device-level fault occurs in the target memory based on the occurrence of CE on banks belonging to the same device.

[0147] In the above embodiment, by predicting whether an uncorrectable error occurs in the target memory at the device level based on the number of banks where CE occurs in the same device and the number of CE issued in the bank, it is possible to focus on identifying the impact of internal faults of the device on uncorrectable errors and improve the accuracy of predicting uncorrectable errors.

[0148] In the above embodiment, each Bank may include multiple memory sub-arrays. Memory sub-array-level faults pay more attention to the fault impact range than device-level faults or bank-level faults. The fault prediction algorithm at the sub-array level is intended to capture more fine-grained memory fault modes. A sub-array is a smaller unit in a memory Bank, consisting of a series of rows and columns. It is the smallest unit in the memory array that can be identified by DQ and can provide the most accurate fault location capability. In the prediction at the sub-array level, if CE occurs on the same device, the same bank, and the same DQ, it can be inferred that CE occurs in the same sub-array. Define (S) as the set of all sub-arrays in a Bank, and ADDR(s) as a function that represents the number of different addresses where CE has occurred on a specific sub-array (s∈S). It should be noted that the number of different addresses of CE refers to how many cells have experienced CE on s.

[0149] As an optional implementation, whether the uncorrectable error will occur at the target sub-level in the target memory is predicted based on a first number of addresses included in the second address and belonging to the same target storage array, to obtain the first prediction value, including: when the first number is greater than or equal to a first threshold, determining that the first prediction value includes that the uncorrectable error will occur at the target sub-level in the target memory; when the first number is less than the first threshold, determining that the first prediction value includes that the uncorrectable error will not occur at the target sub-level in the target memory.

[0150] In this embodiment, the judgment rule for the device-level fault prediction algorithm to make a UE prediction may be: CE(b1)≥1^CE(b2)≥1, b1, b2∈B, b1≠b2. That is, if there are at least two different banks on the same device, each of which records one or more CE events, and each bank has at least one CE, the judgment rule will predict that the device has a high risk of UE. Although the occurrence of CE in the server memory system may be random, the occurrence of CE may also imply potential problems in certain hardware circuits, which may eventually lead to UE. Although the memory ECC mechanism will correct single-bit errors, and even some advanced memories can correct double-bit errors. However, if two or more errors occur in the same bank within the same Rank, this is a dangerous signal from a statistical point of view. This situation indicates that the probability of failure of the bank is significantly increased, and CE is more likely to be caused by a hardware circuit failure. If no intervention is made, the system is likely to encounter UE, resulting in serious consequences. Therefore, when the first number is greater than or equal to 2, it can be determined that the first prediction result includes that the memory of the target server will have an uncorrectable error at the bank level. It should be noted that the first threshold of 2 is only an exemplary description, and the first threshold may also be other values. The first threshold may be a numerical value determined based on statistics, and the present invention does not limit this. For example, it may also be set to 3, 4, etc.

[0151] See the attached Figure 8 , we can see that two banks are affected by CE: Bank1 of Device8 has a CE, while Bank0 of Device0 and Device15 have a CE. Therefore, DQ(c,d,r,b) of Bank1 is 1, while DQ(c,d,r,b) of Bank0 is 2. Among them, Bank0 meets the condition of DQ(c,d,r,b)≥2, so it can be judged that the Dimm is about to have UE at the bank level.

[0152] In the above embodiment, the first number of addresses belonging to the same target storage array among the addresses of the storage array where correctable errors occur in the same storage block is used to determine whether a storage area level failure will occur in the memory at the storage array level, which can make the prediction more refined and targeted. Not only the number of errors that occur is considered, but also the distribution pattern of errors on the entire Rank of the memory space is focused on. By identifying the concentration trend of CE on multiple DQ lines in a specific Bank, potential local hardware problems can be revealed, thereby providing a more accurate fault prediction.

[0153] As an optional implementation, the prediction of whether the uncorrectable error will occur at the target sub-level in the target memory based on the second number and the third number to obtain a first prediction value includes: when the second number is greater than or equal to a second threshold, and the third number is greater than or equal to a third threshold, determining that the first prediction value includes that the uncorrectable error will occur at the target sub-level in the target memory; when the second number is less than the second threshold, and / or the third number is less than the third threshold, determining that the first prediction value includes that the uncorrectable error will not occur at the target sub-level in the target server's memory.

[0154] In this embodiment, when it is determined that CE occurs in at least two storage areas in a device, and the second number of CE occurring in each storage area where CE occurs is greater than the second threshold, it can be determined that uncorrectable errors will occur in the memory of the target server at the memory granule level; otherwise, it is considered that uncorrectable errors will not occur in the memory of the target server at the memory granule level.

[0155] In the above embodiment, (B) can be defined as the set of all banks on a device, and the function CE(b) represents the number of CEs that have occurred on a specific bank b. When the prediction rule E(b1)≥1^CE(b2)≥1, b1,b2∈B,b1≠b2, it is predicted that the device has a high risk of UE. For example, if there are at least two different banks on the same device, each of which records one or more CE events, and each bank has at least one CE, then the judgment rule will predict that the device has a high risk of UE. Please continue to refer to the attached Fig. 9 ,like Fig. 9 As shown in the figure, a device includes 4 banks, each of which is connected to a bank selector, namely, a bank selector, through a DQ. The selector determines which bank's DQ to enable based on the bank ID in the DRAM address. In this example, if CE is detected on DQ0 of Bank1 and Bank2, which meets the above prediction rules, it can be considered that the device is potentially unreliable. Therefore, the Dimm where this device is located may experience UE in the future.

[0156] In the above embodiment, predicting device-level faults focuses on identifying the impact of widespread faults within the device. From a statistically significant analysis, a correctable error (CE) within a single bank may be caused by just random noise or a transient soft error, and this does not change even if the bank has multiple CEs. However, if two or more banks within the same device record CE events, this may no longer be a coincidence, but rather points to the existence of a systematic fault. This situation indicates that the scope of the fault has exceeded a single local area and may involve functional areas of the device, especially those circuits shared by multiple banks. It is worth noting that device-level fault warnings surpass bank-level faults in severity because they reveal a more concentrated and specific fault area, indicating that the reliability of the entire device is being threatened. Therefore, by predicting whether the memory will cause an uncorrectable error by predicting whether the memory will send a memory device-level fault, the accuracy of predicting uncorrectable errors can be improved.

[0157] As an optional implementation, the prediction of whether the uncorrectable error will occur at the target sub-level in the target memory based on the fourth number of storage units included in the third address to obtain a first prediction value includes: when the fourth number is greater than or equal to a fourth threshold, determining that the first prediction value includes that the uncorrectable error will occur at the target sub-level in the target server's memory; and when the fourth number is less than the fourth threshold, determining that the first prediction value includes that the uncorrectable error will not occur at the target sub-level in the target server's memory.

[0158] Each bank can include multiple memory sub-arrays. Memory sub-array-level faults focus more on the scope of fault impact than device-level faults or bank-level faults. The fault prediction algorithm at the sub-array level is designed to capture more fine-grained memory fault modes. A sub-array is a smaller unit in a memory bank, consisting of a series of rows and columns. It is the smallest unit in the memory array that can be identified by DQ, and can provide the most accurate fault location capability. In the prediction at the sub-array level, if CE occurs on the same device, the same bank, and the same DQ, it can be inferred that CE occurs in the same sub-array. Define (S) as the set of all sub-arrays in a bank, and ADDR(s) as a function that represents the number of different addresses where CE has occurred on a specific sub-array (s∈S). It should be noted that the number of different addresses of CE refers to how many storage cells have experienced CE on s. When ADDR(s)≥2, it can be determined that a memory sub-array-level fault has occurred in the memory of the target server. That is, the fourth threshold may be 2. It should be noted that the fourth threshold may also take other values, such as 3 or 4. The fourth threshold may be a value calculated based on statistics, and the present invention does not impose any limitation on this.

[0159] In the above embodiment, if at least two CEs are detected in a specific sub-array in the same Bank and occur in different cells, the algorithm predicts that the Bank faces a higher UE risk, and it can be inferred that the UE risk of the entire Dimm including the Bank also increases accordingly. Fig.10 is a schematic diagram of memory sub-array level fault prediction according to an embodiment of the present invention. Fig.10 As shown in the figure, the internal structure of a Bank is revealed. The Bank consists of 4 sub-arrays, and each sub-array is connected to a DQ. According to the above rules, Fig.10 The sub-array connected to DQ0 records two CE events that occurred on different cells. It can be inferred that there is a high probability that CE will occur in this Bank and the Dimm where it is located.

[0160] In the above embodiment, in the memory architecture at the sub-array level, each cell is the basic unit that constitutes the memory array, which consists of a storage capacitor and an access transistor. When a voltage is applied to the word line, the access transistor is activated, allowing data to be read or written to the storage capacitor through the bit line. Therefore, the memory cell is the core element for realizing the data storage function. At the microscopic level such as the sub-array, the occurrence of CE is no longer randomly distributed, but may be concentrated in a specific location. This concentrated manifestation more obviously indicates the occurrence of potential faults. Satisfying the above rules, that is, at least two CEs occur on different cells in the same sub-array, which may point to the failure of the word line or bitline, or a problem affecting shared circuits such as the local row buffer. The occurrence of this fault mode is far more serious than the fault prediction at the bank level and the device level. At the sub-array level, since the fault area is more concentrated, it may be a precursor to a larger-scale fault, or direct evidence of the degradation of the subtle circuit inside the memory. The sub-array level fault prediction algorithm can effectively identify this error mode and detect and solve potential fault points at an early stage.

[0161] As an optional implementation, in the case that the M prediction models are offline models, the baseboard management controller inputs the M first analysis results into the M prediction models to obtain M prediction values, including: the baseboard management controller inputs the M first analysis results into the M offline models to obtain M prediction values, wherein the offline models are trained using training sample data, the training sample data includes sample memories where the correctable errors occur in the M dimensions, and labels of the sample memories, and the labels of the sample memories are whether the uncorrectable errors actually occur in the sample memories.

[0162] The above-mentioned offline model can be a neural network model or a machine learning model. The historical data of target memory failure is used as a training sample to train M prediction models, and then predictions are made based on the results.

[0163] As an optional implementation, the baseboard management controller fuses the M prediction values ​​to obtain a fusion value, including: the baseboard management controller obtains M weight values ​​corresponding to the M dimensions; the baseboard management controller performs weighted summation of the M weight values ​​and the M prediction values ​​to obtain the fusion value.

[0164] As an optional implementation, the fusion method is updated to obtain an updated fusion method, including at least one of the following: obtaining the number of times the correctable errors occur in each of the N levels, and when the number of times the correctable errors occur in the target level among the N levels exceeds a preset number threshold, increasing the weight value corresponding to the target level according to a preset value; otherwise, decreasing the weight value corresponding to the target level according to a preset value; obtaining the number of low-level storage units in which the correctable errors occur in a high-level storage unit within a preset time range, and when the number exceeds a preset number threshold, increasing the weight value corresponding to the high-level according to a preset value; otherwise, decreasing the weight value corresponding to the high-level according to the preset value.

[0165] Fig.11 It is a flowchart of updating the fusion method according to the embodiment of the present application, such as Fig.11 The specific update process is as follows:

[0166] S1101: Initialize the fusion algorithm of the fusion logic unit, such as using a linear weighted algorithm, and update the fusion strategy unit (the unit stores the latest fusion strategy at the current moment);

[0167] S1102: The fusion logic unit obtains the fusion strategy in the fusion strategy unit, calculates the prediction result of the current input, obtains the prediction result of the current moment through the prediction judgment unit, and stores it in the memory history fault result unit, and further reads the prediction result of the previous moment from the memory history fault result unit, wherein the prediction result of the current moment is judged by setting a preset threshold, and when the fusion value is greater than or equal to the preset threshold, the target memory is determined to have an uncorrectable error, and when the fusion value is less than the preset threshold, the target memory is determined to have no uncorrectable error;

[0168] S1103: The fusion strategy updating unit recalculates the fusion strategy according to the prediction result of the previous moment and the actual result of the current moment, and outputs it to the strategy selection unit. For example, when the number of correctable errors occurring at the target level among the N levels exceeds the preset number threshold, the weight value corresponding to the target level is increased according to the preset value; otherwise, the weight value corresponding to the target level is decreased according to the preset value; or, within a preset time range, when the number of lower-level storage units that have correctable errors occurring in the storage units of the high level exceeds the preset number threshold, the weight value corresponding to the high level is increased according to the preset value; otherwise, the weight value corresponding to the high level is decreased according to the preset value;

[0169] S1104: Alternatively, the output of the policy selection unit is selected from the fusion policy update unit or the external policy file according to the state of the policy control signal, wherein the external policy file may be a json format file or other general text file, and the import method includes but is not limited to being implemented through the serial port of the BMC or reading and writing the external Flash of the BMC;

[0170] S1105: A new fusion strategy is obtained according to the output of the strategy selection, and is stored in the fusion strategy unit in the figure, thus completing a round of fusion strategy update;

[0171] S1106: At the next moment, the fusion logic unit receives a new prediction result, goes to S1102, and repeats the above process.

[0172] As an optional implementation, Fig.12 This is the workflow of the fault prediction system according to the embodiment of the present application Figure 1 ,like Fig.12 As shown, the system mainly includes a host unit and a BMC unit, wherein the specific working processes of the host unit and the BMC unit are as follows:

[0173] Main unit:

[0174] S1201, when a fault (correctable error) occurs in the target memory, the modular electronic control unit detects the fault of the target memory, and at this time, the modular electronic control unit triggers an SMI interrupt to the interrupt control management module;

[0175] S1202, record the fault information of the target memory into the MSR and CSR registers inside the CPU;

[0176] S1203, the interrupt control management module triggers the first fault analysis module to obtain the physical address of the target memory from the register, and the first fault analysis module parses the obtained physical address from multiple levels to obtain multiple first analysis results;

[0177] S1204, during the system startup POST phase, the first fault analysis module reports a plurality of first analysis results to the BMC unit through the first and second interfaces;

[0178] BMC unit:

[0179] S 1205, the data storage module receives and stores a plurality of first analysis results sent by the first fault analysis module;

[0180] S1206, preprocessing the first parsing result stored in the data storage module to obtain input data for the multidimensional prediction model;

[0181] S 1207, performing inference calculations through a multidimensional prediction model;

[0182] S 1208, input the inference result of the multi-dimensional prediction model into the fusion module for comprehensive judgment to obtain the final prediction result.

[0183] Embodiment 2:

[0184] In this embodiment, a method for predicting memory failure is provided. Fig.13 The process of the memory fault prediction method according to the embodiment of the present application is as follows Figure 2 ,like Fig.13 As shown, the process includes the following steps:

[0185] Step S1302, when a correctable error occurs in the target memory, the modular electronic control unit of the host unit sends the detected fault information to a register of the host unit; the register stores the fault information;

[0186] The above-mentioned modular electronic control unit can be an IMC controller, which is used to detect fault information of the target memory. The fault can be a single-bit error (correctable by ECC logic) or a multi-bit error (causing ECC failure); the above-mentioned register can be an MSR / CSR register, which is used to store fault information detected by the modular electronic control unit, such as the physical address of the target memory where the fault occurs; when a correctable error occurs in the target memory, the modular electronic control unit detects the fault information of the target memory and records the fault information of the target memory to the MSR and CSR registers inside the CPU.

[0187] Step S1304: The second fault analysis module of the baseboard management controller obtains a physical address from the fault information of the register through the second interface, and analyzes the physical address in M ​​dimensions to obtain M second analysis results, wherein M is an integer greater than or equal to 2, the M dimensions are obtained based on different storage unit granularities of the target memory, and the second fault analysis result is used to indicate that the correctable error occurs in the target memory in the corresponding dimension;

[0188] The above-mentioned second fault analysis module is used to analyze the physical address of the target memory where a correctable error occurs. The second fault analysis module can analyze the physical address of the target memory from multiple dimensions, wherein the multiple dimensions can be storage dimensions of the target memory, such as the minimum storage unit (cell), storage row (row), storage column (col), storage array (bank), storage block (DQs), storage path (device), memory particle (rank), memory bar (diMM), memory channel (channel), etc.; the above-mentioned second interface can be a PECI interface, through which the storage information in the host unit can be transmitted to the BMC unit; in the case of a correctable error in the target memory, the host unit obtains the fault information of the target memory and stores it in a register inside the host unit, the fault information includes the physical address of the target memory, the second fault analysis module in the BMC obtains the physical address of the target memory through the second interface, and analyzes the physical address from multiple dimensions to obtain multiple second analysis results.

[0189] Step S1306: the baseboard management controller obtains the M second analysis results from the second fault analysis module, inputs the M second analysis results into M prediction models corresponding to the M dimensions, and obtains M prediction values;

[0190] Step S1308: The baseboard management controller fuses the M prediction values ​​to obtain a fused value, wherein the fused value is used to predict whether an uncorrectable error will occur in the target memory.

[0191] Through the above steps, the host unit and BMC work together to realize the full-link automated processing process from target memory fault detection to fault status information recording, to memory fault location analysis, to synchronization of fault location analysis results to the BMC unit, to processing and prediction of fault location analysis results, etc., which solves the problem of weak memory fault prediction performance in related technologies and improves memory fault prediction performance.

[0192] At the same time, by predicting the probability of uncorrectable errors in the target memory through BMC, each server has the function of memory failure prediction, thus eliminating the need to rely on additional inference servers, reducing the risk of prediction function paralysis caused by inference server failure, improving the reliability of the prediction function, and avoiding the deployment of inference node servers in the system, saving a lot of manpower and material resources, and reducing system deployment costs.

[0193] As an optional implementation, when the second fault analysis module is unable to obtain the physical address from the register, the first fault analysis module of the host unit obtains the physical address of the target memory from the register, and parses the physical address in M ​​dimensions to obtain M first analysis results, wherein the first analysis results are used to indicate that the correctable error occurs in the target memory in the corresponding dimension; the baseboard management controller obtains the M first analysis results, inputs the M first analysis results into M prediction models corresponding to the M dimensions, and obtains M prediction values; the baseboard management controller fuses the M prediction values ​​to obtain a fused value, wherein the fused value is used to predict whether an uncorrectable error will occur in the target memory; the second fault analysis module is unable to obtain the physical address from the register including: within the preset duration of the host unit's downtime and restart, the second fault analysis module is unable to obtain the physical address from the register.

[0194] As an optional implementation, the first fault analysis module of the host unit obtains the physical address of the target memory from the register, including: when the modular electronic control unit of the host unit detects that the second interface cannot send the physical address to the second fault analysis module, the interrupt signal is sent to the interrupt control management module; when the interrupt control management module receives the interrupt signal, the first fault analysis module is triggered to obtain the physical address from the fault information stored in the register.

[0195] As an optional implementation, the data storage module of the baseboard management controller obtains the M first analysis results from the first fault analysis module through the first interface, and stores the M first analysis results; the data storage module of the baseboard management controller obtains the M second analysis results from the second fault analysis module, and stores the M second analysis results.

[0196] As an optional implementation, the baseboard management controller obtains the M second analysis results from the second fault analysis module, inputs the M second analysis results into M prediction models corresponding to the M dimensions, and obtains M prediction values, including: when the M prediction models are linear models, the baseboard management controller inputs the M second analysis results into the M prediction models, and obtains M prediction values, including: when the correctable error occurs in the target memory within the t-th prediction cycle, the baseboard management controller obtains the correctable error sequence of the target memory within the t-th prediction cycle in the data storage module, wherein the correctable error sequence includes the analysis result obtained by the second fault analysis module parsing the physical address of the target memory within the t-th prediction cycle, and the correctable error sequence includes the M second analysis results; the baseboard management controller determines the first error sequence corresponding to the target memory within the t-1-th prediction cycle; the baseboard management controller inputs the correctable error sequence and the first error sequence into the M prediction models to obtain the M prediction values.

[0197] As an optional implementation, when the M dimensions are divided into multiple levels, the higher the level, the larger the storage unit granularity corresponding to the dimension, and when the M prediction models are rule-based models, the baseboard management controller inputs the M second analysis results into the M prediction models to obtain M prediction values, including: the baseboard management controller obtains the target sub-level included in the fault level that predicts that the target memory will have an uncorrectable error, wherein the dimension corresponding to the target sub-level is the target dimension in the M dimensions, and the prediction model corresponding to the target dimension is the target prediction model; the target prediction model predicts whether the uncorrectable error will occur at the target sub-level in the target memory based on the second analysis result to obtain a second prediction value, wherein the M prediction values ​​include the second prediction value; the target prediction model determines the target probability that the uncorrectable error will occur at the target sub-level in the target memory based on the second prediction value; the target prediction model determines whether the uncorrectable error will occur based on the target probability.

[0198] As an optional implementation, in the case where the M prediction models are offline models, the baseboard management controller inputs the M first analysis results into the M prediction models to obtain M prediction values, including: the baseboard management controller inputs the M second analysis results into the M offline models to obtain M prediction values, wherein the offline models are trained using training sample data, and the training sample data includes the occurrence of the correctable errors in the M dimensions in the sample memory, and the label of the sample memory, and the label of the sample memory is whether the uncorrectable error actually occurs in the sample memory.

[0199] It should be noted that the specific implementation method of obtaining the predicted value through the prediction model can refer to Example 1.

[0200] As an optional implementation, Fig.14 This is the workflow of the fault prediction system according to the embodiment of the present application Figure 2 ,like Fig.14 As shown, the system mainly includes a host unit and a BMC unit, wherein the specific working processes of the host unit and the BMC unit are as follows:

[0201] S1401, when a fault (correctable error) occurs in the target memory, the modular electronic control unit detects a fault in the target memory;

[0202] S1402, record the fault information of the target memory into the MSR and CSR registers inside the CPU;

[0203] BMC unit:

[0204] S1403, the BMC unit collects the physical address of the target memory stored in the register of the host unit through the second interface;

[0205] S1404, second fault analysis obtains a plurality of second analysis results by parsing the obtained physical addresses from the plurality of levels, and stores the plurality of second analysis results in a data storage module;

[0206] S 1405, preprocessing the second parsing result stored in the data storage module to obtain input data for the multidimensional prediction model;

[0207] S 1406, performing inference calculations through a multidimensional prediction model;

[0208] S 1407, input the inference result of the multi-dimensional prediction model into the fusion module for comprehensive judgment to obtain the final prediction result.

[0209] As an optional implementation, Fig.15 This is the workflow of the fault prediction system according to the embodiment of the present application Figure 3 ,like Fig.15 As shown, the system mainly includes a host unit and a BMC unit, wherein the specific working processes of the host unit and the BMC unit are as follows:

[0210] S1501, when a fault (correctable error) occurs in the target memory, the modular electronic control unit detects the fault of the target memory, and at this time, the modular electronic control unit triggers an SMI interrupt to the interrupt control management module;

[0211] S1502, record the fault information of the target memory into the MSR and CSR registers inside the CPU;

[0212] S1503, the interrupt control management module triggers the first fault analysis module to obtain the physical address of the target memory from the register, and the first fault analysis module parses the obtained physical address from multiple levels to obtain multiple first analysis results;

[0213] S1504, during the system startup POST phase, the first fault analysis module reports a plurality of first analysis results to the BMC unit through the first interface;

[0214] BMC unit:

[0215] S1505, the data storage module receives and stores the multiple first analysis results sent by the first fault analysis module, and at the same time the BMC unit collects the physical address of the target memory stored in the register in the host unit through the second interface;

[0216] S1 506, second fault analysis obtains a plurality of second analysis results from the physical addresses obtained by parsing the plurality of levels, and stores the plurality of second analysis results in a data storage module;

[0217] S1507, preprocessing the first analysis result and the second analysis result stored in the data storage module to obtain input data for the multi-dimensional prediction model;

[0218] S 1 508, performing inference calculations through a multidimensional prediction model;

[0219] S1509, input the inference result of the multi-dimensional prediction model into the fusion module for comprehensive judgment to obtain the final prediction result.

[0220] In this embodiment, a fault prediction system is provided. Fig.16 The structure of the fault prediction system according to the embodiment of the present application is shown in FIG. Figure 1 ,like Fig.16As shown, the system includes: a host unit, including a first fault analysis module, used to obtain the physical address of the target memory when a correctable error occurs in the target memory, and analyze the physical address in M ​​dimensions to obtain M first analysis results, wherein M is an integer greater than or equal to 2; a baseboard management controller, used to obtain the M first analysis results from the host unit, input the M first analysis results into a corresponding prediction model in a multidimensional prediction model, and obtain M prediction values, wherein the multidimensional prediction model includes M prediction models corresponding to the M dimensions; the baseboard management controller is also used to fuse the M prediction values ​​through a fusion strategy to obtain a fusion value, wherein the fusion value is used to represent the probability of an uncorrectable error occurring in the target memory.

[0221] The host unit is mainly used for memory fault detection, fault status recording, fault location analysis and providing fault data access interface function. The host unit mainly includes a first fault analysis module, which can analyze the detected fault from multiple dimensions. In the case of a correctable error in the target memory, the first fault analysis module of the host unit can analyze the physical address of the target memory from multiple levels to obtain multiple first analysis results.

[0222] The above-mentioned baseboard management controller, namely BMC, is mainly used for memory fault data collection, prediction data processing and multi-dimensional model fusion fault prediction. Through BMC, based on multiple first analysis results, the probability of uncorrectable errors occurring in the target memory in the corresponding dimensions can be predicted from different dimensions, and the multiple prediction results obtained are fused according to the fusion strategy to obtain the probability of uncorrectable errors occurring in the target memory. For example, if a correctable error occurs in the target memory A, the physical address of the target memory A is parsed through the first fault analysis module to obtain the minimum storage unit cell21 and the storage row row2 corresponding to the target memory A. The analysis results are respectively input into the prediction model of the minimum storage unit and the prediction model of the storage row, and the probability of uncorrectable errors occurring in the target memory A in the minimum storage unit cell is pl, and the probability of uncorrectable errors occurring in the storage row is p2. According to the fusion strategy, pl and p2 are fused to obtain the probability of uncorrectable errors occurring in the target memory A is P.

[0223] The above multidimensional prediction model includes models of multiple different dimensions. Fig.17 is a schematic diagram of the architecture of a multidimensional prediction model according to an embodiment of the present application, such as Fig.17 As shown, the prediction model can be divided into two levels:

[0224] One level refers to the algorithm level, which consists of Fig.17The multi-dimensional algorithm fusion representation in the above mentioned framework refers to the use of multiple prediction algorithms, including online algorithms, offline algorithms and rule-based algorithms. Among them, online algorithms refer to online machine learning algorithms, which adjust and update prediction parameters in real time according to input; offline algorithms refer to machine learning models obtained through offline training, which are usually trained and parameter-tuned by a dedicated training node server based on a training set of parsed result data; rule-based algorithms refer to prediction models built according to prediction rules, and this type of algorithm typically uses statistics to determine whether the number of correctable memory errors that occurred within a period of history exceeds a certain threshold as a judgment standard for prediction results.

[0225] Another level of multidimensional prediction model is mainly related to the physical composition structure of the memory medium, which is composed of Fig.17 For example, the physical composition of the memory medium is composed of the smallest storage unit cell, storage row row, storage column coluMn, storage array bank, memory particle rank and storage path device from micro to macro. The "multi-dimensional" in the multi-dimensional prediction model mentioned in this embodiment means that when predicting memory faults, not only the cell-level fault prediction model is considered, but also the row, coluMn, bank, rank and device-level fault prediction models are considered. By coordinating the prediction models of these dimensions, the prediction performance is improved.

[0226] It should be noted that multi-dimensional hierarchical fusion and multi-dimensional algorithm fusion are not in conflict with each other. For example, the rule-based algorithm is not limited to determining the number of correctable memory errors that occurred in each cell within a period of history. It can also consider the number of correctable memory errors that occurred in each row within a period of history.

[0227] By predicting the probability of uncorrectable errors in the BMC target memory, each server has the function of predicting memory failures, eliminating the need to rely on additional inference servers. This reduces the risk of prediction function paralysis caused by inference server failures, improves the reliability of the prediction function, and avoids the deployment of inference node servers in the system, saving a lot of manpower and material resources and reducing system deployment costs.

[0228] As an optional embodiment, the host unit also includes: a modular electronic control unit, an interrupt control management module, and a register. The modular electronic control unit is used to send the detected fault information to the register and send an interrupt signal to the interrupt control management module when the correctable error is detected in the target memory; the interrupt control management module is used to trigger the first fault analysis module to obtain the physical address from the fault information stored in the register when receiving the interrupt signal.

[0229] The above-mentioned register can be an MSR / CSR register, which is used to store fault information detected by the modular electronic control unit, such as the physical address of the target memory where the fault occurs; the above-mentioned modular electronic control unit can be an IMC controller, which is used to detect the fault information of the target memory, and the fault can be a single-bit error (correctable by ECC logic) or a multi-bit error (causing ECC failure); the above-mentioned interrupt control management module can be UBOX (i.e., a module in the CPU that performs interrupt control management); when a correctable error occurs in the target memory, the modular electronic control unit detects the fault information of the target memory. At this time, the modular electronic control unit triggers an SMI interrupt to the interrupt control management module, and records the fault information of the target memory to the MSR and CSR registers inside the CPU; when the interrupt control management module receives an interrupt signal, the interrupt control management module simultaneously triggers the first fault resolution module to obtain the physical address of the target memory from the register, thereby completing the physical address resolution of the target memory.

[0230] As an optional embodiment, the host unit also includes: the host unit also includes: a first interface, one end of the first interface is connected to the first fault analysis module, and the other end is connected to the data storage module of the baseboard management controller; the first interface is used to transmit the M first analysis results in the first fault analysis module to the data storage module, so as to record the M first analysis results in the data storage module.

[0231] The above-mentioned data storage module can be used to store the parsing results of the target memory physical address. The above-mentioned first interface can be an eSPI interface, which is respectively connected to the first fault analysis module of the host unit and the data storage module of the BMC. Through the first interface, multiple first parsing results of the target memory obtained by the first fault analysis module in the host unit are transmitted to the BMC and stored in the data storage module.

[0232] As an optional embodiment, the baseboard management controller also includes: the baseboard management controller also includes: the data storage module, the data storage module is used to record the M first analysis results; a multidimensional prediction module, connected to the data storage module, the multidimensional prediction module includes the M prediction models, used to obtain the M first analysis results from the data storage module, input the M first analysis results into the corresponding prediction models respectively, and predict the probability of uncorrectable errors occurring at the corresponding level in the target memory through the prediction models to obtain the M prediction values; the baseboard management controller also includes: a fusion module, used to fuse the M prediction values ​​based on a fusion strategy to obtain the fusion value.

[0233] The data storage module is used to store the parsing results of the target memory physical address; the multi-dimensional prediction model can include prediction models of multiple dimensions, such as online prediction models, offline prediction models, rule matching prediction models and other models of multiple dimensions, or prediction models of multiple faults at different levels, etc. Different memory fault prediction models can be embedded in the BMC of each server to match the different configuration types of each server (such as different models, capacities, batches, etc. of memory sticks), so that the prediction model can be flexibly and accurately matched with the configuration of the server to achieve better prediction performance. At the same time, by predicting from multiple dimensions, different types of prediction algorithms and fault information of different dimensions of memory are comprehensively considered, the value of available fault information of memory is fully explored, the utilization rate of fault information is improved, and the memory fault prediction dimension is effectively expanded; the fusion module is used to fuse multiple results output by the multi-dimensional prediction model. By fusing the output results of the multi-dimensional prediction model through a suitable fusion strategy, the accuracy of the model prediction can be effectively improved, thereby improving the memory fault prediction performance.

[0234] As an optional embodiment, the baseboard management controller further includes a data processing module between the data storage module and the multidimensional prediction module, which is used to obtain the first analysis result from the memory fault data unit and preprocess the first analysis result to obtain the processed first analysis result.

[0235] The above-mentioned data processing module is used to perform preliminary analysis on the parsing results obtained from the data storage module. The data processing module includes a variety of preprocessing methods, such as removing abnormal data, completing missing data, classifying data, and labeling data. By preprocessing the parsing results of the target memory physical address, the quality and availability of the parsing results are improved, which helps to improve the accuracy and efficiency of the model.

[0236] As an optional implementation, the N levels include: minimum storage unit, storage row, storage column, storage array, storage block, storage path, memory particle, memory bar, memory channel.

[0237] In this embodiment, another memory fault prediction system is provided. Fig.18 The structure of the fault prediction system according to the embodiment of the present application is shown in FIG. Figure 2 ,like Fig.18 As shown, the system includes: a host unit, a baseboard management controller; the host unit includes a modular electronic control unit, a register, and a second interface, the modular electronic control unit is used to send the detected fault information to the register when a correctable error is detected in the target memory; the register is used to store the fault information of the target memory; one end of the second interface is connected to the register, and the other end is connected to the second fault analysis module of the baseboard management controller; the baseboard management controller includes: the second fault analysis module, which is used to obtain a physical address from the fault information of the register through the second interface, and parse the physical address in M ​​dimensions to obtain M second analysis results, wherein M is an integer greater than or equal to 2, and the M dimensions are different levels obtained by dividing the target memory based on different storage unit granularities, the higher the level, the larger the storage unit granularity, the high-level storage unit includes multiple low-level storage units, and the second analysis result is used to indicate the level where the correctable error occurs in the target memory.

[0238] The above-mentioned host unit is mainly used for detecting memory faults, recording fault status, and providing fault data access interface functions. The host unit mainly includes a modular electronic control unit, a register, and a second interface. The modular electronic control unit can be an IMC controller; the register can be an MSR / CSR register, which is used to store fault information detected by the modular electronic control unit, such as the physical address of the target memory where the fault occurs; the second interface can be a PECI interface, through which the information stored in the host unit can be transmitted to the BMC unit; when a correctable error occurs in the target memory, the modular electronic control unit detects the fault information of the target memory, and at this time records the fault information of the target memory to the MSR and CSR registers inside the CPU.

[0239] The above-mentioned baseboard management controller, namely the BMC unit, includes a second fault analysis module, which can analyze the detected fault from multiple levels. In the case of a correctable error in the target memory, the BMC unit obtains the physical address of the target memory stored in the register in the host unit through the second interface, and analyzes the physical address of the target memory from multiple levels through the second fault analysis module, and can obtain multiple second analysis results.

[0240] As an optional embodiment, the host unit further includes a first fault analysis module, which is used to obtain the physical address from the register when the second fault analysis module is unable to obtain the physical address from the register. The first fault analysis module obtains the physical address from the register and parses the physical address in M ​​dimensions to obtain M first analysis results, wherein the first analysis result is used to indicate the level at which the correctable error occurs in the target memory. The second fault analysis module is unable to obtain the physical address from the register including: within a preset duration of the host unit's shutdown and restart, the second fault analysis module is unable to obtain the physical address from the register.

[0241] Fig.19 The structure of the fault prediction system according to the embodiment of the present application is shown in FIG. Figure 3 ,like Fig.19 As shown, the host unit may also include a first fault analysis module, which can analyze the detected fault from multiple levels. For example, the storage row and the minimum storage unit cell are storage units of two different dimensions. The level of the storage row is greater than the minimum storage unit, and each storage row contains multiple minimum storage units. By analyzing the fault from different dimensions, it can be obtained that the fault occurs in the minimum storage unit cell21. At the same time, the fault also occurs in the storage row row2. In the case of a correctable error in the target memory, the physical address of the target memory can be analyzed from multiple levels by the first fault analysis module of the host unit to obtain multiple first analysis results.

[0242] In the case that the second fault analysis module of the BMC unit fails, the physical address of the target memory stored in the register can be obtained through the first fault analysis module, and the physical address of the target memory can be analyzed. Since the fault analysis modules are respectively set in the host unit and the BMC unit, the physical address of the target memory can still be analyzed when any fault analysis module fails and cannot work, which effectively improves the fault tolerance of the system, reduces the impact of system failures on the entire system, ensures the normal operation of memory fault prediction, and improves the reliability and stability of the system.

[0243] As an optional embodiment, the host unit also includes: the host unit also includes: an interrupt control management module, connected to the modular electronic control unit, and the modular electronic control unit is also used to send an interrupt signal to the interrupt control management module when it detects that the second interface cannot send the physical address to the second fault analysis module; the interrupt control management module is used to trigger the first fault analysis module to obtain the physical address from the fault information stored in the register when receiving the interrupt signal.

[0244] The above-mentioned interrupt control management module can be UBOX (i.e., a module in the CPU that performs interrupt control management), which is used to trigger the first fault analysis module to obtain the physical address of the target memory from the register; when the modular electronic control unit is also used to detect that the second interface cannot send the physical address to the second fault analysis module, it indicates that the second fault analysis module has a fault. At this time, the modular electronic control unit sends an interrupt signal to the interrupt control management module, and the interrupt control management module receives the interrupt signal and triggers the first fault analysis module to obtain the physical address of the target memory from the fault information stored in the register.

[0245] As an optional embodiment, the host unit also includes: a first interface, one end of the first interface is connected to the first fault analysis module, and the other end is connected to the data storage unit of the baseboard management controller; the first interface is used to transmit the N first analysis results in the first fault analysis module to the data storage unit, so as to record the N first analysis results in the data storage unit.

[0246] The above-mentioned first interface can be an eSPI interface, which is respectively connected to the first fault analysis module of the host unit and the data storage module of the BMC unit. Through the first interface, multiple first analysis results of the target memory obtained by the first fault analysis module in the host unit are transmitted to the BMC unit and stored in the data storage module.

[0247] As an optional implementation, the baseboard management controller further includes: the data storage unit, one end of which is connected to the first interface, and the other end is connected to the second fault analysis module, for recording the N first analysis results and the N second analysis results; a multidimensional prediction module, including the N prediction models, connected to the data storage unit, for obtaining the first analysis result and / or the second analysis result from the data storage unit, inputting the first analysis result and / or the second analysis result into the corresponding prediction model, and predicting the probability of uncorrectable errors occurring at the corresponding level in the target memory through the prediction model to obtain N prediction values; wherein, the probability of the uncorrectable errors occurring at the level with more correctable errors in the N levels is greater; and / or, within a preset time range, the number of lower levels in the high-level level where the correctable errors occur is greater, the probability of the uncorrectable errors occurring at the high-level is greater; the baseboard management controller further includes: a fusion module, which is used to fuse the N prediction values ​​based on a fusion strategy to obtain a fusion value, wherein the fusion value determines the probability of uncorrectable errors occurring in the target memory.

[0248] The data storage module is used to store the parsing result of the target memory physical address, which can be multiple first parsing results obtained by the first fault parsing module, or the second parsing result obtained by the second fault parsing module; the multi-dimensional prediction model can include prediction models of multiple dimensions, such as online prediction models, offline prediction models, rule matching prediction models and other models of multiple dimensions, or prediction models of multiple faults at different levels, etc. Different memory fault prediction models can be embedded in the BMC of each server to match the different configuration types of each server (such as different configurations of memory bar models, capacities, batches, etc.), so that the prediction model can be flexibly and accurately matched with the configuration of the server to achieve better prediction performance. At the same time, by predicting from multiple dimensions, different types of prediction algorithms and fault information of different dimensions of memory are comprehensively considered, the value of available fault information of memory is fully explored, the utilization rate of fault information is improved, and the memory fault prediction dimension is effectively expanded; the fusion module is used to fuse multiple results output by the multi-dimensional prediction model. The output results of the multi-dimensional prediction model are fused through a suitable fusion strategy, which can effectively improve the accuracy of model prediction, thereby improving the memory fault prediction performance.

[0249] Through the BMC unit, based on multiple first analysis results and / or multiple second analysis results, the probability of uncorrectable errors occurring in the target memory at the corresponding level can be predicted from different levels, and the multiple prediction results obtained are fused according to the fusion strategy to obtain the probability of uncorrectable errors occurring in the target memory. For example, if a correctable error occurs in the target memory A, the physical address of the target memory A is parsed by the first fault analysis module to obtain the minimum storage unit cell21 and the storage row row2 corresponding to the target memory A. The parsing results are respectively input into the prediction model of the minimum storage unit and the prediction model of the storage row to obtain the probability of uncorrectable errors occurring in the target memory A at the minimum storage unit cell as p1 and the probability of uncorrectable errors occurring in the storage row as p2, wherein the probability of uncorrectable errors occurring in the level with more correctable errors in the N levels is greater; and / or, within a preset time range, the more the number of lower levels with correctable errors occurring in the high level is greater, the probability of uncorrectable errors occurring in the high level is greater; pl and p2 are fused according to the fusion strategy to obtain the probability of uncorrectable errors occurring in the target memory A as P.

[0250] By predicting the probability of uncorrectable errors in the target memory of the BMC unit, each server has the function of predicting memory failures, eliminating the need to rely on additional inference servers. This reduces the risk of prediction function paralysis caused by inference server failures, improves the reliability of the prediction function, and avoids the deployment of inference node servers in the system, saving a lot of manpower and material resources and reducing system deployment costs.

[0251] As an optional embodiment, a data processing module is also included between the data storage unit and the multidimensional prediction module of the baseboard management controller, which is used to obtain the first analysis result and the second analysis result from the memory fault data unit, and pre-process the first analysis result and the second analysis result to obtain the processed first analysis result.

[0252] The above-mentioned data processing module is used to perform preliminary analysis on the parsing results obtained from the data storage module. The data processing module includes a variety of preprocessing methods, such as removing abnormal data, completing missing data, classifying data, and labeling data. By preprocessing the parsing results of the target memory physical address, the quality and availability of the parsing results are improved, which helps to improve the accuracy and efficiency of the model.

[0253] As an optional implementation, the N levels include: minimum storage unit, storage row, storage column, storage array, storage block, storage path, memory particle, memory bar, memory channel.

[0254] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0255] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0256] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0257] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0258] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0259] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0260] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0261] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0262] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for predicting memory failure, characterized in that: include: In the case where a correctable error occurs in the target memory, the first fault analysis module of the host unit obtains the physical address of the target memory, and analyzes the physical address in M ​​dimensions to obtain M first analysis results, wherein M is an integer greater than or equal to 2, the M dimensions are obtained based on different storage unit granularity divisions of the target memory, and the first analysis results are used to indicate that the correctable error occurs in the target memory in the corresponding dimension; the baseboard management controller obtains the M first analysis results, inputs the M first analysis results into M prediction models corresponding to the M dimensions, and obtains M prediction values; The baseboard management controller fuses the M prediction values ​​to obtain a fused value, wherein the fused value is used to predict whether an uncorrectable error will occur in the target memory.

2. The method according to claim 1, characterized in that: The first fault analysis module in the host unit obtains the physical address of the target memory, including: The modular electronic control unit of the host unit sends the detected fault information to a register and sends an interrupt signal to the interrupt control management module of the host unit when detecting that the correctable error occurs in the target memory; When receiving the interrupt signal, the interrupt control management module triggers the first fault analysis module to obtain the physical address from the fault information stored in the register.

3. The method according to claim 1, characterized in that The baseboard management controller obtains the M first analysis results from the host unit, and inputs the M first analysis results into M prediction models corresponding to the M dimensions, including: In the self-checking stage when the system is started, the host unit reports the M first analysis results output by the first fault analysis module to the baseboard management controller through the first interface of the host unit; The baseboard management controller stores the M first analysis results in a data storage module; The baseboard management controller inputs the M first analysis results into the M prediction models to obtain M prediction values.

4. The method according to claim 1 or 3, characterized in that: In the case where the M prediction models are online models, the baseboard management controller inputs the M first analysis results into the M prediction models to obtain M prediction values, including: In the case that the correctable error occurs in the target memory within the t-th prediction cycle, the baseboard management controller obtains, from the data storage module, a correctable error sequence of the target memory within the t-th prediction cycle, wherein the correctable error sequence includes a parsing result obtained by the first fault parsing module parsing the physical address of the target memory within the t-th prediction cycle, and the correctable error sequence includes the M first parsing results; The baseboard management controller determines that the target memory has a first error sequence corresponding to the t-1th prediction period; The baseboard management controller inputs the correctable error sequence and the first error sequence into M prediction models to obtain the M prediction values.

5. The method according to claim 4, characterized in that The baseboard management controller fuses the M predicted values ​​to obtain a fused value, including: The baseboard management controller obtains M weight values ​​corresponding to the M dimensions; The baseboard management controller performs weighted summation on the M weight values ​​and the M prediction values ​​to obtain the fusion value.

6. A method for predicting memory failure, characterized in that: include: In case of a correctable error in the target memory, the modular electronic control unit of the host unit sends detected fault information to a register of the host unit; The register stores the fault information; The second fault analysis module of the baseboard management controller obtains a physical address from the fault information of the register through the second interface, and analyzes the physical address in M ​​dimensions to obtain M second analysis results, wherein M is an integer greater than or equal to 2, and the M dimensions are obtained based on different storage unit granularities of the target memory, and the second fault analysis result is used to indicate that the correctable error occurs in the target memory in the corresponding dimension; The baseboard management controller obtains the M second analysis results from the second fault analysis module, inputs the M second analysis results into M prediction models corresponding to the M dimensions, and obtains M prediction values; The baseboard management controller fuses the M prediction values ​​to obtain a fused value, wherein the fused value is used to predict whether an uncorrectable error will occur in the target memory.

7. The method according to claim 6, characterized in that include: In the case where the second fault analysis module cannot obtain the physical address from the register, the first fault analysis module of the host unit obtains the physical address of the target memory from the register, and analyzes the physical address in M ​​dimensions to obtain M first analysis results, wherein the first analysis result is used to indicate that the correctable error occurs in the target memory in the corresponding dimension; The baseboard management controller obtains the M first analysis results, inputs the M first analysis results into M prediction models corresponding to the M dimensions, and obtains M prediction values; The baseboard management controller fuses the M prediction values ​​to obtain a fused value, wherein the fused value is used to predict whether an uncorrectable error will occur in the target memory; The second fault analysis module cannot obtain the physical address from the register, which includes: within a preset time period of shutdown and restart of the host unit, the second fault analysis module cannot obtain the physical address from the register.

8. The method according to claim 7, characterized in that The first fault analysis module of the host unit obtains the physical address of the target memory from the register, including: The modularized electronic control unit of the host unit sends an interrupt signal to the interrupt control management module when detecting that the second interface cannot send the physical address to the second fault analysis module; When receiving the interrupt signal, the interrupt control management module triggers the first fault analysis module to obtain the physical address from the fault information stored in the register.

9. The method according to claim 7, characterized in that: The method further comprises: The data storage module of the baseboard management controller obtains the M first analysis results from the first fault analysis module through the first interface, and stores the M first analysis results; The data storage module of the baseboard management controller obtains the M second analysis results from the second fault analysis module and stores the M second analysis results.

10. The method according to claim 9, characterized in that The baseboard management controller obtains the M second analysis results from the second fault analysis module, inputs the M second analysis results into M prediction models corresponding to the M dimensions, and obtains M prediction values, including: In the case where the M prediction models are online models, the baseboard management controller inputs the M second analysis results into the M prediction models to obtain M prediction values, including: In the case that the correctable error occurs in the target memory within the t-th prediction cycle, the baseboard management controller obtains, in the data storage module, a correctable error sequence of the target memory within the t-th prediction cycle, wherein the correctable error sequence includes a parsing result obtained by the second fault parsing module parsing the physical address of the target memory within the t-th prediction cycle, and the correctable error sequence includes the M second parsing results; the baseboard management controller determines a first error sequence corresponding to the target memory within the t-1-th prediction cycle; The baseboard management controller inputs the correctable error sequence and the first error sequence into M prediction models to obtain the M prediction values.

11. A system for predicting memory failure, characterized in that: include: The host unit includes a first fault analysis module, which is used to obtain a physical address of the target memory when a correctable error occurs in the target memory, and parse the physical address in M ​​dimensions to obtain M first analysis results, where M is an integer greater than or equal to 2; A baseboard management controller is used to obtain the M first analysis results from the host unit, input the M first analysis results into the corresponding prediction model in the multidimensional prediction model, and obtain M prediction values, wherein the multidimensional prediction model includes M prediction models corresponding to the M dimensions; the baseboard management controller is also used to fuse the M prediction values ​​through a fusion strategy to obtain a fusion value, wherein the fusion value is used to represent the probability of an uncorrectable error occurring in the target memory.

12. The system according to claim 11, characterized in that The host unit further comprises: a modular electronic control unit, an interrupt control management module, and a register, wherein the modular electronic control unit is used to send the detected fault information to the register and send an interrupt signal to the interrupt control management module when the correctable error occurs in the target memory; The interrupt control management module is used to trigger the first fault analysis module to obtain the physical address from the fault information stored in the register when receiving the interrupt signal.

13. The system according to claim 11, characterized in that The host unit further comprises: a first interface, one end of the first interface is connected to the first fault analysis module, and the other end is connected to the data storage module of the baseboard management controller; The first interface is used to transmit the M first analysis results in the first fault analysis module to the data storage module, so as to record the M first analysis results in the data storage module.

14. The system according to claim 13, characterized in that The baseboard management controller further includes: the data storage module, the data storage module is used to record the M first analysis results; a multidimensional prediction module, connected to the data storage module, comprising the M prediction models, for obtaining the M first analysis results from the data storage module, inputting the M first analysis results into corresponding prediction models respectively, and predicting the probability of uncorrectable errors occurring at corresponding levels in the target memory through the prediction models to obtain the M prediction values; The baseboard management controller further includes: a fusion module, which is used to fuse the M prediction values ​​based on a fusion strategy to obtain the fusion value.

15. A system for predicting memory failure, characterized in that: include: Including: host unit, baseboard management controller; The host unit includes a modular electronic control unit, a register, and a second interface. The modular electronic control unit is used to send the detected fault information to the register when a correctable error is detected in the target memory; the register is used to store the fault information of the target memory; one end of the second interface is connected to the register, and the other end is connected to the second fault analysis module of the baseboard management controller; The baseboard management controller includes: the second fault analysis module, which is used to obtain a physical address from the fault information of the register through the second interface, and parse the physical address in M ​​dimensions to obtain M second analysis results, wherein M is an integer greater than or equal to 2, and the M dimensions are different levels obtained based on different storage unit granularities of the target memory. The higher the level, the larger the granularity of the storage unit. The high-level storage unit includes multiple low-level storage units. The second analysis result is used to indicate the level at which the correctable error of the target memory occurs.

16. The system according to claim 15, characterized in that The host unit further includes a first fault analysis module, which is used to obtain the physical address from the register and parse the physical address in M ​​dimensions to obtain M first analysis results when the second fault analysis module is unable to obtain the physical address from the register, wherein the first analysis result is used to indicate the level at which the correctable error occurs in the target memory, and the second fault analysis module is unable to obtain the physical address from the register including: within a preset duration of the host unit crashing and restarting, the second fault analysis module is unable to obtain the physical address from the register.

17. The system according to claim 16, characterized in that The host unit further comprises: an interrupt control management module connected to the modular electronic control unit, the modular electronic control unit further configured to send an interrupt signal to the interrupt control management module when detecting that the second interface cannot send the physical address to the second fault analysis module; The interrupt control management module is used to trigger the first fault analysis module to obtain the physical address from the fault information stored in the register when receiving the interrupt signal.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 5 or claims 6 to 10 when executed by a processor.

19. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 5 or claims 6 to 10 are implemented.

20. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 5 or claims 6 to 10 are implemented.

Citation Information

Cited By

  • Memory fault prediction method and device

    CN120523634A

  • Memory fault prediction method and system

    WO2026001570A1