ARM architecture platform memory testing method, system, device and storage medium

Through the automated ARM architecture platform memory test method, keywords and memory margin log files are used to realize the automation of the ARM architecture platform memory test, solve the problem of low test efficiency in the existing technology, and improve the test efficiency and resource utilization.

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

Patent Information

Application Number
CN202210698498.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-20
Publication Date
2024-10-18
Estimated Expiration
2042-06-20

AI Technical Summary

Technical Problem

The existing technology lacks automated memory testing solutions, resulting in low efficiency of memory testing on ARM architecture platforms and reliance on manual data analysis, which is time-consuming and labor-intensive.

Method used

Provides a memory testing method for ARM architecture platform. By receiving keywords and memory margin log files related to the ARM architecture platform, it automatically obtains test data, performs data processing, and uses the preset margin standard model to output memory test results to achieve automation. test.

Benefits of technology

It greatly improves the efficiency of memory testing, reduces testing work time, saves resources, and realizes the automation of memory testing on ARM architecture platforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115061864B_ABST
    Figure CN115061864B_ABST
Patent Text Reader

Abstract

The present invention relates to a memory test method, system, computer equipment and storage medium, the method comprising: receiving keywords related to an ARM architecture platform and a memory margin log file that meets a standard format; obtaining test data related to the keyword from the memory margin log file according to the keyword; performing data processing on the test data to obtain analysis data; and inputting the analysis data into a preset margin standard model to output a memory test result. By adopting this method, keywords related to an ARM architecture platform and a memory margin log file can be obtained, and then test data can be automatically obtained from the memory margin log file according to the keywords related to the ARM architecture platform, and data processing can be automatically performed on the test data to obtain analysis data. The test results can be obtained by analyzing the data and the preset margin standard model, and finally the test results are visualized, thereby realizing the automation of memory testing and greatly improving the efficiency of memory testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of memory testing, and in particular to a memory testing method, system, device and storage medium for an ARM architecture platform. Background Art

[0002] Rank Margin Test (RMT for short) is a memory test solution under normal temperature and pressure. The entire test solution is embedded in a specific BIOS (Basic Input Output System) and is used to detect the margin of the motherboard in the memory design part.

[0003] The memory testing solution for the X86 architecture platform has matured, and it has professional data analysis and processing and standard determination tools for memory margin determination. However, as the market share and shipment volume of the Arm architecture platform in the server market continue to rise, there is currently no professional data analysis and processing and standard determination tools for the Arm architecture platform. We can only rely on manpower to obtain relevant data and perform data analysis. There is no corresponding automatic testing solution, which is extremely time-consuming and labor-intensive. Summary of the invention

[0004] Based on this, it is necessary to provide an ARM architecture platform memory testing method, system, computer device and storage medium that can improve memory testing efficiency in response to the above technical problems.

[0005] On the one hand, a memory testing method for an ARM architecture platform is provided, the method comprising:

[0006] Receive keywords related to the ARM architecture platform and a memory margin log file that meets the standard format;

[0007] Acquire test data related to the keyword from the memory margin log file according to the keyword;

[0008] Performing data processing on the test data to obtain analysis data;

[0009] The analysis data is input into a preset margin standard model to output a memory test result.

[0010] In one of the embodiments, before receiving the keywords related to the ARM architecture platform and the memory margin log file satisfying the standard format, the method further includes:

[0011] Determine the hosts and memory involved in the test, and deploy the memory configuration environment;

[0012] Embed the memory test scheme of the host into the basic input and output system, and start the memory test enable item;

[0013] Restart the host to enter the memory test program, and perform the test according to the memory test plan;

[0014] Full log collection is performed, and the result of the full log collection is saved as a file that meets the standard format to form the memory balance log file.

[0015] In one embodiment, the receiving of keywords related to the ARM architecture platform and a memory margin log file satisfying a standard format includes:

[0016] Receiving keywords related to the ARM architecture platform;

[0017] receiving at least one memory remaining log file satisfying a standard format selected by a user;

[0018] The memory balance log file is stored in a fixed path.

[0019] In one of the embodiments, obtaining test data related to the keyword from the memory margin log file according to the keyword includes:

[0020] Reading the memory margin log file, and filtering the memory margin log file line by line according to the keyword;

[0021] Get test data that affects memory test results;

[0022] Wherein, when the memory remaining log file is greater than one copy, reading the memory remaining log file includes:

[0023] Identify and determine according to the suffix of the received memory balance log file, and automatically calculate the number of the balance log files;

[0024] The memory margin log files are read in sequence according to the number of the margin log files.

[0025] In one embodiment, the step of processing the test data to obtain analysis data includes:

[0026] Perform batch data calculation on the test data to obtain the minimum value, maximum value and mean value of each margin log file;

[0027] Automatically generate the analysis data from the minimum value, maximum value and mean value;

[0028] Wherein, the test data and the analysis data both include phase values ​​and voltage values.

[0029] In one embodiment, before inputting the analysis data into a preset margin standard model to output a memory test result, the process includes:

[0030] Analyze historical analysis data and historical memory test results to establish memory test standards for ARM architecture platforms;

[0031] The preset margin standard model is constructed through the memory test standard.

[0032] In one embodiment, after inputting the analysis data into a preset margin standard model to output a memory test result, the method includes:

[0033] The memory test results output by the preset margin standard model are visualized in a table format.

[0034] On the other hand, an ARM architecture platform memory test system is provided, the system comprising:

[0035] An information receiving module, used for receiving keywords related to the ARM architecture platform and a memory margin log file meeting a standard format;

[0036] A test data module, used for acquiring test data related to the keyword from the memory margin log file according to the keyword;

[0037] A data processing module, used for processing the test data to obtain analysis data;

[0038] The standard model module is used to construct a preset margin standard model and output memory test results through the preset margin standard model.

[0039] In another aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:

[0040] Receive keywords related to the ARM architecture platform and a memory margin log file that meets the standard format;

[0041] Acquire test data related to the keyword from the memory margin log file according to the keyword;

[0042] Performing data processing on the test data to obtain analysis data;

[0043] The analysis data is input into a preset margin standard model to output a memory test result.

[0044] On the other hand, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a program, and when the program is executed by a processor, the processor performs the following steps:

[0045] Receive keywords related to the ARM architecture platform and a memory margin log file that meets the standard format;

[0046] Acquire test data related to the keyword from the memory margin log file according to the keyword;

[0047] Performing data processing on the test data to obtain analysis data;

[0048] The analysis data is input into a preset margin standard model to output a memory test result.

[0049] The above technical solution of the present invention has the following advantages compared with the prior art:

[0050] The above-mentioned ARM architecture platform memory testing method, system, computer equipment and storage medium can obtain keywords and memory margin log files related to the ARM architecture platform, and then automatically obtain test data from the memory margin log file according to the keywords related to the ARM architecture platform, and automatically process the test data to obtain analysis data. The test results can be obtained by analyzing the data and the preset margin standard model, and finally the test results are visualized, thereby realizing the automation of memory testing and greatly improving the efficiency of memory testing. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0052] Figure 1 It is a first method flow chart of the ARM architecture platform memory testing method of the present invention;

[0053] Figure 2 It is a second method flow chart of the ARM architecture platform memory testing method of the present invention;

[0054] Figure 3 It is a system structure diagram of the ARM architecture platform memory test system of the present invention;

[0055] Figure 4 It is a device structure diagram of the computer device of the present invention. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0057] As the market share and shipment volume of the Arm architecture platform in the server market continue to rise, there is currently no professional data analysis and processing and standard determination tools for the Arm architecture platform. Only manpower can be relied on to obtain relevant data to perform data analysis. There is no corresponding automatic testing solution, which is extremely time-consuming and labor-intensive. Therefore, the present invention proposes a memory testing method, system, computer equipment and storage medium for the ARM architecture platform, which can obtain keywords and memory margin log files related to the ARM architecture platform, and then automatically obtain test data from the memory margin log file according to the keywords related to the ARM architecture platform, automatically process the test data to obtain analysis data, and obtain test results by analyzing the data and presetting the margin standard model. Finally, the test results are visualized, realizing the automation of memory testing and greatly improving the efficiency of memory testing.

[0058] Embodiment 1:

[0059] The ARM architecture platform memory testing method of this embodiment refers to Figure 1-2 As shown, Figure 1 A first method flow chart of the ARM architecture platform memory testing method of the present invention; Figure 2 It is a second method flow chart of the ARM architecture platform memory testing method of the present invention.

[0060] The method comprises the following steps:

[0061] Receive keywords related to the ARM architecture platform and a memory margin log file that meets the standard format;

[0062] Memory test (memory error test), also known as Rank Margin Test, is used to test the fault tolerance of memory sticks. The higher the fault tolerance of memory sticks, the higher the reliability and stability of memory sticks, and the stronger the ability to carry business. At present, memory test of X86 architecture platform is quite mature, but there is no professional data analysis and processing and standard judgment tool for memory test of ARM architecture platform. Therefore, it is necessary to design professional data analysis and processing and standard judgment tool for ARM architecture platform. The CPU resource allocation mode and internal resource utilization of ARM architecture platform are different from those of X86 architecture platform. The CPU of ARM architecture platform will have corresponding firmware FW (firework), MCP (management control processor), SCP (system control processor), etc. Its firmware FW causes the ap log (BIOS log) and margin log generated by ARM architecture platform to be different from those of X86 platform. Therefore, the memory test data related to ARM architecture platform is obtained based on the differences between ARM architecture platform and X86 architecture platform. The margin log of the ARM architecture platform has its own proprietary keywords. Therefore, in order to obtain test data related to the ARM architecture platform, you must first obtain the ARM architecture platform-specific keywords and the memory margin log file (marginlog) that meets the standard format of the ARM architecture platform, so that you can obtain test data related to the keywords from the memory margin log file that meets the standard format according to the keywords, that is, test data related to memory testing, and test data that affects the memory test results. Meeting the standard format means that the format of the memory margin log file is txt or log format, which is convenient for users to select multiple memory margin log files for data analysis and processing. Among them, the keywords for the ARM architecture platform are as follows:

[0063] "RxVrefHigh","RxVrefLow","RxEyeHeight";

[0064] "RxDelayRight","RxDelayLeft","RxEyeWidth";

[0065] "TxVrefHigh","TxVrefLow","TxEyeHeight";

[0066] "TxDelayRight", "TxDelayLeft", "TxEyeWidth".

[0067] Among them, Rx is signal reception; Tx is the transmission signal; Vref is the reference voltage value; Delay is the delay value; EyeHeight is the eye height of the digital eye diagram; EyeWidth is the eye width of the digital eye diagram.

[0068] Acquire test data related to the keyword from the memory margin log file according to the keyword;

[0069] After receiving the keywords related to the ARM architecture platform and the memory margin log file that meets the standard format, the keywords and the memory margin log file that meets the standard format are obtained; the keywords are key information related to the ARM architecture platform and related to the memory test, that is, the key information that affects the memory test results of the ARM architecture platform; through the keywords and the memory margin log file that meets the standard format, the memory test data related to the ARM architecture platform can be selected from the memory margin log file in a targeted manner to achieve the acquisition of the memory test data of the ARM architecture platform.

[0070] Performing data processing on the test data to obtain analysis data;

[0071] After obtaining the test data (memory test data) from the memory margin log file that meets the standard format through the keywords of the ARM architecture platform, the test data can be processed to obtain key data that can reflect the fault tolerance capability of the memory stick, that is, analysis data; by combining the analysis data with the preset margin standard model, the memory test results that reflect the memory fault tolerance capability can be obtained.

[0072] The analysis data is input into a preset margin standard model to output a memory test result.

[0073] The preset margin standard model is a standard for judging the fault tolerance of a memory stick. The X86 platform already has mature professional data analysis and processing and standard judgment tools. Since the memory testing method for the ARM architecture platform proposed in the present invention is a new technical solution and there are no mature standard judgment tools, it is necessary to summarize a set of standard judgment tools suitable for the ARM architecture platform based on a large amount of test data of the ARM architecture platform, that is, the preset margin standard model. The preset margin standard model can be used to output memory test results based on the test data, that is, to judge the fault tolerance of the memory stick based on the preset margin standard model.

[0074] In one embodiment, before receiving the keywords related to the ARM architecture platform and the memory margin log file satisfying the standard format, the method further includes:

[0075] Determine the hosts and memory involved in the test, and deploy the memory configuration environment;

[0076] Before receiving keywords related to the ARM architecture platform and memory margin log files that meet the standard format, it is necessary to build a memory test environment, that is, to determine the host and memory that need to participate in the test according to the actual test requirements, including the memory configuration environment deployment for 1DPC (DIMM Per Channel, the number of slots per channel) or 2DPC. If it is a 1DPC configuration, all memories are placed in the main slots of all channels; for a 2DPC environment, all slots can be filled.

[0077] The memory test scheme of the host is embedded into the basic input and output system, and the memory test enable item is started.

[0078] Before receiving the keywords related to the ARM architecture platform and the memory margin log file that meets the standard format, the preliminary preparation of the memory test should be done. The first step of the preliminary preparation is to build the memory test hardware environment, including the memory bar to be tested, and determine the model and capacity of the memory bar; the second step is to make relevant configurations in the basic input and output system, including setting the RMT enable option in the basic input and output system, and then embed the test plan into the basic input and output system, so that the server can automatically load the test plan when it is restarted, and execute the memory test process according to the test plan. When restarting, the DQ-DQS delay and Vref can be adjusted respectively to perform different pressure load tests on the memory bar. The digital eye diagram or the four upper, lower, left and right boundaries can be obtained through delay and Vref (the eye height of the digital eye diagram is obtained through the upper and lower boundaries, and the eye width of the digital eye diagram is obtained through the left and right boundaries). During the test, the memory test can be performed for each DIE, each channel, each Rank, each flash, and each bit width data line.

[0079] Restart the host to enter the memory test program, and perform the test according to the memory test plan;

[0080] After the test scheme is embedded into the basic input and output system, the host can be restarted and automatically enter the memory test program, and the test is performed according to the memory test scheme to obtain a memory margin log file.

[0081] Full log collection is performed, and the result of the full log collection is saved as a file that meets the standard format to form the memory balance log file.

[0082] After restarting the host to enter the memory test program and performing the test according to the memory test plan, full log collection can be performed, and then the results of the full log collection can be saved as a file that meets the standard format, thus forming a memory margin log file, so that test data can be obtained through the memory margin log file.

[0083] In one embodiment, the receiving of keywords related to the ARM architecture platform and a memory margin log file satisfying a standard format includes:

[0084] Receiving keywords related to the ARM architecture platform;

[0085] The CPU resource allocation method and internal resource utilization of the ARM architecture platform are different from those of the X86 architecture platform. The CPU of the ARM platform will have corresponding firmware FW, MCP, SCP, etc. Its firmware FW causes the ap log and margin log generated by the ARM architecture platform to be different from those of the X86 platform. Therefore, the memory test data related to the ARM architecture platform is obtained based on the differences between the ARM architecture platform and the X86 platform. The margin log of the ARM architecture platform has its own proprietary keywords. Therefore, in order to obtain test data related to the ARM architecture platform, it is necessary to first obtain the proprietary keywords of the ARM architecture platform and the memory margin log file of the ARM architecture platform, that is, to receive keywords related to the ARM architecture platform, so as to obtain test data related to the keywords from the memory margin log file according to the keywords, and the test data related to the keywords are test data that will affect the memory test results, which is equivalent to obtaining test data useful for the memory test results.

[0086] Receive at least one memory remaining log file that meets a standard format selected by a user.

[0087] In the existing memory test solution of the X86 architecture platform, one memory test can only analyze one memory margin log file, which is relatively inefficient. In the memory test solution of the ARM architecture platform, a function of analyzing multiple memory margin log files in one memory test is added; in the memory test solution of the ARM architecture platform, multiple memory margin log files selected by the user will be automatically received. The memory margin log file meets the standard format, that is, the memory margin log file is in the form of a file with a suffix of log or txt. The memory test solution of the ARM architecture platform is made into a test tool, which is written in Python language and uses Python's module library to realize the acquisition operation of analysis data; the test tool adds a window for receiving memory margin log files, and users can select multiple memory margin log files. For example, three memory margin log files 1.log, 2.log and 3.log are entered in the window: 1.log, 2.log and 3.log. Different memory margin log files (including memory margin log files in txt format) are separated by commas. The specific function codes are as follows: input_file.split(",")[i].strip().endswith("log"), or input_file.split(",")[i].strip().endswith("txt"); in addition, functions such as count(), split(), strip(), end / startwiths() and DDR_margin_data_op() in Python can realize the following functions: the test tool will automatically calculate the number of memory margin log files selected by the user and record the names of the memory margin log files. Then the test tool will process the memory margin log files in turn according to the number of memory margin log files to automatically obtain the test data that affects the memory test results.

[0088] The memory balance log file is stored in a fixed path.

[0089] After restarting the host to enter the memory test program and performing the test according to the memory test scheme, the generated memory margin log file is automatically stored in a fixed path to facilitate the selection of the margin log file to be analyzed. The fixed path user can modify it according to actual needs to improve security and convenience.

[0090] In one embodiment, the acquiring test data related to the keyword from the memory margin log file according to the keyword includes:

[0091] Reading the memory margin log file, and filtering the memory margin log file line by line according to the keyword;

[0092] After receiving the keywords and memory margin log files related to the ARM architecture platform, it is necessary to perform the test data acquisition operation, that is, the test tool automatically reads the memory margin log file, specifically uses the python open function to open the log file (or txt file), and then filters it line by line, and uses the startrwiths(), endwiths(), split(), strip(), and append() functions to clean the data line by line, that is, the memory margin log file is filtered line by line according to the keywords, so as to automatically obtain the test data related to the keywords from the memory margin log file.

[0093] Get test data that affects memory test results;

[0094] After filtering the memory margin log file line by line according to the keyword, the filtered data is the test data, that is, the test data that affects the memory test result, that is, the data useful for the memory test.

[0095] Wherein, when the memory remaining log file is greater than one copy, reading the memory remaining log file includes:

[0096] Identify and determine according to the suffix of the received memory balance log file, and automatically calculate the number of the balance log files;

[0097] In order to solve the problem of low efficiency in the existing memory testing solution of the X86 architecture platform because only one memory margin log file can be analyzed at a time, the testing tool can automatically receive multiple memory margin log files selected by the user, and automatically calculate the number of memory margin log files selected by the user according to the suffix of the memory margin log file and the input comma, and record the name of the memory margin log file. Then the testing tool will process the memory margin log files in sequence according to the number of memory margin log files to automatically obtain test data that affects the memory test results.

[0098] The memory margin log files are read in sequence according to the number of the margin log files.

[0099] The test tool processes the memory margin log files in sequence according to the number of memory margin log files to automatically obtain the test data that affects the memory test results. That is, each memory margin log file is filtered line by line according to the keyword in sequence to automatically obtain the test data related to the keyword from all memory margin log files, which greatly improves the data testing efficiency.

[0100] In one embodiment, the step of processing the test data to obtain analysis data includes:

[0101] Perform batch data calculation on the test data to obtain the minimum value, maximum value and mean value of each margin log file;

[0102] After obtaining the test data related to the keyword from the memory margin log file according to the keyword, that is, after obtaining the data useful for memory testing, it is necessary to perform data processing operations on the test data. The data processing operations include obtaining the minimum, maximum and mean values ​​of the test data corresponding to the keyword. Since the test tool supports the processing of multiple margin log files, the test tool can perform batch calculations on the test data to obtain the minimum, maximum and mean values ​​of each margin log file, and the analysis data can be obtained based on these files.

[0103] The minimum value, maximum value and mean value are automatically used to generate the analysis data.

[0104] After obtaining the minimum, maximum and mean values ​​of the test data corresponding to the keyword, analysis data can be formed, so that the memory test result can be obtained through the analysis data and the preset margin standard model.

[0105] Among them, the test data and analysis data both include phase values ​​and voltage values. The minimum, maximum and mean values ​​of the test data are calculated to obtain the analysis data, that is, to obtain the minimum, maximum and mean values ​​of the phase value and voltage value when the signal is sent and received, as well as the eye width and eye height data of the digital eye diagram, etc. The related data processing is performed using the around(), average(), min(), max() and other functions in the numpy module.

[0106] In one embodiment, before inputting the analysis data into a preset margin standard model to output a memory test result, the process includes:

[0107] Analyze historical analysis data and historical memory test results to establish memory test standards for ARM platforms;

[0108] To input the analysis data into the preset margin standard model to output the memory test results, the preset margin standard model must be obtained first. The X86 platform already has mature professional data analysis and processing and standard judgment tools. The X86 platform can use the corresponding X86 standard to determine whether the test results of the memory stick are qualified based on the result data obtained. However, the memory test method of the ARM architecture platform is a new technical solution and there is no mature standard judgment tool. Therefore, the memory test standard of the ARM architecture platform must be re-established. The result data of the ARM architecture platform can obtain the test results of the memory stick through the memory test standard of the ARM architecture platform. Therefore, a large amount of historical analysis data and historical memory test results are required to establish the memory test standard of the ARM architecture platform.

[0109] A preset margin standard model of the ARM platform is constructed through the memory test standard.

[0110] After establishing the memory test standard of the ARM architecture platform, the margin standard model can be established through the memory test standard, that is, the preset margin standard model, and the memory test result can be obtained by inputting the analysis data into the margin standard model.

[0111] In one embodiment, after the analysis data is input into a preset margin standard model to output a memory test result, the method includes:

[0112] The memory test results output by the preset margin standard model are visualized in a table format.

[0113] After obtaining the memory test results through the preset margin standard model, the data of the memory test results are made into a table, and the data in the table is visualized. The data of the memory test results are visualized in a table through the csv module to display the test results intuitively.

[0114] Test example:

[0115] The margin log of the test ensures that each bit width data line in each Rank generates a set of data, including Rx voltage, Rx phase, Tx voltage, and Tx phase, which are refined to each lane, and the output format is Die.Channel.Rank.SunChannel.Bank.Lane.

[0116] Each channel is summarized as follows:

[0117] 1) Rx voltage direction: RxVrefHigh, RxVrefLow, RxEyeHeight

[0118] 2) Rx phase direction: RxDelayRight, RxDelayLeft, RxEyeWidth

[0119] 3) Tx voltage direction: TxVrefHigh, TxVrefLow, TxEyeHeight

[0120] 4) Tx phase direction: TxDelayRight, TxDelayLeft, TxEyeWidth

[0121] Each CPU traverses separately:

[0122] Die 0Chn 0, Die 0Chn 1, Die 0Chn 2, Die 0Chn 3

[0123] Die 1Chn 0, Die 1Chn 1, Die 1Chn 2, Die 1Chn 3

[0124] The Rx test results are shown below:

[0125] [DDRRX Margin Test starts at Die 0Chn 0RankMap 0xF]

[0126] MinCenterDelay:23MaxCenterDelay:29

[0127] MinCenterVoltage:87MaxCenterVoltage:92

[0128] Dly64Prec:1

[0129] ExtVrefRange:DB0:00DB1:00DB2:00DB3:00DB4:00DB5:00DB6:00DB7:00DB8:00DB9:00

[0130] Searching for margin...

[0131] RxVrefHigh:16RxVrefLow:-14RxEyeHeight:31

[0132] RxDelayRight:17RxDelayLeft:-18RxEyeWidth:36

[0133]

[0134] The Tx test results are shown below:

[0135] [DDR TX Margin Test starts at Die 0Chn 0RankMap 0xF]

[0136] MinCenterDelay:165MaxCenterDelay:240

[0137] MinCenterVoltage:90MaxCenterVoltage:93

[0138] Dly64Prec:1

[0139] Searching for margin...

[0140] TxVrefHigh:18TxVrefLow:-16TxEyeHeight:35

[0141] TxDelayRight:22TxDelayLeft:-20TxEyeWidth:43

[0142]

[0143] The memory test results can be obtained by combining the above analysis data with the preset margin standard model. Among them, the analysis data focuses on the following statistics:

[0144] 1) Rx voltage direction: RxVrefHigh, RxVrefLow, RxEyeHeight

[0145] 2) Rx phase direction: RxDelayRight, RxDelayLeft, RxEyeWidth

[0146] 3) Tx voltage direction: TxVrefHigh, TxVrefLow, TxEyeHeight

[0147] 4)Tx phase direction: TxDelayRight, TxDelayLeft, TxEyeWidth.

[0148] Among them, RxEyeHeight, RxEyeWidth, TxEyeHeight, and TxEyeWidth are the most important.

[0149] Through the above memory test method, compared with the existing technology that can only rely on manpower to obtain relevant data and perform data analysis, the test work time is greatly reduced and the work efficiency is improved. According to the Margin workload calculation of 5 corner boards (scraps test boards), 3 sample sizes (samples in different server environments), and 6 memory models, 2 man-weeks of resources can be saved. In addition, Margin error analysis and judgment can be performed on DIMM and PCIE links, that is, error data reorganization and judgment can be performed on DIMM and PCIE as well as low-speed signals I2C and I3C.

[0150] Embodiment 2:

[0151] Reference Figure 2 As shown, Figure 2 The present invention is a flow chart of the memory testing method.

[0152] Determine the hosts and memory involved in the test, and deploy the memory configuration environment;

[0153] Before receiving keywords related to the ARM architecture platform and memory margin log files that meet the standard format, it is necessary to build a memory test environment, that is, to determine the host and memory that need to participate in the test according to the actual test requirements, including the memory configuration environment deployment for 1DPC (DIMM Per Channel, the number of slots per channel) or 2DPC. If it is a 1DPC configuration, all memories are placed in the main slots of all channels; for a 2DPC environment, all slots can be filled.

[0154] Embed the memory test scheme of the host into the basic input and output system, and start the memory test enable item;

[0155] Before receiving keywords related to the ARM architecture platform and memory margin log files that meet the standard format, you must do preliminary preparations for memory testing. The first step in the preliminary preparations is to build the memory test hardware environment, including the memory sticks to be tested, and determine the model and capacity of the memory sticks; the second step is to make relevant configurations in the basic input and output system, including setting the RMT enable option in the basic input and output system, and then embedding the test plan into the basic input and output system, so that the server can automatically load the test plan when it is restarted, and execute the memory test process according to the test plan.

[0156] Restart the host to enter the memory test program, and perform the test according to the memory test plan;

[0157] After the test scheme is embedded into the basic input and output system, the host can be restarted and automatically enter the memory test program, and the test is performed according to the memory test scheme to obtain a memory margin log file.

[0158] Perform full log collection, and save the result of the full log collection as a file that meets the standard format to form the memory balance log file;

[0159] After restarting the host to enter the memory test program and performing the test according to the memory test plan, full log collection can be performed, and then the results of the full log collection can be saved as a file that meets the standard format, thus forming a memory margin log file, so that test data can be obtained through the memory margin log file.

[0160] Receiving keywords related to the ARM architecture platform;

[0161] The CPU resource allocation method and internal resource utilization of the ARM architecture platform are different from those of the X86 architecture platform. The CPU of the ARM platform will have corresponding firmware FW, MCP, SCP, etc. Its firmware FW causes the ap log and margin log generated by the ARM architecture platform to be different from those of the X86 platform. Therefore, the memory test data related to the ARM architecture platform is obtained based on the differences between the ARM architecture platform and the X86 platform. The margin log of the ARM architecture platform has its own proprietary keywords. Therefore, in order to obtain test data related to the ARM architecture platform, it is necessary to first obtain the proprietary keywords of the ARM architecture platform and the memory margin log file of the ARM architecture platform, that is, to receive keywords related to the ARM architecture platform, so as to obtain test data related to the keywords from the memory margin log file according to the keywords, and the test data related to the keywords are test data that will affect the memory test results, which is equivalent to obtaining test data useful for the memory test results.

[0162] receiving at least one memory remaining log file satisfying a standard format selected by a user;

[0163] In the existing memory test solution of the X86 architecture platform, one memory test can only analyze one memory margin log file, which is relatively inefficient. In the memory test solution of the ARM architecture platform, a function of analyzing multiple memory margin log files in one memory test is added; in the memory test solution of the ARM architecture platform, multiple memory margin log files selected by the user will be automatically received. The memory margin log file is in the form of a file with a suffix of log or txt. The memory test solution of the ARM architecture platform is made into a test tool. The test tool is written in Python language and uses Python's module library to implement the acquisition operation of analysis data; the test tool adds a window for receiving memory margin log files, and users can select multiple memory margin log files.

[0164] Reading the memory margin log file, and filtering the memory margin log file line by line according to the keyword;

[0165] After receiving the keywords and memory margin log files related to the ARM architecture platform, it is necessary to perform the acquisition operation of test data, that is, the test tool automatically reads the memory margin log file, specifically uses the Python open function to open the log file (or txt file) therein, and then filters it line by line, and uses the startrwiths(), endwiths(), split(), strip(), and append() functions to clean the data line by line, that is, the memory margin log file is filtered line by line according to the keywords, so as to automatically obtain the test data related to the keyword from the memory margin log file. In order to solve the problem that the memory test scheme of the existing X86 architecture platform can only analyze one memory margin log file at a time, resulting in low efficiency, the test tool can automatically receive multiple memory margin log files selected by the user, and filter each memory margin log file line by line according to the keywords in turn, so as to automatically obtain the test data related to the keyword from all the memory margin log files, which greatly improves the data testing efficiency.

[0166] Get test data that affects memory test results;

[0167] After filtering the memory margin log file line by line according to the keyword, the filtered data is the test data, that is, the test data that affects the memory test result, that is, the data useful for the memory test.

[0168] Perform batch data calculation on the test data to obtain the minimum value, maximum value and mean value of each margin log file;

[0169] After obtaining the test data related to the keyword from the memory margin log file according to the keyword, that is, after obtaining the data useful for memory testing, it is necessary to perform data processing operations on the test data. The data processing operations include obtaining the minimum, maximum and mean values ​​of the test data corresponding to the keyword. Since the test tool supports the processing of multiple margin log files, the test tool can perform batch calculations on the test data and obtain the minimum, maximum and mean values ​​of each margin log file. According to these files, the analysis data can be obtained.

[0170] Automatically generate the analysis data from the minimum value, maximum value and mean value;

[0171] After obtaining the minimum, maximum and mean values ​​of the test data corresponding to the keyword, analysis data can be formed, so that the memory test result can be obtained through the analysis data and the preset margin standard model.

[0172] Inputting the analysis data into a preset margin standard model to output a memory test result;

[0173] To input the analysis data into the preset margin standard model to output the memory test results, the preset margin standard model must be obtained first. The X86 platform already has mature professional data analysis and processing and standard judgment tools. The X86 platform can use the corresponding X86 standard to determine whether the test results of the memory stick are qualified based on the result data obtained. However, the memory test method of the ARM architecture platform is a new technical solution and there is no mature standard judgment tool. Therefore, the memory test standard of the ARM architecture platform must be re-established. The result data of the ARM architecture platform can obtain the test results of the memory stick through the memory test standard of the ARM architecture platform. Therefore, a large amount of analysis data and memory test results must be used to determine the memory test standard of the ARM architecture platform to establish a margin standard model, that is, a preset margin standard model. The memory test results can be obtained by inputting the analysis data into the margin standard model. The preset margin standard model can be used to output the memory test results based on the test data, that is, to judge the fault tolerance of the memory stick based on the preset margin standard model.

[0174] The memory test results output by the preset margin standard model are visualized in a table format.

[0175] After obtaining the memory test results through the preset margin standard model, the data of the memory test results are made into a table, and the data in the table is visualized. The data of the memory test results are visualized in a table through the csv module to display the test results intuitively.

[0176] It should be understood that although Figures 1-2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figures 1-2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0177] Embodiment three:

[0178] Reference Figure 3 As shown, Figure 3 It is a system structure diagram of the memory testing system of the present invention.

[0179] The memory testing system of this embodiment includes:

[0180] An information receiving module, used for receiving keywords and memory margin log files related to the ARM architecture platform;

[0181] The margin log of the ARM architecture platform has its own proprietary keywords. Therefore, in order to obtain test data related to the ARM architecture platform, it is necessary to first obtain the ARM architecture platform-specific keywords and the memory margin log file (margin log) of the ARM architecture platform through the information receiving module, so as to obtain test data related to the keywords from the memory margin log file according to the keywords, that is, test data related to memory testing, and test data that affects the memory test results.

[0182] A test data module, used for acquiring test data related to the keyword from the memory margin log file according to the keyword;

[0183] After receiving the keywords and memory margin log files related to the ARM architecture platform through the information receiving module, the keywords and memory margin log files are obtained; the keywords are key information related to the ARM architecture platform and to the memory test, that is, the key information that affects the memory test results of the ARM architecture platform; through the keywords and memory margin log files, the memory test data related to the ARM architecture platform can be selected from the memory margin log files in a targeted manner through the test data module, so as to realize the acquisition of memory test data of the ARM architecture platform.

[0184] A data processing module, used for processing the test data to obtain analysis data;

[0185] After obtaining the test data from the memory margin log file through the keywords of the ARM architecture platform, the test data can be processed through the data processing module to obtain key data that can reflect the fault tolerance capability of the memory stick, that is, analysis data; by combining the analysis data with the preset margin standard model, the memory test results reflecting the memory fault tolerance capability can be obtained.

[0186] The standard model module is used to construct a preset margin standard model and output memory test results through the preset margin standard model.

[0187] The preset margin standard model is a standard for judging the fault tolerance of the memory stick. The X86 platform already has mature professional data analysis and processing and standard judgment tools. Since the memory testing method for the ARM architecture platform proposed in the present invention is a new technical solution and there is no mature standard judgment tool, it is necessary to summarize a set of standard judgment tools suitable for the ARM architecture platform based on a large amount of test data of the ARM architecture platform, that is, to establish a preset margin standard model through the standard model module, and the preset margin standard model can be used to output the memory test results according to the test data, that is, to judge the fault tolerance of the memory stick according to the preset margin standard model.

[0188] A visualization module is used to visualize the memory test results in a table format.

[0189] After obtaining the memory test results, the data of the memory test results are made into a table format, and the data in the table is visualized. The data of the memory test results are visualized in a table through a visualization module to intuitively display the test results.

[0190] For the specific definition of the memory test system, please refer to the definition of the method above, which will not be repeated here. Each module in the above memory test system can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0191] Embodiment 4:

[0192] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of a memory testing method when executing the computer program.

[0193] The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 4As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a memory testing method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0194] Those skilled in the art should understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0195] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:

[0196] Receive keywords related to the ARM architecture platform and a memory margin log file that meets the standard format;

[0197] Acquire test data related to the keyword from the memory margin log file according to the keyword;

[0198] Performing data processing on the test data to obtain analysis data;

[0199] The analysis data is input into a preset margin standard model to output a memory test result.

[0200] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0201] Determine the hosts and memory involved in the test, and deploy the memory configuration environment according to actual needs;

[0202] Embed the memory test scheme of the host into the basic input and output system, and start the memory test enable item;

[0203] Restart the host to enter the memory test program, and perform the test according to the memory test plan;

[0204] Full log collection is performed, and the result of the full log collection is saved as a file that meets the standard format to form the memory balance log file.

[0205] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0206] Receiving keywords related to the ARM architecture platform;

[0207] receiving at least one memory remaining log file satisfying a standard format selected by a user;

[0208] The memory balance log file is stored in a fixed path.

[0209] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0210] Reading the memory margin log file, and filtering the memory margin log file line by line according to the keyword;

[0211] Get test data that affects memory test results.

[0212] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0213] Perform batch data calculation on the test data to obtain the minimum value, maximum value and mean value of each margin log file;

[0214] The minimum value, maximum value and mean value are automatically used to generate the analysis data.

[0215] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0216] Analyze historical analysis data and historical memory test results to establish memory test standards for ARM architecture platforms;

[0217] The preset margin standard model is constructed through the memory test standard.

[0218] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0219] The memory test results output by the preset margin standard model are visualized in a table format.

[0220] Embodiment five:

[0221] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0222] Receive keywords related to the ARM architecture platform and a memory margin log file that meets the standard format;

[0223] Acquire test data related to the keyword from the memory margin log file according to the keyword;

[0224] Performing data processing on the test data to obtain analysis data;

[0225] The analysis data is input into a preset margin standard model to output a memory test result.

[0226] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0227] Determine the hosts and memory involved in the test, and deploy the memory configuration environment according to actual needs;

[0228] Embed the memory test scheme of the host into the basic input and output system, and start the memory test enable item;

[0229] Restart the host to enter the memory test program, and perform the test according to the memory test plan;

[0230] Full log collection is performed, and the result of the full log collection is saved as a file that meets the standard format to form the memory balance log file.

[0231] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0232] Receiving keywords related to the ARM architecture platform;

[0233] receiving at least one memory remaining log file satisfying a standard format selected by a user;

[0234] The memory balance log file is stored in a fixed path.

[0235] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0236] Reading the memory margin log file, and filtering the memory margin log file line by line according to the keyword;

[0237] Get test data that affects memory test results.

[0238] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0239] Perform batch data calculation on the test data to obtain the minimum value, maximum value and mean value of each margin log file;

[0240] The minimum value, maximum value and mean value are automatically used to generate the analysis data.

[0241] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0242] Analyze historical analysis data and historical memory test results to establish memory test standards for ARM architecture platforms;

[0243] The preset margin standard model is constructed through the memory test standard.

[0244] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0245] The memory test results output by the preset margin standard model are visualized in a table format.

[0246] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0247] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0248] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A memory testing method for an ARM architecture platform, characterized in that: The memory testing method comprises: Receive keywords related to the ARM architecture platform and a memory margin log file that meets the standard format; Acquire test data related to the keyword from the memory margin log file according to the keyword; Performing data processing on the test data to obtain analysis data; Inputting the analysis data into a preset margin standard model to output a memory test result; The step of processing the test data to obtain analysis data includes: Perform batch data calculation on the test data to obtain the minimum value, maximum value and mean value of each margin log file; Automatically generate the analysis data from the minimum value, maximum value and mean value; Wherein, the test data and the analysis data both include phase values ​​and voltage values; Before the analysis data is input into a preset margin standard model to output a memory test result, the method includes: Analyze historical analysis data and historical memory test results to establish memory test standards for ARM architecture platforms; The preset margin standard model is constructed through the memory test standard.

2. The ARM architecture platform memory testing method according to claim 1, characterized in that: Before receiving the keywords related to the ARM architecture platform and the memory margin log file meeting the standard format, the method further includes: Determine the hosts and memory involved in the test, and deploy the memory configuration environment; Embed the memory test scheme of the host into the basic input and output system, and start the memory test enable item; Restart the host to enter the memory test program, and perform the test according to the memory test scheme; Full log collection is performed, and the result of the full log collection is saved as a file that meets the standard format to form the memory balance log file.

3. The ARM architecture platform memory testing method according to claim 1, characterized in that: The receiving of keywords related to the ARM architecture platform and a memory margin log file that meets a standard format includes: Receiving keywords related to the ARM architecture platform; receiving at least one memory remaining log file satisfying a standard format selected by a user; The memory balance log file is stored in a fixed path.

4. The ARM architecture platform memory testing method according to claim 1 or 3, characterized in that: The acquiring test data related to the keyword from the memory margin log file according to the keyword includes: Reading the memory margin log file, and filtering the memory margin log file line by line according to the keyword; Get test data that affects memory test results; Wherein, when the memory remaining log file is greater than one copy, reading the memory remaining log file includes: Identify and determine according to the suffix of the received memory balance log file, and automatically calculate the number of the balance log files; The memory margin log files are read in sequence according to the number of the margin log files.

5. The ARM architecture platform memory testing method according to claim 1, characterized in that: After the analysis data is input into a preset margin standard model to output a memory test result, the method includes: The memory test results output by the preset margin standard model are visualized in a table format.

6. An ARM architecture platform memory testing system that implements the ARM architecture platform memory testing method according to any one of claims 1 to 5, characterized in that: The ARM architecture platform memory test system comprises: An information receiving module, used for receiving keywords related to the ARM architecture platform and a memory margin log file meeting a standard format; A test data module, used for acquiring test data related to the keyword from the memory margin log file according to the keyword; A data processing module, used for processing the test data to obtain analysis data; The standard model module is used to construct a preset margin standard model and output memory test results through the preset margin standard model.

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

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program, and when the program is executed by a processor, the processor executes the steps of the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • VSAN performance test method and device, computer equipment and storage medium

    CN112187564A