CN118098322A - Method, device, equipment and medium for testing rotation vibration of hard disk - Google Patents
Method, device, equipment and medium for testing rotation vibration of hard disk Download PDFInfo
- Publication number
- CN118098322A CN118098322A CN202211502834.3A CN202211502834A CN118098322A CN 118098322 A CN118098322 A CN 118098322A CN 202211502834 A CN202211502834 A CN 202211502834A CN 118098322 A CN118098322 A CN 118098322A
- Authority
- CN
- China
- Prior art keywords
- target
- hard disk
- tested
- scene
- vibration 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 418
- 238000000034 method Methods 0.000 title claims abstract description 67
- 230000000007 visual effect Effects 0.000 claims description 20
- 230000002159 abnormal effect Effects 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 17
- 238000010998 test method Methods 0.000 claims description 2
- 230000008569 process Effects 0.000 description 19
- 238000004891 communication Methods 0.000 description 10
- 230000003993 interaction Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000017525 heat dissipation Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C29/00—Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
- G11C29/04—Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
- G11C29/08—Functional testing, e.g. testing during refresh, power-on self testing [POST] or distributed testing
- G11C29/12—Built-in arrangements for testing, e.g. built-in self testing [BIST] or interconnection details
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C29/00—Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
- G11C29/04—Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
- G11C29/08—Functional testing, e.g. testing during refresh, power-on self testing [POST] or distributed testing
- G11C29/10—Test algorithms, e.g. memory scan [MScan] algorithms; Test patterns, e.g. checkerboard patterns
Landscapes
- Testing Of Devices, Machine Parts, Or Other Structures Thereof (AREA)
Abstract
The invention discloses a method, a device, equipment and a medium for testing rotation vibration of a hard disk. The method comprises the following steps: determining a target hard disk to be tested selected by a target user through a test configuration page, determining at least two target rotational vibration test scenes selected by the target user, and obtaining a corresponding scene sequence; configuring a target hard disk to be tested according to the hard disk configuration script; according to the scene sequence corresponding to each target rotational vibration test scene, sequentially controlling the target hard disk to be tested and the fan corresponding to the target hard disk to be tested to perform rotational vibration test according to the scene parameters of each target rotational vibration test scene, and obtaining the read-write performance data of the target hard disk to be tested in each target rotational vibration test scene. According to the embodiment of the invention, the hard disk and the fan corresponding to the hard disk can be automatically controlled to perform the rotary vibration test according to the scene parameters of a plurality of rotary vibration test scenes designated by the user, so that the test efficiency is improved.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for testing rotational vibration of a hard disk.
Background
The heat dissipation of the server mainly depends on a fan arranged in the server. When the load of the server is high, the rotating speed of the fan is increased so as to avoid abnormal shutdown of the server caused by overheat. When the fan is operated, the rotation vibration of the fan can be transmitted to a hard disk in the server through the chassis. When the hard disk in the server is read and written, the hard disk is easily affected by the rotation vibration of the fan to generate an unstable state, and the read and write performance is reduced. In order to take proper measures to reduce the influence caused by the rotation vibration of the fan, the rotation vibration test is required to be carried out on the hard disk in the server, the read-write performance data of the hard disk under different fan rotation speeds and read-write operations are obtained, and the influence of the rotation vibration of the fan on the read-write performance of the hard disk is evaluated.
In the related art, a common hard disk rotational vibration test scheme is as follows: the testing personnel configures the hard disk and the fan of the server, controls the fan to operate according to different fan rotating speeds by using the testing tool, and performs corresponding read-write operation on the hard disk to obtain the read-write performance data of the hard disk under different fan rotating speeds and read-write operation. The hard disk rotation vibration testing scheme in the related technology needs the testers to repeatedly conduct manual operation, and is high in labor cost and time cost and low in testing efficiency.
Disclosure of Invention
The invention provides a method, a device, equipment and a medium for testing the rotation vibration of a hard disk, which are used for solving the problems that a tester needs to repeatedly perform manual operation in the scheme for testing the rotation vibration of the hard disk in the related technology, the labor cost and the time cost are high, and the testing efficiency is low.
According to an aspect of the present invention, there is provided a hard disk rotational vibration testing method, including:
Providing identification information and selection controls of a plurality of hard disks to be tested to a target user through a test configuration page, and determining a target hard disk to be tested selected by the target user;
Providing identification information and selection controls of a plurality of rotary vibration test scenes to the target user through the test configuration page, determining at least two target rotary vibration test scenes which are selected by the target user and correspond to the target hard disk to be tested, and obtaining scene sequences corresponding to the target rotary vibration test scenes;
Configuring the target hard disk to be tested through a hard disk configuration script;
According to the scene sequence corresponding to each target rotational vibration test scene, sequentially controlling the target hard disk to be tested and a fan corresponding to the target hard disk to be tested to perform rotational vibration test according to the scene parameters of each target rotational vibration test scene, and obtaining the read-write performance data of the target hard disk to be tested in each target rotational vibration test scene.
According to the technical scheme, the test configuration page is interacted with the target user, a plurality of target rotational vibration test scenes corresponding to the hard disk are determined, the hard disk is automatically configured based on the hard disk configuration script, then the hard disk and the fan corresponding to the hard disk are controlled to perform rotational vibration test according to scene parameters of each target rotational vibration test scene, read-write performance data of the hard disk under a plurality of different fan rotating speeds and read-write operations are obtained, labor cost and time cost of the rotational vibration test are reduced, and test efficiency is improved.
Optionally, before the identification information and the selection control of the plurality of hard disks to be tested are provided to the target user through the test configuration page, and the target hard disk to be tested selected by the target user is determined, the method further includes:
Acquiring a hard disk configuration script uploaded by a target user, identification information of at least two rotary vibration test scenes and scene parameters; wherein the scene parameters include: fan speed and read/write operation type;
and storing the hard disk configuration script, the identification information of each rotary vibration test scene and scene parameters to a preset storage position.
According to the technical scheme, the hard disk configuration script and the identification information and the scene parameters of the plurality of rotary vibration test scenes can be obtained, the hard disk can be conveniently and automatically configured based on the hard disk configuration script, the plurality of target rotary vibration test scenes corresponding to the hard disk are determined based on interaction between the identification information and the scene parameters of the plurality of rotary vibration test scenes and a target user, then the hard disk and fans corresponding to the hard disk are automatically controlled to perform rotary vibration test according to the scene parameters of each target rotary vibration test scene, and the read-write performance data of the hard disk under a plurality of different fan speeds and read-write operations are obtained.
Optionally, according to a scene sequence corresponding to each target rotational vibration test scene, sequentially controlling the target to-be-tested hard disk and a fan corresponding to the target to-be-tested hard disk to perform rotational vibration test according to scene parameters of each target rotational vibration test scene, and obtaining read-write performance data of the target to-be-tested hard disk in each target rotational vibration test scene, including:
according to the scene sequence corresponding to each target rotational vibration test scene, the following operations are sequentially executed for each target rotational vibration test scene:
Controlling a fan corresponding to the target hard disk to be tested to run at the fan rotating speed of a target rotating vibration test scene;
performing read-write operation on the target hard disk to be tested according to the read-write operation type of the target rotary vibration test scene;
and acquiring the read-write performance data of the target hard disk to be tested in the target rotational vibration test scene.
According to the technical scheme provided by the embodiment of the invention, the hard disk and the fan corresponding to the hard disk can be automatically controlled to perform the rotary vibration test according to the scene parameters of each target rotary vibration test scene designated by a target user, and the read-write performance data of the hard disk under a plurality of different fan rotating speeds and read-write operations can be obtained.
Optionally, after obtaining the read-write performance data of the target to-be-tested hard disk under the target rotational vibration test scene, the method further includes:
And providing the read-write performance data of the target hard disk to be tested in the target rotating vibration test scene for the target user through the test configuration page.
According to the technical scheme provided by the embodiment of the invention, the read-write performance data of the hard disk under the condition of a plurality of different fan speeds and read-write operations, which are obtained in the rotational vibration test process, can be provided for the target user in real time through the test configuration page, so that the target user can observe the read-write performance data of the hard disk in the rotational vibration test process of the hard disk.
Optionally, the method further comprises:
according to a preset time interval, the working state of the target hard disk to be tested is obtained at fixed time;
and controlling the state indicator lamp of the target hard disk to be tested to be turned on or turned off according to the working state of the target hard disk to be tested.
According to the technical scheme, the working state of the hard disk can be provided for the target user in real time through the state indicator lamp of the hard disk, so that the target user can observe the working state of the hard disk in the process of testing the rotation vibration of the hard disk.
Optionally, after the working state of the target hard disk to be tested is obtained at regular time according to a preset time interval, the method further includes:
and if the working state of the target hard disk to be detected is detected to be an abnormal state, providing preset abnormal prompt information for the target user.
According to the technical scheme, when the target hard disk to be tested fails and cannot work normally, the preset abnormal prompt information can be provided for the target user in time, so that the target user can process the failure problem in the hard disk rotation vibration testing process in time.
Optionally, after obtaining the read-write performance data of the target to-be-tested hard disk under each target rotational vibration test scene, the method further includes:
Generating a visual chart corresponding to the read-write performance data of the target hard disk to be tested in each target rotary vibration test scene;
And providing the visual chart to the target user through the test configuration page.
According to the technical scheme provided by the embodiment of the invention, the read-write performance data of the hard disk under a plurality of different fan speeds and read-write operations can be intuitively provided for a target user through the visual chart.
According to another aspect of the present invention, there is provided a hard disk rotational vibration testing apparatus comprising:
the hard disk determining module is used for providing the identification information and the selection control of the plurality of hard disks to be tested for the target user through the test configuration page and determining the target hard disk to be tested selected by the target user;
The scene determining module is used for providing the identification information and the selection control of a plurality of rotary vibration test scenes for the target user through the test configuration page, determining at least two target rotary vibration test scenes which are selected by the target user and correspond to the target hard disk to be tested, and acquiring scene sequences corresponding to the target rotary vibration test scenes;
The hard disk configuration module is used for configuring the target hard disk to be tested through a hard disk configuration script;
The hard disk testing module is used for controlling the target hard disk to be tested and the fan corresponding to the target hard disk to be tested to perform rotary vibration testing according to the scene sequence corresponding to each target rotary vibration testing scene in sequence and according to the scene parameters of each target rotary vibration testing scene, and acquiring the read-write performance data of the target hard disk to be tested in each target rotary vibration testing scene.
According to another aspect of the present invention, there is provided an electronic apparatus including:
At least one processor;
And a memory communicatively coupled to the at least one processor;
The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor can execute the method for testing the rotational vibration of the hard disk according to any embodiment of the invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a method for testing rotational vibration of a hard disk according to any one of the embodiments of the present invention.
According to the technical scheme, through the test configuration page, identification information and selection controls of a plurality of hard disks to be tested are provided for a target user, and the target hard disk to be tested selected by the target user is determined; then, through a test configuration page, identification information and selection controls of a plurality of rotary vibration test scenes are provided for a target user, at least two target rotary vibration test scenes which are selected by the target user and correspond to the target hard disk to be tested are determined, and scene sequences corresponding to the target rotary vibration test scenes are obtained; configuring a target hard disk to be tested through a hard disk configuration script; finally, according to the scene sequence corresponding to each target rotational vibration test scene, the target hard disk to be tested and the fan corresponding to the target hard disk to be tested are controlled to perform rotational vibration test according to the scene parameters of each target rotational vibration test scene in sequence, the read-write performance data of the target hard disk to be tested under each target rotational vibration test scene is obtained, the problems that a tester needs to repeatedly perform manual operation in a related technical hard disk rotational vibration test scheme, the labor cost and the time cost are high, the test efficiency is low are solved, interaction between a configuration page and a target user is achieved, a plurality of target rotational vibration test scenes corresponding to the hard disk are determined, the hard disk is automatically configured based on the hard disk configuration script, then the hard disk and the fan corresponding to the hard disk are controlled to perform rotational vibration test according to the scene parameters of each target rotational vibration test scene, and the read-write performance data of the hard disk under a plurality of different fan speeds and read-write operations are obtained, the labor cost and the time cost of the rotational vibration test are reduced, and the test efficiency is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for testing rotational vibration of a hard disk according to an embodiment of the present invention.
Fig. 2 is a flowchart of a method for testing rotational vibration of a hard disk according to a second embodiment of the present invention.
Fig. 3 is a flowchart of a method for testing rotational vibration of a hard disk according to a third embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a device for testing rotational vibration of a hard disk according to a fourth embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an electronic device for implementing a method for testing rotational vibration of a hard disk according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "object," "first," "second," and the like in the description and the claims of the present invention and the above drawings are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a method for testing rotational vibration of a hard disk according to an embodiment of the present invention. The method can be applied to the rotation vibration test of the hard disk in the server, the read-write performance data of the hard disk under different rotation vibration test scenes is obtained, the condition that the rotation vibration of the fan affects the read-write performance of the hard disk is convenient to evaluate, the method can be executed by a hard disk rotation vibration test device, the hard disk rotation vibration test device can be realized in a hardware and/or software mode, and the hard disk rotation vibration test device can be configured in electronic equipment. As shown in fig. 1, the method includes:
And 101, providing identification information and selection controls of a plurality of hard disks to be tested for a target user through a test configuration page, and determining a target hard disk to be tested selected by the target user.
Optionally, the plurality of hard disks to be tested are at least two hard disks that need to be subjected to a rotational vibration test. The fan corresponding to the hard disk to be tested is a fan arranged in the server where the hard disk to be tested is located. The electronic equipment establishes communication connection with each hard disk to be tested and the fans corresponding to the hard disks to be tested respectively, and information interaction can be carried out based on the established communication connection. The target hard disk to be tested is at least one hard disk to be tested, which is designated by the target user and is used for carrying out the rotational vibration test at the current moment. The target user may be a tester.
Optionally, the test configuration page is a page set in the electronic device and used for interacting with the target user, and acquiring information related to the hard disk rotational vibration test input by the user or providing information related to the hard disk rotational vibration test for the target user.
Optionally, the identifying information and the selection control of the plurality of hard disks to be tested are provided to the target user through the test configuration page, and the target hard disk to be tested selected by the target user is determined, which comprises: displaying identification information and selection controls of a plurality of hard disks to be tested on a test configuration page; and when the clicking operation of the target user on the first selection control is detected, determining the hard disk to be tested, which the first selection control belongs to, as the target hard disk to be tested selected by the target user.
Optionally, the identification information of the hard disk to be tested is information for uniquely identifying the hard disk to be tested. The identification information of the hard disk to be tested can be the name or the number of the hard disk to be tested. The selection control of the hard disk to be tested is a control for inputting the selection operation of the hard disk to be tested for the hard disk to be tested.
Optionally, the target user may browse the identification information and the selection control of each hard disk to be tested displayed on the test configuration page, and click the selection control of at least one hard disk to be tested for the rotational vibration test at the current moment. The first selection control is one or more selection controls clicked by the target user in the selection controls of the hard disk to be tested, which are displayed on the test configuration page. When the electronic equipment detects that the target user clicks the first selection control, the electronic equipment can determine that the target user selects the hard disk to be tested to which the first selection control belongs to perform the rotational vibration test at the current moment, and then the hard disk to be tested to which the first selection control belongs is determined to be the target hard disk to be tested selected by the target user.
Step 102, providing identification information and selection controls of a plurality of rotary vibration test scenes to the target user through the test configuration page, determining at least two target rotary vibration test scenes which are selected by the target user and correspond to the target hard disk to be tested, and obtaining scene sequences corresponding to the target rotary vibration test scenes.
Optionally, the rotational vibration test scene is a test scene for controlling a fan corresponding to the hard disk to run at a specified fan speed, and performing specified read-write operation on the hard disk in the process that the fan runs at the specified fan speed, thereby performing rotational vibration test on the hard disk. The fan speed and/or read/write operations in different rotational vibration test scenarios are not the same. At least two target rotational vibration test scenes corresponding to the target hard disk to be tested are test scenes for performing rotational vibration test on the target hard disk to be tested. And the read-write performance data of the target to-be-tested hard disk under different rotational vibration test scenes is the read-write performance data of the target to-be-tested hard disk under different fan speeds and read-write operations.
Optionally, the identification information and the selection control of the multiple rotational vibration test scenes are provided to the target user through the test configuration page, at least two target rotational vibration test scenes corresponding to the target to-be-tested hard disk selected by the target user are determined, and a scene sequence corresponding to each target rotational vibration test scene is obtained, including: displaying identification information of a plurality of rotary vibration test scenes and a selection control on a test configuration page; when the clicking operation of the target user on the second selection control is detected, determining the rotational vibration test scene to which the second selection control belongs as at least two target rotational vibration test scenes which are selected by the target user and correspond to the target hard disk to be tested; and acquiring a scene sequence corresponding to each target rotational vibration test scene input by the target user through a test configuration page.
Optionally, the identification information of the rotational vibration test scene is information for uniquely identifying the rotational vibration test scene. The identification information of the rotational vibration test scene may be a name or a numerical number of the rotational vibration test scene. The selection control of the rotational vibration test scene is a control for inputting a rotational vibration test scene selection operation for the rotational vibration test scene.
Optionally, the target user may browse the identification information and the selection control of each rotational vibration test scene displayed on the test configuration page. The second selection control is at least two selection controls clicked by the target user in the selection controls of each rotational vibration test scene displayed on the test configuration page. When the electronic equipment detects that the target user clicks the second selection control, the electronic equipment can determine that the target user selects the rotational vibration test scene to which the second selection control belongs as at least two target rotational vibration test scenes corresponding to the target hard disk to be tested, and then determine the hard disk to be tested to which the second selection control belongs as at least two target rotational vibration test scenes corresponding to the target hard disk to be tested.
Optionally, the scene sequence corresponding to each of the target rotational vibration test scenes is a sequence among the target rotational vibration test scenes. And the target user inputs a scene sequence corresponding to each target rotary vibration test scene in a sequence input area of the test configuration page. The sequence input area is a page area in the test configuration page for inputting a scene sequence corresponding to each of the target rotational vibration test scenes.
In one embodiment, each target rotational vibration test scenario corresponding to the target hard disk to be tested includes: the first, second and third rotational vibration test scenarios. The scene sequence corresponding to the first rotary vibration test scene is first, the scene sequence corresponding to the second rotary vibration test scene is second, and the scene sequence corresponding to the third rotary vibration test scene is third. The above scene sequence corresponding to each target rotational vibration test scene is used for characterizing the rotational vibration test flow of the target to-be-tested hard disk specified by the target user, and is as follows: firstly, according to scene parameters of a first rotary vibration test scene, controlling the target to-be-tested hard disk and a fan corresponding to the target to-be-tested hard disk to perform rotary vibration test, and obtaining read-write performance data of the target to-be-tested hard disk in the first rotary vibration test scene; then, according to scene parameters of a second rotary vibration test scene, controlling the target hard disk to be tested and a fan corresponding to the target hard disk to be tested to perform rotary vibration test, and obtaining read-write performance data of the target hard disk to be tested in the second rotary vibration test scene; and finally, according to the scene parameters of the third rotary vibration test scene, controlling the target hard disk to be tested and a fan corresponding to the target hard disk to be tested to perform rotary vibration test, and obtaining the read-write performance data of the target hard disk to be tested in the third rotary vibration test scene.
And 103, configuring the target hard disk to be tested through a hard disk configuration script.
Optionally, the hard disk configuration script is a script for updating a parameter value of a parameter to be configured of the hard disk from a current parameter value to a target parameter value. The parameters to be configured are the hard disk parameters to be configured in the hard disk for performing the rotational vibration test. Parameters to be configured include, but are not limited to, hard disk state, hard disk attributes, and queue depth. The target parameter value of the parameter to be configured is a parameter value of the parameter to be configured that meets the rotational vibration test requirement. The current parameter value is the parameter value of the parameter to be configured at the current moment. And controlling the target hard disk to be tested and a fan corresponding to the target hard disk to be tested to perform rotary vibration test according to the scene sequence corresponding to each target rotary vibration test scene in sequence according to the scene parameters of each target rotary vibration test scene, and updating the parameter value of the to-be-configured parameter of the target hard disk to be tested from the current parameter value to the target parameter value of the to-be-configured parameter before obtaining the read-write performance data of the target hard disk to be tested in each target rotary vibration test scene.
Optionally, configuring the target hard disk to be tested through a hard disk configuration script includes: and calling a hard disk configuration script, and sending a parameter configuration instruction to the target hard disk to be tested through the hard disk configuration script, so that the target hard disk to be tested updates the parameter value of the parameter to be configured of the target hard disk to be tested from the current parameter value to the target parameter value of the parameter to be configured according to the parameter configuration instruction. The parameter configuration instruction is an instruction for instructing the hard disk to update a parameter value of a parameter to be configured of the hard disk from a current parameter value to a target parameter value of the parameter to be configured.
In one embodiment, the parameters to be configured include hard disk state, hard disk attributes, and queue depth. Optional parameter values for the hard disk state include an online state and an offline state. The target parameter value of the hard disk state is the on-line state. Optional parameter values for the hard disk attributes include readable and writable, read-only and write-nothing, and inhibit reading and writing. The target parameter value of the hard disk attribute is readable and writable. The target parameter value for the queue depth is 8. The electronic equipment calls a hard disk configuration script, and sends a parameter configuration instruction to the target hard disk to be tested through the hard disk configuration script, so that the target hard disk to be tested updates a parameter value of a hard disk state of the target hard disk to be tested from a current parameter value to an on-line state according to the parameter configuration instruction, updates a parameter value of a hard disk attribute of the target hard disk to be tested from the current parameter value to be readable and writable, and updates a parameter value of a queue depth of the target hard disk to be tested from the current parameter value to be 8.
Optionally, before the identification information and the selection control of the plurality of hard disks to be tested are provided to the target user through the test configuration page, and the target hard disk to be tested selected by the target user is determined, the method further includes: acquiring a hard disk configuration script uploaded by a target user, identification information of at least two rotary vibration test scenes and scene parameters; wherein the scene parameters include: fan speed and read/write operation type; and storing the hard disk configuration script, the identification information of each rotary vibration test scene and scene parameters to a preset storage position.
Therefore, the hard disk configuration script and the identification information and scene parameters of a plurality of rotary vibration test scenes can be acquired, the hard disk is conveniently and automatically configured based on the hard disk configuration script, a plurality of target rotary vibration test scenes corresponding to the hard disk are determined based on interaction between the identification information and scene parameters of the plurality of rotary vibration test scenes and a target user, then the hard disk and a fan corresponding to the hard disk are automatically controlled to perform rotary vibration test according to the scene parameters of each target rotary vibration test scene, and the read-write performance data of the hard disk under a plurality of different fan speeds and read-write operations are acquired.
Optionally, the target user uses the terminal device to upload the hard disk configuration script, and identification information and scene parameters of the plurality of rotational vibration test scenes to the electronic device. The method comprises the steps that electronic equipment obtains a hard disk configuration script uploaded by a target user, and identification information and scene parameters of a plurality of rotary vibration test scenes, and then the hard disk configuration script, the identification information and the scene parameters of each rotary vibration test scene are stored in a preset storage position. The preset storage position is a storage position in the electronic device for storing the hard disk configuration script, and identification information and scene parameters of each rotational vibration test scene.
Optionally, the rotational vibration test scene is a test scene for controlling a fan corresponding to the hard disk to run at a specified fan speed, and performing specified read-write operation on the hard disk in the process that the fan runs at the specified fan speed, thereby performing rotational vibration test on the hard disk. The scene parameters of the rotational vibration test scene are parameters associated with the fan running process and read-write operations in the rotational vibration test scene. The fan speed and/or the read/write operation in different rotational vibration test scenarios are different, and thus the fan speed and/or the read/write operation type of different rotational vibration test scenarios are different.
Optionally, the scene parameters include: fan speed and type of read and write operation. The fan rotation speed of the rotational vibration test scene is the rotation speed required to be kept when the fan corresponding to the hard disk runs in the rotational vibration test scene. The read-write operation type of the rotary vibration test scene is the type of the read-write operation required to be performed on the hard disk under the rotary vibration test scene.
In one specific example, the fan speed for each rotational vibration test scenario may be 50% of the fan maximum speed, 60% of the fan maximum speed, 70% of the fan maximum speed, 80% of the fan maximum speed, 90% of the fan maximum speed, or 100% of the fan maximum speed. The read-write operation type of each rotary vibration test scene can be that a first data block in a hard disk is continuously read, a second data block is continuously written into the hard disk, a third data block in the hard disk is randomly read, and a fourth data block is randomly written into the hard disk. Illustratively, the first data block and the second data block are 1M data blocks, and the third data block and the fourth data block are 4k data blocks.
And 104, controlling the target hard disk to be tested and a fan corresponding to the target hard disk to be tested to perform rotary vibration test according to the scene sequence corresponding to each target rotary vibration test scene in sequence according to the scene parameters of each target rotary vibration test scene, and obtaining the read-write performance data of the target hard disk to be tested in each target rotary vibration test scene.
Optionally, according to a scene sequence corresponding to each target rotational vibration test scene, sequentially controlling the target to-be-tested hard disk and a fan corresponding to the target to-be-tested hard disk to perform rotational vibration test according to scene parameters of each target rotational vibration test scene, and obtaining read-write performance data of the target to-be-tested hard disk in each target rotational vibration test scene, including: according to the scene sequence corresponding to each target rotational vibration test scene, the following operations are sequentially executed for each target rotational vibration test scene: controlling a fan corresponding to the target hard disk to be tested to run at the fan rotating speed of a target rotating vibration test scene; performing read-write operation on the target hard disk to be tested according to the read-write operation type of the target rotary vibration test scene; and acquiring the read-write performance data of the target hard disk to be tested in the target rotational vibration test scene.
Therefore, according to the scene parameters of each target rotational vibration test scene designated by the target user, the hard disk and the fan corresponding to the hard disk are automatically controlled to perform rotational vibration test, and the read-write performance data of the hard disk under a plurality of different fan speeds and read-write operations are obtained.
Optionally, controlling the fan corresponding to the target hard disk to be tested to run at the fan rotation speed of the target rotational vibration test scene includes: and sending an operation instruction to a fan corresponding to the target hard disk to be tested, so that the fan operates at the fan rotating speed of the target rotary vibration test scene according to the operation instruction. The operation instruction is used for indicating the fan to operate at the fan rotating speed of the target rotary vibration test scene.
Optionally, according to the read-write operation type of the target rotational vibration test scene, performing read-write operation on the target hard disk to be tested includes: if the read-write operation type of the target rotational vibration test scene is that the first data block in the hard disk is continuously read, the first data block in the target hard disk to be tested is continuously read; if the read-write operation type of the target rotational vibration test scene is that the second data block is continuously written into the hard disk, the second data block is continuously written into the target hard disk to be tested; if the read-write operation type of the target rotational vibration test scene is that the third data block in the hard disk is read randomly, the third data block in the target hard disk to be tested is read randomly; and if the read-write operation type of the target rotational vibration test scene is that the fourth data block is randomly written into the hard disk, randomly writing the fourth data block into the target hard disk to be tested.
Optionally, the read-write performance data is a hard disk read-write speed; the method for acquiring the read-write performance data of the target to-be-detected hard disk in the target rotational vibration test scene comprises the following steps: after the read-write operation is finished, sending an operation stopping instruction to a fan corresponding to the target hard disk to be tested, so that the fan stops operating according to the operation stopping instruction; according to the operation duration and the data volume of the read-write operation, calculating the hard disk read-write speed of the target hard disk to be tested; and determining the read-write speed of the hard disk as read-write performance data of the target hard disk to be tested in the target rotating vibration test scene. The operation stop instruction is used for indicating the fan to stop operation. The operation duration of the read-write operation is a duration from the start of the read-write operation to the completion of the read-write operation. The data size of a read/write operation is the size of the data block read or written by the read/write operation. The hard disk read-write speed of the target hard disk to be tested is the ratio of the data volume of read-write operation to the operation duration of the read-write operation.
Optionally, after obtaining the read-write performance data of the target to-be-tested hard disk in the target rotational vibration test scene, if the target rotational vibration test scene is not the last target rotational vibration test scene, continuing to control the target to-be-tested hard disk and a fan corresponding to the target to-be-tested hard disk to perform rotational vibration test according to the scene parameters of the next target rotational vibration test scene, and obtaining the read-write performance data of the target to-be-tested hard disk in the next target rotational vibration test scene; and if the target rotational vibration test scene is the last target rotational vibration test scene, determining that the rotational vibration test process of the target hard disk to be tested is finished.
Optionally, after obtaining the read-write performance data of the target to-be-tested hard disk under the target rotational vibration test scene, the method further includes: and providing the read-write performance data of the target hard disk to be tested in the target rotating vibration test scene for the target user through the test configuration page. And displaying the read-write performance data of the target hard disk to be tested in the target rotary vibration test scene in a data display area in the test configuration page. The data display area is a page area in the test configuration page for displaying read-write performance data of the target hard disk to be tested.
Therefore, through the test configuration page, the read-write performance data of the hard disk obtained in the rotational vibration test process under the conditions of different fan speeds and read-write operations are provided for the target user in real time, so that the target user can observe the read-write performance data of the hard disk in the rotational vibration test process of the hard disk.
Optionally, the method further comprises: according to a preset time interval, the working state of the target hard disk to be tested is obtained at fixed time; and controlling the state indicator lamp of the target hard disk to be tested to be turned on or turned off according to the working state of the target hard disk to be tested.
Therefore, the working state of the hard disk is provided for the target user in real time through the state indicator lamp of the hard disk, so that the target user can observe the working state of the hard disk in the process of testing the rotation vibration of the hard disk.
Optionally, the preset time interval may be set according to service requirements. The preset time interval is, for example, 1 second. The working state of the target hard disk to be tested is information which is arranged in the target hard disk to be tested and used for indicating whether the target hard disk to be tested works normally or not. The working state of the target hard disk to be tested is a normal state or an abnormal state. The working state of the target hard disk to be tested is a normal state, which indicates that the target hard disk to be tested works normally. The working state of the target hard disk to be tested is an abnormal state, which indicates that the target hard disk to be tested fails and cannot work normally. The state indicator lamp of the target hard disk to be tested is an indicator lamp for indicating the working state of the target hard disk to be tested. And the state indicator lamp of the target hard disk to be tested is started when the working state of the target hard disk to be tested is a normal state, and is closed when the working state of the target hard disk to be tested is an abnormal state.
Optionally, the step of periodically obtaining the working state of the target hard disk to be tested according to a preset time interval includes: and according to a preset time interval, the working state of the target hard disk to be detected is read from the target hard disk to be detected at regular time.
Optionally, according to the working state of the target to-be-detected hard disk, the method for controlling the status indicator lamp of the target to-be-detected hard disk to be turned on or off includes: if the working state of the target hard disk to be tested is a normal state, controlling a state indicator lamp of the target hard disk to be tested to be started; and if the working state of the target hard disk to be detected is an abnormal state, controlling a state indicator lamp of the target hard disk to be detected to be turned off.
Optionally, after the working state of the target hard disk to be tested is obtained at regular time according to a preset time interval, the method further includes: and if the working state of the target hard disk to be detected is detected to be an abnormal state, providing preset abnormal prompt information for the target user. The preset abnormality prompting information is used for prompting that the working state of the target hard disk to be detected is abnormal, and the target hard disk to be detected fails and cannot work normally. And sending preset abnormal prompt information to the terminal equipment of the target user.
Therefore, when the target hard disk to be tested fails and cannot work normally, preset abnormal prompt information is provided for the target user in time, so that the target user can conveniently and timely process the failure problem in the hard disk rotation vibration testing process.
Optionally, after obtaining the read-write performance data of the target to-be-tested hard disk under each target rotational vibration test scene, the method further includes: generating a visual chart corresponding to the read-write performance data of the target hard disk to be tested in each target rotary vibration test scene; and providing the visual chart to the target user through the test configuration page.
Therefore, through the visual chart, the read-write performance data of the hard disk under a plurality of different fan speeds and read-write operations are intuitively provided for a target user.
Optionally, the visual chart corresponding to the read-write performance data of the target to-be-tested hard disk in each target rotational vibration test scene is a visual chart for displaying the read-write performance data of the target to-be-tested hard disk in each target rotational vibration test scene. Visual charts include, but are not limited to, tables, bar graphs, line charts.
Optionally, providing, through the test configuration page, the visual chart to the target user, including: and displaying the visual chart in a chart display area in the test configuration page. The chart display area is a page area in the test configuration page for displaying a visual chart corresponding to the read-write performance data of the target hard disk to be tested in each target rotating vibration test scene.
According to the technical scheme, through the test configuration page, identification information and selection controls of a plurality of hard disks to be tested are provided for a target user, and the target hard disk to be tested selected by the target user is determined; then, through a test configuration page, identification information and selection controls of a plurality of rotary vibration test scenes are provided for a target user, at least two target rotary vibration test scenes which are selected by the target user and correspond to the target hard disk to be tested are determined, and scene sequences corresponding to the target rotary vibration test scenes are obtained; configuring a target hard disk to be tested through a hard disk configuration script; finally, according to the scene sequence corresponding to each target rotational vibration test scene, the target hard disk to be tested and the fan corresponding to the target hard disk to be tested are controlled to perform rotational vibration test according to the scene parameters of each target rotational vibration test scene in sequence, the read-write performance data of the target hard disk to be tested under each target rotational vibration test scene is obtained, the problems that a tester needs to repeatedly perform manual operation in a related technical hard disk rotational vibration test scheme, the labor cost and the time cost are high, the test efficiency is low are solved, interaction between a configuration page and a target user is achieved, a plurality of target rotational vibration test scenes corresponding to the hard disk are determined, the hard disk is automatically configured based on the hard disk configuration script, then the hard disk and the fan corresponding to the hard disk are controlled to perform rotational vibration test according to the scene parameters of each target rotational vibration test scene, and the read-write performance data of the hard disk under a plurality of different fan speeds and read-write operations are obtained, the labor cost and the time cost of the rotational vibration test are reduced, and the test efficiency is improved.
Example two
Fig. 2 is a flowchart of a method for testing rotational vibration of a hard disk according to a second embodiment of the present invention. Embodiments of the invention may be combined with various alternatives to one or more of the embodiments described above. As shown in fig. 2, the method includes:
step 201, obtaining a hard disk configuration script uploaded by a target user, identification information of at least two rotational vibration test scenes and scene parameters.
Wherein the scene parameters include: fan speed and type of read and write operation.
Step 202, storing the hard disk configuration script, the identification information of each rotational vibration test scene and the scene parameters to a preset storage position.
And 203, providing the identification information and the selection control of the plurality of hard disks to be tested to a target user through the test configuration page, and determining the target hard disk to be tested selected by the target user.
And 204, providing identification information and selection controls of a plurality of rotary vibration test scenes to the target user through the test configuration page, determining at least two target rotary vibration test scenes which are selected by the target user and correspond to the target hard disk to be tested, and acquiring scene sequences corresponding to the target rotary vibration test scenes.
And 205, configuring the target hard disk to be tested through a hard disk configuration script.
And 206, controlling the target hard disk to be tested and a fan corresponding to the target hard disk to be tested to perform rotary vibration test according to the scene sequence corresponding to each target rotary vibration test scene in sequence according to the scene parameters of each target rotary vibration test scene, and obtaining the read-write performance data of the target hard disk to be tested in each target rotary vibration test scene.
According to the technical scheme, the hard disk configuration script and the identification information and the scene parameters of the plurality of rotary vibration test scenes can be obtained, the hard disk can be conveniently and automatically configured based on the hard disk configuration script, the plurality of target rotary vibration test scenes corresponding to the hard disk are determined based on interaction between the identification information and the scene parameters of the plurality of rotary vibration test scenes and a target user, then the hard disk and fans corresponding to the hard disk are automatically controlled to perform rotary vibration test according to the scene parameters of each target rotary vibration test scene, and the read-write performance data of the hard disk under a plurality of different fan speeds and read-write operations are obtained.
Example III
Fig. 3 is a flowchart of a method for testing rotational vibration of a hard disk according to a third embodiment of the present invention, including the following steps:
step 301, obtaining a hard disk configuration script uploaded by a target user, identification information of at least two rotational vibration test scenes and scene parameters.
Wherein, scene parameters include: fan speed and type of read and write operation.
And step 302, storing the hard disk configuration script, the identification information of each rotational vibration test scene and the scene parameters to a preset storage position.
And 303, providing the identification information and the selection control of the plurality of hard disks to be tested to the target user through the test configuration page, and determining the target hard disk to be tested selected by the target user.
And 304, providing identification information and selection controls of a plurality of rotary vibration test scenes to a target user through a test configuration page, determining at least two target rotary vibration test scenes selected by the target user and corresponding to the target hard disk to be tested, and acquiring scene sequences corresponding to the target rotary vibration test scenes.
And 305, configuring the target hard disk to be tested according to the hard disk configuration script.
And 306, controlling the target hard disk to be tested and the fan corresponding to the target hard disk to be tested to perform rotary vibration test according to the scene sequence corresponding to each target rotary vibration test scene in sequence according to the scene parameters of each target rotary vibration test scene, obtaining the read-write performance data of the target hard disk to be tested in each target rotary vibration test scene, and providing the read-write performance data of the target hard disk to be tested in each target rotary vibration test scene for a target user through the test configuration page.
Step 307, generating a visual chart corresponding to the read-write performance data of the target to-be-tested hard disk under each target rotating vibration test scene.
Step 308, providing the visual chart to the target user.
According to the technical scheme, interaction between the test configuration page and the target user is performed, a plurality of target rotational vibration test scenes corresponding to the hard disk are determined, the hard disk is automatically configured based on the hard disk configuration script, then the hard disk and the fan corresponding to the hard disk are controlled to perform rotational vibration test according to scene parameters of each target rotational vibration test scene, read-write performance data of the hard disk under a plurality of different fan rotating speeds and read-write operations are obtained, labor cost and time cost of the rotational vibration test are reduced, and test efficiency is improved; the read-write performance data of the hard disk obtained in the process of the rotational vibration test under the conditions of different fan speeds and read-write operations can be provided for a target user in real time through the test configuration page, so that the target user can observe the read-write performance data of the hard disk in the process of the rotational vibration test of the hard disk; the data of the read-write performance of the hard disk under a plurality of different fan speeds and read-write operations can be intuitively provided for a target user through the visual chart.
Example IV
Fig. 4 is a schematic structural diagram of a device for testing rotational vibration of a hard disk according to a fourth embodiment of the present invention. The apparatus may be configured in an electronic device. As shown in fig. 4, the apparatus includes: a hard disk determination module 401, a scene determination module 402, a hard disk configuration module 403, and a hard disk test module 404.
The hard disk determining module 401 is configured to provide identification information and selection controls of a plurality of hard disks to be tested to a target user through a test configuration page, and determine a target hard disk to be tested selected by the target user; the scene determining module 402 is configured to provide, through the test configuration page, identification information and selection controls of a plurality of rotational vibration test scenes to the target user, determine at least two target rotational vibration test scenes corresponding to the target hard disk to be tested selected by the target user, and obtain a scene sequence corresponding to each of the target rotational vibration test scenes; the hard disk configuration module 403 is configured to configure the target hard disk to be tested through a hard disk configuration script; the hard disk testing module 404 is configured to control the target hard disk to be tested and a fan corresponding to the target hard disk to be tested to perform a rotational vibration test according to a scene sequence corresponding to each target rotational vibration testing scene in sequence according to a scene parameter of each target rotational vibration testing scene, so as to obtain read-write performance data of the target hard disk to be tested in each target rotational vibration testing scene.
According to the technical scheme, through the test configuration page, identification information and selection controls of a plurality of hard disks to be tested are provided for a target user, and the target hard disk to be tested selected by the target user is determined; then, through a test configuration page, identification information and selection controls of a plurality of rotary vibration test scenes are provided for a target user, at least two target rotary vibration test scenes which are selected by the target user and correspond to the target hard disk to be tested are determined, and scene sequences corresponding to the target rotary vibration test scenes are obtained; configuring a target hard disk to be tested through a hard disk configuration script; finally, according to the scene sequence corresponding to each target rotational vibration test scene, the target hard disk to be tested and the fan corresponding to the target hard disk to be tested are controlled to perform rotational vibration test according to the scene parameters of each target rotational vibration test scene in sequence, the read-write performance data of the target hard disk to be tested under each target rotational vibration test scene is obtained, the problems that a tester needs to repeatedly perform manual operation in a related technical hard disk rotational vibration test scheme, the labor cost and the time cost are high, the test efficiency is low are solved, interaction between a configuration page and a target user is achieved, a plurality of target rotational vibration test scenes corresponding to the hard disk are determined, the hard disk is automatically configured based on the hard disk configuration script, then the hard disk and the fan corresponding to the hard disk are controlled to perform rotational vibration test according to the scene parameters of each target rotational vibration test scene, and the read-write performance data of the hard disk under a plurality of different fan speeds and read-write operations are obtained, the labor cost and the time cost of the rotational vibration test are reduced, and the test efficiency is improved.
In an optional implementation manner of the embodiment of the present invention, optionally, the hard disk rotational vibration testing apparatus further includes: the parameter acquisition module is used for acquiring the hard disk configuration script uploaded by the target user, the identification information of at least two rotary vibration test scenes and scene parameters; wherein the scene parameters include: fan speed and read/write operation type; and the parameter storage module is used for storing the hard disk configuration script, the identification information of each rotary vibration test scene and the scene parameters to a preset storage position.
In an optional implementation manner of the embodiment of the present invention, optionally, the hard disk testing module 404 is specifically configured to: according to the scene sequence corresponding to each target rotational vibration test scene, the following operations are sequentially executed for each target rotational vibration test scene: controlling a fan corresponding to the target hard disk to be tested to run at the fan rotating speed of a target rotating vibration test scene; performing read-write operation on the target hard disk to be tested according to the read-write operation type of the target rotary vibration test scene; and acquiring the read-write performance data of the target hard disk to be tested in the target rotational vibration test scene.
In an optional implementation of the embodiment of the present invention, optionally, the hard disk test module 404 is further configured to: and providing the read-write performance data of the target hard disk to be tested in the target rotating vibration test scene for the target user through the test configuration page.
In an optional implementation manner of the embodiment of the present invention, optionally, the hard disk rotational vibration testing apparatus further includes: the state acquisition module is used for acquiring the working state of the target hard disk to be detected at regular time according to a preset time interval; and the indicator lamp control module is used for controlling the state indicator lamp of the target hard disk to be tested to be turned on or turned off according to the working state of the target hard disk to be tested.
In an optional implementation manner of the embodiment of the present invention, optionally, the hard disk rotational vibration testing apparatus further includes: and the prompt information providing module is used for providing preset abnormal prompt information for the target user if the working state of the target hard disk to be detected is detected to be an abnormal state.
In an optional implementation manner of the embodiment of the present invention, optionally, the hard disk rotational vibration testing apparatus further includes: the chart generation module is used for generating a visual chart corresponding to the read-write performance data of the target hard disk to be tested in each target rotary vibration test scene; and the chart providing module is used for providing the visual chart to the target user through the test configuration page.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
The hard disk rotary vibration testing device can execute the hard disk rotary vibration testing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the hard disk rotary vibration testing method.
Example five
Fig. 5 shows a schematic diagram of an electronic device 10 that may be used to implement the method for testing rotational vibration of a hard disk in accordance with an embodiment of the present invention. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program built into the Random Access Memory (RAM) 13 from the storage unit 18. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the hard disk rotational vibration test method.
In some embodiments, the hard disk rotational vibration testing method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When a computer program is built into RAM 13 and executed by processor 11, one or more steps of the hard disk rotational vibration testing method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the hard disk rotational vibration testing method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
The computer program for implementing the hard disk rotational vibration testing method of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.
Claims (10)
1. A method for testing rotational vibration of a hard disk, comprising:
Providing identification information and selection controls of a plurality of hard disks to be tested to a target user through a test configuration page, and determining a target hard disk to be tested selected by the target user;
Providing identification information and selection controls of a plurality of rotary vibration test scenes to the target user through the test configuration page, determining at least two target rotary vibration test scenes which are selected by the target user and correspond to the target hard disk to be tested, and obtaining scene sequences corresponding to the target rotary vibration test scenes;
Configuring the target hard disk to be tested through a hard disk configuration script;
According to the scene sequence corresponding to each target rotational vibration test scene, sequentially controlling the target hard disk to be tested and a fan corresponding to the target hard disk to be tested to perform rotational vibration test according to the scene parameters of each target rotational vibration test scene, and obtaining the read-write performance data of the target hard disk to be tested in each target rotational vibration test scene.
2. The method of claim 1, further comprising, prior to providing identification information and selection controls for a plurality of hard disks under test to a target user via a test configuration page and determining a target hard disk under test selected by the target user:
Acquiring a hard disk configuration script uploaded by a target user, identification information of at least two rotary vibration test scenes and scene parameters; wherein the scene parameters include: fan speed and read/write operation type;
and storing the hard disk configuration script, the identification information of each rotary vibration test scene and scene parameters to a preset storage position.
3. The method according to claim 2, wherein the sequentially controlling the target to-be-tested hard disk and the fan corresponding to the target to-be-tested hard disk to perform the rotational vibration test according to the scene sequence corresponding to the target rotational vibration test scenes and the scene parameters of the target rotational vibration test scenes, to obtain the read-write performance data of the target to-be-tested hard disk in the target rotational vibration test scenes, includes:
according to the scene sequence corresponding to each target rotational vibration test scene, the following operations are sequentially executed for each target rotational vibration test scene:
Controlling a fan corresponding to the target hard disk to be tested to run at the fan rotating speed of a target rotating vibration test scene;
performing read-write operation on the target hard disk to be tested according to the read-write operation type of the target rotary vibration test scene;
and acquiring the read-write performance data of the target hard disk to be tested in the target rotational vibration test scene.
4. The method according to claim 3, further comprising, after acquiring the read-write performance data of the target hard disk under test in the target rotational vibration test scenario:
And providing the read-write performance data of the target hard disk to be tested in the target rotating vibration test scene for the target user through the test configuration page.
5. The method as recited in claim 1, further comprising:
according to a preset time interval, the working state of the target hard disk to be tested is obtained at fixed time;
and controlling the state indicator lamp of the target hard disk to be tested to be turned on or turned off according to the working state of the target hard disk to be tested.
6. The method of claim 5, further comprising, after periodically acquiring the operating state of the target hard disk under test at preset time intervals:
and if the working state of the target hard disk to be detected is detected to be an abnormal state, providing preset abnormal prompt information for the target user.
7. The method according to claim 1, further comprising, after acquiring the read-write performance data of the target hard disk under test of each of the target rotational vibration test scenes:
Generating a visual chart corresponding to the read-write performance data of the target hard disk to be tested in each target rotary vibration test scene;
And providing the visual chart to the target user through the test configuration page.
8. A hard disk rotational vibration testing device, comprising:
the hard disk determining module is used for providing the identification information and the selection control of the plurality of hard disks to be tested for the target user through the test configuration page and determining the target hard disk to be tested selected by the target user;
The scene determining module is used for providing the identification information and the selection control of a plurality of rotary vibration test scenes for the target user through the test configuration page, determining at least two target rotary vibration test scenes which are selected by the target user and correspond to the target hard disk to be tested, and acquiring scene sequences corresponding to the target rotary vibration test scenes;
The hard disk configuration module is used for configuring the target hard disk to be tested through a hard disk configuration script;
The hard disk testing module is used for controlling the target hard disk to be tested and the fan corresponding to the target hard disk to be tested to perform rotary vibration testing according to the scene sequence corresponding to each target rotary vibration testing scene in sequence and according to the scene parameters of each target rotary vibration testing scene, and acquiring the read-write performance data of the target hard disk to be tested in each target rotary vibration testing scene.
9. An electronic device, the electronic device comprising:
At least one processor;
And a memory communicatively coupled to the at least one processor;
Wherein the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the hard disk rotational vibration testing method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to perform the method of testing rotational vibration of a hard disk according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211502834.3A CN118098322A (en) | 2022-11-28 | 2022-11-28 | Method, device, equipment and medium for testing rotation vibration of hard disk |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211502834.3A CN118098322A (en) | 2022-11-28 | 2022-11-28 | Method, device, equipment and medium for testing rotation vibration of hard disk |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118098322A true CN118098322A (en) | 2024-05-28 |
Family
ID=91140961
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211502834.3A Pending CN118098322A (en) | 2022-11-28 | 2022-11-28 | Method, device, equipment and medium for testing rotation vibration of hard disk |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118098322A (en) |
-
2022
- 2022-11-28 CN CN202211502834.3A patent/CN118098322A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114389969B (en) | Method and device for testing client, electronic equipment and storage medium | |
CN112559288A (en) | Distributed inertial platform test system based on Ethernet | |
US9645873B2 (en) | Integrated configuration management and monitoring for computer systems | |
CN111858244A (en) | Hard disk monitoring method, system, device and medium | |
CN111224815A (en) | Data center equipment access method, device and related components | |
CN116684302A (en) | Method and device for testing vehicle-mounted Ethernet | |
CN116185880A (en) | Automatic test method, device, equipment and medium for embedded system | |
CN118098322A (en) | Method, device, equipment and medium for testing rotation vibration of hard disk | |
CN116149709A (en) | Firmware upgrading method, device, equipment and medium | |
CN115017047A (en) | Test method, system, equipment and medium based on B/S architecture | |
CN115437865A (en) | Method, device, equipment and medium for testing abnormal power failure of hard disk | |
CN114372003A (en) | Test environment monitoring method and device and electronic equipment | |
CN114064485A (en) | Software testing method, system, computer equipment and readable storage medium | |
TW202136650A (en) | Fan test control system and methof | |
CN111291239A (en) | Unit testing method, device, equipment and storage medium | |
CN117520080B (en) | Server testing method, device, equipment and medium | |
CN116192686B (en) | BMC stability test method, device, equipment and medium | |
CN117891673A (en) | Screen configuration method, device, equipment and medium | |
CN116089307A (en) | BIOS testing method, device, equipment and medium | |
CN116880398B (en) | Fault analysis method and system of instrument control equipment, electronic equipment and storage medium | |
CN115525538A (en) | Test task execution method and related device | |
CN116627690A (en) | Method, device, terminal equipment and medium for obtaining detection standard of client diagnosis program | |
CN118298853A (en) | Feedback method and device for speech recognition test abnormality | |
CN116663295A (en) | Automatic testing method and device for clutch, upper computer, medium and system | |
CN116820069A (en) | Diagnostic system, method, device and medium for vehicle fault |
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 |