A server memory fault test method, device, equipment and storage medium
By remotely configuring the fault injection table and using RAS basic tools to trigger memory errors, the problem of inconvenient testing in existing technologies is solved, and efficient and accurate memory fault testing is achieved.
Patent Information
- Application Number
- CN202311612246.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-29
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-11-29
AI Technical Summary
Existing server memory fault testing methods require testers to go to the site to connect specialized tools, making testing inconvenient and environment setup complex.
By loading the fault injection table and configuring the fault injection parameters, memory errors are remotely triggered using RAS basic tools, and runtime logs are obtained to determine the fault test results.
It improves the efficiency and convenience of server memory fault testing, ensures successful memory error injection, enhances the validity and accuracy of test results, and facilitates developers in resolving performance issues.
Smart Images

Figure CN120066823B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a method, apparatus, device, and storage medium for testing server memory faults. Background Technology
[0002] In the process of server product development, in order to verify the robustness and monitoring capabilities of the server, it is necessary to artificially inject errors into the server, such as repairable or unrepairable errors in the central processing unit (CPU), memory and peripherals, and then test whether the server can work normally and whether it can repair repairable errors.
[0003] In existing server testing methods, testing for server memory failures typically requires connecting the server to a dedicated debugging tool, eXtend Debug Port (XDP) or Direct Connect Interface (DCI), setting up a test environment, and then using an XDP or DCI box to test the server for memory failures.
[0004] However, existing testing methods require testers to be physically present at the server location to connect the XDP or DCI box to the server, and error checking can only be performed after a successful connection. This makes the testing method inconvenient and the test environment setup process quite complex. Summary of the Invention
[0005] This invention provides a server memory fault testing method, apparatus, device, and storage medium, which can improve the efficiency of server memory fault testing and enhance the convenience and ease of operation of the server memory fault testing method.
[0006] According to one aspect of the present invention, a server memory fault testing method is provided, comprising:
[0007] Load the fault injection table corresponding to the server, and configure the fault injection parameters that match the server memory in the fault injection table;
[0008] The error injection parameters include the error type that matches the server memory, and the error injection address;
[0009] Using the RAS basic tools, memory errors in the server are triggered based on the error injection parameters configured in the fault injection table;
[0010] Obtain the server's runtime logs for memory errors, and determine the fault test results corresponding to the server's memory based on the runtime logs.
[0011] Optionally, the fault injection table is configured with fault injection parameters that match the server memory, including:
[0012] Using RAS basic tools, generate an error injection address that matches the server memory;
[0013] The fault injection table is configured with the error type matching the server memory, the injection address, and the mask corresponding to the injection address.
[0014] Optionally, the fault injection table is configured with an error type matching the server memory, the error injection address, and a mask corresponding to the error injection address, including:
[0015] Obtain the target debugging path corresponding to the fault injection table;
[0016] In the target debugging path, configure the error type, the error injection address, and the mask corresponding to the error injection address that match the server memory.
[0017] Optionally, using RAS basic tools, memory errors in the server can be triggered based on the error injection parameters configured in the fault injection table, including:
[0018] Obtain the current flag bit corresponding to the trigger in the RAS basic tools, and modify the current flag bit;
[0019] The trigger, based on the modified flag and the error injection parameters configured in the fault injection table, triggers a memory error in the server.
[0020] Optionally, the fault test results corresponding to the server memory are determined based on the operation logs, including:
[0021] Obtain the server's error messages regarding memory errors from the runtime logs;
[0022] Based on the error message, determine the fault test results corresponding to the server memory.
[0023] Optionally, after determining the fault test result corresponding to the server memory based on the error message, the method further includes:
[0024] Based on the error message and the fault test results, generate a memory fault test report corresponding to the server;
[0025] The memory fault test report is displayed to the user through a visual interface;
[0026] In response to a user-triggered download request, the memory fault test report is stored in the target storage location matched by the download request.
[0027] According to another aspect of the present invention, a server memory fault testing apparatus is provided, the apparatus comprising:
[0028] The parameter configuration module is used to load the fault injection table corresponding to the server and configure the fault injection parameters that match the server memory in the fault injection table;
[0029] The error injection parameters include the error type that matches the server memory, and the error injection address;
[0030] The error triggering module is used to trigger memory errors in the server based on the error injection parameters configured in the fault injection table using the RAS basic tools.
[0031] The log acquisition module is used to acquire the server's runtime logs for memory errors and determine the fault test results corresponding to the server's memory based on the runtime logs.
[0032] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0033] At least one processor; and
[0034] A memory communicatively connected to the at least one processor; wherein,
[0035] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the server memory fault testing method according to any embodiment of the present invention.
[0036] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the server memory fault testing method according to any embodiment of the present invention.
[0037] The technical solution provided by this invention improves the efficiency of server memory fault testing by loading a fault injection table corresponding to the server, configuring error injection parameters matching the server memory in the fault injection table, triggering memory errors in the server using RAS basic tools based on the error injection parameters configured in the fault injection table, obtaining the server's operation logs for memory errors, and determining the fault test results corresponding to the server memory based on the operation logs. This approach enhances the convenience and ease of operation of server memory fault testing methods, ensures successful injection of memory errors into the server, improves the validity of test results, and guarantees that memory errors are injected into the server without affecting normal server operation, thus improving the reliability of test results. It also ensures that server response can be tested after successful memory error injection, improving the accuracy of test results. Furthermore, it facilitates developers in resolving performance issues in the server based on fault test results, and allows users to easily coordinate, communicate, and review server test results.
[0038] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0039] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0040] Figure 1 This is a flowchart of a server memory fault testing method provided by an embodiment of the present invention;
[0041] Figure 2 This is a flowchart of another server memory fault testing method provided by an embodiment of the present invention;
[0042] Figure 3 This is a flowchart of another server memory fault testing method provided by an embodiment of the present invention;
[0043] Figure 4 This is a schematic diagram of a server memory fault testing device according to an embodiment of the present invention;
[0044] Figure 5 This is a schematic diagram of the structure of an electronic device that implements the server memory fault testing method of this invention. Detailed Implementation
[0045] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0046] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0047] Figure 1 This is a flowchart illustrating a server memory fault testing method provided in an embodiment of the present invention. This embodiment is applicable to testing the server's performance in handling memory faults. The method can be executed by a server memory fault testing device, which can be implemented in hardware and / or software and can be configured in an electronic device. Figure 1 As shown, the method includes:
[0048] Step 110: Load the fault injection table corresponding to the server, and configure the fault injection parameters that match the server memory in the fault injection table.
[0049] In this embodiment, specifically, before testing for server memory failures, the server's corresponding Error Injection Table (EINJ) can be loaded first. The Error Injection Table is one of the important interfaces in the Advanced Platform Error Interfaces (APEI) structure of the server, used to simulate the server's corresponding hardware errors, including correctable memory errors, uncorrectable memory errors, inspection errors, memory read / write errors, etc.
[0050] In this step, after the fault injection table is loaded, you can configure the fault injection parameters that match the server memory in the fault injection table, including the fault type and the fault injection address that match the server memory.
[0051] Specifically, the error types can include correctable memory errors, uncorrectable memory errors, etc. The error injection address can be a physical memory address in the server, used to inject errors into the server's memory.
[0052] Step 120: Using the RAS basic tools, trigger a memory error in the server according to the error injection parameters configured in the fault injection table.
[0053] In this step, the RAS (Reliability Availability Serviceability) master tool can be used to inject the set error type into the specified physical memory address according to the error injection parameters in the fault injection table, thereby triggering a memory error in the server.
[0054] In practical applications, RAS basic tools are typically used to handle server CPU errors, I / O errors, PCIe interface errors, and chip errors. This embodiment uses RAS basic tools to trigger server memory errors, which can determine whether the error messages reported by the server meet the requirements when different memory failures occur, so that developers can quickly determine the cause of the failure.
[0055] Step 130: Obtain the server's runtime log for memory errors, and determine the fault test results corresponding to the server's memory based on the runtime log.
[0056] In this embodiment, optionally, the server can be judged based on the server's operation log for memory errors to determine whether the server correctly reports the corresponding error information in the event of a memory error, and then the judgment result can be used as the fault test result corresponding to the server memory.
[0057] The technical solution provided by this invention loads a fault injection table corresponding to the server, configures error injection parameters matching the server memory in the fault injection table, and triggers memory errors in the server using RAS basic tools based on the error injection parameters configured in the fault injection table. It then obtains the server's runtime logs for the memory errors and determines the corresponding fault test results based on the runtime logs. This method eliminates the need for testers to set up a test environment before testing the server, thereby improving the efficiency of server memory fault testing. Furthermore, compared to existing technologies, it eliminates the need to connect the XDP or DCI box to the server, enabling remote server memory fault testing without requiring testers to visit the server site, thus enhancing the convenience and ease of operation of the server memory fault testing method.
[0058] Figure 2 A flowchart of another server memory fault testing method provided in an embodiment of the present invention is shown below. Figure 2 As shown, the method includes:
[0059] Step 210: Load the fault injection table corresponding to the server, and generate the fault injection address that matches the server memory using the RAS basic tools.
[0060] In this step, specifically, a physical memory address can be generated using the RAS basic tools and the command ". / mca-recovery", and then this physical memory address can be used as the error address to match the server memory.
[0061] Step 220: Configure the error type that matches the server memory, the error injection address, and the mask corresponding to the error injection address in the fault injection table.
[0062] In this step, specifically, the available error types that the server can currently trigger can be obtained using RAS basic tools and the "available_error_type" command. These error types are then written to the "error_type" parameter of the fault injection table. Simultaneously, the error injection address obtained in the above steps can be written to the "param1" parameter of the fault injection table, and the mask corresponding to the error injection address (e.g., 0xfffffffffffff000) can be written to the "param2" parameter of the fault injection table.
[0063] The advantage of this setup is that by generating an injection address that matches the server's memory using RAS basic tools, the success of the corresponding memory error injection can be guaranteed, thereby improving the effectiveness of server memory fault test results.
[0064] In one embodiment of this example, configuring an error type matching the server memory, the injection address, and the mask corresponding to the injection address in the fault injection table includes: obtaining the target debugging path (" / sys / kernel / debug / apei / einj / ") corresponding to the fault injection table; and configuring an error type matching the server memory, the injection address, and the mask corresponding to the injection address in the target debugging path.
[0065] The advantage of this setup is that by configuring the injection parameters that match the server memory in the target debugging path corresponding to the fault injection table, testers do not need to go to the site and configure the injection environment, thereby improving the convenience of memory fault testing.
[0066] Step 230: Using the RAS basic tools, trigger a memory error in the server according to the error injection parameters configured in the fault injection table.
[0067] Step 240: Obtain the server's runtime log for memory errors, and determine the fault test results corresponding to the server's memory based on the runtime log.
[0068] The technical solution provided by this invention improves the efficiency of server memory fault testing and enhances the convenience and ease of operation of the server memory fault testing method by loading the fault injection table corresponding to the server, generating an injection address that matches the server memory through the RAS basic tool, configuring the error type, injection address, and corresponding mask of the injection address in the fault injection table, triggering memory errors in the server according to the injection parameters configured in the fault injection table through the RAS basic tool, obtaining the server's operation log for the memory error, and determining the fault test result corresponding to the server memory based on the operation log.
[0069] Figure 3 A flowchart of another server memory fault testing method provided in an embodiment of the present invention is shown below. Figure 3 As shown, the method includes:
[0070] Step 310: Load the fault injection table corresponding to the server, and generate the fault injection address that matches the server memory using the RAS basic tools.
[0071] Step 320: Configure the error type that matches the server memory, the error injection address, and the mask corresponding to the error injection address in the fault injection table.
[0072] Step 330: Obtain the current flag bit corresponding to the trigger in the RAS basic tool, and modify the current flag bit.
[0073] In this embodiment, specifically, assuming the current flag bit corresponding to the trigger is "0", the current flag bit can be modified to "1" so that the trigger can trigger a memory error in the server according to the modified flag bit.
[0074] In one specific implementation, the flag bit "1" can be written into the erro_inject parameter of the RAS basic tool to control the trigger to start working.
[0075] Step 340: Using the trigger, based on the modified flag and the error injection parameters configured in the fault injection table, a memory error is triggered in the server.
[0076] The advantage of this setup is that by modifying the trigger's flag and triggering a memory error, the server's response can be tested even if the memory error injection is successful, thereby improving the accuracy of server memory fault test results.
[0077] Step 350: Obtain the server's runtime log for memory errors, and obtain the error information of the server for memory errors in the runtime log.
[0078] Step 360: Based on the error message, determine the fault test result corresponding to the server memory.
[0079] In this embodiment, optionally, the server can determine whether it can work normally under memory error and whether it can correct correctable memory errors based on the error information reported by the server for memory errors, thereby obtaining the fault test results corresponding to the server memory.
[0080] The advantage of this setup is that by obtaining error information from the server's runtime logs, the fault test results corresponding to the server's memory can be quickly determined, making it easier for developers to resolve performance issues in the server based on the fault test results.
[0081] In one embodiment of this example, after determining the fault test result corresponding to the server memory based on the error information, the method further includes: generating a memory fault test report corresponding to the server based on the error information and the fault test result; displaying the memory fault test report to the user through a visual interface; and storing the memory fault test report in the target storage location matched by the download request in response to a download request triggered by the user.
[0082] The advantage of this setup is that it allows users to intuitively view the performance defects of the server. By storing the memory failure test report to the target storage location specified by the user, it is convenient for users to coordinate, communicate, and review the test results of the server.
[0083] The technical solution provided by this invention improves the efficiency of server memory fault testing and enhances the convenience and ease of operation of the server memory fault testing method by loading a fault injection table corresponding to the server, generating an injection address matching the server memory through RAS basic tools, configuring the error type matching the server memory, the injection address, and the mask corresponding to the injection address in the fault injection table, obtaining the current flag bit corresponding to the trigger in the RAS basic tools, modifying the current flag bit, triggering a memory error in the server through the trigger based on the modified flag bit and the injection parameters configured in the fault injection table, obtaining the server's operation log for the memory error, obtaining the error information of the server for the memory error in the operation log, and determining the fault test result corresponding to the server memory based on the error information.
[0084] Figure 4 This is a schematic diagram of a server memory fault testing device provided in an embodiment of the present invention. The device is applied in electronic devices, such as... Figure 4 As shown, the device includes: a parameter configuration module 410, an error triggering module 420, and a log acquisition module 430.
[0085] The parameter configuration module 410 is used to load the fault injection table corresponding to the server and configure the error injection parameters that match the server memory in the fault injection table; the error injection parameters include the error type that matches the server memory and the error injection address;
[0086] Error triggering module 420 is used to trigger memory errors in the server based on the error injection parameters configured in the fault injection table using RAS basic tools;
[0087] The log acquisition module 430 is used to acquire the server's running logs for memory errors and determine the fault test results corresponding to the server's memory based on the running logs.
[0088] The technical solution provided by this invention improves the efficiency of server memory fault testing and enhances the convenience and ease of operation of the server memory fault testing method by loading the fault injection table corresponding to the server, configuring the fault injection parameters that match the server memory in the fault injection table, triggering memory errors in the server according to the fault injection parameters configured in the fault injection table through RAS basic tools, obtaining the server's operation log for memory errors, and determining the fault test results corresponding to the server memory based on the operation log.
[0089] Based on the above embodiments, the parameter configuration module 410 includes:
[0090] The error injection address generation unit is used to generate an error injection address that matches the server memory using RAS basic tools;
[0091] The error injection parameter configuration unit is used to configure the error type matching the server memory, the error injection address, and the mask corresponding to the error injection address in the fault injection table.
[0092] The debugging path acquisition unit is used to acquire the target debugging path corresponding to the fault injection table, and to configure the error type, the injection address, and the mask corresponding to the injection address that match the server memory in the target debugging path.
[0093] Error triggering module 420 includes:
[0094] The flag modification unit is used to obtain the current flag bit corresponding to the trigger in the RAS basic tool and modify the current flag bit.
[0095] The trigger execution unit is used to trigger a memory error in the server by means of the trigger, based on the modified flag bit and the error injection parameters configured in the fault injection table.
[0096] Log acquisition module 430 includes:
[0097] The error information acquisition unit is used to acquire the server's error information regarding memory errors from the operation log.
[0098] An error information processing unit is used to determine the fault test result corresponding to the server memory based on the error information.
[0099] The test report generation unit is used to generate a memory fault test report corresponding to the server based on the error information and the fault test results.
[0100] The test report display unit is used to display the memory fault test report to the user through a visual interface;
[0101] The test report storage unit is used to store the memory fault test report in the target storage location matched by the download request in response to a user-triggered download request.
[0102] The above-described apparatus can execute the methods provided in all the foregoing embodiments of the present invention, and has the corresponding functional modules and beneficial effects for executing the above methods. Technical details not described in detail in the embodiments of the present invention can be found in the methods provided in all the foregoing embodiments of the present invention.
[0103] Figure 5A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0104] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0105] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0106] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as server memory fault testing methods.
[0107] In some embodiments, the server memory failure testing method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the server memory failure testing method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the server memory failure testing method by any other suitable means (e.g., by means of firmware).
[0108] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0109] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0110] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0111] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0112] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0113] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0114] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0115] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for testing server memory faults, characterized in that, The method includes: Load the fault injection table corresponding to the server, and configure the fault injection parameters that match the server memory in the fault injection table; wherein, the fault injection parameters include the error type that matches the server memory, and the fault injection address; Using the RAS basic tools, memory errors in the server are triggered based on the error injection parameters configured in the fault injection table; Obtain the server's runtime logs for memory errors, and determine the fault test results corresponding to the server's memory based on the runtime logs; The fault injection table is configured with fault injection parameters that match the server memory, including: Using RAS basic tools, generate an error injection address that matches the server memory; Obtain the target debugging path corresponding to the fault injection table; In the target debugging path, configure the error type, the error injection address, and the mask corresponding to the error injection address that match the server memory; Specifically, using RAS basic tools, memory errors in the server are triggered based on the error injection parameters configured in the fault injection table, including: Obtain the current flag bit corresponding to the trigger in the RAS basic tools, and modify the current flag bit; The trigger, based on the modified flag and the error injection parameters configured in the fault injection table, triggers a memory error in the server.
2. The method according to claim 1, characterized in that, The fault test results corresponding to the server memory are determined based on the aforementioned operation logs, including: Obtain the server's error messages regarding memory errors from the runtime logs; Based on the error message, determine the fault test results corresponding to the server memory.
3. The method according to claim 2, characterized in that, After determining the fault test results corresponding to the server memory based on the error message, the process also includes: Based on the error message and the fault test results, generate a memory fault test report corresponding to the server; The memory fault test report is displayed to the user through a visual interface; In response to a user-triggered download request, the memory fault test report is stored in the target storage location matched by the download request.
4. A server memory fault testing device, characterized in that, The device includes: The parameter configuration module is used to load the fault injection table corresponding to the server and configure the error injection parameters that match the server memory in the fault injection table; wherein, the error injection parameters include the error type that matches the server memory and the error injection address; The error triggering module is used to trigger memory errors in the server based on the error injection parameters configured in the fault injection table using the RAS basic tools. The log acquisition module is used to acquire the server's runtime logs for memory errors and determine the fault test results corresponding to the server's memory based on the runtime logs. The parameter configuration module includes: The error injection address generation unit is used to generate an error injection address that matches the server memory using RAS basic tools; The debugging path acquisition unit is used to acquire the target debugging path corresponding to the fault injection table; in the target debugging path, the error type, the injection address, and the mask corresponding to the injection address are configured to match the server memory. The error triggering module includes: The flag modification unit is used to obtain the current flag bit corresponding to the trigger in the RAS basic tool and modify the current flag bit. The trigger execution unit is used to trigger a memory error in the server by means of the trigger, based on the modified flag bit and the error injection parameters configured in the fault injection table.
5. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the server memory fault testing method according to any one of claims 1-3.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that are used to cause a processor to execute the server memory fault testing method according to any one of claims 1-3.
7. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the server memory fault testing method according to any one of claims 1-3.
Citation Information
Patent Citations
Test method and device for memory funnel error reporting mechanism, equipment and medium
CN116401086A
