Disk testing method and system based on IO task interpenetration multi-dimensional operation

By integrating multi-dimensional operations and IO tasks into disk testing, the problems of inaccurate evaluation and insufficient scalability in existing technologies are solved, and a more comprehensive and flexible testing method is implemented to adapt to new technological requirements and provide reliable test results.

CN120748468APending Publication Date: 2025-10-03JIANGSU XINSHENG INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510835996.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-20
Publication Date
2025-10-03

AI Technical Summary

Technical Problem

Existing disk testing methods cannot comprehensively and accurately evaluate disk quality, cannot simulate the complex scenarios of disk use in practice, lack flexible recording and judgment mechanisms, and are insufficiently scalable, making it difficult to adapt to new technological requirements.

Method used

Establish a connection with the disk through the interface module, perform communication detection, set test parameters, combine disk cleaning, power on and off, SMART and Identity information query, record temperature in real time, perform anomaly detection, and call command line scripts to perform tests at different stages to generate test reports.

Benefits of technology

It achieves a comprehensive and accurate evaluation of disk performance and stability, enhances the flexibility and scalability of testing, can adapt to diverse testing needs, provides more reliable test results, and reduces maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120748468A_ABST
    Figure CN120748468A_ABST
Patent Text Reader

Abstract

The invention discloses a disk testing method and system based on IO task interpenetration multi-dimensional operation, and belongs to the technical field of disk testing. The method comprises the following steps: establishing physical connection with a to-be-tested disk through an interface module, and performing communication detection to ensure normal communication; a user sets test parameters through a system interface or a configuration file; before the IO read-write operation is started, in the IO task execution process and after the IO task is finished, different operations are executed to obtain a test result; and outputting a test result and test data, displaying the test result and the test data to a user through a system interface, and generating a test report. According to the method, various operations related to actual use scenes are deeply fused with IO tasks, meanwhile, a flexible recording and judging mechanism is constructed, expandability is enhanced, disk performance and stability can be comprehensively and accurately evaluated, and the ever-increasing high-quality data storage requirement is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of disk testing technology, and in particular to a disk testing method and system based on IO tasks interspersed with multi-dimensional operations. Background Art

[0002] Current data storage is highly dependent on various disks. The performance and stability of disks are directly related to data security and efficient processing. However, existing disk testing methods have significant shortcomings and cannot comprehensively and accurately evaluate disk quality. The specific shortcomings are as follows: 1) Single test scenarios and disconnected from reality: Traditional drive testing often focuses on single I / O performance metrics, such as sequential and random read / write speeds, detaching I / O performance testing from the complexities of actual drive usage. In real-world applications, drives perform not only simple reads and writes but also undergo multiple operations, such as clearing, power cycling, querying SMART and Identity information, and recording temperatures. Existing testing methods fail to integrate these operations with I / O tasks, resulting in a mismatch between test results and actual usage, making it difficult to accurately assess the performance and stability of drives in real-world scenarios. Traditional testing methods often focus solely on drive I / O performance metrics, such as sequential read / write speeds, random read / write speeds, and IOPS (Input / Output Operations Per Second). This one-sided testing approach ignores the complexities drives face in real-world operating environments. For example, in enterprise-level storage systems, drives may require frequent clearing to ensure data security, or power cycling during different operating phases. Furthermore, the drive's SMART (Self-Monitoring, Analysis and Reporting Technology) and Identity information are crucial for understanding the drive's health and properties. Drive temperature also affects its performance and lifespan. However, existing testing methods fail to integrate these real-world operations and factors with I / O performance testing, resulting in test results that don't truly reflect the drive's actual performance.

[0003] 2) Lack of flexible recording and judgment mechanisms: Existing testing methods cannot be freely configured to record relevant information before, during, and after I / O reads and writes, depending on actual needs. For example, for certain temperature-sensitive disks, real-time recording of temperature changes during I / O reads and writes may be necessary to promptly identify potential problems, but existing methods struggle to meet such requirements. They also fail to report an error when a value exceeds a critical value during operation, or to perform statistics on process or end data and compare it with a critical value range to determine whether the test passed. This makes the testing process lack flexibility and specificity, making it difficult to meet diverse testing needs.

[0004] 3) Insufficient Scalability: With the continuous advancement of storage technology, existing test methods struggle to adapt to new testing requirements. Unimplemented test methods cannot be easily invoked, counted, and judged at different stages of I / O read and write testing via command-line scripts. This limits the test method's functionality and adaptability to new technologies. This means that whenever new testing requirements or technologies emerge, the entire test method must be redesigned and developed, significantly increasing testing costs and time, and limiting the development and application of testing technology. Summary of the Invention

[0005] The purpose of the present invention is to overcome the deficiencies of the prior art and to provide a disk testing method and system based on IO tasks interspersed with multi-dimensional operations.

[0006] The object of the present invention is achieved through the following technical solutions: In a first aspect, the present invention provides: a disk testing method based on IO tasks interspersed with multi-dimensional operations, comprising the following steps: Establish a physical connection with the disk to be tested through the interface module and perform communication testing to ensure normal communication; The user sets the test parameters through the system interface or configuration file; Before the IO read and write operations begin, perform the initial disk clearing operation, query the SMART information and Ldentity information of the disk to be tested and record them, obtain the initial health status and basic properties of the disk to be tested, and record the current temperature of the disk to be tested as the initial temperature; During the execution of IO tasks, SMART information is queried again according to the set frequency or conditions to monitor changes in the health status of the disk; the disk temperature is recorded in real time, and abnormality detection is performed; After the IO task is completed, the disk clearing operation is performed again to clean up the temporary data generated by the test; then the SMART information is queried for the third time, and the Ldentity information is queried again. By comparing the Ldentity information queried twice and the SMART information queried three times, it is determined again whether there are any test abnormalities during the test process; the final temperature of the disk is recorded, and the data during the test process is statistically analyzed and compared with the preset critical value range to determine whether the disk passes the test and obtain the test result; Output test results and test data, display them to users through the system interface, and generate test reports.

[0007] Preferably, the test parameters include IO task parameters, multi-dimensional intermediate operation parameters, timing of recording information and critical value range.

[0008] Preferably, the IO task parameters include the read and write data volume and the read and write mode; the multi-dimensional intermediate operation parameters include the clearing frequency and the power on and off time interval.

[0009] Preferably, before the IO read and write operations begin, it is detected whether there is a test method that needs to be executed before the IO read and write operations begin. If so, the corresponding command line script is called by the command line script calling module to perform the test and the results are recorded.

[0010] Preferably, the test anomaly detection comprises the following steps: Determine whether the real-time recorded disk temperature exceeds the preset critical value. If so, the data recording and analysis module immediately reports an error and notifies the test control module to terminate the test. At the same time, call the command line script according to the settings to execute specific tests, and analyze the script output results in real time. If an abnormal situation occurs, an error will also be reported and the test will be terminated.

[0011] Preferably, after the IO task is completed, it is detected whether there is a test method that needs to be executed after the IO task is completed. If so, the corresponding command line script is called to perform the test, and the test result is comprehensively judged in combination with other test data.

[0012] A second aspect of the present invention provides: a disk testing system based on IO tasks interspersed with multi-dimensional operations, for implementing any of the above-mentioned disk testing methods based on IO tasks interspersed with multi-dimensional operations, comprising: The test control module is used to control the execution order and timing of IO tasks and multi-dimensional intermediate operations according to the preset test strategy; The data recording and analysis module is used to record relevant information according to the set requirements during the test process, and perform statistical analysis on the data after the test is completed, and compare it with the critical value to determine whether the test has passed; The command line script calling module is used to call the external command line script according to the settings and execute the test method; The interface module is used to establish physical connection and data exchange with the disk under test, perform I / O tasks, clear disk operations, and power on and off operations.

[0013] The beneficial effects of the present invention are: 1) Through innovative test process design, a variety of operations related to actual usage scenarios are deeply integrated with I / O tasks. At the same time, flexible recording and judgment mechanisms are built, and scalability is enhanced. This can comprehensively and accurately evaluate disk performance and stability to meet the growing demand for high-quality data storage.

[0014] 2) More comprehensive and accurate test results: Due to the deep integration of various practical scenarios related operations such as disk clearing and power on and off with IO tasks, the testing process is closer to the actual working environment of the disk. For example, frequent disk clearing operations may affect the read and write performance and lifespan of the disk. By adding disk clearing operations to the test, the performance of the disk in such situations can be more accurately evaluated. Therefore, compared with the traditional single IO performance test, the present invention can comprehensively and accurately evaluate the performance and stability of the disk, provide users with more reliable test results, help screen out higher quality disks, and ensure the security and efficiency of data storage.

[0015] 3) Enhanced Testing Flexibility: Recording of relevant information during different I / O read and write phases can be freely configured to meet the diverse parameter monitoring needs of different disks. For example, for heat-sensitive disks, temperature changes can be specifically recorded during I / O read and write processes to promptly identify potential issues. Furthermore, a mechanism for reporting errors when critical values ​​are exceeded during operation and for comparing data statistics with critical values ​​after completion enables timely adjustments and accurate judgments based on actual conditions. This flexibility allows testing to better adapt to diverse disk testing needs, improving both its relevance and effectiveness.

[0016] 4) Improved Scalability: With the continuous advancement of storage technology, new testing requirements continue to emerge. This invention expands testing methods by invoking command-line scripts, eliminating the need for large-scale modifications to the entire test system. For example, when new disk characteristics require testing, simply write the corresponding command-line script and invoke it during the appropriate testing phase. This significantly reduces the maintenance and upgrade costs of the test system, improves its adaptability to new technologies, and enables testing methods to keep pace with the times, better serving the development of the data storage field. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is a flow chart of the disk testing method based on interspersing multi-dimensional operations with IO tasks. DETAILED DESCRIPTION

[0018] The following will clearly and completely describe the technical solutions of the present invention in conjunction with the embodiments. Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work shall fall within the scope of protection of the present invention.

[0019] See Figure 1 The first aspect of the present invention provides: a disk testing method based on IO tasks interspersed with multi-dimensional operations, comprising the following steps: Establish a physical connection with the disk to be tested through the interface module and perform communication testing to ensure normal communication; The user sets the test parameters through the system interface or configuration file; Before the IO read and write operations begin, perform the initial disk clearing operation, query the SMART information and Ldentity information of the disk to be tested and record them, obtain the initial health status and basic properties of the disk to be tested, and record the current temperature of the disk to be tested as the initial temperature; During the execution of IO tasks, SMART information is queried again according to the set frequency or conditions to monitor changes in the health status of the disk; the disk temperature is recorded in real time, and abnormality detection is performed; After the IO task is completed, the disk clearing operation is performed again to clean up the temporary data generated by the test; then the SMART information is queried for the third time, and the Ldentity information is queried again. By comparing the Ldentity information queried twice and the SMART information queried three times, it is determined again whether there are any test abnormalities during the test process; the final temperature of the disk is recorded, and the data during the test process is statistically analyzed and compared with the preset critical value range to determine whether the disk passes the test and obtain the test result; Output test results and test data, display them to users through the system interface, and generate test reports.

[0020] In this embodiment, multi-dimensional intermediate operations such as clearing the disk, powering on and off the disk, querying SMART and Identity information, and recording the disk temperature are deeply integrated with the IO task to fully simulate the actual usage scenario of the disk, making the test results closer to the actual situation. According to actual needs, the relevant information can be freely set to be recorded before, during, and after the IO read and write, and an error will be reported when a certain value exceeds the critical value during the operation, or the process data or the end data will be counted and compared with the critical value range to determine whether it has passed. This greatly enhances the flexibility and pertinence of the test. By calling the command line script, it is possible to conveniently implement unexecuted test methods before, during, and after the IO read and write test, and perform statistics and determine whether the test has passed, effectively improving the test system's adaptability to new technologies and new needs.

[0021] Data collected during the test includes temperature changes and various indicators in the SMART information. Output test data includes information recorded at each stage and statistical analysis results. The data recording and analysis module organizes the test results (pass or fail) and detailed test data and displays them to the user through the system interface.

[0022] In some embodiments, the test parameters include IO task parameters, multi-dimensional intermediate operation parameters, timing of recording information, and critical value range.

[0023] In this embodiment, the test parameters include IO task parameters (such as the amount of read and write data, read and write mode, etc.), multi-dimensional intermediate operation parameters (such as disk clearing frequency, power on and off time interval, etc.), the timing of recording information (before, during, and after IO reading and writing), critical value range, etc.

[0024] In some embodiments, the IO task parameters include the read and write data volume and the read and write mode; the multi-dimensional intermediate operation parameters include the clearing frequency and the power on and off time interval.

[0025] In some embodiments, before the IO read / write operation starts, it is detected whether there is a test method that needs to be executed before the IO read / write operation starts. If so, the command line script calling module calls the corresponding command line script for testing and records the results.

[0026] In some embodiments, the test anomaly detection comprises the following steps: Determine whether the real-time recorded disk temperature exceeds the preset critical value. If so, the data recording and analysis module immediately reports an error and notifies the test control module to terminate the test. At the same time, call the command line script according to the settings to execute specific tests, and analyze the script output results in real time. If an abnormal situation occurs, an error will also be reported and the test will be terminated.

[0027] In some embodiments, after the IO task is completed, it is detected whether there is a test method that needs to be executed after the IO task is completed. If so, the corresponding command line script is called to perform the test, and the test result is comprehensively judged in combination with other test data.

[0028] A second aspect of the present invention provides: a disk testing system based on IO tasks interspersed with multi-dimensional operations, for implementing any of the above-mentioned disk testing methods based on IO tasks interspersed with multi-dimensional operations, comprising: The test control module is used to control the execution order and timing of IO tasks and multi-dimensional intermediate operations according to the preset test strategy; The data recording and analysis module is used to record relevant information according to the set requirements during the test process, and perform statistical analysis on the data after the test is completed, and compare it with the critical value to determine whether the test has passed; The command line script calling module is used to call the external command line script according to the settings and execute the test method; The interface module is used to establish physical connection and data exchange with the disk under test, perform I / O tasks, clear disk operations, and power on and off operations.

[0029] The foregoing description is merely a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the form disclosed herein and should not be construed as excluding other embodiments. Rather, the present invention can be used in various other combinations, modifications, and environments and can be modified within the scope of the concept described herein through the above teachings or techniques or knowledge in the relevant field. Modifications and variations made by those skilled in the art that do not depart from the spirit and scope of the present invention are intended to be protected by the appended claims.

Claims

1. A disk testing method based on interspersing IO tasks with multi-dimensional operations, characterized by: The following steps are involved: Establish a physical connection with the disk to be tested through the interface module and perform communication testing to ensure normal communication; The user sets the test parameters through the system interface or configuration file; Before the IO read and write operations begin, perform the initial disk clearing operation, query the SMART information and Ldentity information of the disk to be tested and record them, obtain the initial health status and basic properties of the disk to be tested, and record the current temperature of the disk to be tested as the initial temperature; During the execution of IO tasks, SMART information is queried again according to the set frequency or conditions to monitor changes in the health status of the disk; the disk temperature is recorded in real time, and abnormality detection is performed; After the IO task is completed, the disk clearing operation is performed again to clean up the temporary data generated by the test; then the SMART information is queried for the third time, and the Ldentity information is queried again. By comparing the Ldentity information queried twice and the SMART information queried three times, it is determined again whether there are any test anomalies during the test; Record the final temperature of the disk and perform statistical analysis on the data during the test process, compare it with the preset critical value range, and determine whether the disk passes the test to obtain the test result; Output test results and test data, display them to users through the system interface, and generate test reports.

2. The disk testing method based on IO tasks interspersed with multi-dimensional operations according to claim 1, characterized in that: The test parameters include IO task parameters, multi-dimensional intermediate operation parameters, information recording timing and critical value range.

3. The disk testing method based on IO tasks interspersed with multi-dimensional operations according to claim 2, characterized in that: The IO task parameters include the read and write data volume and the read and write mode; the multi-dimensional intermediate operation parameters include the clearing frequency and the power on and off time interval.

4. The disk testing method based on IO tasks interspersed with multi-dimensional operations according to claim 1, characterized in that: Before the IO read and write operation begins, detect whether there is a test method that needs to be executed before the IO read and write operation begins. If so, call the corresponding command line script through the command line script calling module to perform the test and record the results.

5. The disk testing method based on IO tasks interspersed with multi-dimensional operations according to claim 1, characterized in that: The test anomaly detection comprises the following steps: Determine whether the real-time recorded disk temperature exceeds the preset critical value. If so, the data recording and analysis module immediately reports an error and notifies the test control module to terminate the test. At the same time, call the command line script according to the settings to execute specific tests, and analyze the script output results in real time. If an abnormal situation occurs, an error will also be reported and the test will be terminated.

6. The disk testing method based on IO tasks interspersed with multi-dimensional operations according to claim 1, characterized in that: After the IO task is completed, check whether there is a test method that needs to be executed after the IO task is completed. If so, call the corresponding command line script to perform the test, and comprehensively judge the test results in combination with other test data.

7. A disk testing system based on I / O tasks interspersed with multi-dimensional operations, characterized by: A disk testing method for implementing the method according to any one of claims 1 to 6 based on interspersing IO tasks with multi-dimensional operations, comprising: The test control module is used to control the execution order and timing of IO tasks and multi-dimensional intermediate operations according to the preset test strategy; The data recording and analysis module is used to record relevant information according to the set requirements during the test process, and perform statistical analysis on the data after the test is completed, and compare it with the critical value to determine whether the test has passed; The command line script calling module is used to call the external command line script according to the settings and execute the test method; The interface module is used to establish physical connection and data exchange with the disk under test, perform I / O tasks, clear disk operations, and power on and off operations.