Data transmission test method and device, electronic equipment and storage medium

Through the communication connection between the server host and the non-volatile memory solid state drive, the memory data structure transmitted by the dispersed aggregation table is used for testing, which solves the problem that the existing technology cannot fully cover the SGL data transmission test scenario, and realizes the NVMe Comprehensive testing and accuracy improvement of disk SGL functionality.

CN118550771APending Publication Date: 2024-08-27INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410543495.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Existing NVMe disk IO test methods cannot fully cover various functional test scenarios of SGL data transmission, and cannot meet the SGL functional test requirements of NVMe disks.

Method used

By establishing a communication connection between the server host and the non-volatile memory solid state drive, the memory data structure transmitted by the dispersed aggregation table is used to fill the key information corresponding to the test scenario in the submission queue and sent to the non-volatile memory solid state drive. The hard disk receives the returned completion queue, performs command code judgment and data inspection, and generates test results to cover tests of different test scenarios and functions.

Benefits of technology

It achieves comprehensive coverage of various scenarios and functions of SGL transmission, improves test coverage and accuracy, and meets the SGL function testing requirements of NVMe disks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550771A
    Figure CN118550771A
Patent Text Reader

Abstract

The invention provides a data transmission test method and device, electronic equipment and a storage medium, and the method comprises the steps: responding to the issuing of a test task, determining a test scene corresponding to the test task, filling key information corresponding to the test scene in a submission queue according to the test scene, binding the submission queue with the completion queue, sending the submission queue to the nonvolatile memory solid state disk, receiving the completion queue returned by the nonvolatile memory solid state disk, performing command code judgment and / or data inspection on the completion queue according to a test scene corresponding to the submission queue, and generating a test result transmitted by the dispersion aggregation table in the test scene. According to the invention, the key information corresponding to the test scene is filled in the submission queue of the dispersed aggregation table data transmission according to the test scene, so that various scene and function tests of SGL transmission are realized, the test coverage rate and the test accuracy are improved, and the SGL function test requirements of the NVMe disk are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and in particular to a data transmission testing method, device, electronic equipment and storage medium. Background Art

[0002] NVMe (Non-Volatile Memory Express) is a high-performance, low-latency storage interface protocol used for solid-state drives and other non-volatile storage devices. During the read and write interaction between the host and the NVMe disk, space must be requested in the host memory for data transfer. In the NVMe protocol, two technologies can be used to apply for host memory: PRP (Physical Region Pages) and SGL (Scatter-Gather Lists). PRP is mainly used for the application of a relatively complete memory area, that is, a continuous memory address range, which is suitable for situations where the data transmission volume is large and continuous, while SGL is suitable for the application of fragmented memory areas, that is, the organization form of non-continuous scattered addresses, which is suitable for situations where the data transmission volume is small and scattered.

[0003] Currently, the IO operation test for NVMe disks can test whether the NVMe disk uses the SGL method to transmit data and apply for memory under a driver that supports SGL parameters. However, since the above test method can only test whether the SGL method is used through driver code analysis, it cannot cover various functional test scenarios of SGL data transmission, and thus cannot meet the SGL functional test requirements of NVMe disks. Summary of the invention

[0004] In view of this, the present invention aims to propose a data transmission test method, device, electronic device and storage medium to solve the problem that the current IO test cannot cover the test scenario of SGL data transmission and cannot meet the SGL functional test requirements, and to achieve comprehensive coverage of data transmission testing.

[0005] According to a first aspect of the present invention, a data transmission test method is provided, which is applied to a server host, wherein the server host is communicatively connected to a non-volatile memory solid state drive, and the method comprises:

[0006] In response to the issuing of the test task, determining a test scenario corresponding to the test task;

[0007] According to the test scenario, key information corresponding to the test scenario is filled in the submission queue; wherein the submission queue includes a memory data structure of the scattered aggregation table transmission, and the submission queue is bound to the completion queue;

[0008] Sending the submission queue to the non-volatile memory solid state drive;

[0009] Receiving the completion queue returned by the non-volatile memory solid state drive;

[0010] According to the test scenario corresponding to the submission queue, command code judgment and / or data verification are performed on the completion queue, and a test result of the distributed aggregation table transmission under the test scenario is generated.

[0011] Optionally, in response to the issuing of the test task, determining a test scenario corresponding to the test task includes:

[0012] In response to the issuing of the test task, a test type of the test task is obtained, wherein the test type includes a normal process test type and an abnormal process test process;

[0013] If the test task is of an abnormal process test type, determining that the test scenario corresponding to the test task is an injection error test scenario;

[0014] If the test task is of a normal process test type, it is determined that the test scenario corresponding to the test task is a command test scenario.

[0015] Optionally, according to the test scenario, filling the key information corresponding to the test scenario in the submission queue; wherein the submission queue includes a memory data structure of the scattered aggregation table transmission, and the submission queue is bound to the completion queue, including:

[0016] According to the test scenario and the preset protocol command, determine the target test command corresponding to the test scenario;

[0017] Obtaining a submission queue and a completion queue that are pre-created according to the memory data structure transmitted by the scatter-aggregate table, and binding the submission queue to the completion queue;

[0018] The submission queue is populated with the target test commands.

[0019] Optionally, determining a target test command corresponding to the test scenario according to the test scenario and a preset protocol command includes:

[0020] If the test scenario is an injection error test scenario, a preset protocol command is used to determine a first test command code of the injection error test scenario;

[0021] If the test scenario is a command test scenario, a preset protocol command is used to determine a second test command code for the command test scenario, wherein the second test command code includes test content, data transmission mode, and application memory address.

[0022] Optionally, sending the submission queue to the non-volatile memory solid state drive includes:

[0023] It is monitored that the target test command of the submission queue is filled, and the submission queue tailgate bell is updated;

[0024] In response to an update of the submission queue tailgate bell, the submission queue is sent to the non-volatile memory solid state drive.

[0025] Optionally, the performing command code judgment and / or data verification on the completion queue according to the test scenario corresponding to the submission queue, and generating a test result of the decentralized aggregation table transmission under the test scenario, includes:

[0026] Acquire a test scenario of the completion queue returned by the non-volatile memory solid state drive, wherein the completion queue includes return data of the non-volatile memory solid state drive;

[0027] If it is a completion queue under the injection error test scenario, determine whether the first test command code appears in the completion queue, and if the first test command code does not appear, submit the non-volatile memory solid state drive log and transmission error information under the injection error test scenario;

[0028] If it is a completion queue under the command test scenario, determine whether a second test command code appears in the completion queue, and if the second test command code appears, submit the non-volatile memory solid state drive log and transmission error information under the command test scenario;

[0029] If the second test command code does not appear, the target transmission data in the completion queue is verified using historical transmission data, and a determination is made as to whether the target transmission data is consistent with the historical transmission data; if not, the non-volatile memory solid state drive log and transmission error information under the command test scenario are submitted; wherein the historical transmission data is data transmitted between the server host and the non-volatile memory solid state drive using physical area pages.

[0030] Optionally, before determining the test scenario corresponding to the test task in response to the issuing of the test task, the method further includes:

[0031] The server host is switched from kernel mode to user mode, the non-volatile memory solid state hard disk drive is simulated, and the non-volatile memory solid state hard disk is initialized.

[0032] According to a second aspect of the present invention, there is provided a data transmission test device, which is applied to a server host, wherein the server host is communicatively connected to a non-volatile memory solid state drive, and the device comprises:

[0033] A test module is used to determine a test scenario corresponding to the test task in response to the issuing of the test task;

[0034] A filling information module is used to fill the key information corresponding to the test scenario in the submission queue according to the test scenario; wherein the submission queue includes a memory data structure of the scattered aggregation table transmission, and the submission queue is bound to the completion queue;

[0035] A sending queue module, used for sending the submission queue to the non-volatile memory solid state drive;

[0036] A receiving queue module, used for receiving the completion queue returned by the non-volatile memory solid state drive;

[0037] A result generation module performs command code judgment and / or data verification on the completion queue according to the test scenario corresponding to the submission queue, and generates a test result of the distributed aggregation table transmission under the test scenario.

[0038] According to another aspect of the present invention, there is also provided an electronic device, comprising:

[0039] processor;

[0040] a memory for storing instructions executable by the processor;

[0041] The processor is configured to execute the instructions to implement the data transmission test method as described above.

[0042] According to another aspect of the present invention, a readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data transmission test method described above are implemented.

[0043] The data transmission test method provided by the embodiment of the present invention determines the test scenario corresponding to the test task in response to the issuance of the test task, fills the key information corresponding to the test scenario in the submission queue according to the test scenario, the submission queue includes the memory data structure of the distributed aggregation table transmission, the submission queue is bound to the completion queue, the submission queue is sent to the non-volatile memory solid state drive, the completion queue returned by the non-volatile memory solid state drive is received, and the completion queue is judged according to the test scenario corresponding to the submission queue. The command code and / or data verification is performed on the completion queue, and the test result of the distributed aggregation table transmission under the test scenario is generated. The embodiment of the present invention adopts a method of filling the key information corresponding to the test scenario in the submission queue of the SGL distributed aggregation table data transmission method according to the specific test scenario, covering different test scenarios, and completing the comprehensive coverage of the diversified SGL transmission scenarios. By verifying the data of the completion queue returned by the non-volatile memory solid state drive, it is possible to implement the testing of various scenarios and functions of SGL transmission, improve the test coverage and test accuracy, and further meet the SGL function test requirements of NVMe disks.

[0044] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0046] Figure 1 is a flowchart of a data transmission test method provided by an embodiment of the present invention;

[0047] Figure 2 yes Figure 1 A flowchart of step 101 in the data transmission test method provided by an embodiment of the present invention;

[0048] Figure 3 yes Figure 1 A flowchart of step 102 in the data transmission test method provided by an embodiment of the present invention;

[0049] Figure 4 yes Figure 1 A flowchart of step 104 in the data transmission test method provided by an embodiment of the present invention;

[0050] Figure 5is a flowchart of another data transmission test method provided by an embodiment of the present invention;

[0051] Figure 6 is a flow chart of a data transmission testing method provided by an embodiment of the present invention;

[0052] Figure 7 is a command schematic diagram of a data transmission test method provided by an embodiment of the present invention;

[0053] Figure 8 Schematic diagram of the array structure in the data transmission test method provided by the embodiment of the present invention Figure 1 ;

[0054] Fig. 9 Schematic diagram of the array structure in the data transmission test method provided by the embodiment of the present invention Figure 2 ;

[0055] Fig.10 Schematic diagram of the array structure in the data transmission test method provided by the embodiment of the present invention Figure 3 ;

[0056] Fig.11 Schematic diagram of the array structure in the data transmission test method provided by the embodiment of the present invention Figure 4 ;

[0057] Fig.12 It is a structural schematic diagram of a data transmission test device provided by an embodiment of the present invention;

[0058] Fig.13 The figure is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0059] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.

[0060] Reference Figure 1 , showing a flow chart of steps of a data transmission test method provided by an embodiment of the present invention, applied to a server host, the server host is communicatively connected to a non-volatile memory solid state drive, the method may include:

[0061] Step 101, in response to the issuing of a test task, determining a test scenario corresponding to the test task.

[0062] In an embodiment of the present invention, in order to solve the problem that the current analysis of the driver code cannot cover various functional test scenarios of SGL data transmission, and thus cannot meet the SGL functional test requirements of the NVMe disk, this embodiment adopts SGL data transmission in various test scenarios in the read and write interaction between the test server host and the non-volatile memory solid-state drive, and fills the key information corresponding to the test scenario in the submission queue of the SGL distributed aggregation table data transmission method according to the specific test scenario, covers different test scenarios, completes comprehensive coverage of the diversified SGL transmission scenarios, and further meets the SGL functional test requirements of the NVMe disk.

[0063] It should be noted that the execution subject of this embodiment is the test system in the server host. The test system is used to test the data transmission between the server host and the non-volatile memory solid state drive using SGL in various test scenarios during read and write interactions. In some embodiments, the execution subject can be the test system in the host computer, which is not elaborated one by one in this embodiment.

[0064] In this embodiment, the server host responds to the issuance of the test task in the user state and determines the test scenario corresponding to the test task. It should be noted that the server operating system includes two operating modes: user state and kernel state. Among them, user state means that the program runs in user space and can only access restricted resources, and cannot directly access hardware devices or the core functions of the operating system; kernel state means that the operating system runs in kernel space, has full access to system resources and hardware devices, can execute privileged instructions and core functions of the operating system, and only programs in kernel state can directly access hardware devices and the core functions of the operating system.

[0065] Specifically, the server host responds to the test task sent by the tester, and judges the test type of the test task and the test scenario under the test type, wherein the test task may be a data interaction test between the host and the non-volatile memory solid state drive. This embodiment is not specifically limited here. The test task includes an abnormal process test type and a normal process test type. After the server host receives the test task sent by the tester, it judges the type of the test task, and further judges the test scenario after determining the test task type. The test scenario includes an error test scenario and a command test scenario. Specifically, the command test scenario may include normal tests such as writing, reading, and adjusting, which will not be described one by one here.

[0066] Step 102, according to the test scenario, fill the key information corresponding to the test scenario in the submission queue; wherein the submission queue includes the memory data structure of the scattered aggregation table transmission, and the submission queue is bound to the completion queue.

[0067] In an embodiment of the present invention, after determining the test scenario, the server host fills in key information corresponding to the test scenario in the submission queue according to the test scenario, wherein the key information includes a test command, a data transmission method, transmission data, and an applied memory address. The applied memory address is a memory address used by the server host to temporarily store data to be transmitted. The memory address can be a relative address or an absolute address, which is not specifically limited in this embodiment.

[0068] Specifically, the server host determines the target test command corresponding to the test scenario according to the test scenario and the preset protocol command, obtains the submission queue and completion queue pre-created according to the distributed aggregation table transmission, the submission queue includes the memory data structure of the distributed aggregation table transmission, and binds the submission queue to the completion queue, and fills the target test command in the submission queue. Among them, the preset protocol command is the command word specified by the NVME protocol. The preset protocol command of this embodiment may include IO type, error code, etc. It should be noted that the command words specified by the NVMe protocol include: 0x08-Write: used to write data to the storage medium; 0x09-Read: used to read data from the storage medium, etc., which will not be repeated here one by one. The preset protocol command is set according to actual needs to support different operations and functions.

[0069] The submission queue (SQ) of this embodiment includes a memory data structure for decentralized aggregation table transmission, and the submission queue is bound to the completion queue (CQ), wherein the submission queue is used by the host to send NVMe commands to the NVMe device, and the completion queue is used by the NVMe device to feedback the command execution status to the host. Specifically, the server host can pre-abstract the IO queue in user mode. The IO queue includes a submission queue and a completion queue, and the submission queue is bound to the completion queue for transmitting data and returning information using SGL.

[0070] Specifically, the key information corresponding to the test scenario is filled in the submission queue, that is, the filling of SQ Entry may specifically include: the submission queue fills the opcode operation code and PSDT instruction data transmission in DWORD0, and by setting different values ​​for the opcode operation code, at least three IO types can be covered: read, write, and trim adjustment; different values ​​are set for PSDT instruction data transmission, covering the transmission methods using PRP physical area pages, SGL scattered aggregation tables, and metadata. The DPTR user data pointer filled in DWORD6-9 can set the transmitted data and the requested memory. For different PSDT values, the corresponding user data pointer has different values. For the SGL transmission method, the submission queue can transmit different forms of SGL and cover different SGL Descriptors. It should be noted that DWORD is a group of 4 bytes in the submission queue, SGL is an array, and the elements in the array are called SGE. Each SGE contains one or more SGL Descriptors. SGL Descriptor is the most basic unit of SGL and describes a continuous physical memory space.

[0071] Step 103, sending the submission queue to the non-volatile memory solid state drive.

[0072] In an embodiment of the present invention, after the server host fills the key information in the submission queue, it can update the tail doorbell SQ tail doorbell of the submission queue and send the submission queue to the non-volatile memory solid state drive. In some embodiments, the non-volatile memory solid state drive may initiate an extraction request based on the updated SQ tail doorbell, and the server host responds to the extraction request and sends the submission queue to the non-volatile memory solid state drive. It is not specifically limited here. It should be noted that the SQ tail doorbell is a register used to indicate the tail position of the SQ queue, that is, the position of the last valid SQ Entry. After the host writes a new command to the SQ queue, it needs to update the value of the SQ tail doorbell and point it to the newly written SQ Entry to notify the non-volatile memory solid state drive that the new command has been submitted.

[0073] Step 104, receiving the completion queue returned by the non-volatile memory solid state drive.

[0074] In an embodiment of the present invention, the server host receives a completion queue returned by the non-volatile memory solid state drive. The completion queue may include data processed and returned by the non-volatile memory solid state drive on the data in the submission queue. This embodiment does not specifically limit this.

[0075] Step 105, according to the test scenario corresponding to the submission queue, command code judgment and / or data verification are performed on the completion queue, and a test result of the distributed aggregation table transmission under the test scenario is generated.

[0076] In an embodiment of the present invention, a server host receives a completion queue returned by a non-volatile memory solid-state hard disk, obtains a test scenario corresponding to the completion queue, and performs different verification operations on the completion queue according to different test scenarios, wherein, if it is an abnormal test scenario, it is determined whether an error code specified by a preset protocol appears in the completion queue, if not, it indicates that the injection error test is abnormal, and a non-volatile memory solid-state hard disk log and transmission error information corresponding to the distributed aggregation table transmission under the test scenario are generated; if it is a normal test scenario, it is first determined whether an error code specified by a preset protocol appears in the completion queue, if no preset protocol error code appears, then the historical transmission data of the server host and the non-volatile memory solid-state hard disk using physical area page transmission is obtained, that is, the data transmitted using PRP is used as a control, and data verification is performed on the target transmission data and the historical transmission data to determine whether the target transmission data is consistent with the historical transmission data, if the target transmission data has a preset protocol error code, or the target transmission data is inconsistent with the historical transmission data, then a non-volatile memory solid-state hard disk log and transmission error information corresponding to the distributed aggregation table transmission under the test scenario are generated.

[0077] The data transmission test method provided by the embodiment of the present invention determines the test scenario corresponding to the test task in response to the issuance of the test task, fills the key information corresponding to the test scenario in the submission queue according to the test scenario, the submission queue includes the memory data structure of the distributed aggregation table transmission, the submission queue is bound to the completion queue, the submission queue is sent to the non-volatile memory solid state drive, the completion queue returned by the non-volatile memory solid state drive is received, and the completion queue is judged according to the test scenario corresponding to the submission queue. The command code and / or data verification is performed on the completion queue, and the test result of the distributed aggregation table transmission under the test scenario is generated. The embodiment of the present invention adopts a method of filling the key information corresponding to the test scenario in the submission queue of the SGL distributed aggregation table data transmission method according to the specific test scenario, covering different test scenarios, and completing the comprehensive coverage of the diversified SGL transmission scenarios. By verifying the data of the completion queue returned by the non-volatile memory solid state drive, it is possible to implement the testing of various scenarios and functions of SGL transmission, improve the test coverage and test accuracy, and further meet the SGL function test requirements of NVMe disks.

[0078] Further, see Figure 2 , showing Figure 1 A flowchart of step 101 in a data transmission test method is provided. The method is substantially the same as the data transmission test method provided in the first embodiment of the present invention. Step 101 may include:

[0079] Step 201, in response to the issuing of a test task, obtaining a test type of the test task, wherein the test type includes a normal process test type and an abnormal process test process.

[0080] Step 202: If the test task is of an abnormal process test type, determine that the test scenario corresponding to the test task is an injection error test scenario.

[0081] In an embodiment of the present invention, if the test task is an abnormal process test type, it is determined that the test scenario corresponding to the test task is an error injection test scenario, and the error injection test scenario includes an error injection design, covering abnormal process test scenarios, such as MSDBD (MAX SGL Data Block descriptor, limit test) out of range, specific error injection test scenarios, for example, the address and length in the SGL Segment descriptor in the SGL Entry are not aligned with 4 bytes, the SGE contains an unsupported type type, the SGL Segment descriptor is not placed at the last position of the SGE, or other types are placed where the SGLSegment descriptor is placed, etc., error injection testing can be performed by injecting errors to check whether various abnormal scenarios return exceptions according to the NVMe disk firmware settings, which will not be repeated here one by one.

[0082] Step 203: If the test task is of a normal process test type, determine that the test scenario corresponding to the test task is a command test scenario.

[0083] In an embodiment of the present invention, if the test task is a normal process test type, the test scenario corresponding to the test task is determined to be a command test scenario, and the command test scenario is a test performed according to the command word specified by the preset protocol. The preset protocol command is used to determine the test command word of the command test scenario, wherein the test command word includes the test content, the data transmission method, and the application memory address, and the test content may include read, write, and adjust tests.

[0084] The embodiment of the present invention determines the test type of the test task by the server host, and determines the corresponding test scenario to be executed according to the specific type of the test task, so as to ensure that the test task can be carried out smoothly and achieve the expected test effect.

[0085] Further, see Figure 3 , showing Figure 1 A flowchart of step 102 in a data transmission test method is provided. The method is substantially the same as the data transmission test method provided in the first embodiment of the present invention. Step 102 may include:

[0086] Step 301: Determine a target test command corresponding to the test scenario according to the test scenario and a preset protocol command.

[0087] In an embodiment of the present invention, a test scenario can correspond to a preset protocol command. The preset protocol command is queried or obtained according to the test scenario to determine a target test command corresponding to the test scenario, wherein the target test command corresponds to the test scenario and is composed of command words determined in the preset protocol command. If the test scenario is an error injection test scenario, the preset protocol command is used to determine a first test command code for the error injection test scenario, and the first test command code is an error code for error injection. If the test scenario is a command test scenario, the preset protocol command is used to determine a second test command code for the command test scenario, wherein the second test command code includes a test content, a data transmission method, and an application memory address.

[0088] Specifically, according to the requirements of the NVMe protocol, key information opcodes can be filled to cover IO scenarios, such as read, write, trim, etc. According to the requirements of the NVMe protocol, PSDT can be set to cover different data transmission and memory application methods. For example, a psdt of 0 indicates the use of prp transmission, 1 indicates the use of sgl transmission, and 2 indicates that both user data and metadata are transmitted through sgl. Of course, the above are only specific examples and are not specifically limited here.

[0089] Step 302: Obtain a submission queue and a completion queue that are pre-created according to the memory data structure transmitted by the scatter-aggregate table, and bind the submission queue to the completion queue.

[0090] In an embodiment of the present invention, a submission queue and a completion queue are created by the server host in user mode according to the memory data structure transmitted by the distributed aggregation table, and in order to achieve the purpose of using the submission queue to realize the host side sending NVMe commands to the NVMe device, and using the completion queue to realize the NVMe device to feedback the command execution status to the host, the submission queue and the completion queue are bound.

[0091] Step 303, fill the target test command in the submission queue.

[0092] Specifically, the target test command filled in the submission queue is to fill in the opcode operation code and PSDT instruction data transmission in DWORD0. By setting different values ​​for the opcode operation code, at least three IO types can be covered: read, write, and trim adjustment; different values ​​are set for the PSDT instruction data transmission, covering the transmission methods using PRP physical area pages, SGL scattered aggregation tables, and metadata. The DPTR user data pointer filled in DWORD6-9 can set the transmitted data and the requested memory.

[0093] The embodiment of the present invention determines the key information to be filled in according to the test scenario and the preset protocol command, and fills the key command words that meet the test scenario requirements in the submission queue created according to the distributed aggregation table transmission, thereby covering different test scenarios and completing comprehensive coverage of the diversified SGL transmission scenarios.

[0094] Specifically, step 301 may include, according to the test scenario and the preset protocol command, determining the target test command corresponding to the test scenario:

[0095] If the test scenario is an injection error test scenario, a preset protocol command is used to determine a first test command code of the injection error test scenario;

[0096] If the test scenario is a command test scenario, a preset protocol command is used to determine a second test command code for the command test scenario, wherein the second test command code includes test content, data transmission mode, and application memory address.

[0097] It should be noted that the first test command code can be an error code under the error scenario specified in the preset protocol command, which is not specifically limited here. The second test command code includes test content, data transmission method and applied memory address. The test content includes reading, writing, trim adjustment, etc. The data transmission method includes using PRP physical area page and SGL distributed aggregation table transmission. The applied memory address includes the relative address and absolute address of the memory location.

[0098] Specifically, the step 103 of sending the submission queue to the non-volatile memory solid state drive may specifically include the following steps:

[0099] It is monitored that the target test command of the submission queue is filled, and the submission queue tailgate bell is updated;

[0100] In response to an update of the submission queue tailgate bell, the submission queue is sent to the non-volatile memory solid state drive.

[0101] In this embodiment, it is monitored that the target test command filling of the submission queue is completed, and the submission queue tail doorbell is updated. The purpose of updating the SQ tail doorbell is to ensure that the non-volatile memory solid state drive can correctly identify the commands submitted by the server host and process them in the correct order. By updating the SQ tail doorbell, the non-volatile memory solid state drive can determine the next command to be processed by reading the value of the SQ tail doorbell, thereby ensuring the correct execution order of the commands, thereby avoiding command loss or confusion and ensuring data consistency and integrity.

[0102] Further, see Figure 4, showing Figure 1 A flowchart of step 105 in a data transmission test method is provided. The method is substantially the same as the data transmission test method provided in the first embodiment of the present invention. Step 105 may include:

[0103] Step 401, obtaining a test scenario of a completion queue returned by a non-volatile memory solid state drive.

[0104] The completion queue includes return data from the non-volatile memory solid state drive.

[0105] Step 402, if it is a completion queue under the injection error test scenario, determine whether the first test command code appears in the completion queue, if the first test command code does not appear, submit the non-volatile memory solid state drive log and transmission error information under the injection error test scenario.

[0106] In an embodiment of the present invention, the data in the completion queue is the processing result returned by the non-volatile memory solid-state drive after extracting the command from the SQ entry. After obtaining the target transmission data in the completion queue, the server host first obtains the test scenario of the completion queue returned by the non-volatile memory solid-state drive. If it is determined to be a completion queue under the error injection test scenario, it is determined whether the first test command code appears in the completion queue. The first test command code is an error code specified by the preset protocol, that is, an error code set according to the error injection test. If an error code exists, the test is terminated, resources are released, the server host switches to the kernel state, and the test results are submitted.

[0107] Step 403, if it is a completion queue under the command test scenario, determine whether the second test command code appears in the completion queue, and if the second test command code appears, submit the non-volatile memory solid state drive log and transmission error information under the command test scenario.

[0108] In this embodiment, if it is a completion queue under a command test scenario, it is determined whether a second test command code appears in the completion queue. The second test command code is an error code specified by a preset protocol under a normal test scenario. In this embodiment, it can be determined whether the second test command code appears. If the second test command code appears, the non-volatile memory solid-state hard drive log and transmission error information under the command test scenario are submitted.

[0109] Step 404, if the second test command code does not appear, use historical transmission data to perform data verification on the target transmission data in the completion queue, and determine whether the target transmission data is consistent with the historical transmission data. If not, submit the non-volatile memory solid state drive log and transmission error information under the command test scenario.

[0110] The historical transmission data is data transmitted between the server host and the non-volatile memory solid state drive using physical area pages.

[0111] In this embodiment, if the second test command code does not appear, data verification is performed on the target transmission data obtained by SGL transmission and the historical transmission data obtained by PRP transmission to determine whether the target transmission data is consistent with the historical transmission data. If not, the non-volatile memory solid state drive log and transmission error information under the command test scenario are submitted. If they are consistent, the test ends.

[0112] It should be noted that, when the error code specified by the preset protocol does not appear in the completion queue, if the target transmission data is inconsistent with the historical transmission data, the log of the non-volatile memory solid-state hard disk corresponding to the distributed aggregation table transmission in the test scenario is generated and exported to display the hard disk parameters to the tester. The transmission error information is a test BUG determined in the test scenario, which is used by the tester to repair the test BUG. This embodiment does not make specific limitations on this.

[0113] It should be noted that the historical transmission data of the physical area page transmission between the server host and the non-volatile memory solid state drive can be obtained in advance. PRP transmission is used for the application of a relatively complete memory area. Under the PRP mode, the memory area will be divided into several physical areas, each of which is called a page. Each page has a unique page number, which is used to identify and locate the page in the memory. The PRP method is usually used in scenarios that require continuous and complete memory areas, such as large-block data transmission or cache area applications. Specifically, the host initiates a memory application request, and the memory application request is used to specify the size of the memory to be applied for, obtain a corresponding number of pages according to the size of the memory to be applied, and assign a unique page number to each page, and record the mapping relationship between the page number and the memory address of the target page in the page table so that the host can access and manage the memory page.

[0114] In this embodiment, in order to test and verify the effect of the SGL transmission function, PRP is used as a control to obtain historical transmission data of the server host and the non-volatile memory solid state drive using physical area page transmission, so as to test the SGL transmission situation based on the historical transmission data.

[0115] The embodiment of the present invention can test various scenarios and functions of SGL transmission by checking the data of the completion queue returned by the non-volatile memory solid state drive, improve the test coverage and test accuracy, and further meet the SGL function test requirements of the NVMe disk.

[0116] Reference Figure 5 , shows a flowchart of another data transmission test method provided by an embodiment of the present invention, which is basically the same as the data transmission test method provided by the first embodiment of the present invention, except that the method may further include:

[0117] Step 106, switching the server host from kernel mode to user mode, simulating a non-volatile memory solid state hard disk drive, and initializing the non-volatile memory solid state hard disk.

[0118] In the embodiment of the present invention, the non-volatile memory solid state drive is formatted in the kernel state of the server host, and the non-volatile memory solid state drive is formatted into different LBA (Logical Block Address) formats to ensure that the non-volatile memory solid state drive can be correctly identified and accessed. The server host is switched from the kernel state to the user state, the non-volatile memory solid state drive is simulated in the user state, and the disk is initialized to prepare for the host and hard disk command interaction.

[0119] Step 101, in response to the issuance of a test task, determining a test scenario corresponding to the test task;

[0120] Step 102, according to the test scenario, fill the key information corresponding to the test scenario in the submission queue; wherein the submission queue includes the memory data structure of the scattered aggregation table transmission, and the submission queue is bound to the completion queue;

[0121] Step 103, sending the submission queue to the non-volatile memory solid state drive;

[0122] Step 104, receiving the completion queue returned by the non-volatile memory solid state drive;

[0123] Step 105, according to the test scenario corresponding to the submission queue, command code judgment and / or data verification are performed on the completion queue, and a test result of the distributed aggregation table transmission under the test scenario is generated.

[0124] The above steps 101 to 105 are described in the foregoing description and will not be repeated here.

[0125] On the basis of achieving the beneficial effects of the first embodiment, the embodiment of the present invention formats the non-volatile memory solid-state drive in user mode and simulates the operation of the NVMe driver. Under the premise of complying with the NVMe protocol specification, it ensures that the server host can work normally in kernel mode and user mode and communicate effectively with hardware devices, thereby ensuring a test environment for command interaction in various test scenarios.

[0126] In order to facilitate those skilled in the art to fully understand the above data transmission test method, refer to Figure 6 , Figure 6 1 is a flow chart of a data transmission test method provided by an embodiment of the present invention, which shows the overall process of the data transmission test provided by an embodiment of the present invention, specifically including:

[0127] S501, the server host is in kernel mode and the hard disk is formatted;

[0128] S502, the server host is in user mode, and the hard disk drive is initialized;

[0129] S503, creating a submission queue and a completion queue;

[0130] It should be noted that the above steps are for preparing the test environment stage. Specifically, the non-volatile memory solid-state drive is formatted in the kernel state of the server host, and the non-volatile memory solid-state drive is formatted into different LBA formats to ensure that the non-volatile memory solid-state drive can be correctly identified and accessed. The server host is switched from the kernel state to the user state, and the non-volatile memory solid-state drive is simulated in the user state. The disk is initialized, and a submission queue and a completion queue are created.

[0131] S504, determining whether the test task is a normal process test;

[0132] Specifically, the test task type is determined. If it is a normal process test, the process proceeds to step 506 to fill in a normal test command. Otherwise, if it is a normal process test, the process proceeds to step 505 to fill in an error-injection test command.

[0133] S505, fill in the error test command;

[0134] S506, filling in normal test commands;

[0135] S507, injection error test;

[0136] S508, normal test;

[0137] S509, determining whether the return code conforms to the preset command;

[0138] S510, determining whether the return code has an error code;

[0139] Specifically, if it is an injection error test scenario, the host determines whether an error code is returned. If it is a command test scenario, it determines whether an error code is returned. If no error code is returned, it enters step 511 to determine whether the data verification is consistent. If an error code is returned or the data verification is inconsistent, it enters step 512, releases resources, switches to kernel state to submit the bug, releases resources without abnormalities, switches to kernel state, and completes the test.

[0140] S511, determining whether the data verification is consistent;

[0141] S512, release resources and switch to kernel mode;

[0142] S513, export the hard disk log and submit the transmission error information.

[0143] The embodiment of the present invention adopts a method of filling key information corresponding to the test scenario in the submission queue of the SGL distributed aggregation table data transmission method according to the specific test scenario, covering different test scenarios, and completing the comprehensive coverage of the diversified SGL transmission scenarios. By checking the data in the completion queue returned by the non-volatile memory solid state drive, it is possible to implement testing of various scenarios and functions of SGL transmission, improve test coverage and test accuracy, and further meet the SGL function testing requirements of NVMe disks.

[0144] In order to facilitate those skilled in the art to fully understand the above data transmission test method, in some embodiments, the following four test scenarios are used as examples for explanation. The four test scenarios include write, read, trim and limit value tests in SGL mode.

[0145] Specifically, scenario 1: write test of 4 LBAs in 512 format; refer to Figure 8 , shows the SGL array structure in the test scenario, from left to right are SGE1, SGE2, SGE2, SGE stores one or more descriptors, where SGE1 stores one SGL Segment descriptor, address points to SGE2, length is 16*3, SGE2 stores two SGL Data Block descriptors and one SGL Last Segment descriptor, address stores the requested memory address, length is the length of the requested memory, the address of SGL Last Segment descriptor stores the address of SGE3, SGE3 stores two SGL Data Block descriptors, similarly, the address of SGL Data Block descriptor stores the requested memory address, length is the length of the requested memory. In this embodiment, the process of the host processing SQ and CQ is not referred to the foregoing description, and will not be repeated here.

[0146] Specifically, scenario 2: read test of 4 lba in 4k+8 format dix; refer to Fig. 9, shows the SGL array structure in the test scenario, from left to right are SGE1, SGE2, SGE stores one or more descriptors, where SGE1 stores one SGL Segment descriptor, address points to SGE2, length is 16*4, SGE2 stores 4 SGL Data Block descriptors, 4 SGL Data Block descriptors, address stores the requested memory address, length is the length of the requested memory, by instantiating SQ Entry, opcode is 2, PSDT is 2, SGE1 is placed in the DPTR of SQ Entry, after the host completes the writing of SQ Entry, the SQ taildoorbell is updated, the NVMe disk returns CQ Entry after processing the data, and the host checks the CQ Entry.

[0147] Specifically, scenario 3: trim test of 2 ranges in 4k format, where reference Figure 7 , shows the range parameters in this test scenario, applying for 2 blocks of 16B memory and initializing them. The 2 blocks of memory represent 2 ranges. Range is the unit of trim adjustment operation. The 4th to 7th bytes represent the number of trims, and the 8th to 15th bytes represent the starting address of trim. Fig.10 , the SGL array is as follows, from left to right they are SGE1 and SGE2, SGE stores one or more descriptors, SGE1 stores one SGL Segment descriptor, address points to SGE2, length is 16*2, SGE2 stores two SGL Data Block descriptors, 2 SGL Data Block descriptors, address stores the requested memory address, length is the length of the requested memory, in this embodiment, the process of the host processing SQ and CQ is not referred to the previous description, and will not be repeated here one by one.

[0148] Specifically, scenario 4: limit value test, taking the maximum value of SGL Data Block descriptor as 256 as an example, write 257 LBA addresses, triggering an abnormal scenario, refer to Fig.11, shows the SGL array structure in the test scenario, from left to right are SGE1, SGE2, SGE stores one or more descriptors, where SGE1 stores one SGL Segment last descriptor, address points to SGE2, length is 16*257, SGE2 stores 257 SGL Data Block descriptors. The SGL Data Block descriptor is consistent with the SGL Data Block descriptors in the other SGEs above. Address is the requested memory address, and length is the requested memory length. The host determines whether the returned error code complies with the protocol design. If it does not comply with the protocol value, the resources are released, and the bug is submitted by switching to the kernel state. If there is no abnormality, the resources are released, and the test is completed by switching to the kernel state.

[0149] Reference Fig.12 , shows a schematic diagram of the structure of a data transmission test device provided by an embodiment of the present invention, which is applied to a server host, and the server host is communicatively connected to a non-volatile memory solid state drive, and the device includes:

[0150] The test determination module 601 is used to determine the test scenario corresponding to the test task in response to the issuance of the test task;

[0151] Filling information module 602, used to fill the key information corresponding to the test scenario in the submission queue according to the test scenario; wherein the submission queue includes a memory data structure of the scattered aggregation table transmission, and the submission queue is bound to the completion queue;

[0152] A sending queue module 603, used to send the submission queue to the non-volatile memory solid state drive;

[0153] A receiving queue module 604 is used to receive the completion queue returned by the non-volatile memory solid state drive;

[0154] The result generation module 605 performs command code determination and / or data verification on the completion queue according to the test scenario corresponding to the submission queue, and generates a test result of the distributed aggregation table transmission under the test scenario.

[0155] Further, the determination test module 601 includes:

[0156] A first acquisition submodule is used to acquire a test type of the test task in response to the issuing of the test task, wherein the test type includes a normal process test type and an abnormal process test process;

[0157] A first determination submodule is used to determine that the test scenario corresponding to the test task is an injection error test scenario if the test task is an abnormal process test type;

[0158] The second determining submodule is used to determine that the test scenario corresponding to the test task is a command test scenario if the test task is a normal process test type.

[0159] Furthermore, the filling information module 602 includes:

[0160] A third determination submodule is used to determine a target test command corresponding to the test scenario according to the test scenario and the preset protocol command;

[0161] A second acquisition submodule is used to acquire a submission queue and a completion queue that are pre-created according to the memory data structure transmitted by the scatter aggregation table, and bind the submission queue to the completion queue;

[0162] A filling submodule is used to fill the target test command in the submission queue.

[0163] Further, the third determining submodule includes:

[0164] A first determining unit, configured to determine a first test command code of the error injection test scenario by using a preset protocol command if the test scenario is an error injection test scenario;

[0165] The second determination unit is used to determine a second test command code of the command test scenario by using a preset protocol command if the test scenario is a command test scenario, wherein the second test command code includes a test content, a data transmission method, and an application memory address.

[0166] Furthermore, the sending queue module 603 includes:

[0167] A monitoring submodule, used for monitoring that the target test command filling of the submission queue is completed, and updating the submission queue tailgate bell;

[0168] The sending submodule is used to send the submission queue to the non-volatile memory solid state drive in response to the update of the submission queue tailgate bell.

[0169] Furthermore, the determination result module 604 includes:

[0170] A third acquisition submodule is used to acquire the test scenario of the completion queue returned by the non-volatile memory solid state drive; wherein the completion queue includes the return data of the non-volatile memory solid state drive;

[0171] A first judgment submodule is used to judge whether a first test command code appears in the completion queue if it is a completion queue under the injection error test scenario, and if the first test command code does not appear, submit the non-volatile memory solid state drive log and transmission error information under the injection error test scenario;

[0172] A second judgment submodule is used to judge whether a second test command code appears in the completion queue if it is a completion queue under the command test scenario, and if the second test command code appears, submit the non-volatile memory solid state drive log and transmission error information under the command test scenario;

[0173] The third judgment submodule is used to use historical transmission data to perform data verification on the target transmission data in the completion queue if the second test command code does not appear, and to determine whether the target transmission data is consistent with the historical transmission data. If not, the non-volatile memory solid-state drive log and transmission error information under the command test scenario are submitted; wherein the historical transmission data is data transmitted between the server host and the non-volatile memory solid-state drive using physical area pages.

[0174] Furthermore, the device also includes:

[0175] The initialization processing module is used to switch the server host from kernel mode to user mode, simulate the non-volatile memory solid state hard disk drive, and initialize the non-volatile memory solid state hard disk.

[0176] The data transmission test device provided by the embodiment of the present invention determines the test scenario corresponding to the test task in response to the issuance of the test task, fills the key information corresponding to the test scenario in the submission queue according to the test scenario, the submission queue includes the memory data structure of the distributed aggregation table transmission, the submission queue is bound to the completion queue, the submission queue is sent to the non-volatile memory solid state drive, the completion queue returned by the non-volatile memory solid state drive is received, and the command code judgment and / or data verification are performed on the completion queue according to the test scenario corresponding to the submission queue, and the test result of the distributed aggregation table transmission under the test scenario is generated. The embodiment of the present invention adopts a method of filling the key information corresponding to the test scenario in the submission queue of the SGL distributed aggregation table data transmission method according to the specific test scenario, covers different test scenarios, and completes the comprehensive coverage of the diversified SGL transmission scenarios. By verifying the data of the completion queue returned by the non-volatile memory solid state drive, it can realize the testing of various scenarios and functions of SGL transmission, improve the test coverage and test accuracy, and further meet the SGL function test requirements of NVMe disks.

[0177] Reference Fig.13 , an embodiment of the present invention further provides an electronic device, such as Fig.13As shown, it includes a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 communicate with each other through the communication bus 704.

[0178] Memory 703, used for storing computer programs;

[0179] The processor 701 is used to execute the program stored in the memory 703 to implement the following steps:

[0180] In response to the issuing of the test task, determining a test scenario corresponding to the test task;

[0181] According to the test scenario, key information corresponding to the test scenario is filled in the submission queue; wherein the submission queue includes a memory data structure of the scattered aggregation table transmission, and the submission queue is bound to the completion queue;

[0182] Sending the submission queue to the non-volatile memory solid state drive;

[0183] Receiving the completion queue returned by the non-volatile memory solid state drive;

[0184] According to the test scenario corresponding to the submission queue, command code judgment and / or data verification are performed on the completion queue, and a test result of the distributed aggregation table transmission under the test scenario is generated.

[0185] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0186] The communication interface is used for communication between the above terminal and other devices.

[0187] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0188] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0189] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium stores instructions. When the instructions are executed on a computer, the computer executes the data transmission test method described in any one of the above embodiments.

[0190] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0191] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0192] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0193] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A data transmission test method, characterized in that: Applied to a server host, the server host is communicatively connected to a non-volatile memory solid state drive, the method comprising: In response to the issuing of the test task, determining a test scenario corresponding to the test task; According to the test scenario, key information corresponding to the test scenario is filled in the submission queue; wherein the submission queue includes a memory data structure of the scattered aggregation table transmission, and the submission queue is bound to the completion queue; Sending the submission queue to the non-volatile memory solid state drive; Receiving the completion queue returned by the non-volatile memory solid state drive; According to the test scenario corresponding to the submission queue, command code judgment and / or data verification are performed on the completion queue, and a test result of the distributed aggregation table transmission under the test scenario is generated.

2. The method according to claim 1, characterized in that The step of determining, in response to the issuing of the test task, a test scenario corresponding to the test task includes: In response to the issuing of the test task, a test type of the test task is obtained, wherein the test type includes a normal process test type and an abnormal process test process; If the test task is of an abnormal process test type, determining that the test scenario corresponding to the test task is an injection error test scenario; If the test task is of a normal process test type, it is determined that the test scenario corresponding to the test task is a command test scenario.

3. The method according to claim 1, characterized in that: According to the test scenario, the key information corresponding to the test scenario is filled in the submission queue; wherein the submission queue includes a memory data structure of the scattered aggregation table transmission, and the submission queue is bound to the completion queue, including: According to the test scenario and the preset protocol command, determine the target test command corresponding to the test scenario; Obtaining a submission queue and a completion queue that are pre-created according to the memory data structure transmitted by the scatter-aggregate table, and binding the submission queue to the completion queue; The submission queue is populated with the target test commands.

4. The method according to claim 3, characterized in that The step of determining a target test command corresponding to the test scenario according to the test scenario and the preset protocol command includes: If the test scenario is an injection error test scenario, a preset protocol command is used to determine a first test command code of the injection error test scenario; If the test scenario is a command test scenario, a preset protocol command is used to determine a second test command code for the command test scenario, wherein the second test command code includes test content, data transmission mode, and application memory address.

5. The method according to claim 1, characterized in that The sending the submission queue to the non-volatile memory solid state drive includes: It is monitored that the target test command of the submission queue is filled, and the submission queue tailgate bell is updated; In response to an update of the submission queue tailgate bell, the submission queue is sent to the non-volatile memory solid state drive.

6. The method according to claim 1, characterized in that According to the test scenario corresponding to the submission queue, command code judgment and / or data verification are performed on the completion queue, and a test result of the dispersed aggregation table transmission under the test scenario is generated, including: Acquire a test scenario of the completion queue returned by the non-volatile memory solid state drive; wherein the completion queue includes return data of the non-volatile memory solid state drive; If it is a completion queue under the injection error test scenario, determine whether the first test command code appears in the completion queue, and if the first test command code does not appear, submit the non-volatile memory solid state drive log and transmission error information under the injection error test scenario; If it is a completion queue under the command test scenario, determine whether a second test command code appears in the completion queue, and if the second test command code appears, submit the non-volatile memory solid state drive log and transmission error information under the command test scenario; If the second test command code does not appear, the target transmission data in the completion queue is verified using historical transmission data, and a determination is made as to whether the target transmission data is consistent with the historical transmission data; if not, the non-volatile memory solid state drive log and transmission error information under the command test scenario are submitted; wherein the historical transmission data is data transmitted between the server host and the non-volatile memory solid state drive using physical area pages.

7. The method according to claim 1, characterized in that Before determining the test scenario corresponding to the test task in response to the issuing of the test task, the method further includes: The server host is switched from kernel mode to user mode, the non-volatile memory solid state hard disk drive is simulated, and the non-volatile memory solid state hard disk is initialized.

8. A data transmission test device, characterized in that: Applied to a server host, the server host is communicatively connected to a non-volatile memory solid state hard disk, and the device comprises: A test module is used to determine a test scenario corresponding to the test task in response to the issuing of the test task; A filling information module is used to fill the key information corresponding to the test scenario in the submission queue according to the test scenario; wherein the submission queue includes a memory data structure of the scattered aggregation table transmission, and the submission queue is bound to the completion queue; A sending queue module, used for sending the submission queue to the non-volatile memory solid state drive; A receiving queue module, used for receiving the completion queue returned by the non-volatile memory solid state drive; A result generation module performs command code judgment and / or data verification on the completion queue according to the test scenario corresponding to the submission queue, and generates a test result of the distributed aggregation table transmission under the test scenario.

9. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the instructions to implement the data transmission test method according to any one of claims 1 to 7.

10. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the data transmission test method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Fault-tolerant function test method and device of hardware equipment, equipment and storage medium

    CN118838769A

  • IO processing device and method

    CN119396340A

  • An I / O processing device and method

    CN119396340B

  • NVMe command transparent transmission method, NVMe command generation method and NVMe command cross test method

    CN120950427A