CN115904906A - Hard disk performance index data testing method, device, equipment and medium - Google Patents

Hard disk performance index data testing method, device, equipment and medium Download PDF

Info

Publication number
CN115904906A
CN115904906A CN202211579847.0A CN202211579847A CN115904906A CN 115904906 A CN115904906 A CN 115904906A CN 202211579847 A CN202211579847 A CN 202211579847A CN 115904906 A CN115904906 A CN 115904906A
Authority
CN
China
Prior art keywords
performance index
hard disk
tested
index data
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211579847.0A
Other languages
Chinese (zh)
Inventor
魏远甲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211579847.0A priority Critical patent/CN115904906A/en
Publication of CN115904906A publication Critical patent/CN115904906A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method for testing hard disk performance index data, which comprises the following steps: acquiring a test environment of a current hard disk to be tested, and selecting a test template corresponding to the test environment of the current hard disk to be tested to perform performance test; acquiring performance index data of the tested current hard disk to be tested, determining a plurality of corresponding performance index data comparison rules according to the test environment of the current hard disk to be tested, comparing the tested performance index data of the current hard disk to be tested with historical test data corresponding to the performance index data comparison rule with the highest priority level, and outputting a comparison result; the invention also provides a hard disk performance index data testing device, equipment and medium, and the hard disk performance index data testing efficiency and accuracy are improved.

Description

Hard disk performance index data testing method, device, equipment and medium
Technical Field
The invention relates to the field of hard disk testing, in particular to a method, a device, equipment and a medium for testing hard disk performance index data.
Background
Hard disks are the most prominent storage devices of computers. Including mechanical hard disks and solid state disks. Before purchasing the hard disk, the consumer pays attention to some parameter indexes, wherein the performance index accounts for a greater proportion. The performance indicators include sequential read/write bandwidth, random read/write IOPS (Input Output Operations Per Second, number of requests for Input and Output completed Per Second), latency (Latency), and Quality of Service (QoS).
When a computer manufacturer and a server manufacturer carry out a hard disk related test, besides most independent tests have judgment standards for test results, some tests need to be compared with the results of other hard disks or tests in other test environments. Different tests involve different models, components, firmware, capacity, platform version, motherboard model, CPU model, manufacturer, speed, etc. environmental parameters, these specific tests generally become more diverse and complex through the standard, the test results of other testers need to be searched, and sometimes additional tests for the tests need to be done by themselves.
Although single performance test indicator data processing is automated and templated, finding comparable test results can be time consuming and less accurate in terms of time cost of testing, and overall efficiency can be reduced when communication with other testers is impaired.
Disclosure of Invention
The invention aims to solve the problems in the prior art, innovatively provides a method, a device, equipment and a medium for testing the performance index data of the hard disk, effectively solves the problems of low efficiency and accuracy of testing the performance index data of the hard disk caused by the prior art, and effectively improves the efficiency and accuracy of testing the performance index data of the hard disk.
The first aspect of the invention provides a method for testing hard disk performance index data, which comprises the following steps:
acquiring the test environment of the current hard disk to be tested, and selecting a test template corresponding to the test environment of the current hard disk to be tested to perform performance test;
acquiring performance index data of a tested current hard disk to be tested, determining a plurality of corresponding performance index data comparison rules according to a test environment of the current hard disk to be tested, comparing the tested performance index data of the current hard disk to be tested with historical test data corresponding to the performance index data comparison rule with the highest priority, and outputting a comparison result; the performance index data comparison rule is used for describing historical test data corresponding to different combined environment parameters in each test environment and priority information for comparing the historical test data with performance index data corresponding to the test environment of the current hard disk to be tested.
Optionally, the environmental parameters include: the single environment parameter comprises a firmware version of the hard disk to be tested, a type of a server where the hard disk to be tested is located, a type of a server test platform where the hard disk to be tested is located, a mainboard model of the server where the hard disk to be tested is located, a CPU model of the server where the hard disk to be tested is located, and a speed of the hard disk to be tested.
Further, the environmental parameters further include: and combining environment parameters, wherein the combined environment parameters comprise the brand, the manufacturer, the model and the series of the hard disk to be tested, and the capacity and the specification of the hard disk to be tested.
Optionally, before obtaining the test environment of the current hard disk to be tested, the method further includes:
establishing a first corresponding relation between the test environment and the test template, and selecting the test template corresponding to the test environment of the current hard disk to be tested according to the first corresponding relation;
establishing a second corresponding relation between the test environment and the performance index data comparison rule, and determining a plurality of performance index data comparison rules corresponding to the test environment of the current hard disk to be tested according to the second corresponding relation;
and establishing a third corresponding relation between the performance index data comparison rule and the historical test data, and determining the historical test data corresponding to each performance index data comparison rule according to the third corresponding relation.
Optionally, determining a plurality of corresponding performance index data comparison rules according to the test environment of the current hard disk to be tested, and comparing the tested performance index data of the current hard disk to be tested with historical test data corresponding to the performance index data comparison rule with the highest priority, specifically:
determining a plurality of corresponding performance index data comparison rules according to the test environment of the current hard disk to be tested, and acquiring a performance index data comparison rule with the highest priority in the plurality of performance index data comparison rules;
if the performance index data comparison rule with the highest priority at present has corresponding historical test data, comparing the tested performance index data of the current hard disk to be tested with the historical test data corresponding to the performance index data comparison rule with the highest priority at present;
if the performance index data comparison rule with the highest priority does not have corresponding historical test data, acquiring the performance index data comparison rule with the highest priority, judging whether the performance index data comparison rule with the highest priority has corresponding historical test data, and if so, comparing the tested performance index data of the current hard disk to be tested with the historical test data corresponding to the performance index data comparison rule with the highest priority; and if the comparison rule does not exist, acquiring the next highest-priority performance index data comparison rule again until the lowest-priority performance index data comparison rule.
Furthermore, the priority of the performance index data comparison rule corresponding to the high matching degree of the environmental parameters in the historical test data and the environmental parameters in the current hard disk test environment to be tested is higher than the priority of the performance index data comparison rule corresponding to the low matching degree of the environmental parameters in the historical test data and the environmental parameters in the current hard disk test environment to be tested.
Optionally, all historical test data are classified and labeled according to different included environmental parameters.
The second aspect of the present invention provides a hard disk performance index data testing apparatus, including:
the test module is used for acquiring the test environment of the current hard disk to be tested and selecting the test template corresponding to the test environment of the current hard disk to be tested to carry out performance test;
the comparison module is used for acquiring the performance index data of the tested current hard disk to be tested, determining a plurality of corresponding performance index data comparison rules according to the test environment of the current hard disk to be tested, sequentially comparing the performance index data of the tested current hard disk to be tested with the historical test data corresponding to each performance index data comparison rule respectively, and outputting a comparison result; the performance index data comparison rule is used for describing historical test data corresponding to different combined environment parameters in each test environment and priority information for comparing the historical test data with performance index data corresponding to the test environment of the current hard disk to be tested.
A third aspect of the present invention provides an electronic device comprising: a memory for storing a computer program; a processor, configured to implement the steps of the method for testing hard disk performance index data according to the first aspect of the present invention when executing the computer program.
A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a method for testing hard disk performance indicator data according to the first aspect of the present invention.
The technical scheme adopted by the invention comprises the following technical effects:
1. according to the technical scheme, the performance index data of the tested current hard disk to be tested is obtained, the corresponding multiple performance index data comparison rules are determined according to the test environment of the current hard disk to be tested, the performance index data of the tested current hard disk to be tested is compared with historical test data corresponding to the performance index data comparison rule with the highest priority, and the comparison result is output.
2. According to the technical scheme, a plurality of corresponding performance index data comparison rules are determined according to the test environment of the current hard disk to be tested, the tested performance index data of the current hard disk to be tested is compared with historical test data corresponding to the performance index data comparison rule with the highest priority, if the corresponding historical test data does not exist in the performance index data comparison rule with the highest priority, the performance index data comparison rule with the highest priority is obtained, the historical test data corresponding to the most-consistent performance index data comparison rule can be determined according to different test environments to be compared, and the test accuracy of the hard disk performance index data is improved.
3. According to the technical scheme, all historical test data can be classified and labeled according to different included environment parameters, retrieval is facilitated, time consumption for searching for a comparable test result is further avoided, and the efficiency of testing the hard disk performance index data is further improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the embodiments or technical solutions in the prior art are briefly described below, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method according to an embodiment of the present invention;
FIG. 2 is another schematic flow diagram of a process according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of step S12 of a method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of performance testing and data analysis in a method according to an embodiment of the present invention;
FIG. 5 is a schematic view showing the structure of an apparatus according to a second embodiment of the present invention;
FIG. 6 is another schematic diagram of an apparatus according to a second embodiment of the present invention;
fig. 7 is a schematic structural diagram of a third apparatus in an embodiment of the present invention.
Detailed Description
In order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
Example one
As shown in fig. 1, the present invention provides a method for testing data of hard disk performance index, comprising:
s11, acquiring the test environment of the current hard disk to be tested, and selecting a test template corresponding to the test environment of the current hard disk to be tested to perform performance test;
s12, acquiring performance index data of the tested current hard disk to be tested, determining a plurality of corresponding performance index data comparison rules according to the test environment of the current hard disk to be tested, comparing the tested performance index data of the current hard disk to be tested with historical test data corresponding to the performance index data comparison rule with the highest priority, and outputting a comparison result; the performance index data comparison rule is used for describing historical test data corresponding to different environment parameter combinations in each test environment and priority information for comparing the historical test data with performance index data corresponding to the test environment of the current hard disk to be tested.
In step S11, the environment parameters may include: from the development and maintenance point of view, the above-mentioned model can be used as a model which is not produced in volume in development, and can also be used as a model which is produced in volume to introduce new components, the server test platform type (the server test platform is related to the item location of the corresponding model, different items generally specify the machine model and the system architecture according to their own requirements, that is, the test platform, for example, the architecture specified by the machine under the item a flag is X86 architecture, the architecture required by the machine under the item B flag is ARM architecture), the mainboard model of the server where the hard disk to be tested is located, the CPU (central processing unit) of the server where the hard disk to be tested is located, and the speed of the hard disk to be tested (for example, 8GT/s, etc.).
Further, the environment parameters include, in addition to the single environment parameter: the combined environment parameter may be a brand, a manufacturer, a model, and a series of the hard disk to be tested, and a capacity and a specification of the hard disk to be tested, for example, 1T, 512G, and the like.
Specifically, firstly, a testing task is newly established on an existing testing system at a web end, and then a corresponding testing template and a performance index data comparison rule are selected and a testing script is run according to set environmental parameters; uploading test data (performance index data after performance test) after test operation is finished, and retrieving and comparing historical test data matched with the test data on a platform (or a historical test database) according to a performance index data comparison rule; and finally, outputting and storing the test result.
The test system refers to a unique Graphical User Interface (GUI) Interface or database which has functions of task arrangement, data uploading, result analysis, report submission, review, interaction and the like and is based on flags of various research and development and test manufacturers in a web application environment, all historical test data in the historical test database can be classified and labeled according to different environmental parameters in advance, retrieval and comparison of performance index data of a current hard disk to be tested after test completion are facilitated, and the test system has a single environmental parameter and combined environmental parameters like a screening function of Excel.
Other different environmental parameter settings may be added in the future, according to different testing requirements. The environmental parameters are irrelevant to the test itself and are only used for screening test data after the test script is run.
The test template specifically refers to a specific test to be performed, a specific editable executable performance test script, a data processing template corresponding to processing the current environment parameter, and a corresponding test passing standard. For example, it is necessary to check the sequential read-write bandwidth, the random read-write IOPS (i.e., the number of times of read-write operations per second) and the time delay of the hard disk under a specific file system, run the performance test script, compare the performance index data collected by the test with the test data of the same component of a certain model, and if the performance index data is not lower than 5% (the test passing standard), the test passing can be regarded as the test passing. And after the operation of the related performance test script is finished, forming a preliminary data report according to the test requirement and the existing template.
As shown in fig. 2, the technical solution of the present invention further provides a method for testing data of performance indexes of a hard disk, before acquiring a test environment of a current hard disk to be tested, the method further includes:
s101, establishing a first corresponding relation between a test environment and a test template, and selecting the test template corresponding to the test environment of the current hard disk to be tested according to the first corresponding relation;
s102, establishing a second corresponding relation between the test environment and the performance index data comparison rules, and determining a plurality of performance index data comparison rules corresponding to the test environment of the current hard disk to be tested according to the second corresponding relation;
s103, establishing a third corresponding relation between the performance index data comparison rule and the historical test data, and determining the historical test data corresponding to each performance index data comparison rule according to the third corresponding relation.
In steps S101 to S103, the first corresponding relationship, the second corresponding relationship, and the third corresponding relationship may be pre-stored in a corresponding relationship database (the historical test database may be a part of the corresponding relationship database), and according to the current test environment of the hard disk to be tested, a test template corresponding to the test environment of the current hard disk to be tested, a plurality of performance index data comparison rules corresponding to the test environment of the current hard disk to be tested, and historical test data corresponding to each performance index data comparison rule are respectively determined in the corresponding relationship database.
As shown in fig. 3 to 4, in step S12, determining a plurality of corresponding performance index data comparison rules according to the test environment of the current hard disk to be tested, and comparing the tested performance index data of the current hard disk to be tested with the historical test data corresponding to the performance index data comparison rule with the highest priority, specifically includes:
s121, determining a plurality of corresponding performance index data comparison rules according to the test environment of the current hard disk to be tested, and acquiring a performance index data comparison rule with the highest priority in the plurality of performance index data comparison rules;
s122, judging whether the performance index data comparison rule with the highest priority has corresponding historical test data or not, and if so, executing the step S123; if the judgment result is no, go to step S124;
s123, comparing the tested performance index data of the current hard disk to be tested with historical test data corresponding to the performance index data comparison rule with the highest priority;
s124, obtaining the performance index data comparison rule with the highest next priority, judging whether the performance index data comparison rule with the highest next priority has corresponding historical test data, and if so, executing the step S125; if the judgment result is no, executing step S126;
s125, comparing the tested performance index data of the current hard disk to be tested with historical test data corresponding to the performance index data comparison rule with the highest priority;
and S126, obtaining the performance index data comparison rule with the highest priority again until the performance index data comparison rule with the lowest priority, and comparing the tested performance index data of the current hard disk to be tested with the historical test data corresponding to the performance index data comparison rule with the lowest priority.
In steps S121 to S126, the performance index data comparison rule is used to describe historical test data corresponding to different combination of environment parameters in each test environment, and priority information for comparing the historical test data with the performance index data corresponding to the test environment of the current hard disk to be tested. That is, the performance index data comparison rule means that different specific test requirements are preferentially compared with historical test data matched with certain parameters, and the comparison priority criteria are different when the test environments (environmental parameters) are different. And setting the priority of the performance index data comparison rule according to the importance degree, the matching degree or special requirements, and queuing to sequentially retrieve the related data comparison. For example, a certain test of a certain set of environmental parameters is performed, after the performance index data is uploaded after the test is finished, a plurality of performance index data comparison rules corresponding to the current test environment are determined, historical test data (historical test data are classified and labeled according to the environmental parameters in advance) which are different from a certain environmental parameter (for example, the CPU model of the server where the hard disk to be tested is located) and the same item (namely, except the environmental parameter, other environmental parameters are the same) are compared automatically (the priority of the performance index data comparison rule 1 is the highest); if the matched historical test data is retrieved and compared to meet the test standard, the test is judged to be passed, if the matched historical test data is not retrieved, the historical test data which is the same item (except the two environmental parameters which are different and the other environmental parameters are the same) and different from two environmental parameters (such as the CPU model of the server where the hard disk to be tested is located and the firmware version of the hard disk to be tested) is automatically retrieved and compared (the priority of the performance index data comparison rule 2 is higher); if the matched historical test data is found and compared to meet the test standard, the test is judged to be passed, if the matched test data is not found, the historical test data which is different from the same item (namely, the historical test data is different from the three environmental parameters and the other environmental parameters are the same) of certain three environmental parameters (such as the CPU model of the server where the hard disk to be tested is located, the firmware version of the hard disk to be tested, and the brand, manufacturer, model and series of the hard disk to be tested) is automatically retrieved and compared. By analogy, different environmental parameters are sequentially changed according to the data comparison principle of specific performance indexes of different manufacturers to retrieve comparison data which can judge whether the test passes or not.
The method for classifying and labeling the historical test data according to the environmental parameters specifically comprises the following steps: classifying and labeling all historical test data according to different included environment parameters, namely classifying and labeling all historical test data according to different included environment parameter types to distinguish environment parameter types (such as a firmware version of a hard disk to be tested and a server type of the hard disk to be tested); then, classifying and labeling all historical test data again according to different parameter specific conditions under the same type of environmental parameters (for example, the type of a server where the hard disk to be tested is located is A, or the type of the server where the hard disk to be tested is located is B) so as to distinguish different parameter specific conditions under the same environmental parameters, thereby determining that each item of historical test data comprises different types of environmental parameters and different specific parameter conditions of the same type of environmental parameters.
Further, in the present application, the same test environment corresponds to multiple performance index data comparison rules, each performance index data comparison rule corresponds to one piece of historical test data, and the historical data test data corresponding to different performance index data comparison rules include different test environment parameters, for example, the current test environment of the hard disk to be tested includes an environment parameter a1, an environment parameter b1, and an environment parameter c1, and the historical data test data corresponding to the performance index data comparison rule 1 includes environment parameters (environmental parameters are classified and labeled in advance in the historical test database) which are an environment parameter a2, an environment parameter b1, and an environment parameter c1; the environmental parameters (classified labeling of the environmental parameters is performed in advance in a historical test database) included in the historical data test data corresponding to the performance index data comparison rule 2 are an environmental parameter a1, an environmental parameter b2 and an environmental parameter c1; the environmental parameters (the environmental parameters are classified and labeled in advance in the historical test database) included in the historical data test data corresponding to the performance index data comparison rule 3 are environmental parameters a2 (different parameter conditions under the same environmental parameter type with the environmental parameters a1, such as the firmware version 1 of the hard disk to be tested and the firmware version 2 of the hard disk to be tested), environmental parameters b2 and environmental parameters c1; the environmental parameters (the environmental parameters are classified and labeled in advance in the historical test database) included in the historical data test data corresponding to the performance index data comparison rule 4 are environmental parameters a1, environmental parameters b2, environmental parameters c2 and the like, and the environmental parameters (the environmental parameters are classified and labeled in advance in the historical test database) included in the historical data test data corresponding to each performance index data comparison rule are any combination of the environmental parameters; the more the number of the environmental parameters in the historical data test data corresponding to the performance index data comparison rule is the same as the environmental parameters of the current test environment of the hard disk to be tested, the higher the matching degree is, and the higher the priority is; under the condition that the number of the environmental parameters in the historical data test data corresponding to the performance index data comparison rule is the same as that of the environmental parameters in the current test environment of the hard disk to be tested, the more important degree (self-definition support) of the different environmental parameters is, and the higher matching degree is.
The combination of different environmental parameters becomes a performance index data comparison rule. Different test environments and different tested components have different results and have good and bad results. Before comparison, the test environment composed of the above environmental parameters is artificially determined by a project or an engineer according to actual requirements, is fixed and unchangeable, but as a performance index data comparison rule, the combination may never occur; the environmental parameters in the historical test are combined into a known performance index data comparison rule, and in the comparison process, a single or a plurality of environmental parameters are changed to adapt to the existing performance index data comparison principle in the historical test data. Through the test that relates to hard disk performance index data contrast, look for this kind of hard disk at which project, which model, which kind of firmware version, which kind of framework, which kind of CPU, under the collocation of which kind of mainboard etc., performance or stability are higher. For example, there are a performance index data comparison rule 1 and a performance index data comparison rule 2, the difference between the two is only that the CPU in the server is different, the performance index data 1 corresponds to the CPU of type a, and the performance index data comparison rule 2 corresponds to the CPU of type B. The performance history test data result of the test under the CPU of the model A is unknown, the performance history test data result of the test under the CPU of the model B is known to be the best performance in all the existing test results, so that the related test is arranged to check whether the performance of the CPU of the model A is better than that of the CPU of the model B. If model a performs worse than model B, then is it associated with another environmental parameter? Assuming the comparison rule 3, the difference from the comparison rule 1 is that the CPU is also model B, but the firmware version of the hard disk under test is the next newer version in the rule 1, so the relevant test is arranged to check whether the performance result of the hard disk under test is again related to the firmware version.
Specifically, the priority of the performance index data comparison rule corresponding to the historical test data having a high matching degree of the environmental parameters with the environmental parameters of the current test environment of the hard disk to be tested (the more the environmental parameters included in the historical data test data corresponding to the performance index data comparison rule are the same as the environmental parameters of the current test environment of the hard disk to be tested, or the more the importance degree of the different environmental parameters is high when the environmental parameters included in the historical data test data corresponding to the performance index data comparison rule are the same as the environmental parameters of the current test environment of the hard disk to be tested), is greater than the priority of the performance index data comparison rule corresponding to the performance index data having a low matching degree of the environmental parameters with the current test environment of the hard disk to be tested (the less the environmental parameters included in the historical data test data corresponding to the performance index data comparison rule are the same as the environmental parameters of the current test environment of the hard disk to be tested, or the less the importance degree of the different environmental parameters included in the historical data test data corresponding to the performance index data comparison rule are the same as the environmental parameters of the current test environment of the hard disk to be tested).
According to the technical scheme, the performance index data of the tested current hard disk to be tested is obtained, the corresponding multiple performance index data comparison rules are determined according to the test environment of the current hard disk to be tested, the performance index data of the tested current hard disk to be tested is compared with historical test data corresponding to the performance index data comparison rule with the highest priority, and the comparison result is output.
According to the technical scheme, a plurality of corresponding performance index data comparison rules are determined according to the test environment of the current hard disk to be tested, the tested performance index data of the current hard disk to be tested is compared with historical test data corresponding to the performance index data comparison rule with the highest priority, if the corresponding historical test data does not exist in the performance index data comparison rule with the highest priority, the performance index data comparison rule with the highest priority is obtained, the historical test data corresponding to the most-consistent performance index data comparison rule can be determined according to different test environments to be compared, and the test accuracy of the hard disk performance index data is improved.
According to the technical scheme, all historical test data can be classified and labeled according to different included environment parameters, retrieval is facilitated, time consumption for searching for a comparable test result is further avoided, and the efficiency of testing the hard disk performance index data is further improved.
Example two
As shown in fig. 5, the technical solution of the present invention further provides a hard disk performance index data testing apparatus, including:
the test module 101 is used for acquiring the test environment of the current hard disk to be tested and selecting a test template corresponding to the test environment of the current hard disk to be tested to perform performance test;
the comparison module 102 is configured to obtain performance index data of the tested current hard disk to be tested, determine a plurality of corresponding performance index data comparison rules according to a test environment of the current hard disk to be tested, compare the performance index data of the tested current hard disk to be tested with historical test data corresponding to each performance index data comparison rule in sequence, and output a comparison result; the performance index data comparison rule is used for describing historical test data corresponding to different combined environment parameters in each test environment and priority information for comparing the historical test data with performance index data corresponding to the test environment of the current hard disk to be tested.
In the test module 101, the environmental parameters may include: from the development and maintenance point of view, the above-mentioned model can be used as a model which is not produced in volume in development, and can also be used as a model which is produced in volume to introduce new components, the server test platform type (the server test platform is related to the item location of the corresponding model, different items generally specify the machine model and the system architecture according to their own requirements, that is, the test platform, for example, the architecture specified by the machine under the item a flag is X86 architecture, the architecture required by the machine under the item B flag is ARM architecture), the mainboard model of the server where the hard disk to be tested is located, the CPU (central processing unit) of the server where the hard disk to be tested is located, and the speed of the hard disk to be tested (for example, 8GT/s, etc.).
Further, the environment parameters include, in addition to the single environment parameter: the combined environment parameter may be a brand, a manufacturer, a model, and a series of the hard disk to be tested, and a capacity and a specification of the hard disk to be tested, for example, 1T, 512G, and the like.
Specifically, firstly, a testing task is newly established on an existing testing system at a web end, and then a corresponding testing template and a performance index data comparison rule are selected and a testing script is operated according to set environmental parameters; uploading test data (performance index data after performance test) after the test operation is finished, and retrieving and comparing historical test data matched with the test data on a platform (or a historical test database) according to a performance index data comparison rule; and finally, outputting and storing the test result.
The test system refers to a unique Graphical User Interface (GUI) Interface or database which has functions of task arrangement, data uploading, result analysis, report submission, review, interaction and the like and is based on various research and development and test manufacturer flags in a web application environment, all historical test data in the historical test database can be classified and labeled according to different environmental parameters in advance, retrieval and comparison of performance index data of a current hard disk to be tested after test completion are facilitated, and the test system has a single environmental parameter and combined environmental parameters like a screening function of Excel.
Other different environmental parameter settings may be added in the future, according to different testing requirements. The environmental parameters are irrelevant to the test itself and are only used for screening test data after the test script is run.
The test template specifically refers to a specific test to be performed, a specific editable executable performance test script, a data processing template corresponding to processing the current environment parameter, and a corresponding test passing standard. For example, it is necessary to check the sequential read-write bandwidth, the random read-write IOPS (i.e., the number of times of read-write operations per second) and the time delay of the hard disk under a specific file system, run the performance test script, compare the performance index data collected by the test with the test data of the same component of a certain model, and if the performance index data is not lower than 5% (the test passing standard), the test passing can be regarded as the test passing. And after the operation of the related performance test script is finished, forming a preliminary data report according to the test requirement and the existing template.
As shown in fig. 6, the technical solution of the present invention further provides a device for testing data of hard disk performance indexes, further comprising:
the establishing module 103 is used for establishing a first corresponding relation between the test environment and the test template, and selecting the test template corresponding to the test environment of the current hard disk to be tested according to the first corresponding relation; establishing a second corresponding relation between the test environment and the performance index data comparison rule, and determining a plurality of performance index data comparison rules corresponding to the test environment of the current hard disk to be tested according to the second corresponding relation; and establishing a third corresponding relation between the performance index data comparison rule and the historical test data, and determining the historical test data corresponding to each performance index data comparison rule according to the third corresponding relation.
In the establishing module 103, the first corresponding relationship, the second corresponding relationship, and the third corresponding relationship may be pre-stored in a corresponding relationship database (the historical test database may be a part of the corresponding relationship database), and according to the current test environment of the hard disk to be tested, a test template corresponding to the test environment of the hard disk to be tested, a plurality of performance index data comparison rules corresponding to the test environment of the hard disk to be tested, and historical test data corresponding to each performance index data comparison rule are respectively determined in the corresponding relationship database.
The steps executed by the comparison module 102 specifically include: determining a plurality of corresponding performance index data comparison rules according to the test environment of the current hard disk to be tested, and acquiring a performance index data comparison rule with the highest priority in the plurality of performance index data comparison rules; if the performance index data comparison rule with the highest priority at present has corresponding historical test data, comparing the tested performance index data of the current hard disk to be tested with the historical test data corresponding to the performance index data comparison rule with the highest priority at present; if the performance index data comparison rule with the highest priority does not have corresponding historical test data, acquiring the performance index data comparison rule with the highest priority, judging whether the performance index data comparison rule with the highest priority has corresponding historical test data, and if so, comparing the tested performance index data of the current hard disk to be tested with the historical test data corresponding to the performance index data comparison rule with the highest priority; and if the comparison rule does not exist, acquiring the next highest-priority performance index data comparison rule again until the lowest-priority performance index data comparison rule.
In the comparison module 102, the performance index data comparison rule is used to describe historical test data corresponding to different combination of environmental parameters in each test environment, and priority information for comparing the historical test data with performance index data corresponding to the test environment of the current hard disk to be tested. That is, the performance index data comparison rule is that different specific test requirements are preferentially compared with historical test data matched with certain parameters, and the comparison priority criteria are different when the test environments (environmental parameters) are different. And setting the priority of the performance index data comparison rule according to the importance degree, the matching degree or special requirements, and queuing to sequentially retrieve the related data comparison. For example, a certain test of a certain set of environmental parameters is performed, after the performance index data is uploaded after the test is finished, a plurality of performance index data comparison rules corresponding to the current test environment are determined, historical test data (historical test data are classified and labeled according to the environmental parameters in advance) which are different from a certain environmental parameter (for example, the CPU model of the server where the hard disk to be tested is located) and the same item (namely, except the environmental parameter, other environmental parameters are the same) are compared automatically (the priority of the performance index data comparison rule 1 is the highest); if matched historical test data are retrieved and compared and then accord with the test standard, the test is judged to be passed, if the matched historical test data are not retrieved, the historical test data which are the same as two environmental parameters (such as the CPU model of the server where the hard disk to be tested is located and the firmware version of the hard disk to be tested) are automatically retrieved and compared (except the two environmental parameters which are different, other environmental parameters are the same) (the priority of the performance index data comparison rule 2 is high); if the matched historical test data is found and compared to meet the test standard, the test is judged to be passed, if the matched test data is not found, the historical test data which is different from the same item (namely, the historical test data is different from the three environmental parameters and the other environmental parameters are the same) of certain three environmental parameters (such as the CPU model of the server where the hard disk to be tested is located, the firmware version of the hard disk to be tested, and the brand, manufacturer, model and series of the hard disk to be tested) is automatically retrieved and compared. By analogy, different environmental parameters are sequentially changed according to the data comparison principle of specific performance indexes of different manufacturers to retrieve comparison data which can judge whether the test passes or not.
The method for classifying and labeling the historical test data according to the environmental parameters specifically comprises the following steps: classifying and labeling all historical test data according to different included environment parameters, namely classifying and labeling all historical test data according to different included environment parameter types to distinguish environment parameter types (such as a firmware version of a hard disk to be tested and a server type of the hard disk to be tested); then, classifying and labeling all historical test data again according to different parameter specific conditions under the same type of environmental parameters (for example, the type of a server where the hard disk to be tested is located is A, or the type of the server where the hard disk to be tested is located is B) so as to distinguish different parameter specific conditions under the same environmental parameters, thereby determining that each item of historical test data comprises different types of environmental parameters and different specific parameter conditions of the same type of environmental parameters.
Further, in the present application, the same test environment corresponds to multiple performance index data comparison rules, each performance index data comparison rule corresponds to one piece of historical test data, and the historical data test data corresponding to different performance index data comparison rules include different test environment parameters, for example, the current test environment of the hard disk to be tested includes an environment parameter a1, an environment parameter b1, and an environment parameter c1, and the historical data test data corresponding to the performance index data comparison rule 1 includes environment parameters (environmental parameters are classified and labeled in advance in the historical test database) which are an environment parameter a2, an environment parameter b1, and an environment parameter c1; the environmental parameters (classified labeling of the environmental parameters is performed in advance in a historical test database) included in the historical data test data corresponding to the performance index data comparison rule 2 are an environmental parameter a1, an environmental parameter b2 and an environmental parameter c1; the environmental parameters (environmental parameters are classified and labeled in advance in a historical test database) included in the historical data test data corresponding to the performance index data comparison rule 3 are environmental parameters a2 (different parameter conditions under the same environmental parameter type with the environmental parameters a1, such as a firmware version 1 of a hard disk to be tested and a firmware version 2 of the hard disk to be tested), environmental parameters b2 and environmental parameters c1; the environmental parameters (environmental parameters are classified and labeled in advance in the historical test database) included in the historical data test data corresponding to the performance index data comparison rule 4 are environmental parameters a1, environmental parameters b2, environmental parameters c2 and the like, and the environmental parameters (environmental parameters are classified and labeled in advance in the historical test database) included in the historical data test data corresponding to each performance index data comparison rule are any combination of the environmental parameters; the more the number of the environmental parameters in the historical data test data corresponding to the performance index data comparison rule is the same as the environmental parameters of the current test environment of the hard disk to be tested, the higher the matching degree is, and the higher the priority is; under the condition that the number of the environmental parameters in the historical data test data corresponding to the performance index data comparison rule is the same as that of the environmental parameters in the current test environment of the hard disk to be tested, the more important degree (self-definition support) of the different environmental parameters is, and the higher matching degree is.
The combination of different environmental parameters becomes a performance index data comparison rule. Different test environments and different tested components have different test results, and the test results are good and bad. Before comparison, the test environment composed of the above environmental parameters is artificially determined by a project or an engineer according to actual requirements, is fixed and unchangeable, but as a performance index data comparison rule, the combination may never occur; the environmental parameters in the historical test are combined into a known performance index data comparison rule, and in the comparison process, a single or a plurality of environmental parameters are changed to adapt to the existing performance index data comparison principle in the historical test data. Through the test that relates to hard disk performance index data contrast, look for this kind of hard disk at which project, which model, which kind of firmware version, which kind of framework, which kind of CPU, under the collocation of which kind of mainboard etc., performance or stability are higher. For example, there are a performance index data comparison rule 1 and a performance index data comparison rule 2, the difference between the two is only that the CPU in the server is different, the performance index data 1 corresponds to the CPU of type a, and the performance index data comparison rule 2 corresponds to the CPU of type B. The performance history test data result of the test under the CPU of the model A is unknown, the performance history test data result of the test under the CPU of the model B is known to be the best performance in all the existing test results, so that the related test is arranged to check whether the performance of the CPU of the model A is better than that of the CPU of the model B. If model a performs worse than model B, then is it associated with another environmental parameter? Assuming the comparison rule 3, the difference from the comparison rule 1 is that the CPU is also the model B, but the firmware version of the hard disk under test is the next newer version in the rule 1, so the relevant test is arranged to check whether the performance result of the hard disk under test is again related to the firmware version.
Specifically, the priority of the performance index data comparison rule corresponding to the historical test data having a high matching degree of the environmental parameters with the environmental parameters of the current test environment of the hard disk to be tested (the more the environmental parameters included in the historical data test data corresponding to the performance index data comparison rule are the same as the environmental parameters of the current test environment of the hard disk to be tested, or the more the importance degree of the different environmental parameters is high when the environmental parameters included in the historical data test data corresponding to the performance index data comparison rule are the same as the environmental parameters of the current test environment of the hard disk to be tested), is greater than the priority of the performance index data comparison rule corresponding to the performance index data having a low matching degree of the environmental parameters with the current test environment of the hard disk to be tested (the less the environmental parameters included in the historical data test data corresponding to the performance index data comparison rule are the same as the environmental parameters of the current test environment of the hard disk to be tested, or the less the importance degree of the different environmental parameters included in the historical data test data corresponding to the performance index data comparison rule are the same as the environmental parameters of the current test environment of the hard disk to be tested).
The beneficial effects of the hard disk performance index data testing apparatus in this embodiment are the same as those in the first method embodiment, and details are not described herein in this embodiment.
EXAMPLE III
As shown in fig. 7, the present invention further provides an electronic device, including: a memory 201 for storing a computer program; the processor 202 is configured to implement the steps of the hard disk performance index data testing method in the first embodiment when executing the computer program.
The memory 201 in the embodiments of the present application is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program for operating on an electronic device. It will be appreciated that the memory 201 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a magnetic random access Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), synchronous Static Random Access Memory (SSRAM), dynamic Random Access Memory (DRAM), synchronous Dynamic Random Access Memory (SDRAM), double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (ESDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), synchronous Dynamic Random Access Memory (SLDRAM), direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 201 described in embodiments herein is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed in the embodiments of the present application may be applied to the processor 202, or implemented by the processor 202. The processor 202 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by instructions in the form of hardware integrated logic circuits or software in the processor 202. The processor 202 may be a general-purpose processor, a DSP (Digital Signal Processing, i.e., a chip capable of implementing Digital Signal Processing), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. Processor 202 may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 201, and the processor 202 reads the program in the memory 201, and performs the steps of the foregoing method in combination with the hardware thereof. When the processor 202 executes the program, the corresponding processes in the methods according to the embodiments of the present application are realized, and for brevity, are not described herein again.
Example four
The technical scheme of the present invention further provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the hard disk performance index data testing method in the first embodiment are implemented.
For example, comprising a memory 201 storing a computer program executable by a processor 202 for performing the steps of the method as described above. The computer readable storage medium may be memory such as FRAM, ROM, PROM, EPROM, EEPROM, flashMemory, magnetic surface memory, optical disk, or CD-ROM.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code. Alternatively, the integrated unit described above may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
Although the embodiments of the present invention have been described with reference to the accompanying drawings, it is not intended to limit the scope of the present invention, and it should be understood by those skilled in the art that various modifications and variations can be made without inventive efforts by those skilled in the art based on the technical solution of the present invention.

Claims (10)

1. A method for testing hard disk performance index data is characterized by comprising the following steps:
acquiring a test environment of a current hard disk to be tested, and selecting a test template corresponding to the test environment of the current hard disk to be tested to perform performance test;
acquiring performance index data of a tested current hard disk to be tested, determining a plurality of corresponding performance index data comparison rules according to a test environment of the current hard disk to be tested, comparing the tested performance index data of the current hard disk to be tested with historical test data corresponding to the performance index data comparison rule with the highest priority, and outputting a comparison result; the performance index data comparison rule is used for describing historical test data corresponding to different environment parameter combinations in each test environment and priority information for comparing the historical test data with performance index data corresponding to the test environment of the current hard disk to be tested.
2. The method according to claim 1, wherein the environmental parameters include: the single environment parameter comprises a firmware version of the hard disk to be tested, a type of a server where the hard disk to be tested is located, a type of a server test platform where the hard disk to be tested is located, a mainboard model of the server where the hard disk to be tested is located, a CPU model of the server where the hard disk to be tested is located, and a speed of the hard disk to be tested.
3. The method of claim 2, wherein the environmental parameters further comprise: and combining environmental parameters, wherein the combined environmental parameters comprise the brand, manufacturer, model and series of the hard disk to be tested, and the capacity and specification of the hard disk to be tested.
4. The method according to claim 1, further comprising, before obtaining a test environment of the current hard disk to be tested:
establishing a first corresponding relation between the test environment and the test template, and selecting the test template corresponding to the test environment of the current hard disk to be tested according to the first corresponding relation;
establishing a second corresponding relation between the test environment and the performance index data comparison rules, and determining a plurality of performance index data comparison rules corresponding to the test environment of the current hard disk to be tested according to the second corresponding relation;
and establishing a third corresponding relation between the performance index data comparison rule and the historical test data, and determining the historical test data corresponding to each performance index data comparison rule according to the third corresponding relation.
5. The method according to claim 1, wherein a plurality of corresponding performance index data comparison rules are determined according to a test environment of the current hard disk to be tested, and the tested performance index data of the current hard disk to be tested is compared with historical test data corresponding to the performance index data comparison rule with the highest priority, specifically:
determining a plurality of corresponding performance index data comparison rules according to the test environment of the current hard disk to be tested, and acquiring a performance index data comparison rule with the highest priority in the plurality of performance index data comparison rules;
if the performance index data comparison rule with the highest priority at present has corresponding historical test data, comparing the tested performance index data of the current hard disk to be tested with the historical test data corresponding to the performance index data comparison rule with the highest priority at present;
if the performance index data comparison rule with the highest priority does not have corresponding historical test data, acquiring the performance index data comparison rule with the highest priority, judging whether the performance index data comparison rule with the highest priority has corresponding historical test data, and if so, comparing the tested performance index data of the current hard disk to be tested with the historical test data corresponding to the performance index data comparison rule with the highest priority; if the comparison rule does not exist, the next performance index data comparison rule with the highest priority is obtained again until the performance index data comparison rule with the lowest priority.
6. The method according to claim 5, wherein the priority of the performance index data comparison rule corresponding to the environmental parameter with high matching degree with the environmental parameter of the current hard disk test environment in the historical test data is higher than the priority of the performance index data comparison rule corresponding to the environmental parameter with low matching degree with the environmental parameter of the current hard disk test environment in the historical test data.
7. The method of claim 6, wherein all historical test data are classified and labeled according to different environmental parameters.
8. A hard disk performance index data testing device is characterized by comprising:
the test module is used for acquiring the test environment of the current hard disk to be tested and selecting the test template corresponding to the test environment of the current hard disk to be tested to carry out performance test;
the comparison module is used for acquiring the performance index data of the tested current hard disk to be tested, determining a plurality of corresponding performance index data comparison rules according to the test environment of the current hard disk to be tested, sequentially comparing the performance index data of the tested current hard disk to be tested with the historical test data corresponding to each performance index data comparison rule respectively, and outputting a comparison result; the performance index data comparison rule is used for describing historical test data corresponding to different combined environment parameters in each test environment and priority information for comparing the historical test data with performance index data corresponding to the test environment of the current hard disk to be tested.
9. An electronic device, comprising: a memory for storing a computer program; a processor for implementing the steps of a method for testing hard disk performance index data according to any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of a method for testing hard disk performance indicator data according to any one of claims 1 to 7.
CN202211579847.0A 2022-12-09 2022-12-09 Hard disk performance index data testing method, device, equipment and medium Pending CN115904906A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211579847.0A CN115904906A (en) 2022-12-09 2022-12-09 Hard disk performance index data testing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211579847.0A CN115904906A (en) 2022-12-09 2022-12-09 Hard disk performance index data testing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115904906A true CN115904906A (en) 2023-04-04

Family

ID=86489537

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211579847.0A Pending CN115904906A (en) 2022-12-09 2022-12-09 Hard disk performance index data testing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115904906A (en)

Similar Documents

Publication Publication Date Title
JP2015507303A (en) Code coverage rate determination method and system
CN115686961A (en) Processor testing method and device and electronic equipment
CN112685275A (en) Algorithm strategy searching method and device, electronic equipment and storage medium
CN112269697B (en) Equipment storage performance testing method, system and related device
CN112560372B (en) Chip prototype verification method, device, equipment and medium
CN117234859A (en) Performance event monitoring method, device, equipment and storage medium
CN112731117A (en) Automatic verification method and system for chip, and storage medium
CN115904906A (en) Hard disk performance index data testing method, device, equipment and medium
CN116467975A (en) Data processing method, device, electronic equipment and storage medium
CN114816772B (en) Debugging method, debugging system and computing device for application running based on compatible layer
CN114355171B (en) Reconfigurable chip performance bottleneck detection platform, detection method and electronic equipment
CN112131061B (en) Method and device for measuring bandwidth of hard disk backplane
CN112380127B (en) Test case regression method, device, equipment and storage medium
CN114168456A (en) Front-end performance automatic testing method based on 3D-GIS
CN113076237B (en) Memory performance testing method and system and computer readable storage medium
CN117472697B (en) Cluster monitoring method and device, electronic equipment and storage medium
US11461219B2 (en) Prioritizing software bug mitigation for software on multiple systems
CN113744789B (en) Method, system, equipment and medium for testing SSD stability in research and development stage
CN117008972B (en) Instruction analysis method, device, computing equipment and storage medium
CN112463818B (en) Method, medium, equipment and system for inquiring information of storage bottom layer
CN116910531A (en) Model training and fault detection method and device, electronic equipment and storage medium
CN117741391A (en) ATE test engineering conversion method and device, ATE test equipment and storage medium
CN116303058A (en) Test environment checking method, system, electronic equipment and medium
CN114880216A (en) Test method, test device, computing equipment and storage medium
CN117312285A (en) Method, device, system and storage medium for verifying data processing quality

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination