Memory fault prediction model generation method, detection method, device and equipment
By generating a memory fault prediction model and using neural networks to identify potential faults, the problem of server memory faults being difficult to predict in advance is solved, achieving early warning and improving stability.
Patent Information
- Application Number
- CN202210107949.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-28
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-01-28
AI Technical Summary
Server memory failures are difficult to predict in advance, causing server downtime and affecting operation and maintenance efficiency and user experience.
By obtaining sample data corresponding to memory faults, the neural network model is trained to generate a memory fault prediction model, identify potential faults, predict the incidence of uncorrectable errors, and achieve early warning and maintenance.
It effectively reduces server downtime caused by memory failures, improves server operation stability and operation and maintenance efficiency, and allows for downtime maintenance within the planned time.
Smart Images

Figure CN114443398B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of server operation and maintenance technology, and in particular to a method for generating, a detection method, a device and equipment for a memory fault prediction model. Background Art
[0002] In the daily operation and maintenance of servers, handling server failures takes up a lot of time, and server failures caused by memory failures account for a considerable proportion. Usually, operation and maintenance personnel will only replace or repair the memory when it fails, and will not handle the memory that is in sub-health or has potential failures but has not yet failed. This will lead to a relatively passive handling of server memory failures, making it difficult to predict server memory failures in advance for maintenance, and memory failures are often accompanied by server downtime, which will also cause inconvenience to users. Summary of the invention
[0003] In view of this, an embodiment of the present invention provides a method for generating, a detection method, an apparatus and a device for a memory fault prediction model to solve the problem that memory faults of a server are difficult to predict.
[0004] According to the first aspect, an embodiment of the present invention provides a method for generating a memory fault prediction model, including: obtaining sample data corresponding to memory faults, the sample data being used to characterize the failure rate of correctable errors in the memory; using the sample data as input variables, and the failure rate of uncorrectable errors in the memory as output variables; training a neural network model based on the input variables and the output variables to obtain a memory fault prediction model.
[0005] The method for generating a memory fault prediction model provided by an embodiment of the present invention obtains sample data corresponding to memory faults, where the sample data is used to characterize the failure rate of correctable errors in the memory, uses the sample data as input variables, and uses the failure rate of uncorrectable errors in the memory as output variables. A neural network model is trained according to the input variables and the output variables to obtain a memory fault prediction model, so that potential memory faults of a server can be predicted and identified through the memory fault prediction model, so that operation and maintenance personnel can promptly operate and maintain servers with potential faults to avoid server downtime due to memory faults.
[0006] In combination with the first aspect, in a first implementation of the first aspect, obtaining sample data corresponding to a memory fault includes: obtaining characteristic parameters for characterizing a memory usage status and memory fault data; analyzing the characteristic parameters and the memory fault data, and determining a correlation between the characteristic parameters and the memory fault data; based on the correlation between the characteristic parameters and the memory fault data, determining a target parameter of the memory fault data, and determining the data corresponding to the target parameter as the sample data.
[0007] The method for generating a memory fault prediction model provided by an embodiment of the present invention jointly analyzes the characteristic parameters representing the memory usage status and the memory fault data to determine the correlation between the characteristic parameters and the memory fault data, and then determines the target parameters corresponding to the memory fault data based on the correlation. This ensures the correlation between the target parameters and the memory fault data, and facilitates the accurate training of the memory fault prediction model.
[0008] In combination with the first implementation manner of the first aspect, in the second implementation manner of the first aspect, the characteristic parameters include historical data of the correctable errors occurring in the memory and predicted data of the correctable errors occurring in the memory, and the analyzing of the characteristic parameters and the memory fault data to determine the correlation between the characteristic parameters and the memory fault data includes: acquiring historical data of the correctable errors occurring in the memory, predicted data of the correctable errors occurring in the memory, and memory fault data; analyzing the historical data, the predicted data, and the memory fault data to determine the correlation between the correctable errors and the memory fault.
[0009] The method for generating a memory fault prediction model provided by an embodiment of the present invention detects historical data of correctable memory errors and predicted data of correctable memory errors to analyze the historical data of correctable memory errors, predicted data of correctable memory errors and memory failure data, and determines the correlation between correctable errors and memory failures, thereby ensuring the correlation between correctable errors and memory failures and avoiding irrelevant factors from affecting the training of the memory fault prediction model.
[0010] In combination with the second implementation manner of the first aspect, in the third implementation manner of the first aspect, the analyzing the historical data, the predicted data and the memory failure data to determine the correlation between the correctable error and the memory failure includes: analyzing the historical data and the predicted data of the correctable error to determine the occurrence rate of the correctable error; analyzing the memory failure data to determine the occurrence rate of memory failure; and determining the correlation between the correctable error and the memory failure based on the occurrence rate of the correctable error and the occurrence rate of the memory failure.
[0011] The method for generating a memory fault prediction model provided by an embodiment of the present invention calculates the occurrence rate of correctable errors through historical data of correctable errors and predicted data, and calculates the memory failure occurrence rate through memory failure data, thereby determining the correlation between correctable errors and memory failures based on the occurrence rate of correctable errors and the occurrence rate of memory failures, thereby being able to predict memory failures through correctable errors, thereby facilitating timely operation and maintenance when memory failures are predicted.
[0012] In combination with the third implementation manner of the first aspect, in the fourth implementation manner of the first aspect, the analyzing the historical data of the correctable errors and the predicted data to determine the occurrence rate of the correctable errors includes: calculating the occurrence rate of the correctable errors and the reoccurrence rate of the correctable errors based on the historical data of the correctable errors and the predicted data, respectively; analyzing the relationship between the occurrence rate and the reoccurrence rate to determine the correlation between the occurrence rate and the reoccurrence rate; and determining the occurrence rate of the correctable errors based on the correlation between the occurrence rate and the reoccurrence rate.
[0013] The method for generating a memory fault prediction model provided by an embodiment of the present invention analyzes historical data and predicted data of correctable errors to determine the correlation between the occurrence rate of correctable errors and the reoccurrence rate of correctable errors, and further determines the occurrence rate of correctable errors. Therefore, when determining the occurrence rate of correctable errors, both historical data and predicted data can be considered simultaneously, thereby improving the accuracy of determining the occurrence rate of correctable errors.
[0014] According to the second aspect, an embodiment of the present invention provides a method for detecting memory faults, comprising: collecting fault parameters used to characterize correctable errors in memory; inputting the fault parameters into a memory fault prediction model to obtain the incidence rate of uncorrectable errors in memory; wherein the memory fault prediction model is generated based on the method for generating a memory fault prediction model described in the first aspect or any implementation scheme of the first aspect.
[0015] The memory fault detection method provided by the embodiment of the present invention collects fault parameters used to characterize the occurrence of correctable errors in the memory, inputs the fault parameters into a memory fault prediction model, and obtains the occurrence rate of uncorrectable errors in the memory, wherein the memory fault prediction model is generated based on the generation method of the memory fault prediction model described in the first aspect or any implementation method of the first aspect. Thus, the occurrence rate of uncorrectable errors is predicted by the occurrence rate of correctable errors, and early warning of memory faults is achieved at the operation and maintenance level, so that the operation and maintenance personnel can shut down the server for maintenance within the planned time, which greatly reduces server downtime caused by memory faults and improves the stability of server operation.
[0016] According to the third aspect, an embodiment of the present invention provides a device for generating a memory fault prediction model, including: an acquisition module, used to acquire sample data corresponding to memory faults, and the sample data is used to characterize the failure rate of correctable errors in the memory; a variable determination module, used to use the sample data as input variables and the failure rate of uncorrectable errors in the memory as output variables; a training module, used to train a neural network model based on the input variables and the output variables to obtain a memory fault prediction model.
[0017] The device for generating a memory fault prediction model provided by an embodiment of the present invention obtains sample data corresponding to memory faults, where the sample data is used to characterize the failure rate of correctable errors in the memory, uses the sample data as input variables, and uses the failure rate of uncorrectable errors in the memory as output variables, and trains a neural network model based on the input variables and the output variables to obtain a memory fault prediction model, so that potential memory faults of a server can be predicted and identified through the memory fault prediction model, so that operation and maintenance personnel can promptly operate and maintain servers with potential faults to avoid server downtime due to memory faults.
[0018] According to the fourth aspect, an embodiment of the present invention provides a memory fault detection device, comprising: an acquisition module, used to acquire fault parameters used to characterize correctable errors in the memory; a fault determination module, used to input the fault parameters into a memory fault prediction model to obtain the incidence rate of uncorrectable errors in the memory; wherein the memory fault prediction model is generated based on the memory fault prediction model generation method described in the first aspect or any implementation method of the first aspect.
[0019] The memory fault detection device provided by the embodiment of the present invention collects fault parameters used to characterize the occurrence of correctable errors in the memory, inputs the fault parameters into a memory fault prediction model, and obtains the occurrence rate of uncorrectable errors in the memory, wherein the memory fault prediction model is generated based on the generation method of the memory fault prediction model described in the first aspect or any implementation method of the first aspect. Thus, the occurrence rate of uncorrectable errors is predicted by the fault parameters of correctable errors, and early warning of memory faults is achieved at the operation and maintenance level, so that the operation and maintenance personnel can shut down the server for maintenance within the planned time, which greatly reduces server downtime caused by memory faults and improves the stability of server operation.
[0020] According to the fifth aspect, an embodiment of the present invention provides an electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to execute the method for generating a memory fault prediction model described in the first aspect or any embodiment of the first aspect or the method for detecting a memory fault described in the second aspect.
[0021] According to the sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method for generating a memory fault prediction model described in the first aspect or any embodiment of the first aspect or the method for detecting a memory fault described in the second aspect.
[0022] It should be noted that, for the corresponding beneficial effects of the electronic device and computer-readable storage medium provided by the embodiments of the present invention, please refer to the description of the corresponding contents in the method for generating a memory fault prediction model or the method for detecting a memory fault, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 is a flowchart of a method for generating a memory fault prediction model according to an embodiment of the present invention;
[0025] Figure 2 is another flow chart of a method for generating a memory fault prediction model according to an embodiment of the present invention;
[0026] Figure 3 is a flow chart of a method for detecting a memory failure according to an embodiment of the present invention;
[0027] Figure 4 is a schematic diagram of prediction of a memory CE to a memory UCE according to an embodiment of the present invention;
[0028] Figure 5 is a schematic diagram of the number of memory CE occurrences and the memory CE occurrence rate according to an embodiment of the present invention;
[0029] Figure 6 is a schematic diagram of memory usage time and memory CE occurrence rate according to an embodiment of the present invention;
[0030] Figure 7 is a schematic diagram of CPU / memory usage and memory CE occurrence rate according to an embodiment of the present invention;
[0031] Figure 8 is a schematic diagram of temperature and memory CE occurrence rate according to an embodiment of the present invention;
[0032] Fig. 9is a structural block diagram of a device for generating a memory fault prediction model according to an embodiment of the present invention;
[0033] Fig.10 is a structural block diagram of a memory failure detection device according to an embodiment of the present invention;
[0034] Fig.11 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0036] According to an embodiment of the present invention, an embodiment of a method for generating a memory fault prediction model is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0037] In this embodiment, a method for generating a memory fault prediction model is provided, which can be used in electronic devices, such as servers. Figure 1 is a flowchart of a method for generating a memory fault prediction model according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0038] S11, obtaining sample data corresponding to memory failures, wherein the sample data is used to characterize a failure rate of correctable errors occurring in the memory.
[0039] The sample data is used to characterize the failure rate of correctable errors (CE) in the server memory. Correctable errors are self-repairable errors in the server memory and do not affect the normal operation of the server system. Memory failures also include uncorrectable errors (UCE). When an uncorrectable error occurs in the server, the server will be down, affecting the normal operation of the server. The occurrence of correctable errors is positively correlated with the occurrence of uncorrectable errors, and the collection of correctable errors will not affect the normal operation of the server. When generating a memory failure prediction model, the server can collect and record its operating data in real time, and then determine whether the server has a correctable error based on its operating data, and use the factors that affect the occurrence of correctable errors in the server as sample data.
[0040] S12, takes sample data as input variable and the failure rate of uncorrectable errors in memory as output variable.
[0041] When an uncorrectable error occurs in the server's memory, it will crash. The server can monitor its operating data to determine whether it has crashed. Here, the sample data is used as the input variable, and the failure rate of uncorrectable errors in the memory is used as the output variable to predict the occurrence of uncorrectable errors through the occurrence pattern of correctable errors.
[0042] Here, the principle of predicting the occurrence of uncorrectable errors based on the occurrence law of correctable errors is explained as follows:
[0043] By collecting the data of memory CE and memory UCE in different server systems (system 1, system 2 and system 3), we can know from the data analysis that the probability of memory UCE after memory CE is 9-431 times that of memory UCE without memory CE. Figure 4 shown.
[0044] like Figure 4 From the data shown, it can be seen that about 70%-80% of memory CEs occurred in the same month as memory UCE. This shows that memory CE is an important factor in predicting memory UCE, that is, memory CE can accurately predict memory UCE.
[0045] S13, training a neural network model based on the input variables and the output variables to obtain a memory fault prediction model.
[0046] The neural network model is a training model for generating a memory fault prediction model. A multi-layer feedforward neural network (BPNN) may be used here. Of course, other training models may also be used, which are not specifically limited here.
[0047] The server can collect its correctable error data and uncorrectable error data within a certain running time, use its CE data as the input variable of the neural network model, use the data of memory UCE as the output variable of the neural network model, train the neural network model, and obtain a memory fault prediction model for predicting memory UCE.
[0048] Taking BPNN as an example, the algorithm model of BPNN is trained according to the input variables and output variables. Specifically, the algorithm model of BPNN includes input layer, hidden layer and output layer, and the number of nodes in the hidden layer can be selected by technicians based on experience. If a single hidden layer design is adopted, the number of nodes in the hidden layer is Where 0<α<11, d is the number of nodes in the input layer, l is the number of nodes in the output layer; the output layer uses a sigmoid function as the neuron activation function, and the hidden layer uses a tan-singmoid function; the input layer is sample data, and the output layer is the failure rate of uncorrectable errors in the memory. The BPNN algorithm model is trained according to the above method to obtain a memory fault prediction model for predicting memory UCE.
[0049] When the memory fault prediction model predicts that the server will have memory UCE, it can issue an alarm message so that the operation and maintenance personnel can operate and maintain the server memory according to the alarm information to avoid server downtime and ensure the operation stability of the server.
[0050] The method for generating a memory fault prediction model provided in this embodiment obtains sample data corresponding to memory faults, where the sample data is used to characterize the failure rate of correctable errors in the memory, uses the sample data as input variables, and uses the failure rate of uncorrectable errors in the memory as output variables. A neural network model is trained based on the input variables and the output variables to obtain a memory fault prediction model, so that potential memory faults of a server can be predicted and identified through the memory fault prediction model, so that operation and maintenance personnel can promptly operate and maintain servers with potential faults to avoid server downtime due to memory faults.
[0051] In this embodiment, a method for generating a memory fault prediction model is provided, which can be used in electronic devices, such as servers. Figure 2 is a flowchart of a method for generating a memory fault prediction model according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0052] S21, obtaining sample data corresponding to memory failures, wherein the sample data is used to characterize the failure rate of correctable errors occurring in the memory.
[0053] Specifically, the above step S21 may include:
[0054] S211, obtaining characteristic parameters for characterizing memory usage status and memory fault data.
[0055] The server can collect memory data in real time during its operation to determine characteristic parameters that affect the memory usage status based on the memory data. The characteristic parameters may include memory utilization, CPU utilization, memory usage time, the number of historical memory CE occurrences, and temperature, etc. Memory fault data is the fault data of memory UCE occurring under the premise of memory CE occurring. The memory fault data can be determined by the server by analyzing the data of memory CE and memory UCE occurring during its operation.
[0056] S212, analyzing the operating data and memory fault data corresponding to the characteristic parameters, and determining the correlation between the characteristic parameters and the memory fault data.
[0057] The operating data corresponding to the characteristic parameters and the memory fault data are jointly analyzed to determine whether the current characteristic parameters have an impact on the memory UCE, that is, to determine whether the characteristic parameters affect the occurrence of memory faults, thereby determining the correlation between the characteristic parameters and the memory fault data.
[0058] Optionally, the operating data corresponding to the characteristic parameters include historical data of correctable memory errors and predicted data of correctable memory errors, wherein the historical data of correctable memory errors are data of memory CE occurring within a historical time (for example, the past month or the past two months, etc.), and the predicted data of correctable memory errors are data of memory CE occurring again determined based on the rules of memory CE occurring in historical time.
[0059] Accordingly, the above step S212 may include:
[0060] (1) Obtain historical data of correctable errors that occur in memory and predicted data of correctable errors that occur in memory.
[0061] The server can collect historical data of memory CE, and predict the data of memory CE in the future based on the law of memory CE in the historical time. A monitoring system runs in the server, which can monitor the operation data of the server to obtain historical data of correctable errors in memory and predicted data of correctable errors in memory.
[0062] (2) Analyze historical data, predicted data, and memory failure data to determine the correlation between correctable errors and memory failures.
[0063] The server can collect historical data of memory CE occurrence and historical data of memory CE not occurring, analyze the historical data of memory CE occurrence and historical data of memory CE not occurring to determine the impact of whether memory CE occurs within the historical time on the recurrence of memory CE, and then determine the correlation between the occurrence of correctable errors and memory failures based on the correlation between the occurrence of memory CE and the occurrence of memory UCE.
[0064] Specifically, the above step (2) may include:
[0065] (21) Analyze historical and forecast data on correctable errors to determine the incidence of correctable errors.
[0066] The occurrence rate of correctable errors is the predicted probability of memory CE. The server can predict the occurrence rate of server memory CE by analyzing the historical data of memory CE generation and the predicted data of memory CE generation.
[0067] Specifically, the above step (21) may include:
[0068] (211) Based on the historical data and predicted data of correctable errors, the occurrence rate of correctable errors and the recurrence rate of correctable errors are calculated respectively.
[0069] The server can calculate the occurrence rate of correctable errors based on all the operation data collected and the historical data of correctable errors. That is, if the number of all the operation data collected is A, and the number of historical data of correctable errors is B, then the occurrence rate of correctable errors P = B / A.
[0070] The server can continue to collect all operating data after the correctable error occurs and the data of the correctable error that occurs again, and calculate the recurrence rate of the correctable error. That is, if the number of all operating data collected after the correctable error occurs is A1, and the number of data of the correctable error that occurs again is B1, then the recurrence rate of the correctable error P1 = B1 / A1.
[0071] (212) Analyze the relationship between the occurrence rate and the recurrence rate, and determine the correlation between the occurrence rate and the recurrence rate.
[0072] Conduct a joint analysis of the occurrence rate of correctable errors and the recurrence rate of correctable errors to determine whether there is a correlation between the occurrence rate of correctable errors and the recurrence rate of correctable errors. When there is a positive correlation between the occurrence rate of correctable errors and the recurrence rate of correctable errors, the correlation between the occurrence rate and the recurrence rate can be determined through data analysis.
[0073] (213) The incidence of correctable errors is determined based on the correlation between the incidence and recurrence rates.
[0074] According to the determined correlation between the occurrence rate and the reoccurrence rate, the occurrence rate of the memory UE can be determined according to the currently collected occurrence data of the correctable errors.
[0075] (22) Analyze memory failure data and determine the memory failure rate.
[0076] When a server crashes due to a memory failure, a monitoring system installed in the server can collect memory failure data, and the server analyzes the memory failure data to calculate the occurrence rate of memory failures during server operation.
[0077] (23) Based on the occurrence rate of correctable errors and the occurrence rate of memory failures, determine the correlation between correctable errors and memory failures.
[0078] The server determines the correlation between the occurrence of memory CE and the occurrence of memory UCE on the server according to the influence of the occurrence rate of its memory CE on the occurrence rate of memory failure, that is, the correlation between the occurrence of correctable errors and the occurrence of memory failure.
[0079] S213, based on the correlation between the characteristic parameter and the memory fault data, determine the target parameter of the memory fault data, and determine the data corresponding to the target parameter as the sample data.
[0080] Based on the correlation between its characteristic parameters and memory failures, the server can determine the target parameters that can predict memory failures from the characteristic parameters. Then, when generating a memory failure prediction model, the server can collect data corresponding to the target parameters through its monitoring system and use them as input samples for model training.
[0081] Here is an example to illustrate the determination of target parameters, as follows:
[0082] (1) The occurrence of memory CE is used as the target parameter for predicting memory UCE. Take one month of operation data as an example, Figure 5 As shown, Figure 5 The left side represents the probability of memory CE occurring this month. Compared with the probability of no memory CE occurring this month and the probability of memory CE occurring this month, the data shows that if the server has experienced memory CE this month, the probability of memory CE occurring again this month is 13 to 91 times higher than the probability of no memory CE occurring this month. Figure 5The right side shows the probability of memory CE last month. The data shows that the probability of memory CE occurring again this month is 35 to 228 times higher than the probability of no memory CE last month. It can be determined that the historical number of memory CE occurrences is a parameter for predicting memory CE. Since there is a strong correlation between the occurrence of memory CE and the occurrence of memory UCE, the occurrence of memory CE can be used as the target parameter for predicting memory UCE.
[0083] (2) Use memory usage time as the target parameter for predicting memory UCE. The server can collect the operation data of different server systems (system 1, system 2, system 3 and system 4) within a certain period of time. As the memory usage time increases, the probability of memory CE in the server will increase significantly. Figure 6 As shown in the figure, the growth rate of memory CE in different server systems will accelerate after the memory usage time exceeds 10 months. It can be seen that the memory usage time can affect the occurrence of memory CE. Since there is a strong correlation between the occurrence of memory CE and the occurrence of memory UCE, the memory usage time can be used as the target parameter for predicting memory UCE.
[0084] (3) Memory utilization and CPU utilization are used as target parameters for predicting memory UCE. Figure 7 As shown, the server can collect the CPU utilization and memory utilization of different server systems (system 1, system 2, system 3 and system 4), and find that the higher the CPU utilization, the higher the probability of memory CE occurring in the server; the higher the memory utilization, the higher the probability of memory CE occurring in the server.
[0085] (4) Temperature cannot be used as a target parameter for predicting memory UCE. It is generally believed that the higher the temperature, the higher the probability of CE occurring in the server. However, under the premise of a certain memory utilization rate or a certain CPU utilization rate, such as Figure 8 As shown in the figure, simply increasing the temperature does not have a significant impact on memory CE, so simple temperature changes have little impact on memory CE. In fact, the increase in temperature is generally caused by CPU utilization and memory utilization. The increase in CPU utilization and memory utilization is the main reason for the increase in the incidence of memory CE. Therefore, temperature has little impact on predicting memory CE and can not be used as a target parameter for predicting memory UCE.
[0086] Based on the above analysis, it can be seen that memory utilization, CPU utilization, memory usage time and the historical number of memory CE occurrences are used as target parameters for predicting memory UCE.
[0087] S22, using sample data as input variables and the failure rate of uncorrectable errors in the memory as output variables. For detailed descriptions, please refer to the relevant descriptions of the above embodiments, which will not be repeated here.
[0088] S23, training a neural network model based on the input variables and the output variables to obtain a memory fault prediction model. For detailed description, please refer to the relevant description of the above embodiment, which will not be repeated here.
[0089] The method for generating a memory fault prediction model provided in this embodiment jointly analyzes the characteristic parameters characterizing the memory usage status and the memory fault data to determine the correlation between the characteristic parameters and the memory fault data, and then determines the target parameters corresponding to the memory fault data according to the correlation. In this way, the correlation between the target parameters and the memory fault data is ensured, which facilitates the accurate training of the memory fault prediction model. By detecting the historical data of correctable errors in the memory and the predicted data of correctable errors in the memory, the historical data of correctable errors in the memory, the predicted data of correctable errors in the memory, and the memory fault data, the correlation between the correctable errors and the memory faults is determined, the correlation between the correctable errors and the memory faults is ensured, and irrelevant factors are avoided from affecting the training of the memory fault prediction model. According to the occurrence rate of correctable errors and the occurrence rate of memory faults, the correlation between the correctable errors and the memory faults is determined, so that the memory faults can be predicted by the correctable errors, which facilitates timely operation and maintenance when the memory faults are predicted. When determining the occurrence rate of correctable errors, the historical data and the predicted data can be considered at the same time, which improves the accuracy of determining the occurrence rate of correctable errors.
[0090] In this embodiment, a memory failure detection method is provided, which can be used in electronic devices, such as servers. Figure 3 is a flowchart of a method for generating a memory fault prediction model according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0091] S31, collecting fault parameters for characterizing the occurrence of correctable errors in the memory.
[0092] Fault parameters include memory utilization, CPU utilization, memory usage time, and the number of historical memory CEs. A monitoring system runs in the server, which can monitor and collect data during the server operation in real time to obtain the server's memory utilization, CPU utilization, memory usage time, and the number of historical memory CEs within a certain operating time.
[0093] S32, inputting the fault parameters into a memory fault prediction model to obtain an occurrence rate of uncorrectable errors in the memory.
[0094] The memory fault prediction model is generated based on the above-mentioned memory fault prediction model generation method, which will not be repeated here. The occurrence rate of uncorrectable memory errors is the probability of memory UCE occurring in the server. The memory fault prediction model is installed in the server. When the server is in operation, it can input the data corresponding to the collected fault parameters into the memory fault prediction model to predict the occurrence of uncorrectable errors in the server memory and predict the occurrence rate of memory UCE. This achieves early warning of memory failures at the operation and maintenance level, making it easier for operation and maintenance personnel to shut down the server for maintenance within the planned time.
[0095] The memory fault detection method provided in this embodiment collects fault parameters used to characterize correctable errors in the memory, inputs the fault parameters into a memory fault prediction model, and obtains the incidence rate of uncorrectable errors in the memory, wherein the memory fault prediction model is generated based on the generation method of the memory fault prediction model described in the first aspect or any implementation method of the first aspect. Thus, the incidence rate of uncorrectable errors is predicted by the incidence rate of correctable errors, and early warning of memory faults is achieved at the operation and maintenance level, so that the operation and maintenance personnel can shut down the server for maintenance within the planned time, which greatly reduces server downtime caused by memory faults and improves the stability of server operation.
[0096] In this embodiment, a device for generating a memory fault prediction model is also provided, and the device is used to implement the above-mentioned 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.
[0097] This embodiment provides a device for generating a memory fault prediction model. Fig. 9 As shown, including:
[0098] The acquisition module 41 is used to acquire sample data corresponding to memory failures, wherein the sample data is used to characterize the failure rate of correctable errors in the memory. For detailed description, please refer to the relevant description corresponding to the above method embodiment, which will not be repeated here.
[0099] The variable determination module 42 is used to use the sample data as input variables and the failure rate of the memory having uncorrectable errors as output variables. For detailed description, please refer to the relevant description corresponding to the above method embodiment, which will not be repeated here.
[0100] The training module 43 is used to train the neural network model based on the input variables and the output variables to obtain a memory fault prediction model. For detailed description, please refer to the relevant description corresponding to the above method embodiment, which will not be repeated here.
[0101] The device for generating a memory fault prediction model provided in this embodiment obtains sample data corresponding to memory faults, where the sample data is used to characterize the failure rate of correctable errors in the memory, uses the sample data as input variables, and uses the failure rate of uncorrectable errors in the memory as output variables, and trains a neural network model based on the input variables and the output variables to obtain a memory fault prediction model, so that potential memory faults of a server can be predicted and identified through the memory fault prediction model, so that operation and maintenance personnel can promptly operate and maintain servers with potential faults to avoid server downtime due to memory faults.
[0102] The memory fault prediction model generation device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0103] The further functional description of each of the above modules is the same as that of the above corresponding embodiments and will not be repeated here.
[0104] In this embodiment, a memory fault detection device is also provided, which is used to implement the above-mentioned 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.
[0105] This embodiment provides a memory fault detection device, such as Fig.10 As shown, including:
[0106] The acquisition module 51 is used to acquire fault parameters used to characterize the occurrence of correctable errors in the memory. For detailed description, please refer to the relevant description corresponding to the above method embodiment, which will not be repeated here.
[0107] The fault determination module 52 is used to input the fault parameters into the memory fault prediction model to obtain the occurrence rate of uncorrectable errors in the memory. The memory fault prediction model is generated based on the generation method of the memory fault prediction model. For detailed description, please refer to the relevant description corresponding to the above method embodiment, which will not be repeated here.
[0108] The memory fault detection device provided in this embodiment collects fault parameters used to characterize the occurrence of correctable errors in the memory, inputs the fault parameters into a memory fault prediction model, and obtains the occurrence rate of uncorrectable errors in the memory, wherein the memory fault prediction model is generated based on the generation method of the memory fault prediction model described in the first aspect or any implementation method of the first aspect. Thus, the occurrence rate of uncorrectable errors is predicted by the occurrence rate of correctable errors, and early warning of memory faults is achieved at the operation and maintenance level, so that the operation and maintenance personnel can shut down the server for maintenance within the planned time, which greatly reduces server downtime caused by memory faults and improves the stability of server operation.
[0109] The memory fault detection device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0110] The further functional description of each of the above modules is the same as that of the above corresponding embodiments and will not be repeated here.
[0111] The embodiment of the present invention also provides an electronic device having the above Fig. 9 The memory fault prediction model generation device or Fig.10 A memory failure detection device is shown.
[0112] See also Fig.11 , Fig.11 is a schematic diagram of the structure of an electronic device provided by an optional embodiment of the present invention, such as Fig.11 As shown, the electronic device may include: at least one processor 601, such as a CPU (Central Processing Unit), at least one communication interface 603, a memory 604, and at least one communication bus 602. The communication bus 602 is used to realize the connection and communication between these components. The communication interface 603 may include a display screen (Display), a keyboard (Keyboard), and the optional communication interface 603 may also include a standard wired interface and a wireless interface. The memory 604 may be a high-speed RAM memory (Random Access Memory) or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 604 may optionally be at least one storage device located away from the aforementioned processor 601. The processor 601 may be combined with Fig. 9 or Fig.10 In the described device, the memory 604 stores an application program, and the processor 601 calls the program code stored in the memory 604 to execute any of the above method steps.
[0113] The communication bus 602 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The communication bus 602 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0114] Among them, the memory 604 may include a volatile memory (English: volatile memory), such as a random access memory (English: random-access memory, abbreviated: RAM); the memory may also include a non-volatile memory (English: non-volatile memory), such as a flash memory (English: flash memory), a hard disk drive (English: hard disk drive, abbreviated: HDD) or a solid-state drive (English: solid-state drive, abbreviated: SSD); the memory 604 may also include a combination of the above types of memory.
[0115] The processor 601 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and a NP.
[0116] The processor 601 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0117] Optionally, the memory 604 is also used to store program instructions. The processor 601 can call the program instructions to implement the present application Figures 1 to 3 The method for generating the memory fault prediction model shown in the embodiment, or Figure 4 The memory failure detection method shown in the embodiment.
[0118] The embodiment of the present invention also provides a non-transitory computer storage medium, which stores computer executable instructions, and the computer executable instructions can execute the method for generating a memory fault prediction model or the processing method for detecting a memory fault in any of the above method embodiments. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above types of memory.
[0119] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for generating a memory fault prediction model, characterized in that: include: Acquire sample data corresponding to memory failures, where the sample data is used to characterize a failure rate of correctable errors occurring in the memory; Using the sample data as input variables and the failure rate of uncorrectable errors in the memory as output variables; Training a neural network model based on the input variables and the output variables to obtain a memory fault prediction model; The obtaining of sample data corresponding to the memory fault includes: Obtain characteristic parameters for characterizing memory usage status and memory fault data; Analyzing the operating data corresponding to the characteristic parameter and the memory fault data to determine the correlation between the characteristic parameter and the memory fault data; Based on the correlation between the characteristic parameter and the memory fault data, determining a target parameter of the memory fault data, and determining data corresponding to the target parameter as the sample data; The operating data corresponding to the characteristic parameter includes historical data of the correctable error occurring in the memory and prediction data of the correctable error occurring in the memory, and the analyzing the operating data corresponding to the characteristic parameter and the memory fault data to determine the correlation between the characteristic parameter and the memory fault data includes: Acquire historical data of the correctable error occurring in the memory and predicted data of the correctable error occurring in the memory; Analyzing the historical data, the predicted data, and the memory failure data to determine a correlation between the correctable error and the memory failure; The analyzing the historical data, the prediction data, and the memory failure data to determine the correlation between the correctable error and the memory failure includes: Analyzing the historical data of the correctable errors and the predicted data to determine the occurrence rate of the correctable errors; Analyzing the memory failure data to determine the memory failure occurrence rate; Based on the occurrence rate of the correctable errors and the occurrence rate of the memory failures, correlations between the correctable errors and the memory failures are determined.
2. The method according to claim 1, characterized in that The analyzing the historical data of the correctable errors and the predicted data to determine the occurrence rate of the correctable errors includes: Based on the historical data of the correctable errors and the predicted data, respectively calculating the occurrence rate of the correctable errors and the reoccurrence rate of the correctable errors; Analyzing the relationship between the occurrence rate and the recurrence rate to determine the correlation between the occurrence rate and the recurrence rate; Based on the correlation between the occurred rate and the reoccurrence rate, the occurrence rate of the correctable error is determined.
3. A method for detecting memory failure, characterized in that: include: Collect fault parameters used to characterize correctable errors in memory; Inputting the fault parameters into a memory fault prediction model to obtain an occurrence rate of uncorrectable errors in the memory; Wherein, the memory fault prediction model is generated based on the memory fault prediction model generation method described in claim 1 or 2.
4. A device for generating a memory fault prediction model, characterized in that: include: An acquisition module, used to acquire sample data corresponding to memory failures, wherein the sample data is used to characterize a failure rate of correctable errors occurring in the memory; A variable determination module, used to use the sample data as an input variable and the failure rate of uncorrectable errors in the memory as an output variable; A training module, used for training a neural network model based on the input variables and the output variables to obtain a memory fault prediction model; The acquisition module is specifically used for: Obtain characteristic parameters for characterizing memory usage status and memory fault data; Analyzing the operating data corresponding to the characteristic parameter and the memory fault data to determine the correlation between the characteristic parameter and the memory fault data; Based on the correlation between the characteristic parameter and the memory fault data, determining a target parameter of the memory fault data, and determining data corresponding to the target parameter as the sample data; The operating data corresponding to the characteristic parameter includes historical data of the correctable error occurring in the memory and predicted data of the correctable error occurring in the memory, and the acquisition module is specifically used to: Acquire historical data of the correctable error occurring in the memory and predicted data of the correctable error occurring in the memory; Analyzing the historical data, the predicted data, and the memory failure data to determine a correlation between the correctable error and the memory failure; The acquisition module is specifically used for: Analyzing the historical data of the correctable errors and the predicted data to determine the occurrence rate of the correctable errors; Analyzing the memory failure data to determine the memory failure occurrence rate; Based on the occurrence rate of the correctable errors and the occurrence rate of the memory failures, correlations between the correctable errors and the memory failures are determined.
5. A memory failure detection device, characterized in that: include: A collection module, used for collecting fault parameters for characterizing the occurrence of correctable errors in the memory; A fault determination module, used for inputting the fault parameters into a memory fault prediction model to obtain an occurrence rate of uncorrectable errors in the memory; Wherein, the memory fault prediction model is generated based on the memory fault prediction model generation method described in claim 1 or 2.
6. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for generating a memory fault prediction model as described in claim 1 or 2 or the method for detecting a memory fault as described in claim 3 by executing the computer instructions.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method for generating a memory fault prediction model according to claim 1 or 2 or the method for detecting a memory fault according to claim 3.
Citation Information
Patent Citations
Disk fault prediction method and system, terminal and storage medium
CN110399237A
Server fault detection method and device, computer equipment and storage medium
CN113835962A
