CN111858271A - Server performance test method, device, equipment and readable storage medium - Google Patents
Server performance test method, device, equipment and readable storage medium Download PDFInfo
- Publication number
- CN111858271A CN111858271A CN202010538150.3A CN202010538150A CN111858271A CN 111858271 A CN111858271 A CN 111858271A CN 202010538150 A CN202010538150 A CN 202010538150A CN 111858271 A CN111858271 A CN 111858271A
- Authority
- CN
- China
- Prior art keywords
- server
- hot plug
- hard disk
- target
- performance 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.)
- Granted
Links
- 238000011056 performance test Methods 0.000 title claims abstract description 110
- 238000000034 method Methods 0.000 title claims abstract description 28
- 238000012360 testing method Methods 0.000 claims abstract description 76
- 238000004590 computer program Methods 0.000 claims description 10
- 238000011156 evaluation Methods 0.000 claims description 6
- 230000000694 effects Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 6
- 230000009471 action Effects 0.000 description 3
- 230000006872 improvement Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000003990 capacitor Substances 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004883 computer application Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3409—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
Abstract
The invention discloses a method for testing the performance of a server, which comprises the following steps: analyzing the received server performance test request to obtain a target hard disk for server performance test; acquiring hot plug initialization information corresponding to a target hard disk; and performing hot plug operation by using the servo motor control target hard disk according to the hot plug initialization information to obtain a server performance test result. By applying the technical scheme provided by the embodiment of the invention, the accuracy of the performance test of the server is greatly improved, the labor intensity of a user is greatly reduced, and the test efficiency is improved. The invention also discloses a server performance testing device, equipment and a storage medium, and has corresponding technical effects.
Description
Technical Field
The present invention relates to the field of computer application technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for testing server performance.
Background
With the development of business and the deepening of informatization, for example, the scale of enterprises is continuously enlarged, the application is continuously increased, and the performance requirement on the server is higher and higher. For a multi-hard-disk server, a single hard disk is pulled out or plugged in randomly in a server startup running state, namely, the performance of the server is tested in a hard disk hot plugging mode.
The existing server performance test mode is to perform the server performance test in a mode of manually plugging and unplugging a hard disk. The manual plugging and unplugging operation is difficult to control in strength, and the hard disk slot is easy to clamp and pause with the hard disk, so that the hard disk or the slot is damaged, human factors influence exists, and the accuracy of the performance test of the server is influenced. And repeated manual plugging and unplugging operations are performed, so that the labor intensity of a user is high, and the testing efficiency is low.
In summary, how to effectively solve the problems that the existing server performance test mode affects the accuracy of the server performance test, the labor intensity of the user is high, the test efficiency is low, and the like, is a problem that needs to be solved urgently by technical personnel in the field at present.
Disclosure of Invention
The invention aims to provide a server performance testing method, which greatly improves the accuracy of server performance testing, greatly lightens the labor intensity of users and improves the testing efficiency; another object of the present invention is to provide a server performance testing apparatus, device and computer readable storage medium.
In order to solve the technical problems, the invention provides the following technical scheme:
a server performance testing method comprises the following steps:
Analyzing the received server performance test request to obtain a target hard disk for server performance test;
acquiring hot plug initialization information corresponding to the target hard disk;
and controlling the target hard disk to perform hot plug operation according to the hot plug initialization information by using a servo motor to obtain a server performance test result.
In a specific embodiment of the present invention, the controlling, by a servo motor, the target hard disk to perform a hot plug operation according to the hot plug initialization information to obtain a server performance test result includes:
controlling the target hard disk to carry out hot plug operation successively according to the target plug times in the hot plug initialization information by using the servo motor to obtain target server parameter information corresponding to each hot plug operation;
sequentially judging whether the parameter information of each target server belongs to a corresponding preset threshold range;
if the target server parameter information which does not belong to the corresponding preset threshold range exists, sending a stop instruction to the servo motor so that the servo motor stops hot plug operation on the target hard disk;
acquiring actual plugging times corresponding to the target hard disk;
And evaluating the performance of the server by combining the actual plugging times and the parameter information of each target server to obtain a performance test result of the server.
In a specific embodiment of the present invention, the controlling, by a servo motor, the target hard disk to perform a hot plug operation according to the hot plug initialization information includes:
and controlling the target hard disk to perform hot plug operation according to the target slot position in the hot plug initialization information by using the servo motor.
In a specific embodiment of the present invention, when the target hard disk includes multiple hard disks of different models, the server uses a servo motor to control the target hard disk to perform a hot plug operation according to the hot plug initialization information, so as to obtain a server performance test result, including:
utilizing each servo motor to respectively control the corresponding target hard disk to perform hot plug operation according to the corresponding hot plug initialization information, and obtaining the server performance test sub-result respectively corresponding to each target hard disk;
and evaluating the performance of the server by combining the sub-results of the performance test of the server to obtain the result of the performance test of the server.
A server performance testing apparatus, comprising:
The request analysis module is used for analyzing the received server performance test request to obtain a target hard disk for the server performance test;
the information acquisition module is used for acquiring hot plug initialization information corresponding to the target hard disk;
and the test result obtaining module is used for controlling the target hard disk to perform hot plug operation according to the hot plug initialization information by using the servo motor to obtain a server performance test result.
In an embodiment of the present invention, the test result obtaining module includes:
the parameter information obtaining submodule is used for controlling the target hard disk to carry out hot plug operation successively according to the target plug times in the hot plug initialization information by utilizing the servo motor so as to obtain target server parameter information corresponding to each hot plug operation;
the judgment submodule is used for sequentially judging whether the parameter information of each target server belongs to the corresponding preset threshold range;
the instruction sending submodule is used for sending a stopping instruction to the servo motor when the target server parameter information which does not belong to the corresponding preset threshold range is determined to exist, so that the servo motor stops hot plug operation on the target hard disk;
The frequency acquisition submodule is used for acquiring the actual plugging frequency corresponding to the target hard disk;
and the first test result obtaining submodule is used for carrying out server performance evaluation by combining the actual plugging times and the parameter information of each target server to obtain a server performance test result.
In an embodiment of the invention, the test result obtaining module includes a hot plug control sub-module,
the hot plug control submodule is specifically a module which controls the target hard disk to perform hot plug operation according to the position of the target slot in the hot plug initialization information by using the servo motor.
In one embodiment of the present invention, the test result obtaining module includes a sub result obtaining sub module and a second test result obtaining sub module,
the sub-result obtaining sub-module is used for controlling the corresponding target hard disk to perform hot plug operation according to the corresponding hot plug initialization information by utilizing each servo motor when the target hard disk comprises a plurality of hard disks with different models, so as to obtain a server performance test sub-result corresponding to each target hard disk;
and the second test result obtaining submodule is used for carrying out server performance evaluation by combining the sub-results of the server performance test to obtain the server performance test result.
A server performance testing device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the server performance testing method when executing the computer program.
A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the server performance testing method as set out above.
By applying the method provided by the embodiment of the invention, the received server performance test request is analyzed to obtain a target hard disk for server performance test; acquiring hot plug initialization information corresponding to a target hard disk; and performing hot plug operation by using the servo motor control target hard disk according to the hot plug initialization information to obtain a server performance test result. The hot plug initialization information corresponding to the target hard disk for the server performance test is preset, and the servo motor is used for automatically controlling the target hard disk to perform hot plug operation according to the hot plug initialization information, so that a server performance test result is obtained. Compared with the conventional mode of manually plugging and unplugging the hard disk to test the performance of the server, the method and the device have the advantages that the servo motor is adopted to automatically control the hot plugging of the target hard disk according to the hot plugging initialization information, the influence of human factors is avoided, the accuracy of the performance test of the server is greatly improved, the labor intensity of a user is greatly reduced, and the test efficiency is improved.
Correspondingly, the embodiment of the invention also provides a server performance testing device, equipment and a computer readable storage medium corresponding to the server performance testing method, which have the technical effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating an implementation of a method for testing server performance according to an embodiment of the present invention;
FIG. 2 is a flowchart of another implementation of a server performance testing method according to an embodiment of the present invention;
FIG. 3 is a flowchart of another implementation of a server performance testing method according to an embodiment of the present invention;
FIG. 4 is a block diagram illustrating a server performance testing system according to an embodiment of the present invention;
FIG. 5 is a block diagram of a server performance testing apparatus according to an embodiment of the present invention;
fig. 6 is a block diagram of a server performance testing apparatus according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
referring to fig. 1, fig. 1 is a flowchart of an implementation of a server performance testing method according to an embodiment of the present invention, where the method may include the following steps:
s101: and analyzing the received server performance test request to obtain a target hard disk for the server performance test.
When the performance test of a server (such as a server of a Linux system) is required to be performed in a hard disk hot plug mode, a server performance test request is sent to a test center, wherein the server performance test request comprises identification information of a target hard disk for the server performance test. And the test center receives the server performance test request and analyzes the received server performance test request to obtain a target hard disk for server performance test.
S102: and acquiring hot plug initialization information corresponding to the target hard disk.
The method comprises the steps of presetting hot plug initialization information corresponding to a target hard disk for server performance testing, and acquiring the hot plug initialization information corresponding to the target hard disk after analyzing the target hard disk for server performance testing. The hot-plug initialization information may include target slot position information, target plugging frequency information, and the like corresponding to the target hard disk.
S103: and performing hot plug operation by using the servo motor control target hard disk according to the hot plug initialization information to obtain a server performance test result.
The method comprises the steps of presetting a servo motor for automatically performing plug-in control on a target hard disk, controlling the target hard disk to perform hot plug operation according to hot plug initialization information by using the servo motor after the hot plug initialization information corresponding to the target hard disk is obtained, and obtaining a server performance test result. The server performance test result is obtained by counting the corresponding server parameter information and performing the server performance test according to the statistical condition when the target hard disk is inserted into and pulled out of the server each time. For example, statistics can be performed according to the change condition of the corresponding server parameter obtained after the target hard disk is subjected to adjacent two times of plugging, and a server performance test result can be obtained according to the statistical result. The servo motor is utilized to carry out hot plug operation on the hard disk by virtue of the torque control function, and compared with the existing mode of carrying out server performance test by manually plugging the hard disk, the damage caused by blockage between a hard disk slot and the hard disk is avoided, the test quality is improved, and the labor intensity of people is reduced.
By applying the method provided by the embodiment of the invention, the received server performance test request is analyzed to obtain a target hard disk for server performance test; acquiring hot plug initialization information corresponding to a target hard disk; and performing hot plug operation by using the servo motor control target hard disk according to the hot plug initialization information to obtain a server performance test result. The hot plug initialization information corresponding to the target hard disk for the server performance test is preset, and the servo motor is used for automatically controlling the target hard disk to perform hot plug operation according to the hot plug initialization information, so that a server performance test result is obtained. Compared with the conventional mode of manually plugging and unplugging the hard disk to test the performance of the server, the method and the device have the advantages that the servo motor is adopted to automatically control the hot plugging of the target hard disk according to the hot plugging initialization information, the influence of human factors is avoided, the accuracy of the performance test of the server is greatly improved, the labor intensity of a user is greatly reduced, and the test efficiency is improved.
It should be noted that, based on the first embodiment, the embodiment of the present invention further provides a corresponding improvement scheme. In the following embodiments, steps that are the same as or correspond to those in the first embodiment may be referred to each other, and corresponding advantageous effects may also be referred to each other, which are not described in detail in the following modified embodiments.
Example two:
referring to fig. 2, fig. 2 is a flowchart of another implementation of a server performance testing method in an embodiment of the present invention, where the method may include the following steps:
s201: and analyzing the received server performance test request to obtain a target hard disk for the server performance test.
S202: and acquiring hot plug initialization information corresponding to the target hard disk.
S203: and controlling the target hard disk to perform hot plug operation successively according to the target slot position and the target plug times in the hot plug initialization information by using the servo motor to obtain target server parameter information corresponding to each hot plug operation.
The hot-plug initialization information comprises the target slot position and the target plugging times corresponding to the target hard disk. After the hot plug initialization information corresponding to the target hard disk is obtained, the servo motor is used for controlling the target hard disk to carry out hot plug operation successively according to the target slot position and the target plug times in the hot plug initialization information, and target server parameter information corresponding to each hot plug operation is obtained.
S204: sequentially judging whether the parameter information of each target server belongs to the corresponding preset threshold range, if the parameter information of the target server does not belong to the corresponding preset threshold range, executing the step S205, and if the parameter information of each target server belongs to the corresponding preset threshold range, executing the step S208.
The server parameter threshold range is preset, for example, the same server parameter threshold range corresponding to each hard disk hot plug action can be set, and different server parameter threshold ranges corresponding to each hard disk hot plug action can also be set based on the consideration of loss brought to the server along with the progress of the hard disk hot plug action. After the target server parameter information corresponding to each hot plug operation is obtained, whether each target server parameter information belongs to the corresponding preset threshold range or not is judged in sequence, if the target server parameter information does not belong to the corresponding preset threshold range, the server is indicated to have a problem, step S205 is executed, if each target server parameter information belongs to the corresponding preset threshold range, the number of hot plug operations to be performed is reduced by one after each hot plug operation until the number of hot plug operations to be performed is reduced to zero, and step S208 is executed.
S205: and sending a stop instruction to the servo motor to stop the hot plug operation of the servo motor on the target hard disk.
And when the target server parameter information which does not belong to the corresponding preset threshold range is confirmed to exist, sending a stop instruction to the servo motor, and stopping the hot plug operation of the servo motor on the target hard disk.
S206: and acquiring the actual plugging times corresponding to the target hard disk.
And after the servo motor stops the hot plug operation on the target hard disk, acquiring the actual plug times corresponding to the target hard disk.
S207: and evaluating the performance of the server by combining the actual plugging times and the parameter information of each target server to obtain a performance test result of the server.
And after the actual plugging times corresponding to the target hard disk are obtained, evaluating the performance of the server by combining the actual plugging times and the parameter information of each target server to obtain a performance test result of the server.
S208: and evaluating the performance of the server according to the parameter information of each target server to obtain a performance test result of the server.
And when determining that the parameter information of each target server belongs to the corresponding preset threshold range, performing server performance evaluation according to the parameter information of each target server to obtain a server performance test result.
Example three:
referring to fig. 3, fig. 3 is a flowchart of another implementation of a server performance testing method in an embodiment of the present invention, where the method may include the following steps:
s301: and analyzing the received server performance test request to obtain a plurality of target hard disks of different models for server performance test.
When the target hard disks of different models are used for server performance test, the server performance test request sent to the test center contains identification information of a plurality of target hard disks of different models for server performance test. The test center analyzes the received server performance test request to obtain a plurality of target hard disks of different models for server performance test.
S302: and acquiring hot plug initialization information corresponding to each target hard disk.
And presetting hot plug initialization information corresponding to each target hard disk of different models. After a plurality of target hard disks of different types for server performance test are obtained through analysis, hot plug initialization information corresponding to each target hard disk is obtained.
S303: and respectively controlling the corresponding target hard disks to perform hot plug operation according to the corresponding hot plug initialization information by utilizing the servo motors, so as to obtain the server performance test sub-results respectively corresponding to the target hard disks.
After the hot plug initialization information corresponding to each target hard disk is obtained, each servo motor is used for controlling the corresponding target hard disk to perform hot plug operation according to the corresponding hot plug initialization information, and server performance test sub-results corresponding to each target hard disk are obtained.
As shown in fig. 4, fig. 4 is a block diagram of a server performance testing system according to an embodiment of the present invention, where the testing system includes a server, a USB to 485 module, a servo positioning subsystem such as a linear module controller and a servo cylinder controller, a sensor such as an encoder, and a power distribution system. The power distribution system distributes power in a balanced manner according to the power and load characteristics of each electric appliance, simultaneously adds overcurrent and overload protection to each path of motor control, and configures the reactor and the filter capacitor to improve the quality of the power supply and ensure the positioning precision. Based on a Modbus RTU protocol, a server is used as a master station, and a control instruction is sent to each Modbus slave station (namely each target hard disk) to read a control state, so that the hard disk plugging mechanism is positioned and controlled. Each slot position corresponds to one servo slave station, and the station number uniquely corresponds to the slot position number, so that the hard disks with different models can be compatible. The server of the Linux system is used for directly controlling the servo system, so that links for communicating with the PLC are reduced, the method has very obvious advantages in computing capacity, the testing efficiency is improved, and the cost is saved. The hard disk test system and the plug-in control system can be simultaneously operated on the Linux system server, so that the operation is convenient, and the data interaction speed is improved.
S304: and evaluating the performance of the server by combining the performance test sub-results of the servers to obtain the performance test result of the server.
And after the server performance test sub-results corresponding to the target hard disks are obtained, evaluating the performance of the server by combining the server performance test sub-results to obtain the server performance test result. And testing the hard disk compatibility of the server by utilizing different types of target hard disks to perform hot plug operation.
Corresponding to the above method embodiments, the embodiments of the present invention further provide a server performance testing apparatus, and the server performance testing apparatus described below and the server performance testing method described above may be referred to correspondingly.
Referring to fig. 5, fig. 5 is a block diagram of a server performance testing apparatus according to an embodiment of the present invention, where the apparatus may include:
a request analysis module 51, configured to analyze the received server performance test request to obtain a target hard disk for server performance test;
the information obtaining module 52 is configured to obtain hot plug initialization information corresponding to the target hard disk;
and the test result obtaining module 53 is configured to perform hot plug operation on the hard disk controlled by the servo motor according to the hot plug initialization information, so as to obtain a server performance test result.
The device provided by the embodiment of the invention is applied to analyze the received server performance test request to obtain a target hard disk for the server performance test; acquiring hot plug initialization information corresponding to a target hard disk; and performing hot plug operation by using the servo motor control target hard disk according to the hot plug initialization information to obtain a server performance test result. The hot plug initialization information corresponding to the target hard disk for the server performance test is preset, and the servo motor is used for automatically controlling the target hard disk to perform hot plug operation according to the hot plug initialization information, so that a server performance test result is obtained. Compared with the conventional mode of manually plugging and unplugging the hard disk to test the performance of the server, the method and the device have the advantages that the servo motor is adopted to automatically control the hot plugging of the target hard disk according to the hot plugging initialization information, the influence of human factors is avoided, the accuracy of the performance test of the server is greatly improved, the labor intensity of a user is greatly reduced, and the test efficiency is improved.
In one embodiment of the present invention, the test result obtaining module 53 includes:
the parameter information acquisition submodule is used for utilizing the servo motor to control the target hard disk to carry out hot plug operation successively according to the target plug times in the hot plug initialization information so as to obtain target server parameter information corresponding to each hot plug operation;
The judgment submodule is used for sequentially judging whether the parameter information of each target server belongs to the corresponding preset threshold range;
the instruction sending submodule is used for sending a stopping instruction to the servo motor when the target server parameter information which does not belong to the corresponding preset threshold range is determined to exist, so that the servo motor stops hot plug operation on the target hard disk;
the frequency acquisition submodule is used for acquiring the actual plugging frequency corresponding to the target hard disk;
and the first test result obtaining submodule is used for evaluating the performance of the server by combining the actual plugging times and the parameter information of each target server to obtain a server performance test result.
In one embodiment of the present invention, the test result obtaining module 53 includes a hot plug control sub-module,
the hot plug control submodule is specifically a module for controlling the target hard disk to perform hot plug operation according to the target slot position in the hot plug initialization information by using the servo motor.
In one embodiment of the present invention, the test result obtaining module 53 includes a sub-result obtaining sub-module and a second test result obtaining sub-module,
the sub-result obtaining sub-module is used for utilizing each servo motor to respectively control the corresponding target hard disk to carry out hot plug operation according to the corresponding hot plug initialization information when the target hard disk comprises a plurality of hard disks with different models, and obtaining the server performance test sub-results respectively corresponding to each target hard disk;
And the second test result obtaining submodule is used for carrying out server performance evaluation by combining the performance test sub-results of the servers to obtain the server performance test result.
Corresponding to the above method embodiment, referring to fig. 6, fig. 6 is a schematic diagram of a server performance testing device provided by the present invention, where the device may include:
a memory 61 for storing a computer program;
the processor 62, when executing the computer program stored in the memory 61, may implement the following steps:
analyzing the received server performance test request to obtain a target hard disk for server performance test; acquiring hot plug initialization information corresponding to a target hard disk; and performing hot plug operation by using the servo motor control target hard disk according to the hot plug initialization information to obtain a server performance test result.
For the introduction of the device provided by the present invention, please refer to the above method embodiment, which is not described herein again.
Corresponding to the above method embodiment, the present invention further provides a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of:
Analyzing the received server performance test request to obtain a target hard disk for server performance test; acquiring hot plug initialization information corresponding to a target hard disk; and performing hot plug operation by using the servo motor control target hard disk according to the hot plug initialization information to obtain a server performance test result.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For the introduction of the computer-readable storage medium provided by the present invention, please refer to the above method embodiments, which are not described herein again.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device, the apparatus and the computer-readable storage medium disclosed in the embodiments correspond to the method disclosed in the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method.
The principle and the implementation of the present invention are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
Claims (10)
1. A method for testing the performance of a server is characterized by comprising the following steps:
analyzing the received server performance test request to obtain a target hard disk for server performance test;
acquiring hot plug initialization information corresponding to the target hard disk;
and controlling the target hard disk to perform hot plug operation according to the hot plug initialization information by using a servo motor to obtain a server performance test result.
2. The method for testing the performance of the server according to claim 1, wherein the step of controlling the target hard disk to perform hot plug operation according to the hot plug initialization information by using the servo motor to obtain a result of the performance test of the server comprises the steps of:
controlling the target hard disk to carry out hot plug operation successively according to the target plug times in the hot plug initialization information by using the servo motor to obtain target server parameter information corresponding to each hot plug operation;
Sequentially judging whether the parameter information of each target server belongs to a corresponding preset threshold range;
if the target server parameter information which does not belong to the corresponding preset threshold range exists, sending a stop instruction to the servo motor so that the servo motor stops hot plug operation on the target hard disk;
acquiring actual plugging times corresponding to the target hard disk;
and evaluating the performance of the server by combining the actual plugging times and the parameter information of each target server to obtain a performance test result of the server.
3. The method for testing the performance of the server according to claim 1, wherein the step of controlling the target hard disk to perform hot plug operation according to the hot plug initialization information by using a servo motor comprises the steps of:
and controlling the target hard disk to perform hot plug operation according to the target slot position in the hot plug initialization information by using the servo motor.
4. The method according to any one of claims 1 to 3, wherein when the target hard disk includes a plurality of hard disks of different models, the server uses a servo motor to control the target hard disk to perform hot plug operation according to the hot plug initialization information to obtain a server performance test result, and the method includes:
Utilizing each servo motor to respectively control the corresponding target hard disk to perform hot plug operation according to the corresponding hot plug initialization information, and obtaining the server performance test sub-result respectively corresponding to each target hard disk;
and evaluating the performance of the server by combining the sub-results of the performance test of the server to obtain the result of the performance test of the server.
5. A server performance testing apparatus, comprising:
the request analysis module is used for analyzing the received server performance test request to obtain a target hard disk for the server performance test;
the information acquisition module is used for acquiring hot plug initialization information corresponding to the target hard disk;
and the test result obtaining module is used for controlling the target hard disk to perform hot plug operation according to the hot plug initialization information by using the servo motor to obtain a server performance test result.
6. The server performance testing apparatus according to claim 5, wherein the test result obtaining module comprises:
the parameter information obtaining submodule is used for controlling the target hard disk to carry out hot plug operation successively according to the target plug times in the hot plug initialization information by utilizing the servo motor so as to obtain target server parameter information corresponding to each hot plug operation;
The judgment submodule is used for sequentially judging whether the parameter information of each target server belongs to the corresponding preset threshold range;
the instruction sending submodule is used for sending a stopping instruction to the servo motor when the target server parameter information which does not belong to the corresponding preset threshold range is determined to exist, so that the servo motor stops hot plug operation on the target hard disk;
the frequency acquisition submodule is used for acquiring the actual plugging frequency corresponding to the target hard disk;
and the first test result obtaining submodule is used for carrying out server performance evaluation by combining the actual plugging times and the parameter information of each target server to obtain a server performance test result.
7. The server performance testing apparatus according to claim 5, wherein the test result obtaining module comprises a hot-plug control sub-module,
the hot plug control submodule is specifically a module which controls the target hard disk to perform hot plug operation according to the position of the target slot in the hot plug initialization information by using the servo motor.
8. The server performance testing device according to any one of claims 5 to 7, wherein the test result obtaining module comprises a sub-result obtaining sub-module and a second test result obtaining sub-module,
The sub-result obtaining sub-module is used for controlling the corresponding target hard disk to perform hot plug operation according to the corresponding hot plug initialization information by utilizing each servo motor when the target hard disk comprises a plurality of hard disks with different models, so as to obtain a server performance test sub-result corresponding to each target hard disk;
and the second test result obtaining submodule is used for carrying out server performance evaluation by combining the sub-results of the server performance test to obtain the server performance test result.
9. A server performance testing device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the server performance testing method according to any one of claims 1 to 4 when executing the 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 the server performance testing method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010538150.3A CN111858271B (en) | 2020-06-12 | 2020-06-12 | Server performance test method, device, equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010538150.3A CN111858271B (en) | 2020-06-12 | 2020-06-12 | Server performance test method, device, equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111858271A true CN111858271A (en) | 2020-10-30 |
CN111858271B CN111858271B (en) | 2022-10-28 |
Family
ID=72986846
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010538150.3A Active CN111858271B (en) | 2020-06-12 | 2020-06-12 | Server performance test method, device, equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111858271B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113704070A (en) * | 2021-07-26 | 2021-11-26 | 苏州浪潮智能科技有限公司 | Performance test method, device and equipment of GPU (graphics processing Unit) server and readable storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109299612A (en) * | 2018-08-28 | 2019-02-01 | 视联动力信息技术股份有限公司 | A kind of control method and device of hot-plug equipment |
-
2020
- 2020-06-12 CN CN202010538150.3A patent/CN111858271B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109299612A (en) * | 2018-08-28 | 2019-02-01 | 视联动力信息技术股份有限公司 | A kind of control method and device of hot-plug equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113704070A (en) * | 2021-07-26 | 2021-11-26 | 苏州浪潮智能科技有限公司 | Performance test method, device and equipment of GPU (graphics processing Unit) server and readable storage medium |
CN113704070B (en) * | 2021-07-26 | 2023-07-25 | 苏州浪潮智能科技有限公司 | Performance test method, device and equipment of GPU server and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111858271B (en) | 2022-10-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107632219B (en) | Automatic startup and shutdown test system and test method thereof | |
CN108717393A (en) | A kind of applied program testing method and mobile terminal | |
CN109799806B (en) | Simulation test method and system for valve control device | |
CN111258830B (en) | Server power consumption comparison test system and method | |
CN103377115A (en) | System event log management system and system event log management method | |
CN111858271B (en) | Server performance test method, device, equipment and readable storage medium | |
CN103838181A (en) | Machine tool state judgment method and system | |
CN107977318B (en) | Energy consumption and performance test method for Android application program | |
CN111814354A (en) | Simulation test method, system, medium and electronic device for instrument performance | |
CN112215482B (en) | Household transformer relation recognition method and device | |
CN105158673A (en) | ATE machine table file generation method and device | |
CN112485699A (en) | Server power supply test system | |
CN109444593B (en) | Automatic testing system and method for load-carrying performance of power distribution terminal | |
CN112256503A (en) | Test report generation method, device, equipment and computer readable storage medium | |
KR101957660B1 (en) | Multi-channel oscilloscopes with trigger setup mode for each channel and control method thereof | |
CN201754469U (en) | Recording and analyzing device for operation and failure of switch cabinet | |
CN112800637B (en) | Intelligent substation simulation test device and method | |
CN112543110A (en) | Network communication simulation method and system of mass power distribution automatic terminal | |
CN114924545A (en) | Test method, device, test equipment and medium for primary frequency modulation device | |
CN105158611A (en) | Information processing method and electronic apparatus | |
CN113032333B (en) | Sensor file adding method, device and equipment for server monitoring project | |
CN112630625A (en) | System and method for testing power supply chip | |
CN109546558B (en) | Method, device and system for maintaining small bus power supply jack box on line | |
CN111709105A (en) | Current load value calculation method, device, equipment and storage medium | |
CN117033096A (en) | Performance test method and device, electronic equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |