Server error prediction method and device, storage medium and electronic equipment

By analyzing the server's historical data and memory error location information, it predicts whether uncorrectable errors will occur in the server's memory, solving the problem of inaccurate prediction in the existing technology and improving the accuracy of error prediction.

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

Patent Information

Application Number
CN202410851510.3
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

In the existing technology, there is a problem of inaccurate prediction when predicting whether a server error will occur based on the number and frequency of correctable errors in a memory module, and the low accuracy of server error prediction cannot be effectively solved.

Method used

By obtaining the historical data of the target server, determine the location information where correctable errors occurred within a predetermined time period, predict whether uncorrectable errors will occur in the memory based on this information, calculate the error probability at each level, and finally predict whether the server will occur uncorrectable errors. mistake.

Benefits of technology

It improves the accuracy of server error prediction and can more accurately predict whether uncorrectable errors will occur at each sub-level in the fault hierarchy, enhancing the accuracy of prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118860732A_ABST
    Figure CN118860732A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a server error prediction method and device, a storage medium and electronic equipment, and the method comprises the steps: obtaining historical data of a target server; determining position information of correctable errors in a preset time period based on the historical data; obtaining a target sub-hierarchy included in a fault hierarchy which predicts that an uncorrectable error can occur in the memory of the target server; on the basis of the position information, predicting whether an uncorrectable error will occur in an internal target sub-level of the target server, and obtaining a first prediction result; based on the first prediction result, determining a target probability that an internal target sub-level of the target server may have an uncorrectable error; and predicting whether an uncorrectable error will occur in the target server based on the target probability. Through the method and the device, the problem of low server error prediction accuracy is solved.
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 computers, and more specifically, to a method, device, storage medium, electronic device, and computer program product for predicting server errors. Background Art

[0002] Frequent failures of server memory modules have become a major challenge for system administrators and maintenance personnel. Memory failures may not only lead to data loss and system performance degradation, but are also likely to trigger the downtime of the entire system, causing serious service interruptions and economic losses to users.

[0003] In the related art, whether a server error occurs is usually predicted based on the number and frequency of correctable errors occurring in the memory module. However, predicting whether a server error occurs based only on the number and frequency of correctable errors occurring in the memory module has the problem of inaccurate prediction.

[0004] With respect to the above-mentioned problems in the related technologies, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a method, device, storage medium, electronic device, and computer program product for predicting server errors, so as to at least solve the problem of low accuracy in predicting server errors in the related art.

[0006] According to one embodiment of the present application, a method for predicting server errors is provided, comprising: obtaining historical data of a target server, wherein the historical data is data within a predetermined time period before a current time point; determining location information of correctable errors occurring within the predetermined time period based on the historical data; obtaining a target sub-level included in a fault level in which an uncorrectable error is predicted to occur in the memory of the target server; predicting whether an uncorrectable error will occur in the memory of the target server at the target sub-level based on the location information, to obtain a first prediction result; determining a target probability that the uncorrectable error will occur in the memory of the target server at the target sub-level based on the first prediction result; and predicting whether the uncorrectable error will occur in the target server based on the target probability.

[0007] In an exemplary embodiment, determining the location information of the correctable error occurring within the predetermined time period based on the historical data includes: determining the physical address where the correctable error occurred within the predetermined time period based on the historical data; and determining the location information based on the physical address.

[0008] In an exemplary embodiment, determining the location information based on the physical address includes: parsing the physical address to obtain a dynamic random access memory address where the correctable error occurs; and determining the dynamic random access memory address as the location information.

[0009] In an exemplary embodiment, parsing the physical address to obtain the dynamic random access memory address where the correctable error occurs includes: parsing the physical address to obtain the address of the storage block where the correctable error occurs, the address of the memory particle, the address of the storage array, the address of the memory sub-array, and the address of the storage unit, wherein the memory of the target server includes the storage block, the storage block includes the memory particle, the memory particle includes the storage array, the storage array includes the memory sub-array, and the memory sub-array includes the storage unit; determining the address of the storage block, the address of the memory particle, the address of the storage array, the address of the memory sub-array, and the address of the storage unit as the dynamic random access memory address.

[0010] In an exemplary embodiment, the predicting whether an uncorrectable error will occur in the target sub-level of the memory of the target server based on the location information to obtain a first prediction result includes: when the target sub-level includes a storage array level, determining a second address included in the location information, wherein the second address is an address of the storage array in the same storage block where the correctable error occurs, and predicting whether the uncorrectable error will occur in the memory of the target server at the target sub-level based on a first number of addresses belonging to the same target storage array included in the second address to obtain the first prediction result; when the target sub-level includes a memory granule level, determining the same A second number of target storage arrays in which the correctable errors occur in memory particles, and a third number of target storage arrays in which the correctable errors occur, predicting whether the uncorrectable errors will occur in the target sub-level of the memory of the target server based on the second number and the third number, and obtaining a first prediction result; in a case where the target sub-level includes a memory sub-array level, determining 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 location information, and predicting 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, and obtaining a first prediction result.

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

[0012] In an exemplary embodiment, the first prediction result is obtained by predicting whether the uncorrectable error will occur in the target sub-level of the memory of the target server based on the second number and the third number; 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 result includes that the uncorrectable error will occur in the memory of the target server at the target sub-level; 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 result includes that the uncorrectable error will not occur in the memory of the target server at the target sub-level.

[0013] In an exemplary embodiment, the prediction of whether the uncorrectable error 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 to obtain a first prediction result includes: when the fourth number is greater than or equal to a fourth threshold, determining that the first prediction result includes that the uncorrectable error will occur in the memory of the target server at the target sub-level; and when the fourth number is less than the fourth threshold, determining that the first prediction result includes that the uncorrectable error will not occur in the memory of the target server at the target sub-level.

[0014] In an exemplary embodiment, the target probability that the uncorrectable error will occur at the target sub-level in the memory of the target server based on the first prediction result is determined, including: when the target sub-level includes only one sub-level, converting the first prediction result into a first numerical value, and determining the target probability as the product of the first numerical value and a target weight; when the target sub-level includes multiple sub-levels, determining the first weight corresponding to each sub-level, converting the first prediction result corresponding to each sub-level into a second numerical value, and performing weighted summation based on the first weight and the second numerical value to obtain the target probability.

[0015] In an exemplary embodiment, predicting whether the target server will have the uncorrectable error based on the fusion result of the target probability includes: determining a second weight corresponding to the target confidence and a third weight corresponding to the target probability; determining a first product of the target confidence and the second weight, and determining a second product of the target probability and the third weight; and determining, based on the sum of the first product and the second product, predicting whether the target server will have the uncorrectable error as the fusion result.

[0016] In an exemplary embodiment, before obtaining historical data of the target server, the method further includes: upon receiving a prediction instruction sent by a basic input / output system, determining that the correctable error occurs in the memory of the target server, wherein the prediction instruction is an instruction sent by the basic input / output system upon detecting that the correctable error occurs in the memory of the target server.

[0017] In an exemplary embodiment, after predicting whether the target server will have the uncorrectable error based on the target probability, the method further includes: performing an alarm operation when predicting that the uncorrectable error will occur in the memory of the target server based on the fusion result.

[0018] According to another embodiment of the present application, a device for predicting server errors is provided, comprising: obtaining historical data of a target server, wherein the historical data is data within a predetermined time period before a current time point; determining location information of correctable errors occurring within the predetermined time period based on the historical data; obtaining a target sub-level included in a fault level in which an uncorrectable error is predicted to occur in the memory of the target server; predicting whether an uncorrectable error will occur in the memory of the target server at the target sub-level based on the location information, and obtaining a first prediction result; determining a target probability that the uncorrectable error will occur in the memory of the target server at the target sub-level based on the first prediction result; and predicting whether the uncorrectable error will occur in the target server based on the target probability.

[0019] 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.

[0020] 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.

[0021] 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.

[0022] Through the present application, historical data of the target server is obtained, wherein the historical data is data within a predetermined time period before the current time point; location information of a correctable error occurring within a predetermined time period is determined based on the historical data; the target sub-level included in the fault level in which the memory of the target server is predicted to have an uncorrectable error is obtained; based on the location information, whether an uncorrectable error will occur in the target sub-level of the memory of the target server is predicted to have an uncorrectable error, and a first prediction result is obtained; based on the first prediction result, the target probability of an uncorrectable error occurring in the target sub-level of the memory of the target server is determined; and based on the target probability, whether an uncorrectable error will occur in the target server is predicted. Since it is possible to predict whether an uncorrectable error will occur in the target sub-level included in the fault level of the memory of the target server according to the historical data, the first prediction result is obtained, and the target probability of an uncorrectable error occurring in the target sub-level of the memory of the target server is determined according to the first prediction result, and whether an uncorrectable error will occur in the target server is predicted according to the target probability. It is achieved that whether an uncorrectable error will occur in each target sub-level included in the fault level is predicted according to the location information of the correctable error, and the accuracy of error prediction is improved. Therefore, the problem of low accuracy in predicting server errors existing in the related art can be solved, and the effect of improving the accuracy in predicting server errors can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is a hardware structure block diagram of a server device of a method for predicting server errors according to an embodiment of the present application;

[0024] Figure 2 is a flowchart of a method for predicting server errors according to an embodiment of the present application;

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

[0026] Figure 4 is 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;

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

[0028] Figure 6 is a flow chart of a method for predicting server errors according to an embodiment of the present application;

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

[0030] Figure 8 is a schematic diagram of device-level fault prediction according to an embodiment of the present invention;

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

[0032] Fig.10 It is a structural block diagram of a device for predicting server errors according to an embodiment of the present application. DETAILED DESCRIPTION

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

[0034] 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.

[0035] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a method for predicting server errors according to an embodiment of the present application. Figure 1 As shown, the server 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 server 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 server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0036] 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 prediction method of the server error 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 instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server 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.

[0037] 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.

[0038] In order to better understand the embodiments of the present application, the relevant terms are now explained, but they are not intended to be limiting.

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

[0040] 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.

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

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

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

[0044] 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.

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

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

[0047] In this embodiment, a method for predicting server errors is provided. Figure 2 is a flow chart of a method for predicting server errors according to an embodiment of the present application. Figure 2 As shown, the process includes the following steps:

[0048] Step S202,

[0049] Acquire historical data of the target server, wherein the historical data is data within a predetermined time period before the current time point;

[0050] Step S204, determining location information of correctable errors occurring within the predetermined time period based on the historical data;

[0051] Step S206, obtaining a target sub-level included in the fault level in which an uncorrectable error is predicted to occur in the memory of the target server;

[0052] Step S208, predicting whether an uncorrectable error will occur in the target sub-level of the memory of the target server based on the location information, and obtaining a first prediction result;

[0053] Step S210, determining a target probability that the uncorrectable error will occur at the target sub-level in the memory of the target server based on the first prediction result;

[0054] Step S212: predicting whether the uncorrectable error will occur in the target server based on the target probability.

[0055] In the above embodiment, the basic input and output system in the target server can detect whether a correctable error occurs in the memory of the target server. In the case where the basic input and output system detects that the memory of the target server sends a correctable error, the information that there is a correctable error in the memory of the target server can be sent to the baseboard management controller BMC. After receiving the information sent by the baseboard input and output system, the BMC can determine that a correctable error has occurred in the memory of the target server 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 does not limit 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.

[0056] 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.

[0057] In the above embodiment, the structural diagram of the DRAM particle can be seen in the attached Figure 3 ,like Figure 3 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. memory particles. Multiple devices form a rank, i.e. a storage block. The connection diagram between the central controller and the dual in-line memory module can be found in the attached figure. Figure 4 ,like Figure 4As 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 5 ,like Figure 5 As shown, the channel is connected to the DRAM included in the Rank through the data bus DQs, and each DRAM includes multiple Banks.

[0058] 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 memory 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 memory 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.

[0059] In the above embodiment, the historical data may be log data in the memory of the target server, or historical correctable error data. The historical data may include location information of correctable errors that occurred in the target server within a predetermined time period.

[0060] 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 be implemented to predict the fault level of the uncorrectable error in the memory of the target server in the following manner: determine the correctable error sequence of the first memory (i.e., the memory of the target server) in the t-th prediction period, and determine the first error sequence corresponding to the first memory in the t-1-th prediction period; wherein the correctable error sequence includes at least n correctable errors, and the n correctable errors are determined by parsing the memory failure data occurring in the first memory in the t-th prediction period, and the first error sequence is a sequence composed of the sequence difference between the historical correctable error sequence and the fault score sequence, and the historical correctable error sequence is used to record the actual number of correctable errors of the first memory distributed in m levels in the t-1-th prediction period, and the fault score sequence is used to record The historical fault score of the correctable error that occurs again in the m levels predicted for the t-1 prediction cycle; the m levels are different levels obtained by dividing the different storage unit granularities of the first memory, the higher the level, the larger the storage unit granularity, the high-level storage unit includes multiple low-level storage units, t, n are positive integers, and m is a positive integer greater than 1; the correctable error sequence and the first error sequence are input into the target algorithm (such as a multi-level learning prediction model) to obtain the fault score of the first memory having a memory fault in the t+1 prediction cycle, wherein one or more memories include: the first memory, 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 score, the fault level of the fault can be determined according to the fault score.The correctable error sequence and the first error sequence are input into the multi-level learning prediction model to obtain the fault score of the first 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 multi-level learning prediction model and the level where each correctable error subsequence is located; inputting the correctable error subsequence and the first error sequence into the fault prediction sub-model to obtain the sub-score of the level corresponding to the correctable error subsequence; fusing the m sub-scores of the m levels corresponding to the first memory to obtain the fault score. The fusion of the m sub-scores of the m levels corresponding to the first 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 location information. For example, it is possible to predict whether the memory will have an uncorrectable error at the storage array level, at the memory particle level, or at the memory sub-array level based on the location information to obtain a first prediction result. Wherein, Sub-array is a memory sub-array, which can be a further subdivided storage unit within 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 result may include that an uncorrectable error will occur at the target sub-level, or that an uncorrectable error will not occur at the target sub-level.

[0061] In the above embodiment, the first prediction result can be converted into a Boolean variable. For example, when the first prediction result is that an uncorrectable error will occur at the target sub-level, 1 is output, and when the first prediction result is that an uncorrectable error will not occur at the target sub-level, zero is output. After obtaining the first prediction result, the first prediction result 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.

[0062] 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.

[0063] Through the present application, historical data of the target server is obtained, wherein the historical data is data within a predetermined time period before the current time point; location information of a correctable error occurring within a predetermined time period is determined based on the historical data; the target sub-level included in the fault level for predicting that the memory of the target server will have an uncorrectable error is obtained; based on the location information, whether the memory of the target server will have an uncorrectable error in the target sub-level is predicted to obtain a first prediction result; based on the first prediction result, the target probability that the memory of the target server will have an uncorrectable error in the target sub-level is determined; based on the target probability, whether the target server will have an uncorrectable error. Since the fault level at which the memory of the target server will have an uncorrectable error and the target confidence level at which the fault level will have an uncorrectable error can be predicted according to the target algorithm. The target sub-level included in the fault level is determined, and whether the memory of the target server will have an uncorrectable error in the target sub-level included in the fault level is predicted according to the historical data, and the first prediction result is obtained, and the target probability that the memory of the target server will have an uncorrectable error in the target sub-level is determined according to the first prediction result, and whether the target server will have an uncorrectable error is predicted according to the target probability. It is possible to predict whether an uncorrectable error will occur in each target sub-level included in the fault level based on the location information of the correctable error, thereby improving the accuracy of error prediction. Therefore, the problem of low accuracy of predicting server errors existing in the related art can be solved, thereby achieving the effect of improving the accuracy of predicting server errors.

[0064] The execution subject of the above steps may be a processor, a server, such as a baseboard management controller included in the server, etc., but is not limited thereto.

[0065] In an exemplary embodiment, the determining of the location information of the correctable error occurring within the predetermined time period based on the historical data includes: determining the physical address where the correctable error occurred within the predetermined time period based on the historical data; and determining the location information based on the physical address. In this embodiment, the physical address where the correctable error occurred within the predetermined time period can be determined based on the historical data, and the physical address can be parsed to map the error to a specific data bus to obtain the location information. For example, the data bus (DQ lines, hereinafter referred to as DQ) of the target server's memory can be monitored, and the error can be mapped to a specific DQ by parsing the physical address where CE has occurred. Then, the algorithm counts the regularity of CE occurring on these DQs, combines the pre-established matching rules, calculates the fault score, and performs fault predictions at different levels.

[0066] In the above embodiment, the specific location information of the correctable error can be determined through the physical address, so that the error can be quickly located, thereby improving the efficiency of fault location.

[0067] In an exemplary embodiment, the determining of the location information based on the physical address includes: parsing the physical address to obtain the dynamic random access memory address where the correctable error occurs; determining the dynamic random access memory address as the location information. In this embodiment, when the system detects that CE occurs, the memory CE physical address decode module can be responsible for decoding the CE physical address and converting it into a corresponding DRAM (Dynamic Random Access Memory, a volatile memory used in computer systems that needs to be refreshed periodically to maintain stored data) address. This process involves multiple levels, which may include Channel, Dimm, Rank, Bank, and Row / Column. The decoding process can be completed by utilizing the corresponding decode module in BIOS / BMC, or it can be directly implemented in the algorithm to improve flexibility and response speed.

[0068] In the above embodiment, when the target sub-level includes three levels, such as the Bank level, the device level and the Sub-array level, the flow chart of the prediction method for the server error can be found in the attached Figure 6 ,like Figure 6 As shown, when the system detects that CE occurs, the memory CE physical address decode module can be responsible for decoding the CE physical address and converting it into the corresponding DRAM address. Subsequently, the decoded DRAM address will be sent to three independent fault prediction modules. These fault prediction modules can calculate the DQ offset of the DRAM address within a Rank based on the DRAM address and related memory controller register information. Furthermore, based on the DRAM chip bandwidth specification (such as x4, x8 or x16), the module can calculate the DQ offset of the DRAM address within a single Device. And perform bank-level fault prediction, device-level fault prediction, and sub-arra based on the DRAM address. y Each fault prediction module will independently predict the fault and output the prediction result. By fine-tuning the positioning and prediction rules of the minimum sub-array level of memory faults, the accuracy and recall rate of memory fault prediction on the server are improved.

[0069] In the above embodiment, the physical address can be parsed to obtain the dynamic random access memory address, and the dynamic random access memory address is determined as the position information, thereby improving the accuracy of locating the position where the correctable error occurs.

[0070] In an exemplary embodiment, the parsing of the physical address to obtain the dynamic random access memory address where the correctable error occurs includes: parsing the physical address to obtain the address of the storage block where the correctable error occurs, the address of the memory particle, the address of the storage array, the address of the memory sub-array, and the address of the storage unit, wherein the memory of the target server includes the storage block, the storage block includes the memory particle, the memory particle includes the storage array, the storage array includes the memory sub-array, and the memory sub-array includes the storage unit; determining the address of the storage block, the address of the memory particle, the address of the storage array, the address of the memory sub-array, and the address of the storage unit as the dynamic random access memory address. In this embodiment, the target server DRAM system may include a set of multiple Channels, Channel may include a set of Dimms, Dimm may include a set of Ranks, Rank may include a set of devices, devices may include a set of Banks, Banks may include a set of sub-arrays, and sub-arrays may include multiple cells. Therefore, the dynamic random access memory address may include the address of the storage block, i.e., the Rank address, the address of the memory particle, i.e., the device address, the address of the storage array, i.e., the Bank address, the address of the memory sub-array, i.e., the sub-array address, and the address of the storage unit, i.e., the cell address.

[0071] In an exemplary embodiment, the predicting whether an uncorrectable error will occur in the target sub-level of the memory of the target server based on the location information to obtain a first prediction result includes: when the target sub-level includes a storage array level, determining a second address included in the location information, wherein the second address is an address of the storage array in the same storage block where the correctable error occurs, and predicting whether the uncorrectable error will occur in the memory of the target server at the target sub-level based on a first number of addresses belonging to the same target storage array included in the second address to obtain the first prediction result; when the target sub-level includes a memory granule level, determining the same The second number of the target storage arrays in which the correctable errors occur in the memory particles, and the third number of the correctable errors in the target storage array, based on the second number and the third number, predict whether the uncorrectable errors will occur in the target sub-level of the memory of the target server, and obtain a first prediction result; when the target sub-level includes the memory sub-array level, determine the third address of the memory sub-array in which the correctable errors occur in the memory sub-array belonging to the same storage array based on the location information, and predict 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 obtain a first prediction result. 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 and their spatial distribution on the entire Rank of the server memory system. 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 where CE has occurred 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 algorithm of the invention will record DQ(c, d, r, b) = 1, not 5. Therefore, the second address of the storage array bank that sends a correctable error in the same storage block Rank included in the location information can be determined, and the storage array can come from different devices. Whether an uncorrectable error will occur in the target sub-level of the memory of the target server is predicted based on the first number of addresses of the same target storage array included in the second address.

[0072] In the above embodiment, Figure 7is a schematic diagram of storage area level fault prediction according to an embodiment of the present invention, such as Figure 7 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.

[0073] In the above embodiment, see the attached Figure 7 , 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.

[0074] In the above embodiment, whether a storage array level fault 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 faults, and further improving the accuracy of predicting whether an uncorrectable error will occur in the target server.

[0075] 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.

[0076] Figure 8 is a schematic diagram of Device-level fault prediction according to an embodiment of the present invention, such as Figure 8As shown, a memory device 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 memory of the target server based on the occurrence of CE on banks belonging to the same device.

[0077] In the above embodiment, by predicting whether an uncorrectable error occurs in the memory of the target server 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 device faults on uncorrectable errors and improve the accuracy of predicting uncorrectable errors.

[0078] 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.

[0079] In an exemplary embodiment, the first prediction result is obtained by predicting whether the target server's memory will have the uncorrectable error at the target sub-level based on the first number of addresses belonging to the same target storage array included in the second address, including: when the first number is greater than or equal to the first threshold, determining that the first prediction result includes that the target server's memory will have the uncorrectable error at the target sub-level; when the first number is less than the first threshold, determining that the first prediction result includes that the target server's memory will not have the uncorrectable error at the target sub-level. In this embodiment, the determination 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 determination rule predicts that the device has a higher 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 can 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 shows that the probability of failure of the Bank has increased significantly, and CE is more likely to be caused by a hardware circuit failure. If left unchecked, 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 target server's memory will have uncorrectable errors at the bank level. It should be noted that the first threshold of 2 is only an exemplary description, and the first threshold can also be other values. The first threshold can be a numerical value determined based on statistics, and the present invention does not limit this. For example, it can also be set to 3, 4, etc.

[0080] See the attached Figure 7 , 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.

[0081] 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.

[0082] In an exemplary embodiment, the first prediction result is obtained by predicting whether the uncorrectable error will occur in the target sub-level of the memory of the target server based on the second number and the third number; when the second number is greater than or equal to the second threshold, and the third number is greater than or equal to the third threshold, it is determined that the first prediction result includes that the uncorrectable error will occur in the target sub-level of the memory of the target server; when the second number is less than the second threshold, and / or the third number is less than the third threshold, it is determined that the first prediction result includes that the uncorrectable error will not occur in the target sub-level of the memory of the target server. In this embodiment, when it is determined that CE occurs in at least two storage areas in a device, when the second number of CEs occurring in each storage area where CE occurs is greater than the second threshold, it can be determined that the target server's memory will have an uncorrectable error at the memory granule level; otherwise, it is considered that the target server's memory will not have an uncorrectable error at the memory granule level.

[0083] 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 Figure 8 ,like Figure 8As 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.

[0084] 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.

[0085] In an exemplary embodiment, the predicting whether the target server's memory will have the uncorrectable error at the target sub-level based on the fourth number of storage units included in the third address to obtain a first prediction result includes: when the fourth number is greater than or equal to a fourth threshold, determining that the first prediction result includes that the target server's memory will have the uncorrectable error at the target sub-level; when the fourth number is less than the fourth threshold, determining that the first prediction result includes that the target server's memory will not have the uncorrectable error at the target sub-level. Each Bank may include multiple memory sub-arrays. Memory sub-array-level failures pay more attention to the scope of failure impact than device-level failures or bank-level failures. The sub-array-level failure prediction algorithm is intended to capture more fine-grained memory failure 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 a 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) is 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 unit cells have experienced CE on s. When ADDR(s)≥2, it can be determined that a memory sub-array level failure has occurred in the memory of the target server. That is, the fourth threshold value can be 2. It should be noted that the fourth threshold value can also take other values, such as 3, 4. The fourth threshold value can be a numerical value calculated based on statistics, and the present invention is not limited to this.

[0086] 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. 9 is a schematic diagram of memory sub-array level fault prediction according to an embodiment of the present invention. Fig. 9 As shown in the figure, the internal structure of a Bank is revealed. The Bank consists of 4 sub-arra y Each sub-array is connected to a DQ. According to the above rules, Fig. 9 The sub-arra connected to DQ0 yTwo CE events occurring in different cells are recorded, so it can be inferred that there is a high probability of CE occurring in this Bank and the Dimm where it is located.

[0087] 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 wordline, the access transistor is activated, allowing data to be read or written to the storage capacitor through the bitline. 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 wordline or bitline failures, or problems affecting shared circuits such as localrowbuffer. The occurrence of this failure mode is far more serious than the failure prediction at the bank level and device level. At the sub-array level, since the fault area is more concentrated, it may be a precursor to a larger-scale failure, or direct evidence of the degradation of subtle circuits inside the memory. Sub-array y The high-level fault prediction algorithm can effectively identify this error mode and detect and resolve potential failure points at an early stage.

[0088] In an exemplary embodiment, the target probability that the uncorrectable error will occur in the target sub-level of the target server based on the first prediction result includes: when the target sub-level includes only one sub-level, converting the first prediction result into a first numerical value, and determining the target probability by multiplying the first numerical value and the target weight; when the target sub-level includes multiple sub-levels, determining the first weight corresponding to each sub-level, converting the first prediction result corresponding to each sub-level into a second numerical value, and performing weighted summation based on the first weight and the second numerical value to obtain the target probability. In this embodiment, when the target sub-level includes only one sub-level, the first prediction result can be converted into a first numerical value, for example, when the first prediction result is that an uncorrectable error will occur in the target sub-level, the first numerical value is 1, and when the first prediction result is that an uncorrectable error will not occur in the target sub-level, the first numerical value is 0. The target weight corresponding to the first prediction result can be determined, and the product of the first numerical value and the target weight is determined as the target probability.

[0089] In the above embodiment, when the target sub-level includes multiple sub-levels, for example, including the bank level, the device level and the sub-array level, the first prediction result of each sub-level can be determined. For example, it is predicted that no uncorrectable error will occur at the bank level, uncorrectable error will occur at the device level, and uncorrectable error will occur at the sub-array level. Then the second numerical values ​​corresponding to the first prediction result are 0, 1, and 1 respectively. The first weight corresponding to each sub-level can also be determined. It should be noted that the first weight can be determined according to the level of the sub-level, and the higher the level, the smaller the weight. Among them, for the three rules of the bank level, the device level and the sub-array level, weights w1, w2 and w3 are assigned respectively (according to the severity of the fault at different levels, the weights are also different, here w1<w2<w3). Then the target probability can be expressed as w1·R1+w2·R2+w3·R3, where R1, R2, and R3 represent the second numerical values.

[0090] In an exemplary embodiment, predicting whether the target server will have the uncorrectable error based on the target probability includes: determining a target confidence for predicting that the target server will have the uncorrectable error at the fault level; determining a second weight corresponding to the target confidence, and a third weight corresponding to the target probability; determining a first product of the target confidence and the second weight, and determining a second product of the target probability and the third weight; and predicting whether the target server will have the uncorrectable error based on the sum of the first product and the second product. In this embodiment, the basic idea of ​​fusion is to set weights for the memory fault prediction rule-based algorithm, and combine it with the confidence score of the learning-based prediction algorithm to output a comprehensive fault prediction score. Specifically, the Boolean output of each rule-based method is first converted into a numerical score. If a rule is judged to be True (satisfies the condition), that is, the first prediction result is that an uncorrectable error will occur at the target sub-level, then R nAssign a value of 1; if it is judged as False (the condition is not met), that is, the first prediction result is that no uncorrectable error will occur at the target sub-level, then Rn is assigned a value of 0. Next, a weight is assigned to each rule to indicate its importance in the comprehensive score. For the three rules at the Bank level, Device level, and Sub-array level, weights w1, w2, and w3 are assigned respectively (the weights are different according to the severity of the fault at different levels, here w1<w2<w3). At the same time, the learning prediction algorithm outputs a confidence score, which indicates the possibility of a UE occurring in the cell at the next moment. The three levels of the rule-based algorithm should match the levels of the learning memory fault prediction algorithm, and the influence of the rule-based algorithm should be added to the learning memory fault prediction algorithm according to the weights to improve the prediction accuracy. Assuming that the score of the learning algorithm is (S_″learning″) and the combined score of the two algorithms is (S_″combined″), the rule score and the learning algorithm score can be combined by weighted averaging. The specific formula is as follows: S combined =α·S learning +β·(w1·R1+w2·R2+w3·R3). Among them, α is the second weight and β is the third weight, which are used to balance the learning algorithm score and the rule score. The actual value is adjusted according to the actual situation. It should be noted that the learning algorithm continuously learns multi-level memory faults, so the Slearning in the formula may represent multiple levels, including Bank level, Device level and Sub-array level, which are mutually inclusive. For example, when Slearning represents the Bank level, and the corresponding Bank has Bank-level, Device-level and Sub-array-level faults, the corresponding rules should be matched and the fault score should be calculated in a weighted manner; when Slearning represents the Sub-array level, and the corresponding Sub-array has a fault, the higher-level Bank level and Device level will not participate in the weighting, and the above formula will become: S combined =α·S learning +β·(w3·R3).

[0091] In the above embodiment, the source of CE and its manifestation in the memory structure are deeply analyzed, and different levels of memory fault prediction scores are given, so as to more comprehensively identify potential fault modes. The multi-level fault information of device, bank and sub-array of server memory is comprehensively considered, features are extracted from the fault information and a fault prediction model is established, which can greatly improve the accuracy of fault prediction and provide a more solid guarantee for the efficient and stable operation of the server.

[0092] In an exemplary embodiment, before obtaining the historical data of the target server, the method further includes: determining that the correctable error occurs in the memory of the target server when receiving a prediction instruction sent by a basic input-output system, wherein the prediction instruction is an instruction sent by the basic input-output system when detecting that the correctable error occurs in the memory of the target server. In this embodiment, the basic input-output system in the target server can detect whether a correctable error occurs in the memory of the target server. When the basic input-output system detects that the memory of the target server sends a correctable error, information that a correctable error exists in the memory of the target server can be sent to the baseboard management controller BMC. After receiving the information sent by the baseboard input-output system, the BMC can determine that a correctable error occurs in the memory of the target server and obtain historical data. Among them, the information that a correctable error exists in the memory of the target server can be a prediction instruction.

[0093] In an exemplary embodiment, after predicting whether the target server will have the uncorrectable error based on the target probability, the method further includes: performing an alarm operation when it is predicted that the memory of the target server will have the uncorrectable error. In this embodiment, an alarm operation may be performed when it is predicted that the target server will have an uncorrectable error. The alarm operation may include sending an alarm message to a terminal associated with the target server to prompt the staff to troubleshoot the fault in time and ensure the stability of the target server system.

[0094] In an exemplary embodiment, when the basic input and output system BIOS detects that a correctable error occurs in the memory of the target server, the address of the data bus where the correctable error occurs can be written into the target register, and the baseboard management controller can obtain the address data within a predetermined time period before the current time from the target register at a predetermined time interval, determine the address data as location information, and predict whether the memory of the target server has a storage area level fault based on the location information to obtain a first prediction result; predict whether the memory of the target server has a memory device level fault based on the location information to obtain a second prediction result; predict whether the memory of the target server has a memory subarray level fault based on the location information to obtain a third prediction result; predict whether the memory of the target server has an uncorrectable error based on the first prediction result, the second prediction result, and the third prediction result. That is, obtaining the historical data of the target server may include obtaining the address data stored in the target register. The address data directly reflects the dynamic random access memory address, that is, the specific location where the correctable error occurs can be located without parsing the physical address. In this embodiment, each time the data in the target register is obtained, the address data within the preset time period can be obtained, and other address data in the target register that is outside the preset time period can be deleted to release the memory of the target register.

[0095] In the above embodiment, by writing the address data of the correctable error to the target register, the baseboard management controller only needs to obtain the address data from the target register, without parsing the physical address or stripping the address data from the historical data, thereby improving the prediction efficiency and ensuring the stability of the server.

[0096] In the aforementioned embodiment, DQ is used as the basic unit to uniformly consider multi-dimensional factors such as the number, type and location of CEs, thereby realizing fine-grained server memory fault prediction. By real-time collection and analysis of server memory fault data and utilizing bank-level, device-level and sub-array-level memory fault prediction rules that reflect memory fault mechanisms, the server memory fault mode and fault characteristics can be better matched, thereby realizing high-accuracy prediction of memory faults, improving the prediction accuracy of server memory system faults, and reducing server downtime rates.

[0097] 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.

[0098] In this embodiment, a prediction device for server errors is also provided, which is used to implement the above embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0099] Fig.10 is a structural block diagram of a device for predicting server errors according to an embodiment of the present application, such as Fig.10 As shown, the device comprises:

[0100] The first acquisition module 1002 is used to acquire historical data of the target server, wherein the historical data is data within a predetermined time period before the current time point;

[0101] A first determining module 1004, configured to determine location information of correctable errors occurring within the predetermined time period based on the historical data;

[0102] A second acquisition module 1006 is used to acquire a target sub-level included in the fault level in which an uncorrectable error is predicted to occur in the memory of the target server;

[0103] A first prediction module 1008, configured to predict whether the uncorrectable error will occur at the target sub-level in the memory of the target server based on the location information, and obtain a first prediction result;

[0104] A second determination module 1010 is configured to determine a target probability that the uncorrectable error will occur at the target sub-level in the memory of the target server based on the first prediction result;

[0105] The second prediction module 1012 is used to predict whether the uncorrectable error will occur in the target server based on the target probability.

[0106] In an exemplary embodiment, the first determination module 1004 can implement the determination of the location information of the correctable error occurring within the predetermined time period based on the historical data in the following manner: determining the physical address where the correctable error occurred within the predetermined time period based on the historical data; and determining the location information based on the physical address.

[0107] In an exemplary embodiment, the first determination module 1004 may implement the determination of the location information based on the physical address in the following manner: parsing the physical address to obtain the dynamic random access memory address where the correctable error occurs; and determining the dynamic random access memory address as the location information.

[0108] In an exemplary embodiment, the first determination module 1004 can implement the parsing of the physical address to obtain the dynamic random access memory address where the correctable error occurs in the following manner: parse the physical address to obtain the address of the storage block where the correctable error occurs, the address of the memory particle, the address of the storage array, the address of the memory sub-array, and the address of the storage unit, wherein the memory of the target server includes the storage block, the storage block includes the memory particle, the memory particle includes the storage array, the storage array includes the memory sub-array, and the memory sub-array includes the storage unit; determine the address of the storage block, the address of the memory particle, the address of the storage array, the address of the memory sub-array, and the address of the storage unit as the dynamic random access memory address.

[0109] In an exemplary embodiment, the first prediction module 1008 can achieve the prediction of whether the uncorrectable error will occur in the target sub-level of the memory of the target server based on the location information in the following manner to obtain a first prediction result: when the target sub-level includes a storage array level, determine the second address included in the location information, wherein the second address is the address of the storage array in the same storage block where the correctable error occurs, and predict whether the uncorrectable error will occur in the memory of the target server at the target sub-level based on a first number of addresses belonging to the same target storage array included in the second address to obtain a first prediction result; when the target sub-level includes a memory granule level, determine the second address included in the location information, wherein the second address is the address of the storage array in the same storage block where the correctable error occurs, and predict whether the uncorrectable error will occur in the memory of the target server at the target sub-level based on a first number of addresses belonging to the same target storage array included in the second address to obtain a first prediction result; The method comprises: determining a second number of target storage arrays in which the correctable errors occur in the same memory chip and a third number of the target storage arrays in which the correctable errors occur, and predicting whether the uncorrectable errors will occur in the target sub-level of the memory of the target server based on the second number and the third number, to obtain a first prediction result; and in a case where the target sub-level includes a memory sub-array level, determining 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 location information, and predicting 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 a first prediction result.

[0110] In an exemplary embodiment, the first prediction module 1008 can achieve the prediction of whether the uncorrectable error will occur in the target sub-level of the memory of the target server based on the first number of addresses included in the second address and belonging to the same target storage array in the following manner to obtain a first prediction result: when the first number is greater than or equal to a first threshold, it is determined that the first prediction result includes that the uncorrectable error will occur in the memory of the target server at the target sub-level; when the first number is less than the first threshold, it is determined that the first prediction result includes that the uncorrectable error will not occur in the memory of the target server at the target sub-level.

[0111] In an exemplary embodiment, the first prediction module 1008 can achieve the prediction of whether the uncorrectable error will occur in the target sub-level of the memory of the target server based on the second number and the third number in the following manner to obtain a first prediction result: 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, it is determined that the first prediction result includes that the uncorrectable error will occur in the memory of the target server at the target sub-level; when the second number is less than the second threshold, and / or the third number is less than the third threshold, it is determined that the first prediction result includes that the uncorrectable error will not occur in the memory of the target server at the target sub-level.

[0112] In an exemplary embodiment, the first prediction module 1008 can achieve the prediction of whether the uncorrectable error 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 in the following manner to obtain a first prediction result: when the fourth number is greater than or equal to a fourth threshold, it is determined that the first prediction result includes that the uncorrectable error will occur in the memory of the target server at the target sub-level; when the fourth number is less than the fourth threshold, it is determined that the first prediction result includes that the uncorrectable error will not occur in the memory of the target server at the target sub-level.

[0113] In an exemplary embodiment, the second determination module 1010 can implement the target probability of the uncorrectable error occurring in the target sub-level of the target server's memory based on the first prediction result in the following manner: when the target sub-level includes only one sub-level, convert the first prediction result into a first numerical value, and determine the target probability as the product of the first numerical value and the target weight; when the target sub-level includes multiple sub-levels, determine the first weight corresponding to each sub-level, convert the first prediction result corresponding to each sub-level into a second numerical value, and perform weighted summation based on the first weight and the second numerical value to obtain the target probability.

[0114] In an exemplary embodiment, the second prediction module 1012 can predict whether the uncorrectable error will occur in the target server based on the target probability in the following manner: determine a second weight corresponding to the target confidence and a third weight corresponding to the target probability; determine a first product of the target confidence and the second weight, and determine a second product of the target probability and the third weight; and determine the sum of the first product and the second product as the fusion result.

[0115] In an exemplary embodiment, the device can also be used to, before obtaining historical data of the target server: determine that the correctable error has occurred in the memory of the target server when a prediction instruction sent by a basic input and output system is received, wherein the prediction instruction is an instruction sent by the basic input and output system when it detects that the correctable error has occurred in the memory of the target server.

[0116] In an exemplary embodiment, the apparatus may also be configured to, after predicting whether the uncorrectable error will occur in the target server based on a target probability, perform an alarm operation when it is predicted that the uncorrectable error will occur in the memory of the target server.

[0117] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0118] 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.

[0119] 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.

[0120] 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.

[0121] 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.

[0122] 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.

[0123] 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.

[0124] 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.

[0125] 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 server errors. It is characterized in that include: Acquire historical data of the target server, wherein the historical data is data within a predetermined time period before a current time point; determine location information of correctable errors occurring within the predetermined time period based on the historical data; Obtain a target sub-level included in the fault level at which an uncorrectable error will occur in the memory of the target server; predict whether the uncorrectable error will occur in the memory of the target server at the target sub-level based on the location information, and obtain a first prediction result; Determining a target probability that the uncorrectable error will occur at the target sub-level in the memory of the target server based on the first prediction result; Whether the uncorrectable error will occur in the target server is predicted based on the target probability.

2. The method according to claim 1, It is characterized in that The determining, based on the historical data, the location information of the correctable error occurring within the predetermined time period comprises: determining, based on the historical data, a physical address at which the correctable error occurred within the predetermined time period; The location information is determined based on the physical address.

3. The method according to claim 2, It is characterized in that The determining the location information based on the physical address includes: Parsing the physical address to obtain a dynamic random access memory address where the correctable error occurs; The dynamic random access memory address is determined as the location information.

4. The method according to claim 3, It is characterized in that The step of parsing the physical address to obtain the dynamic random access memory address where the correctable error occurs includes: Parsing the physical address to obtain the address of the storage block where the correctable error occurs, the address of the memory particle, the address of the storage array, the address of the memory sub-array, and the address of the storage unit, wherein the memory of the target server includes the storage block, the storage block includes the memory particle, the memory particle includes the storage array, the storage array includes the memory sub-array, and the memory sub-array includes the storage unit; The address of the storage block, the address of the memory particle, the address of the storage array, the address of the memory sub-array and the address of the storage unit are determined as the dynamic random access memory address.

5. The method according to claim 1, It is characterized in that The predicting, based on the location information, whether an uncorrectable error will occur in the target sub-level of the memory of the target server to obtain a first prediction result includes: In a case where the target sub-level includes a storage array level, determining a second address included in the location information, wherein the second address is an address of a storage array in the same storage block where the correctable error occurs, and predicting whether the uncorrectable error will occur in the target sub-level of the memory of the target server based on a first number of addresses belonging to the same target storage array included in the second address, to obtain a first prediction result; In the case where the target sub-level includes a memory particle level, determining, based on the location information, a second number of target storage arrays in which the correctable errors occur in the same memory particle, and a third number of target storage arrays in which the correctable errors occur, and predicting, based on the second number and the third number, whether the uncorrectable errors will occur in the memory of the target server at the target sub-level, to obtain a first prediction result; In the case where the target sub-level includes a memory sub-array level, a third address of a memory sub-array in which the correctable error occurs in a memory sub-array belonging to the same storage array is determined based on the location information, and whether the uncorrectable error will occur in the memory of the target server at the target sub-level is predicted based on a fourth number of storage units included in the third address to obtain a first prediction result.

6. The method according to claim 5, It is characterized in that The predicting whether the uncorrectable error will occur at the target sub-level in the memory of the target server based on the first number of addresses belonging to the same target storage array included in the second address, to obtain a first prediction result, includes: In a case where the first number is greater than or equal to a first threshold, determining that the first prediction result includes that the uncorrectable error will occur at the target sub-level in the memory of the target server; In a case where the first number is less than the first threshold, determining the first prediction result includes that the uncorrectable error will not occur in the target sub-level of the memory of the target server.

7. The method according to claim 5, It is characterized in that The predicting whether the uncorrectable error will occur at the target sub-level in the memory of the target server based on the second number and the third number to obtain a first prediction result includes: In a case where the second number is greater than or equal to a second threshold value, and the third number is greater than or equal to a third threshold value, determining that the first prediction result includes that the uncorrectable error will occur at the target sub-level in the memory of the target server; When the second number is smaller than the second threshold, and / or the third number is smaller than the third threshold, determining the first prediction result includes that the uncorrectable error will not occur in the target sub-level of the memory of the target server.

8. The method according to claim 5, It is characterized in that The predicting, based on the fourth number of storage units included in the third address, whether the uncorrectable error will occur in the memory of the target server at the target sub-level, to obtain a first prediction result, includes: In a case where the fourth number is greater than or equal to a fourth threshold, determining that the first prediction result includes that the uncorrectable error will occur at the target sub-level in the memory of the target server; In a case where the fourth number is less than the fourth threshold, determining the first prediction result includes that the uncorrectable error will not occur in the target sub-level of the memory of the target server.

9. The method according to claim 1, It is characterized in that Determining, based on the first prediction result, a target probability that the uncorrectable error will occur at the target sub-level in the memory of the target server includes: In a case where the target sublevel includes only one sublevel, converting the first prediction result into a first numerical value, and determining the product of the first numerical value and a target weight as the target probability; In the case where the target sub-level includes multiple sub-levels, the first weight corresponding to each of the sub-levels is determined, the first prediction result corresponding to each of the sub-levels is converted into a second value, and a weighted sum is performed based on the first weight and the second value to obtain the target probability.

10. The method according to claim 1, It is characterized in that Predicting whether the target server will have the uncorrectable error based on the target probability includes: determining a target confidence level for predicting that the target server will experience the uncorrectable error at the failure level; Determine a second weight corresponding to the target confidence and a third weight corresponding to the target probability; Determining a first product of the target confidence and the second weight, and determining a second product of the target probability and the third weight; Whether the uncorrectable error will occur in the target server is predicted based on the sum of the first product and the second product.

11. The method according to claim 1, It is characterized in that Before acquiring the historical data of the target server, the method further includes: Upon receiving a prediction instruction sent by a basic input / output system, determining that the correctable error occurs in the memory of the target server, wherein the prediction instruction is an instruction sent by the basic input / output system upon detecting that the correctable error occurs in the memory of the target server.

12. The method according to claim 1, It is characterized in that After predicting whether the uncorrectable error will occur in the target server based on the target probability, the method further includes: When it is predicted that the uncorrectable error will occur in the memory of the target server, an alarm operation is performed.

13. A computer-readable storage medium, It is 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 12 when executed by a processor.

14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method described in any one of claims 1 to 12 are implemented.

15. A computer program product comprising a computer program, It is 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 12 are implemented.

Citation Information

Cited By

  • Memory retry threshold configuration method and device

    CN121255525A