Method and device for testing function of nonvolatile memory in server, equipment and medium

Through the substrate management controller and out-of-band management channel, the NVME in the server is tested for functional items, which solves the problem of NVME functional stability compatibility detection, and realizes efficient and accurate NVME status monitoring, which improves the reliability and timeliness of detection. sex.

CN118897766APending Publication Date: 2024-11-05INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411128440.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

The prior art is difficult to effectively test the functional stability compatibility of NVME in servers, and it is impossible to detect design defects in time. Especially under the influence of different operating systems and management software, the accuracy of NVME status monitoring and data acquisition is affected.

Method used

The substrate management controller starts the function item test of NVME on the hard disk backplane, and issue test instructions using preset command line tools and out-of-band management channel to obtain the function item test results in different test states, and check whether the results meet the pre-pre-pre- Set conditions to determine whether there is a compatibility vulnerability in NVME.

Benefits of technology

Effective testing of NVME function stability compatibility is realized, which reduces interference to the normal operation of the server, can promptly detect problems such as abnormal NVME function or performance degradation, and improves detection reliability and timeliness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897766A_ABST
    Figure CN118897766A_ABST
Patent Text Reader

Abstract

The invention discloses a method, a device and equipment for testing functions of a nonvolatile memory in a server and a medium, and relates to the technical field of server testing. If yes, starting an operation of performing function item test on each nonvolatile memory on the hard disk backboard through a substrate management controller of the server; controlling the server to enter a test state through a preset command line tool, issuing a test instruction for each function item of the server in each test state by using an out-of-band management channel of the server, and returning a corresponding function item test result through the out-of-band management channel based on the test instruction; checking whether the test logs and the external responses in the function item test results corresponding to the function items output in the different test states meet preset conditions or not, and determining whether the nonvolatile memory has compatibility vulnerabilities in the server or not based on the corresponding check results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of server testing, and in particular to a method, device, equipment and medium for testing a non-volatile memory function in a server. Background Art

[0002] With the growing demand for data centers and high-performance computing, higher requirements are placed on the media, architecture, protocols, and applications of data storage technology. In the field of data storage, NVME (Non-Volatile Memory Express) has become one of the mainstream enterprise-level storage solutions, and the application of NVME all-flash technology is becoming more and more popular.

[0003] Currently, NVME can be viewed in the BIOS, OS or BMC interface, or through the ipmitool tool for out-of-band command viewing, each with its own characteristics. The three viewing methods of BIOS (Basic Input / Output System), OS (Operating System), and BMC (Baseboard Management Controller) are greatly affected by page display, driver, management software, etc., and cannot well locate and check whether the NVME function is normal. Specifically, the BIOS interface is usually relatively simple, and the NVME-related information that can be displayed is limited. It cannot provide detailed and comprehensive functional status data, and the information in the BIOS cannot timely reflect the latest hardware changes and functional status. Different versions of the operating system OS may have compatibility issues with the NVME driver, resulting in some functions not being displayed or monitored normally. Different operating systems may use different management software to view the NVME status. The functions and accuracy of these software may vary, and when system resources are tight, it may affect the accuracy of monitoring the NVME status and data collection. The page display capability of the BMC may be limited, and it cannot present complex and detailed NVME functional information. The integration with the operating system and other management tools may not be perfect, resulting in deviations in data transmission and interpretation. The current out-of-band query uses ipmitool (a platform management tool for intelligent platform management interface in command line mode that can be used in Linux systems) to perform out-of-band command operations, which can directly view component information. However, the industry has not formed a systematic and comprehensive testing method for the compatibility of various NVME functions on servers.

[0004] It can be seen that how to effectively test the functional stability and compatibility of NVME in the server and discover design defects in advance is a problem that technical personnel in this field need to solve. Summary of the invention

[0005] The purpose of the embodiments of the present invention is to provide a method, device, equipment and medium for testing the function of a non-volatile memory in a server, which can effectively test the functional stability and compatibility of the NVME in the server and discover design defects in advance.

[0006] In a first aspect, an embodiment of the present invention provides a method for testing a non-volatile memory function in a server, wherein one or more non-volatile memories are pluggable on a hard disk backplane of the server, and the method comprises:

[0007] When a test request for performing a functional test on a non-volatile memory in a server is received, an operation of performing a functional item test on each of the non-volatile memories on the hard disk backplane is started through a baseboard management controller of the server;

[0008] Controlling the server to enter a test state through a preset command line tool, and using an out-of-band management channel of the server to issue a test instruction for each functional item of the server in each test state, so as to return a corresponding functional item test result through the out-of-band management channel based on the test instruction; wherein the functional item is a detection indicator for the state and performance of a non-volatile memory;

[0009] Check whether the test logs and external responses in the function item test results corresponding to each function item output under different test states meet preset conditions, and determine whether there is a compatibility vulnerability in the non-volatile memory in the server based on the corresponding inspection results.

[0010] Optionally, controlling the server to enter a test state through a preset command line tool, and using an out-of-band management channel of the server to issue a test instruction for each functional item of the server in each test state, so as to return a corresponding functional item test result through the out-of-band management channel based on the test instruction, includes:

[0011] Determine a function item as a current function item to be tested according to the check order of each function item in the function item check list, control the server to enter a running state by using a preset command line tool, and issue a test instruction for the current function item to be tested when the server is in the running state by using an out-of-band management channel of the server;

[0012] Returning a corresponding first functional test result in the running state through the out-of-band management channel based on the test instruction;

[0013] Using the preset command line tool to adjust the server to enter a shutdown state, and using the out-of-band management channel of the server to issue a test instruction for the current function item to be tested of the server in the shutdown state;

[0014] Returning a corresponding second functional test result in the shutdown state through the out-of-band management channel based on the test instruction;

[0015] Determine the next function item as the new current function item to be tested according to the inspection sequence, and jump to the step of using a preset command line tool to control the server to enter the running state, and use the server's out-of-band management channel to issue a test instruction for the current function item to be tested when the server is in the running state, so as to obtain a first function test result of each function item when the server is in the running state and a second function test result when the server is in the shutdown state.

[0016] Optionally, the checking whether the test log and the external response in the function item test results corresponding to each of the function items output under different test states meet preset conditions, and determining whether there is a compatibility vulnerability in the non-volatile memory in the server based on the corresponding inspection results, includes:

[0017] Check respectively whether the first test log and the first external response in the first function item test result of each of the function items meet the first preset condition, and whether the second test log and the second external response in the second function item test result of each of the function items meet the second preset condition, and determine whether there is a compatibility vulnerability of the non-volatile memory in the server based on the corresponding inspection results.

[0018] Optionally, the respectively checking whether the first test log and the first external response in the first function item test result of each of the function items meet a first preset condition, and whether the second test log and the second external response in the second function item test result of each of the function items meet a second preset condition, and determining whether the non-volatile memory has a compatibility vulnerability in the server based on the corresponding inspection results, includes:

[0019] Check whether the first test log, the first external response, the second test log and the second external response of each of the function items are consistent with the actual log and the actual external response in the actual result under the corresponding test state;

[0020] If all the inspection results are consistent, it is determined that the non-volatile memory does not have a compatibility vulnerability in the server;

[0021] If there is the inspection result indicating inconsistency, it is determined that there is a compatibility vulnerability in the non-volatile memory in the server.

[0022] Optionally, before checking whether the first test log, the first external response, the second test log, and the second external response of each of the function items are the same as the actual log and the actual external response in the actual result under the corresponding test state, the step further includes:

[0023] The actual results of the functional items related to the non-volatile memory of the server in each of the test states fed back from the operating system, baseboard management controller, or basic input and output system of the server are obtained.

[0024] Optionally, returning corresponding function item test results through the out-of-band management channel based on the test instruction includes:

[0025] Controlling the clock signal of the out-of-band management channel to be a high-level signal based on the received test instruction, and acquiring communication information between the server and the non-volatile memory through a non-volatile memory command line tool;

[0026] A function item test result corresponding to the function item in the test instruction is obtained from the communication information.

[0027] Optionally, the method for testing the non-volatile memory function in the server further includes:

[0028] A preconfigured server test cycle is obtained, and the server is controlled to enter a test state according to the server test cycle, so as to obtain the corresponding functional test result returned through the out-of-band management channel within the server test cycle.

[0029] In a second aspect, an embodiment of the present invention provides a device for testing a non-volatile memory function in a server, wherein one or more non-volatile memories are pluggable on a hard disk backplane of the server, and the device comprises:

[0030] A test module, configured to, upon receiving a test request for performing a functional test on a non-volatile memory in a server, initiate an operation of performing a functional item test on each of the non-volatile memories on the hard disk backplane through a baseboard management controller of the server;

[0031] A data acquisition module, used to control the server to enter a test state through a preset command line tool, and use the out-of-band management channel of the server to issue a test instruction for each functional item of the server in each test state, so as to return a corresponding functional item test result through the out-of-band management channel based on the test instruction; wherein the functional item is a detection indicator for the state and performance of the non-volatile memory;

[0032] The result comparison module is used to check whether the test logs and external responses in the function item test results corresponding to each function item output under different test states meet preset conditions, and determine whether there is a compatibility vulnerability in the non-volatile memory in the server based on the corresponding inspection results.

[0033] In a third aspect, an embodiment of the present invention provides an electronic device, including:

[0034] Memory for storing computer programs;

[0035] A processor is used to execute the computer program to implement the steps of the method for testing the non-volatile memory function in the server as disclosed above.

[0036] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method for testing the non-volatile memory function in the server disclosed above are implemented.

[0037] It can be seen that the present invention provides a method for testing the function of a non-volatile memory in a server, wherein one or more non-volatile memories are pluggable on a hard disk backplane of the server, and the method comprises: when a test request for performing a functional test on the non-volatile memory in the server is received, the operation of performing a functional item test on each of the non-volatile memories on the hard disk backplane is started through the baseboard management controller of the server; the server is controlled to enter a test state through a preset command line tool, and a test instruction for each functional item of the server in each test state is issued by the out-of-band management channel of the server, so as to return a corresponding functional item test result through the out-of-band management channel based on the test instruction; wherein the functional item is a detection indicator for the state and performance of the non-volatile memory; and the test log and external response in the functional item test result corresponding to each functional item output under different test states are checked to see whether they meet preset conditions, and based on the corresponding inspection result, it is determined whether there is a compatibility vulnerability in the non-volatile memory in the server.

[0038] It can be seen from the above technical solution that through the preset command line tool and out-of-band management channel, the functional test results under different test states can be accurately and efficiently obtained, reducing the interference with the normal operation of the server. By testing multiple states and performance detection indicators of the non-volatile memory for the baseboard management controller, the working condition of the hard disk can be fully understood. By comparing the actual results with the functional item test results, the possible functional abnormalities or performance degradation of the hard disk can be quickly discovered. In this way, the function and stability of the non-volatile memory can be detected more specifically, so as to more effectively discover potential problems, such as functional abnormalities caused by address conflicts. Compared with the single viewing that relies on specific pages or software in the prior art, the changes and instability of the non-volatile memory function in long-term operation can be discovered more timely, improving the reliability and timeliness of the detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. 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.

[0040] Figure 1 A flow chart of a method for testing a non-volatile memory function in a server provided by an embodiment of the present invention;

[0041] Figure 2 A schematic diagram of a connection structure between NVME and a server provided in an embodiment of the present invention;

[0042] Figure 3 A schematic diagram of functional items for functional testing and stability testing provided by an embodiment of the present invention;

[0043] Figure 4 A schematic diagram of the stop and start conditions of IIC of NVME provided by an embodiment of the present invention;

[0044] Figure 5 A schematic diagram of an NVME IIC out-of-band patrol test provided by an embodiment of the present invention;

[0045] Figure 6 A schematic diagram of the structure of a testing device for a non-volatile memory function in a server provided by an embodiment of the present invention;

[0046] Figure 7 A schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] The terms "including" and "having" in the specification of the present invention and the above-mentioned drawings, as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.

[0049] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0050] With the growing demand for data centers and high-performance computing, higher requirements are placed on the media, architecture, protocols, and applications of data storage technology. In the field of data storage, NVME has become one of the mainstream enterprise-level storage solutions, and the application of NVME all-flash technology is becoming more and more popular.

[0051] Currently, NVME can be viewed in the BIOS, OS or BMC interface, or through the ipmitool tool for out-of-band command viewing, each with its own characteristics. The three viewing methods of BIOS, OS and BMC are greatly affected by aspects such as page display, driver, and management software, and cannot well locate and troubleshoot whether the NVME function is normal. Specifically, the BIOS interface is usually relatively simple, and the NVME-related information that can be displayed is limited. It cannot provide detailed and comprehensive functional status data, and the information in the BIOS cannot timely reflect the latest hardware changes and functional status. Different versions of the operating system OS may have compatibility issues with the NVME driver, resulting in some functions not being displayed or monitored normally. Different operating systems may use different management software to view the NVME status. The functions and accuracy of these software may vary, and when system resources are tight, it may affect the monitoring of the NVME status and the accuracy of data collection. The page display capability of the BMC may be limited, and it cannot present complex and detailed NVME functional information. The integration with the operating system and other management tools may not be perfect, resulting in deviations in data transmission and interpretation. The current out-of-band query uses the ipmitool tool to perform out-of-band command operations and directly view component information, but the industry has not formed a systematic and comprehensive testing method for the compatibility of various NVME functions on servers.

[0052] To this end, the present invention provides a testing scheme for the non-volatile memory function in a server, which can effectively test the functional stability and compatibility of the NVME in the server and discover design defects in advance.

[0053] Next, a method for testing a non-volatile memory function in a server provided by an embodiment of the present invention is described in detail. Figure 1 A method for testing a non-volatile memory function in a server provided in an embodiment of the present invention, wherein one or more non-volatile memories are pluggable on a hard disk backplane of the server, and the method comprises:

[0054] Step S11: when a test request for performing a functional test on a non-volatile memory in a server is received, the baseboard management controller of the server starts an operation of performing a functional item test on each non-volatile memory on the hard disk backplane.

[0055] In this embodiment, Figure 2 As shown, one or more non-volatile memory NVMEs are plugged in and out of the hardware backplane (NVME switching backplane) of the server, such as NVME1, NVME2, NVME3, NVME4, NVME… In this way, communication is carried out with the server through Switch1 and Switch2 on the hardware backplane, wherein, in the process of communication between the hardware backplane and NVME, each non-volatile memory NVME is identified by a different address, such as: when NVME1 communicates with the hardware backplane, the transmission address between the two is "adress 0000:09:00.0", wherein "0009" is a certain type of NVME device number or identifier code. "09" represents a specific bus number, port number, or other number related to the device connection. "00.0" further subdivides the identification of the NVME device within a specific range. For example, it may represent a specific location of the NVME device or related component on a specific PCIe bus, I / O channel, or other hardware communication path. The remaining NVME2, NVME3, NVME4, NVME... and the transmission addresses between the hardware backplane are similar to the specific contents of the transmission addresses between NVME1 and the hardware backplane, and no further description is given. Then the hardware backplane is connected to the nodes Node1, Node2, etc. of the server, and the baseboard management controller is also connected to the hardware backplane for out-of-band identification of the present invention. The NVME interface protocol is an IIC bus mode, and its communication principle should comply with the half-duplex communication mode. When the NVME access server is in working state, its various functions of NVME should be normal, such as NVME in-place status, NVME FRU (Field Replaceable Unit, detailed information of each replaceable unit in the server) information identification, NVME status indicator, NVME temperature reading, etc.

[0056] Under the above connection relationship, when a test request for functional testing of the non-volatile memory NVME in the server is obtained, the baseboard management controller BMC of the server in the above connection diagram is used to start the operation of functional item testing of each non-volatile memory on the hard disk backplane.

[0057] Step S12: Control the server to enter the test state through a preset command line tool, and use the server's out-of-band management channel to issue test instructions for each functional item of the server in each test state, so as to return the corresponding functional item test results through the out-of-band management channel based on the test instructions; wherein the functional items are detection indicators for the status and performance of the non-volatile memory.

[0058] In this embodiment, the control power state command in the ipmitool tool is used to control the server to enter the test state, and the server's out-of-band management channel is used to issue test instructions for each functional item in each test state. It should be noted that out-of-band management refers to managing the server through a dedicated channel independent of the server's main operating system and network connection. Unlike in-band management performed through the server's internal operating system OS, out-of-band management can still monitor, configure and control the server's hardware even if the server's operating system OS fails or is unavailable.

[0059] In this embodiment, based on the received test instruction, the clock signal of the out-of-band management channel is controlled to be set to a high level signal, and the communication information between the server and the non-volatile memory is obtained through the non-volatile memory command line tool; the function item test result corresponding to the function item in the test instruction is obtained from the communication information. It can be understood that, if Figure 3As shown, the data communication between NVME and the server is carried out in half-duplex communication mode, so the NNVME in-position status, NVME fru information identification, NVME status indicator, NVME temperature reading and storage data reading and writing operations are all carried out in serial mode. Under normal circumstances, the server host needs to interact with NVME to complete the identification of these functions. These information interactions are controlled by pulling down and up the signal levels of SCL (Serial Clock Line) and SDA (Serial Data Line) to identify the information of NVME, but in some abnormal situations, such as address conflicts, the signal change may be abnormal, resulting in the failure of reading the information interaction of NVME, resulting in abnormal NVME function identification. It should be noted that the half-duplex communication mode means that both parties in communication can send and receive data, but not at the same time. In half-duplex communication, at a certain moment of communication, one party is in the sending state and the other party is in the receiving state. Both parties can change the roles of sending and receiving by switching. For example, in the communication between the server and NVME, when one party sends data, the other party can only receive data. The data receiver can only send data after the data sender stops sending data. At this time, the original data sender becomes the data receiver. In network communication, data transmission in half-duplex mode is like a one-way street, and data can only flow in one direction for a period of time.

[0060] In this embodiment, a function item is determined as the current function item to be tested according to the inspection order of each function item in the function item inspection table, the server is controlled to enter the running state by using a preset command line tool, and a test instruction for the current function item to be tested of the server in the running state is issued by using the out-of-band management channel of the server; the corresponding first function test result in the running state is returned through the out-of-band management channel based on the test instruction; the server is adjusted to enter the shutdown state by using the preset command line tool, and a test instruction for the current function item to be tested of the server in the shutdown state is issued by using the out-of-band management channel of the server; the corresponding second function test result in the shutdown state is returned through the out-of-band management channel based on the test instruction; the next function item is determined as the new current function item to be tested according to the inspection order, and the process jumps to the step of controlling the server to enter the running state by using the preset command line tool, and issuing the test instruction for the current function item to be tested of the server in the running state by using the out-of-band management channel of the server, so as to respectively obtain the first function test result of each function item in the running state of the server and the second function test result in the shutdown state of the server.

[0061] Specific, combined Figure 3The communication relationship designed in the structure relationship of out-of-band identification and in-band identification is constructed, such as Figure 4 As shown, an out-of-band identification communication link and an in-band identification communication link are constructed between the server and NVME, wherein the out-of-band identification communication link is carried out through an out-of-band management channel and a half-duplex communication mode, and the in-band identification communication link uses a link between the internal system such as the operating system OS of the traditional server and NVME. Then, according to the inspection order of each function item in the function item inspection table, a function item is first determined as the current function item to be tested, and then a test instruction for the current function item to be tested is issued through the out-of-band management channel. For example, the current function item to be tested simulates the alarm test of the NVME sensor Disk_X Status (disk status); Test steps: Execute ipmitool sdr elist to check whether the sensor ID and the sensor name are consistent with the corresponding SPEC; Execute ipmitool sensor get<sensor name> Check whether the first bit (sensorType) of the return value is consistent with SPEC; simulate the alarm of hardware link disconnection, check whether there are alarm and clear alarm records in the ipmi log, when the alarm occurs, the health light is on, and after the alarm is cleared, the health light returns to normal; when the server is shut down, it should display NA (Not Available); when the service is running, the status of the in-place HDD (Hard Disk Drive) in ipmitool sdr elist is displayed; unplug NVME, check BMC sel and precise log. Then check other function items one by one according to the inspection order of the function item checklist.

[0062] It should be pointed out that, regarding the function item checklist, the function item checklist corresponding to the test request is selected according to the actual test request, wherein the function item checklist specifically includes all the function items involved in the test request, and the test inspection order of all the function items, and the function item checklist is a dynamic table, which can be screened on demand according to the actual test request. The function items related to the non-volatile memory in the server are arranged and combined to form a new function item checklist, or the corresponding function items are manually added and deleted in the function item checklist, which will not be repeated. In this way, the relevant function items can be accurately selected and combined according to the actual test request to meet the specific test requirements of different scenarios and needs, and improve the pertinence and effectiveness of the test. For example, if a test focuses on the data reading and writing speed of the non-volatile memory, the function items related to this can be selected and tested. The function items can also be dynamically screened and arranged on demand to adapt to the continuous updating and changes of the server. When the non-volatile memory-related functions of the server change or are added, the checklist can be quickly adjusted to cover the latest features. For example, if a new energy-saving mode of non-volatile memory is added to the server, the relevant test function items can be added to the checklist. It also avoids testing unnecessary functional items, saving testing time and resources, and making the testing process more efficient. And because the checklist closely matches the test request, once a problem is found, it can more accurately locate the specific functional item, which helps to quickly solve the problem. It also allows manual addition and deletion of functional items, making it easy to maintain and optimize the checklist, so that it always keeps in sync with the latest status of the server and test requirements.

[0063] Step S13: Check whether the test logs and external responses in the function item test results corresponding to each function item output under different test states meet preset conditions, and determine whether there is a compatibility vulnerability in the non-volatile memory in the server based on the corresponding inspection results.

[0064] In this embodiment, the first test log and the first external response in the first functional item test result of each functional item are respectively checked to see if they meet the first preset condition, and the second test log and the second external response in the second functional item test result of each functional item are checked to see if they meet the second preset condition. Based on the corresponding inspection results, it is determined whether there are compatibility vulnerabilities in the non-volatile memory in the server. Specifically, it is checked whether the first test log, the first external response, the second test log, and the second external response of each functional item are consistent with the actual log and the actual external response in the actual results under the corresponding test status. If all the inspection results indicate consistency, it is determined that there are no compatibility vulnerabilities in the non-volatile memory in the server. If there are inspection results indicating inconsistency, it is determined that there are compatibility vulnerabilities in the non-volatile memory in the server. It can be understood that the first preset condition is the test log and the external response of the corresponding functional item when the corresponding server is running, and the second preset condition is the test log and the external response of the corresponding functional item when the corresponding server is shut down. Among them, the test log specifically includes: status test log, alarm test log, temperature test log, etc. The external response specifically includes: the fault light is on, the health light is on, etc.

[0065] The test criteria for the current functional item to be tested for the NVME sensor Disk_X Status alarm simulation test, or the actual first preset condition and the second preset condition are as follows: The sensor ID and name in the ipmitool sdr elist are consistent with the SPEC; the first bit of the return value of the ipmitool sensor get <sensor name> is consistent with the SPEC, that is, 01; the generation and elimination of the alarm can be normally logged. When the alarm occurs, the whole machine health light is red. When there is no alarm, the whole machine health status is OK, and the fault light is green and on continuously; in the shutdown state, the status shows NA; the HDD status shows Drive Present (the hard disk exists); there are relevant logs in the BMC SEL and the accurate log about the state change of the BMC being present and not being present.

[0066] In this embodiment, before checking whether the first test log, the first external response, the second test log and the second external response of each of the function items are the same as the actual log and the actual external response in the actual result in the corresponding test state, it also includes: obtaining the actual results of the function items related to the non-volatile memory of the server in each of the test states fed back by the operating system of the server, or the baseboard management controller, or the basic input and output system. It can be understood that the actual results of the NVME device monitored by the operating system OS in the server are obtained through in-band management, or the actual results of the NVME device displayed in the BIOS (basic input and output system) page in the server are obtained through in-band management, or the actual results of the NVME device monitored by the BMC (basic management controller) are obtained through in-band management. It should be noted that the actual results obtained through the above often have various problems such as system resource shortage, simple BMC page, NVME driver problems in the operating system, etc., resulting in limited NVME related information in the actual results of the obtained NVME device, and the actual status of the NVME device cannot be updated in time, so that accurate, timely updated, and more widely covered actual results of NVME devices cannot be fully obtained from in-band management.

[0067] In this embodiment, a pre-configured server test cycle is obtained, and the server is controlled to enter a test state according to the server test cycle, so as to obtain the corresponding functional test results returned through the out-of-band management channel within the server test cycle. It can be understood that in the operation of testing the out-of-band polling of the present invention, by setting a specific server test cycle, the corresponding functional item test operation is periodically performed through the out-of-band management channel, and the functional item related information of the server's NVME can be continuously, repeatedly, and periodically obtained and comprehensively and timely tested, so as to discover the compatibility problems between the server and the NVME hard disk in terms of function and stability in advance, discover the design defects in advance, and intercept the problems before the production line is produced.

[0068] Reference Figure 5 As shown, the functional items included in the functional checklist used in the present invention are as follows:

[0069] "BMC sensor diskstatus get";

[0070] "BMC sensor diskstatus warnning get";

[0071] "BMC sensor type diskstatusconsistence"

[0072] "BMC sensor nvmetemp get"

[0073] "BMC sensor nvmetemp warnning get";

[0074] "BMC sensor nvmetemp consistence"

[0075] "BMC sensor nvmestatus get";

[0076] "BMC sensor nvmestatus warnning get";

[0077] “BMC sensor nvmetemp reliability get”

[0078] "BMC NVMe backplane field replaceable unit get" ("BMC nvme backplane fru get");

[0079] The above-mentioned functional items are used to test the functionality and stability of the server's NVME in different operating states. At the same time, they can test whether there are defects in the design structure of the server, whether the server address conflicts, etc. Specifically, these test items are designed to comprehensively detect the various performance indicators and states of the NVME hard disk in the server environment to ensure the normal operation of the server system and the reliability of the NVME hard disk. Among them, the functional test items mainly focus on whether the various functions of the NVME hard disk are normal, such as disk status, temperature, status indication, etc.; the stability test items focus on the temperature reliability of the NVME hard disk under long-term operation and the performance of the backplane field replaceable unit (FRU).

[0080] Among them, 1. Test for disk status: confirm the consistency between BMC sensor status and NVME actual value, including status and alarm display in normal, faulty, normal and abnormal hard disks inserted, abnormal hard disks removed, and related log records. Specifically, 01: Enter BMC sensor diskstatus get, purpose: mainly to test whether the NVME sensor Disk_X Status hardware reading value test item is normal;

[0081] Test steps:

[0082] During normal operation, confirm whether the BMC sensor status is consistent with the actual NVME value. If there is an alarm, it should be alarmed (such as: known NVME fault). If an NVME alarm is constructed (such as the interface gold finger part foot sticking insulation tape to simulate the fault), the BMC alarm;

[0083] Check whether the NVME fault light is on; insert a normal hard drive and check the log; insert an abnormal hard drive and check the log; unplug the abnormal hard drive and check the SDR status and log.

[0084] Test standard:

[0085] The BMC sensor status alarm is completely consistent with the NVME health status. When the SDR status is normal, DrivePresent is displayed, and when an alarm occurs, Drive Fault is displayed. The NVME fault light will be on. A "Drive Present" normal event log will be generated. A "Drive Fault" major alarm log will be generated. When the SDR alarm is cleared, a "Drive Fault" major alarm clear log will be generated.

[0086] 2. Test for disk status alarm:

[0087] Simulate alarm conditions, check the consistency of sensor ID, name, return value and SPEC, detect alarm and clear log records, health light status, and display in different states of the server. Specifically, 02: BMC sensordiskstatus warnning get, purpose: simulate the alarm test of NVME sensor Disk_X Status.

[0088] Test steps:

[0089] Run ipmitool sdr elist to check whether the sensor ID and sensor name are consistent with those in SPEC.

[0090] Execute the command "ipmitool sensor get <sensor name>" and check whether the first bit (sensor Type) of the returned value is consistent with the SPEC;

[0091] Simulate the warning of the hardware link disconnection, detect whether there are warning and de - warning records in the ipmi log. When warning occurs, the health light is on. After de - warning, the health light returns to normal;

[0092] When the server is in the shutdown state, it should display NA;

[0093] When the service is in the startup state, display the status of the installed HDD in "ipmitool sdr elist";

[0094] Plug and unplug the NVME, and check the BMC sel and the accurate log.

[0095] Test criteria:

[0096] The sensor ID and name in "ipmitool sdr elist" are consistent with the SPEC;

[0097] The first bit of the returned value of "ipmitool sensor get <sensor name〉" is consistent with the SPEC, that is, 01;

[0098] The generation and elimination of warnings can record the log normally. When warning occurs, the whole - machine heath light is on red. When there is no warning, the whole - machine health status is OK, and the fault light is on green constantly;

[0099] In the shutdown state, the status displays NA;

[0100] The HDD status displays "Drive Present";

[0101] There are relevant logs of the change of the BMC presence and absence status in the BMC SEL and the accurate log.

[0102] 3. Test for the consistency of sensor type and specification: Compare the consistency of the type, threshold, hysteresis, etc. of the NVME sensor with the specification. Specifically, 03: BMC sensor type diskstatus consistence, purpose: Compare and test the consistency of the sensor type, threshold, hysteresis of the NVME sensor Disk_X Status with the sensor specification;

[0103] Test steps:

[0104] Execute the command "ipmitool sensor get Disk*_Status";

[0105] Check whether the returned values ​​of sensor Type, Upper critical, Lower critical, PositiveHysteresis, and Negative Hysteresis are consistent with the spec.

[0106] Test standard:

[0107] The command can be executed successfully;

[0108] The sensor type is Drive Slot, and the Upper critical, Lower critical, Positive Hysteresis, and Negative Hysteresis are none respectively.

[0109] 4. Tests on NVME temperature, NVME temperature warning test, and NVME temperature consistency test: confirm the consistency and deviation range between BMC temperature readings and actual NVME temperature, simulate temperature alarms, and detect related logs and health light status. Specifically, 04: BMC sensor nvmetemp get, purpose: to compare the sensortype, threshold, and hysteresis of the NVME sensor Disk_X Status with the sensor specifications;

[0110] Test steps:

[0111] During normal operation, confirm that the BMC temperature reading is consistent with the actual NVME value (use tools such as nvme-cli-master to obtain the NVME temperature under OS), and the deviation does not exceed plus or minus 1 degree;

[0112] Test standard:

[0113] The BMC reading is consistent with the NVME temperature, with a deviation of no more than 1 degree.

[0114] 05: BMC sensor nvmetemp warnning get, purpose: NVME sensor NVME_X Temp alarm simulation test;

[0115] Test steps:

[0116] Use the ipmitool sensor thresh command to modify the threshold value to simulate the construction of temperature values ​​that are lower than and higher than the alarm threshold, simulate the alarm triggering, and check whether there are alarm and clear alarm records in the ipmi log. When an alarm occurs, the health light is on, and after the alarm is cleared, the health light returns to normal.

[0117] When the server is shut down, it should display NA;

[0118] Check whether the corresponding alarm SEL is generated, Upper Critical –going high;

[0119] Shut down the server and remotely execute ipmitool sdr elist to check the sensor status and reading value;

[0120] Test standard:

[0121] The generation and elimination of alarms can be recorded in logs normally. When an alarm occurs, the health indicator of the whole machine lights up red. When there is no alarm, the health status of the whole machine is OK, and the fault indicator lights up green.

[0122] Display NA;

[0123] Have proper SEL records;

[0124] In the shutdown state, the sensor reading value is no reading.

[0125] 06: BMC sensor nvmetemp consistence, purpose: sensortype, threshold, hysteresis of sensor NVME_X Temp are consistent with sensor specifications;

[0126] Test steps:

[0127] Run the ipmitool sensor get NVMe*_Temp command.

[0128] Check whether the returned values ​​of sensor Type, Upper criticality, Lower criticality, Positive Hysteresis, and Negative Hysteresis are consistent with the spec;

[0129] Test standard:

[0130] The whole command was executed successfully;

[0131] The sensor type is Temperature, and the Upper critical, Lower critical, Positive Hysteresis, and Negative Hysteresis are consistent with the speed regulation strategy.

[0132] 5. Test for NVME status and status warning: Similar to the disk status test, confirm the consistency of BMC sensor status and NVME actual value in different situations and related display and log. Specifically, 07: BMC sensor nvmestatusget, purpose: to test the hardware reading value of NVME sensor NVME_X Status;

[0133] Test steps:

[0134] During normal operation, confirm whether the BMC sensor status is consistent with the actual NVME value. If there is an alarm, it should be alarmed, construct an NVME alarm, and then the BMC alarm;

[0135] Check whether the NVME fault light is on;

[0136] Insert a normal hard disk and check the log;

[0137] Insert the abnormal hard disk and check the log;

[0138] Unplug the abnormal hard disk and check the SDR status and log.

[0139] 08: BMC sensor nvmestatus warnning get, purpose: sensor NVME_X Status alarm simulation test;

[0140] Test steps:

[0141] Run ipmitool sdr elist to check whether the sensor ID and sensor name are consistent with those in SPEC.

[0142] Execute ipmitool sensor get<sensor name> Check whether the first bit (sensor Type) of the returned value is consistent with SPEC;

[0143] Simulate the hardware link disconnection alarm and check whether there are alarm and clear alarm records in the ipmi log. When an alarm occurs, the health light is on. After the alarm is cleared, the health light returns to normal.

[0144] When the server is shut down, it should display NA;

[0145] When the service is turned on, the NVME status in ipmitool sdr elist is displayed

[0146] When plugging and unplugging the NVME, check the "BMC sel and accurate log" during normal operation, and confirm whether the BMC temperature reading is consistent with the actual NVME value (obtain the NVME temperature using tools such as nvme-cli-master under the OS), with a deviation not exceeding plus or minus 1 degree;

[0147] Test criteria:

[0148] The sensor ID and name in ipmitool sdr elist correspond to the SPEC;

[0149] Execute ipmitool sensor get <sensor name>, and the first digit of the return value is consistent with the SPEC, i.e., 01;

[0150] Alarms generated and eliminated can record logs normally. When there is an alarm, the whole machine health light turns red. When there is no alarm, the whole machine health status is OK, and the fault light stays green and on;

[0151] In the shutdown state, the status shows NA;

[0152] The NVME status shows Drive Present;

[0153] There are relevant logs in the BMC SEL and accurate log about the change of the BMC presence and absence status;

[0154] The BMC reading is consistent with the NVME temperature, with a deviation not exceeding 1 degree;

[0155] 6. Test for the reliability of temperature alarms: By pulling the I2C of the NVME to death or unplugging the NVM, etc., check whether the accurate log records correctly. Specifically, 09: BMC sensor nvmetemp reliability get, purpose: Test the reliability of the sensor NVME_X Temp alarm;

[0156] Test steps:

[0157] Pull the I2C of the NVME to death and check whether the accurate log reports the log of reading failed;

[0158] With the NVME in place, unplug the NVME and check whether the accurate log reports the log of reading failed;

[0159] Test criteria:

[0160] Check the accurate log and generate the log of reading fail;

[0161] Check the accurate log and no log of reading fail will be generated.

[0162] 7. Test of backplane FRU information: During the server AC / DC process, test the FRU information reading under different backplane combinations, check whether there are any abnormalities, stuck, and whether the log reports errors and can be read normally. Specifically, 10: BMC nvmebackplane fru get, purpose: Test the backplane fru information reading under different backplane combinations during the server AC / DC process;

[0163] Test steps:

[0164] Install the corresponding hard disk backplane, insert the disk to be tested, and start the server to OS normally;

[0165] Check the disk information under OS, get the sdr log, and check the bmc log.

[0166] Perform AC once, boot the server to OS, obtain the SDR log of the disk, check the BMC log, and repeat AC three times;

[0167] Execute DC once in OS, boot the server to OS, obtain the SDR log of the disk, check the BMC log, and repeat DC three times;

[0168] Traverse all backplanes (those that can reuse conclusions);

[0169] Test standard:

[0170] There were no abnormalities or stuck during the whole process, the SDR was read normally, and there were no errors in the BMC log.

[0171] During AC / DC, the backplane fru is read normally.

[0172] It can be seen that the systematic and comprehensive testing of NVME functions through the ipmitool command is mainly reflected in the following aspects: Covering multiple functional tests: including disk status, disk status alarm, temperature, NVME status and other aspects, fully covering the key functions of NVME in the server. Testing is performed in multiple states such as normal server operation, shutdown, startup, hardware link disconnection, insertion of normal or abnormal hard disks, and removal of hard disks to detect the functional performance of NVME in different scenarios. Testing the consistency of sensor types, thresholds, hysteresis, etc. with specifications (such as BMC sensortype diskstatus consistence, BMC sensor nvmetemp consistence) to ensure that the various parameters of NVME meet expectations. By simulating alarm conditions (such as temperature alarms and status alarms), it is tested whether the generation and elimination of alarms can be logged normally, whether the health light status changes correctly, and whether alarms are generated in extreme cases.

[0173] It can be seen that the present invention provides a method for testing the function of a non-volatile memory in a server, wherein one or more non-volatile memories are pluggable on a hard disk backplane of the server, and the method comprises: when a test request for performing a functional test on the non-volatile memory in the server is received, the operation of performing a functional item test on each of the non-volatile memories on the hard disk backplane is started through the baseboard management controller of the server; the server is controlled to enter a test state through a preset command line tool, and a test instruction for each functional item of the server in each test state is issued by the out-of-band management channel of the server, so as to return a corresponding functional item test result through the out-of-band management channel based on the test instruction; wherein the functional item is a detection indicator for the state and performance of the non-volatile memory; and the test log and external response in the functional item test result corresponding to each functional item output under different test states are checked to see whether they meet preset conditions, and based on the corresponding inspection result, it is determined whether there is a compatibility vulnerability in the non-volatile memory in the server.

[0174] It can be seen from the above technical solution that through the preset command line tool and out-of-band management channel, the functional test results under different test states can be accurately and efficiently obtained, reducing the interference with the normal operation of the server. By testing multiple states and performance detection indicators of the non-volatile memory for the baseboard management controller, the working condition of the hard disk can be fully understood. By comparing the actual results with the functional item test results, the possible functional abnormalities or performance degradation of the hard disk can be quickly discovered. In this way, the function and stability of the non-volatile memory can be detected more specifically, so as to more effectively discover potential problems, such as functional abnormalities caused by address conflicts. Compared with the single viewing that relies on specific pages or software in the prior art, the changes and instability of the non-volatile memory function in long-term operation can be discovered more timely, improving the reliability and timeliness of the detection.

[0175] Reference Figure 6 As shown, Figure 6 A test device for a non-volatile memory function in a server provided in an embodiment of the present invention, wherein one or more non-volatile memories can be plugged in and out on a hard disk backplane of the server, and the device comprises:

[0176] The test module 11 is used for initiating the operation of performing functional item test on each non-volatile memory on the hard disk backplane through the baseboard management controller of the server when receiving a test request for performing functional test on the non-volatile memory in the server;

[0177] The data acquisition module 12 is used to control the server to enter the test state through a preset command line tool, and use the out-of-band management channel of the server to issue a test instruction for each functional item of the server in each test state, so as to return the corresponding functional item test result through the out-of-band management channel based on the test instruction; wherein the functional item is a detection indicator for the state and performance of the non-volatile memory;

[0178] The result comparison module 13 is used to check whether the test logs and external responses in the function item test results corresponding to each function item output under different test states meet preset conditions, and determine whether there is a compatibility vulnerability in the non-volatile memory in the server based on the corresponding inspection results.

[0179] Figure 6 The description of the features in the corresponding embodiments can be found in Figure 1 The relevant descriptions of the corresponding embodiments will not be repeated here one by one.

[0180] It can be seen that the present invention provides a method of initiating an operation of performing functional item testing on each of the non-volatile memories on the hard disk backplane through the baseboard management controller of the server when a test request for performing functional testing on the non-volatile memory in the server is received; controlling the server to enter a test state through a preset command line tool, and using the out-of-band management channel of the server to issue test instructions for each functional item of the server in each of the test states, so as to return corresponding functional item test results through the out-of-band management channel based on the test instructions; wherein the functional items are detection indicators for the state and performance of the non-volatile memory; checking whether the test logs and external responses in the functional item test results corresponding to each of the functional items output under different test states meet preset conditions, and determining whether there are compatibility vulnerabilities in the non-volatile memory in the server based on the corresponding inspection results. It can be seen that through the preset command line tool and out-of-band management channel, the functional test results under different test states can be accurately and efficiently obtained, reducing the interference with the normal operation of the server. By testing multiple states and performance detection indicators of the non-volatile memory for the baseboard management controller, the working condition of the hard disk can be fully understood. By comparing the actual results and the functional item test results, the possible functional abnormalities or performance degradation of the hard disk can be quickly discovered. In this way, the function and stability of the non-volatile memory can be detected more specifically, so as to more effectively discover potential problems, such as functional abnormalities caused by address conflicts, etc. Compared with the single viewing that relies on specific pages or software in the prior art, the changes and instability of the non-volatile memory function in long-term operation can be discovered more timely, which improves the reliability and timeliness of the detection.

[0181] Figure 7 A structural diagram of an electronic device provided by an embodiment of the present invention, such as Figure 7 As shown, the electronic device includes: a memory 20 for storing a computer program;

[0182] The processor 21 is used to implement the steps of the method for testing the non-volatile memory function in the server in the above embodiment when executing the computer program.

[0183] The electronic device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer.

[0184] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0185] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, the relevant steps of the test method for the non-volatile memory function in the server disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include but is not limited to data transmitted by an external device received by the electronic device, data collected by its own input and output interface 23, and the like.

[0186] In some embodiments, the electronic device may further include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power source 25 , and a communication bus 26 .

[0187] It is understandable that if the test method of the non-volatile memory function in the server in the above embodiment is implemented in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the current technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, magnetic disk or optical disk, etc. Various media that can store program codes.

[0188] Based on this, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for testing the non-volatile memory function in the server as described above are implemented.

[0189] The above is a detailed introduction to the scheme provided by the embodiment of the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0190] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0191] The above is a detailed introduction to the scheme provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A method for testing a non-volatile memory function in a server, characterized in that: One or more non-volatile memories are pluggable on the hard disk backplane of the server, and the method comprises: When a test request for performing a functional test on a non-volatile memory in a server is received, an operation of performing a functional item test on each of the non-volatile memories on the hard disk backplane is started through a baseboard management controller of the server; Controlling the server to enter a test state through a preset command line tool, and using an out-of-band management channel of the server to issue a test instruction for each functional item of the server in each test state, so as to return a corresponding functional item test result through the out-of-band management channel based on the test instruction; wherein the functional item is a detection indicator for the state and performance of a non-volatile memory; Check whether the test logs and external responses in the function item test results corresponding to each function item output under different test states meet preset conditions, and determine whether there is a compatibility vulnerability in the non-volatile memory in the server based on the corresponding inspection results.

2. The method for testing the non-volatile memory function in a server according to claim 1, characterized in that: The controlling the server to enter the test state by using a preset command line tool, and using the out-of-band management channel of the server to issue a test instruction for each functional item of the server in each test state, so as to return a corresponding functional item test result through the out-of-band management channel based on the test instruction, includes: Determine a function item as a current function item to be tested according to the check order of each function item in the function item check list, control the server to enter a running state by using a preset command line tool, and issue a test instruction for the current function item to be tested when the server is in the running state by using an out-of-band management channel of the server; Returning a corresponding first functional test result in the running state through the out-of-band management channel based on the test instruction; Using the preset command line tool to adjust the server to enter a shutdown state, and using the out-of-band management channel of the server to issue a test instruction for the current function item to be tested of the server in the shutdown state; Returning a corresponding second functional test result in the shutdown state through the out-of-band management channel based on the test instruction; Determine the next function item as the new current function item to be tested according to the inspection sequence, and jump to the step of using a preset command line tool to control the server to enter the running state, and use the server's out-of-band management channel to issue a test instruction for the current function item to be tested when the server is in the running state, so as to obtain a first function test result of each function item when the server is in the running state and a second function test result when the server is in the shutdown state.

3. The method for testing the non-volatile memory function in a server according to claim 2, characterized in that: The checking whether the test log and the external response in the function item test results corresponding to each of the function items output under different test states meet preset conditions, and determining whether the non-volatile memory has a compatibility vulnerability in the server based on the corresponding inspection results, includes: Check respectively whether the first test log and the first external response in the first function item test result of each of the function items meet the first preset condition, and whether the second test log and the second external response in the second function item test result of each of the function items meet the second preset condition, and determine whether there is a compatibility vulnerability of the non-volatile memory in the server based on the corresponding inspection results.

4. The method for testing the function of a non-volatile memory in a server according to claim 3, characterized in that: The step of respectively checking whether the first test log and the first external response in the first function item test result of each function item meet a first preset condition, and whether the second test log and the second external response in the second function item test result of each function item meet a second preset condition, and determining whether the non-volatile memory has a compatibility vulnerability in the server based on the corresponding check results, includes: Check whether the first test log, the first external response, the second test log and the second external response of each of the function items are consistent with the actual log and the actual external response in the actual result under the corresponding test state; If all the inspection results are consistent, it is determined that the non-volatile memory does not have a compatibility vulnerability in the server; If there is the inspection result indicating inconsistency, it is determined that there is a compatibility vulnerability in the non-volatile memory in the server.

5. The method for testing the function of a non-volatile memory in a server according to claim 4, characterized in that: Before checking whether the first test log, the first external response, the second test log, and the second external response of each function item are the same as the actual log and the actual external response in the actual result under the corresponding test state, the method further includes: The actual results of the functional items related to the non-volatile memory of the server in each of the test states fed back from the operating system, baseboard management controller, or basic input and output system of the server are obtained.

6. The method for testing the function of a non-volatile memory in a server according to claim 1, characterized in that: The returning corresponding function item test results through the out-of-band management channel based on the test instruction includes: Controlling the clock signal of the out-of-band management channel to be a high-level signal based on the received test instruction, and acquiring communication information between the server and the non-volatile memory through a non-volatile memory command line tool; A function item test result corresponding to the function item in the test instruction is obtained from the communication information.

7. The method for testing the non-volatile memory function in a server according to any one of claims 1 to 6, characterized in that: Also includes: A preconfigured server test cycle is obtained, and the server is controlled to enter a test state according to the server test cycle, so as to obtain the corresponding functional test result returned through the out-of-band management channel within the server test cycle.

8. A device for testing the function of a non-volatile memory in a server, characterized in that: One or more non-volatile memories can be plugged in and out of the hard disk backplane of the server, and the device includes: A test module, configured to, upon receiving a test request for performing a functional test on a non-volatile memory in a server, initiate an operation of performing a functional item test on each of the non-volatile memories on the hard disk backplane through a baseboard management controller of the server; A data acquisition module, used to control the server to enter a test state through a preset command line tool, and use the out-of-band management channel of the server to issue a test instruction for each functional item of the server in each test state, so as to return a corresponding functional item test result through the out-of-band management channel based on the test instruction; wherein the functional item is a detection indicator for the state and performance of the non-volatile memory; The result comparison module is used to check whether the test logs and external responses in the function item test results corresponding to each function item output under different test states meet preset conditions, and determine whether there is a compatibility vulnerability in the non-volatile memory in the server based on the corresponding inspection results.

9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program to implement the steps of the method for testing the non-volatile memory function in a server as claimed in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for testing the non-volatile memory function in the server as claimed in any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Test method and electronic equipment

    CN122633490A