CN107908512A - The test method and test device of a kind of disk performance - Google Patents
The test method and test device of a kind of disk performance Download PDFInfo
- Publication number
- CN107908512A CN107908512A CN201711120114.XA CN201711120114A CN107908512A CN 107908512 A CN107908512 A CN 107908512A CN 201711120114 A CN201711120114 A CN 201711120114A CN 107908512 A CN107908512 A CN 107908512A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- performance test
- disk
- script
- write
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2268—Logging of test results
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention discloses the test method and test device of a kind of disk performance, including:Host virtual machine generates disk performance test script according to the configuration information prestored;The disk performance test script of generation is sent to all from virtual machine;The disk performance test script of host virtual machine operation generation, and script operating instruction is sent to it is all from virtual machine so that the disk performance test script each obtained from virtual machine operation.From the embodiment of the present invention, host virtual machine generates disk performance test script according to configuration information, and test script is automatically transmitted to from virtual machine, by from virtual machine testing results script, test script is write so as to avoid because of operation maintenance personnel, and then script is copied to the problem of caused test process is cumbersome on every virtual machine, whole test process is greatly simplified, has saved human cost.
Description
Technical field
The present invention relates to the test method and test device in virtual machine technique field, more particularly to a kind of disk performance.
Background technology
In cloud computing era, virtualization technology is increasingly valued by people, and the application of virtual machine can not only improve thing
The utilization rate of resource is managed, is also convenient for maintenance and management.In virtual machine, the quality of disk performance can directly affect the body of user
Test, thus by more virtual robot arms into cluster after deployment is completed, operation maintenance personnel is often required for every virtual machine
The performance test of single disk, integration test is carried out to the performance of the disk of every virtual machine, to all virtual in whole cluster
The performance of the disk of machine carries out integration test.
In correlation technique, when to carry out these tests, it is necessary to which operation maintenance personnel is according to different objects to be tested, i.e., single magnetic
Disk, single virtual machine and cluster write corresponding test script, then successively that institute is to be tested right when testing object to be tested
As corresponding test script is copied on every virtual machine, so that virtual machine is tested according to test script.
Therefore, whole test process is very cumbersome, and very labor intensive cost.
The content of the invention
, can in order to solve the above technical problem, the present invention provides the test method and test device of a kind of disk performance
Dramatically simplify test process, save human cost.
In order to reach the object of the invention, the present invention provides a kind of test method of disk performance, including:
Host virtual machine generates disk performance test script according to the configuration information prestored;
The disk performance test script of generation is sent to all from virtual machine in cluster;
The disk performance test script of host virtual machine operation generation, and script operating instruction is sent to all from virtual
Machine, so that the disk performance test script each obtained from virtual machine operation.
It is described the disk performance test script of generation is sent to it is all from virtual machine, including:
Virtual machine Internet protocol address according to prestoring determines all from virtual machine;
Logged according to the virtual machine root password prestored corresponding from virtual machine;
The disk performance test script of generation is sent into each predetermined directory from virtual machine.
The disk performance test script of the operation generation, and script operating instruction is sent to it is all from virtual machine, with
So that each further included after the disk performance test script that virtual machine operation receives:
To all test result acquisition request is sent from virtual machine;
Receive the test result each sent from virtual machine.
The configuration information includes default delay testing block size, reads test block size, write test block size, read and write and survey
Test block size, read test block number of concurrent, write test block number of concurrent, read test block number of concurrent, readwrite tests block number of concurrent and test
Time;
The host virtual machine generates disk performance test script according to the configuration information prestored, including:
The host virtual machine is surveyed according to the delay testing block size and the single disk response delay of testing time generation
Training sheet;
Read to test block size, the reading test block number of concurrent and the single disk reading performance of testing time generation according to described
Test script, single virtual machine reading performance test script and cluster reading performance test script;
Write test block size according to described, described write test block number of concurrent and the single disk write performance of testing time generation
Test script, single virtual machine write performance test script and cluster write performance test script;
Single disk is generated according to the readwrite tests block size, the readwrite tests block number of concurrent and the testing time to read
Write performance test script, single virtual machine readwrite performance test script and cluster readwrite performance test script.
The test result each sent from virtual machine includes single disk response delay test result, single disk reading performance
Test result, single virtual machine reading performance test result from each disk of virtual machine, the cluster of each disk from virtual machine
Reading performance test result, single disk write the performance test results, single virtual machine write performance from each disk of virtual machine test knot
Fruit, the cluster write performance test result from each disk of virtual machine, the readwrite performance test result of single disk, from virtual machine
Each the cluster readwrite performance of single virtual machine readwrite performance test result of disk and each disk from virtual machine tests knot
Fruit;
The reception each after the test result that virtual machine is sent, further includes:
The single virtual machine reading performance test result from each disk of virtual machine that belongs to together of acquisition is added, obtains institute
State single virtual machine reading performance test result;
The single virtual machine write performance test result from each disk of virtual machine that belongs to together of acquisition is added, obtains institute
State single virtual machine write performance test result;
The single virtual machine readwrite performance test result from each disk of virtual machine that belongs to together of acquisition is added, is obtained
The list virtual machine readwrite performance test result;
All single virtual machine reading performance test results of acquisition are added, obtain the cluster reading performance test result;
All single virtual machine write performance test results of acquisition are added, obtain the cluster write performance test result;
All single virtual machine readwrite performance test results of acquisition are added, obtain the cluster readwrite performance test knot
Fruit.
A kind of test method for disk performance that the embodiment of the present invention also provides, including:
The disk performance test script of host virtual machine transmission is received from virtual machine;
Receive the script operating instruction that the host virtual machine is sent;
The disk performance test script is run, and generates test result.
The disk performance test script include single disk response delay test script, single disk reading performance test script,
Single virtual machine reading performance test script, cluster reading performance test script, single disk write performance test script, single virtual machine write performance
Test script, cluster write performance test script, single disk read-write performance test script, single virtual machine readwrite performance test script with
And cluster readwrite performance test script;
The operation disk performance test script, and test result is generated, including:
Single disk response delay test script is run, generates single disk response delay test result;
Single disk reading performance test script is run, generates single disk reading performance test result;
Single virtual machine reading performance test script is run, generates single virtual machine reading performance test of each disk of itself
As a result;
The cluster reading performance test script is run, generates the cluster reading performance test result of each disk of itself;
Single disk write performance test script is run, generates single disk write the performance test results;
Single virtual machine write performance test script is run, the write performance for generating single virtual machine of each disk of itself is surveyed
Test result;
The cluster write performance test script is run, generates the cluster write performance test result of each disk of itself;
Single disk read-write performance test script is run, generates the readwrite performance test result of single disk;
Single virtual machine readwrite performance test script is run, generates single virtual machine readwrite performance of each disk of itself
Test result;
The cluster readwrite performance test script is run, generates the cluster readwrite performance test knot of each disk of itself
Fruit.
The operation disk performance test script, and after generating test result, further include:
Receive the test result that the host virtual machine is sent and obtain request;
The test result of generation is sent to the host virtual machine;Wherein test result includes single disk response delay test knot
Fruit, single disk reading performance test result, the cluster reading performance test result of each disk of itself, single disk write performance test knot
Fruit, the write performance test result of single virtual machine of each disk of itself, the cluster write performance test of each disk of itself are tied
Fruit, single readwrite performance test result of disk, single virtual machine readwrite performance test result of each disk of itself and itself
Each disk cluster readwrite performance test result.
A kind of host virtual machine that the embodiment of the present invention also provides, including:
First processing module, for generating disk performance test script according to the configuration information prestored;
First sending module, the disk performance test script of generation is sent to all from virtual machine;
Second sending module, for running the disk performance test script of generation, and is sent to institute by script operating instruction
Have from virtual machine, so that the disk performance test script each obtained from virtual machine operation.
The embodiment of the present invention also provides a kind of from server, including:
First receiving module, for receiving the disk performance test script of host virtual machine transmission from virtual machine;
Second receiving module, the script operating instruction sent for receiving the host virtual machine;
Second processing module, for running the disk performance test script, and generates generation test result.
Compared with prior art, the present invention includes at least host virtual machine and generates disk according to the configuration information prestored
Can test script;The disk performance test script of generation is sent to all from virtual machine;The disk performance test of operation generation
Script, and script operating instruction is sent to it is all from virtual machine so that the disk performance each obtained from virtual machine operation
Test script.From technical solution provided by the invention as it can be seen that being surveyed since host virtual machine generates disk performance according to configuration information
Training sheet, and test script is automatically transmitted to from virtual machine, by from virtual machine testing results script, so as to avoid because of O&M
Personnel write test script, and then copy script to the problem of caused test process is cumbersome on every virtual machine, greatly
Whole test process is simplified, has saved human cost.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by specification, rights
Specifically noted structure is realized and obtained in claim and attached drawing.
Brief description of the drawings
Attached drawing is used for providing further understanding technical solution of the present invention, and a part for constitution instruction, with this
The embodiment of application is used to explain technical scheme together, does not form the limitation to technical solution of the present invention.
Fig. 1 is a kind of flow diagram of the test method of disk performance provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of the test method of another disk performance provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of the test method of another disk performance provided in an embodiment of the present invention;
Fig. 4 is a kind of structure diagram of host virtual machine provided in an embodiment of the present invention;
Fig. 5 is the structure diagram of another host virtual machine provided in an embodiment of the present invention;
Fig. 6 is a kind of structure diagram from virtual machine provided in an embodiment of the present invention;
Fig. 7 is another structure diagram from virtual machine provided in an embodiment of the present invention.
Embodiment
For the object, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with attached drawing to the present invention
Embodiment be described in detail.It should be noted that in the case where there is no conflict, in the embodiment and embodiment in the application
Feature can mutually be combined.
The embodiment of the present invention provides a kind of test method of disk performance, as shown in Figure 1, this method includes:
Step 101, host virtual machine generate disk performance test script according to the configuration information prestored.
It should be noted that the language of the disk performance test script generated can be Linux Shell.
Specifically, configuration information includes default delay testing block size, reads test block size, write test block size, read
Write test block size, read test block number of concurrent, write test block number of concurrent, read test block number of concurrent, readwrite tests block number of concurrent and
Testing time.Wherein, delay testing block size refers to the size of data block used by delay during test;Read test block size
Refer to test reading according to during performance once it is required read data data block size;Write test block size and refer to that test is write
During data performance once it is required write-in data data block size;Readwrite tests block size refers to test read-while-write performance
Shi Yici is required to read the Database size of write-in data, also, should also include read-write number in readwrite tests block size
According to ratio;Read test block number of concurrent and refer to number of the test reading according to data block once required during performance;Write test
Block number of concurrent refers to testing the number of data block once required when writing data performance;Readwrite tests block number of concurrent refers to
The number of data block once required during test read-write data performance, also, should also be included in readwrite tests block number of concurrent
The test block number of concurrent of reading and the test block number of concurrent write.
Specifically, step 101 can be realized by step 101a~101d:
Step 101a, host virtual machine is according to delay testing block size and the single disk response delay test foot of testing time generation
This.
Step 101b, according to reading test block size, test block number of concurrent and the single disk reading performance survey of testing time generation are read
Training sheet, single virtual machine reading performance test script and cluster reading performance test script.
It should be noted that single virtual machine reading performance test script is the script for testing single virtual machine reading performance, but by
In actual read operation carried out in the disk of the virtual machine institute carry, therefore single virtual machine reading performance test script is actual
It is the script of all disk reading performances of integration test single virtual machine;Equally, cluster reading performance test script is that test cluster is read
The script of performance, but since actual read operation is carried out in the disk of the virtual machine institute carry in the cluster, collect
Group's reading performance operation script is really the script of the disk reading performance of all virtual machines in integration test cluster.
Step 101c, according to writing test block size, write test block number of concurrent and the single disk write performance of testing time generation is surveyed
Training sheet, single virtual machine write performance test script and cluster write performance test script.
It should be noted that single virtual machine write performance test script is the script for testing single virtual machine write performance, but by
In actual write operation carried out in the disk of the virtual machine institute carry, therefore single virtual machine write performance test script is actual
It is the script of all disk write performances of integration test single virtual machine;Equally, cluster write performance test script is that test cluster is write
The script of performance, but since actual write operation is carried out in the disk of the virtual machine institute carry in the cluster, collect
Group's write performance operation script is really the script of the disk write performance of all virtual machines in integration test cluster.
Step 101d, single disk read-write is generated according to readwrite tests block size, readwrite tests block number of concurrent and testing time
Performance test script, single virtual machine readwrite performance test script and cluster readwrite performance test script.
It should be noted that single virtual machine readwrite performance test script is the script for testing single virtual machine readwrite performance,
But since actual read-write operation is carried out in the disk of the virtual machine institute carry, single virtual machine readwrite performance test
Script is really the script of all disk read-write performances of integration test single virtual machine;Equally, cluster readwrite performance test script
It is the script of test cluster readwrite performance, but since actual read-write operation is the disk of the virtual machine institute carry in the cluster
Middle progress, therefore cluster readwrite performance operation script is really the disk read-write performance of all virtual machines in integration test cluster
Script.
Specifically, reading performance test further includes the test of order reading performance and random write performance test, write performance test is also wrapped
Sequential write performance test and random write performance test are included, therefore, the reading test block size in configuration information specifically can also be divided into suitable
Sequence read test block size and random write test block size, write test block size specifically can also be divided into sequential write test block size and with
Machine writes test block size, and reading test block number of concurrent includes order reading test block size and random write test block size, writes test block
Size includes sequential write test block size and random write test block size.Correspondingly, given birth to according to the configuration information prestored
Into disk performance test script include single disk response delay test script, single disk order reading performance test script, single empty
Plan machine order reading performance test script and cluster order reading performance test script, single disk random write performance test script, list
Virtual machine random write performance test script and cluster random write performance test script, single disk sequential write performance test script,
Single virtual machine sequential write performance test script and cluster sequential write performance test script, single disk random write performance test foot
Originally, single virtual machine random write performance test script and cluster random write performance test script, single disk read-write performance test foot
Originally, single virtual machine readwrite performance test script and cluster readwrite performance test script.
Specifically, single disk response delay test script is generated with step 101a, test block size, suitable is read according to order
Sequence reads test block number of concurrent and the single disk order reading performance test script of testing time generation, single virtual machine order reading performance test
Script and cluster order reading performance test script;Block size, random write test block number of concurrent and test are tested according to random write
The single disk random write performance test script of time generation, single virtual machine random write performance test script and the random reading performance of cluster
Test script;Block size, sequential write test block number of concurrent and the single disk sequential write of testing time generation are tested according to sequential write
Can test script, single virtual machine sequential write performance test script and cluster sequential write performance test script;Surveyed according to random write
Test block size, random write test block number of concurrent and the single disk random write performance test script of testing time generation, single virtual machine with
Machine write performance test script and cluster random write performance test script;Single disk read-write performance test foot is generated with step 101d
Originally, single virtual machine readwrite performance test script and cluster readwrite performance test script.
Step 102, the disk performance test script of generation is sent to it is all from virtual machine in cluster.
It should be noted that host virtual machine with some from virtual robot arm into cluster, wherein, host virtual machine be probably with it is some
From virtual machine with a physical server, it is also possible to separately exist on a physical server, the present invention to this not
It is construed as limiting.
Specifically, can be that one test script of every generation is just all from one test foot of virtual machine transmission into cluster
Originally it is or all from all test scripts of virtual machine transmission, the present invention into cluster after the generation completion of all test scripts
This is not restricted.
Step 103, the disk performance test script of operation generation, and script operating instruction is sent to all from virtual
Machine, so that the disk performance test script each obtained from virtual machine operation.
Specifically, host virtual machine can be one disk performance test script of generation, it is all from virtual machine into cluster
Send, then run this disk performance test script of generation, and be at the same time sent to script operating instruction all from virtual
Machine, so that each from the disk performance test script of virtual machine operation host virtual machine generation;Then next disk is regenerated
Performance test script, all this disk performance test scripts for being sent from virtual machine, then running generation into cluster, and
At the same time script operating instruction is sent to it is all from virtual machine so that each from virtual machine operation host virtual machine generation disk
Performance test script, until host virtual machine has generated all disk performance test scripts.Can also be, host virtual machine has generated
All disk performance test scripts, all disk performance test scripts that generation is sent from virtual machine into cluster,
Then run one in the disk performance test script of generation, and be at the same time sent to the script operating instruction of the script all
From virtual machine, so that the identical disk performance test script being each currently running from virtual machine operation with host virtual machine;Connect
Next in the disk performance test script for generation of reruning, and the script operating instruction of the script is sent to institute at the same time
Have from virtual machine, so that the identical disk performance test script being each currently running from virtual machine operation with host virtual machine,
Until all generated disk performance test scripts have performed.
The test method for the disk performance that the embodiment of the present invention is provided, host virtual machine is according to the configuration information prestored
Generate disk performance test script;The disk performance test script of generation is sent to all from virtual machine;Run the magnetic of generation
Disk performance test script, and script operating instruction is sent to it is all from virtual machine so that each being obtained from virtual machine operation
Disk performance test script.From technical solution provided by the invention as it can be seen that since host virtual machine is generated according to configuration information
Disk performance test script, and test script is automatically transmitted to from virtual machine, by from virtual machine testing results script, so as to keep away
Exempt from because operation maintenance personnel writes test script, and then copied script and asked to caused test process on every virtual machine is cumbersome
Topic, greatly simplifies whole test process, has saved human cost.
The embodiment of the present invention provides the test method of another disk performance, as shown in Fig. 2, this method includes:
Step 201, receive the disk performance test script that host virtual machine is sent from virtual machine.
Step 202, receive the script operating instruction that host virtual machine is sent.
Step 203, operation disk performance test script, and generate test result.
Specifically, disk performance test script includes single disk response delay test script, single disk reading performance test foot
Originally, single virtual machine reading performance test script, cluster reading performance test script, single disk write performance test script, single virtual machine are write
Performance test script, cluster write performance test script, single disk read-write performance test script, single virtual machine readwrite performance test foot
Sheet and cluster readwrite performance test script.
Specifically, step 203 can be realized by step 203a~203j:
Step 203a, single disk response delay test script is run, generates single disk response delay test result.
Specifically, it is also likely to be multiple to be probably one from the number of disks of virtual machine mounting, the present invention does not limit this
System, when the number of disks mounted from virtual machine is multiple, by the performance of disk that is mounted in time delay performance substantially phase
Together, therefore from virtual machine only one of disk can be tested according to single disk response delay test script, it is specific to survey
During examination, the number of a delay testing block size is read from a disk according to single disk response delay test script from virtual machine
According to the time for obtaining data streams read is exactly final single disk response delay test result.
Step 203b, single disk reading performance test script is run, generates single disk reading performance test result.
Specifically, from virtual machine in the single disk reading performance test script of operation, can be respectively in each disk of itself
The data for reading test block size are read, with the single disk reading performance test result of generation.
Step 203c, single virtual machine reading performance test script is run, generates single virtual machine-readable property of each disk of itself
Can test result.
Specifically, from virtual machine in the single virtual machine reading performance test script of operation, can be in the one or more magnetic of itself
The read block number data block equal with reading test block number of concurrent, and each data data volume in the block and number at the same time in disk
According to the equal-sized data of test block are read, to generate single virtual machine reading performance test result of each disk of itself.
Step 203d, cluster reading performance test script is run, generates the cluster reading performance test knot of each disk of itself
Fruit.
Specifically, from virtual machine operation cluster reading performance test script be in cluster it is all from virtual machine together from
The read block number data block equal with reading test block number of concurrent, and often at the same time in one or more disks in body virtual machine
A data data volume in the block reads the equal-sized data of test block with data, to generate the cluster of each disk of itself property read
Can test result.
Step 203e, single disk write performance test script is run, generates single disk write the performance test results.
Specifically, from virtual machine in the single disk reading performance test script of operation, can be respectively in each disk of itself
Middle one data for reading test block size of write-in, with the single disk write the performance test results of generation.
Step 203f, single virtual machine write performance test script is run, the single virtual machine for generating each disk of itself is write
The performance test results.
Specifically, from virtual machine in the single virtual machine reading performance test script of operation, can be in the one or more magnetic of itself
The writing data blocks number data block equal with reading test block number of concurrent, and each data data volume in the block and number at the same time in disk
According to the equal-sized data of test block are read, to generate single virtual machine write performance test result of each disk of itself.
Step 203g, cluster write performance test script is run, generates the cluster write performance test knot of each disk of itself
Fruit.
Specifically, from virtual machine operation cluster reading performance test script be in cluster it is all from virtual machine together from
The writing data blocks number data block equal with reading test block number of concurrent, and often at the same time in one or more disks in body virtual machine
A data data volume in the block reads the equal-sized data of test block with data, to generate the cluster property write of each disk of itself
Can test result.
Step 203h, single disk read-write performance test script is run, generates the readwrite performance test result of single disk.
Specifically, from virtual machine in the single disk reading performance test script of operation, can be respectively in each disk of itself
One data for reading test block size of write-in are read, with the single disk read-write the performance test results of generation.
Step 203i, single virtual machine readwrite performance test script is run, generates the single virtual machine-readable of each disk of itself
Write performance test result.
Specifically, from virtual machine in the single virtual machine reading performance test script of operation, meeting one or more magnetic in itself
The writing data blocks number data block equal with reading test block number of concurrent, and each data data volume in the block are read in disk at the same time
The equal-sized data of test block are read with data, to generate single virtual machine readwrite performance test result of each disk of itself.
Step 203j, cluster readwrite performance test script is run, the cluster readwrite performance for generating each disk of itself is surveyed
Test result.
Specifically, from virtual machine operation cluster reading performance test script be in cluster it is all from virtual machine together from
Read the writing data blocks number data block equal with reading test block number of concurrent in body virtual machine in one or more disks at the same time,
And each data data volume in the block reads the equal-sized data of test block with data, to generate the cluster of each disk of itself
Readwrite performance test result.
It should be noted that single disk reading performance test result, single virtual machine reading performance from each disk of virtual machine
Test result, the cluster reading performance test result from each disk of virtual machine can carry out the maximum secondary of read operation with per second
Number and bandwidth represent, single disk write the performance test results from single virtual machine write performance test result of each disk of virtual machine,
Can be with the maximum times and bandwidth of progress write operation per second from the cluster write performance test result of each disk of virtual machine
Represent, single disk read-write the performance test results from single virtual machine readwrite performance test result of each disk of virtual machine, from void
The cluster readwrite performance test result of each disk of plan machine can be with the maximum times (Input/ per second for being written and read operation
Output Operations Per Second, IOPS) and bandwidth expression, wherein bandwidth can be represented with MB/s.
The test method for the disk performance that the embodiment of the present invention is provided, the disk of host virtual machine transmission is received from virtual machine
Performance test script;Receive the script operating instruction that host virtual machine is sent;Disk performance test script is run, and generates test knot
Fruit.From technical solution provided by the invention as it can be seen that due to the disk performance test sent automatically from virtual machine reception host virtual machine
Script, and received disk performance test script is run to generate test result, write so as to avoid because of operation maintenance personnel
Test script, and then script is copied to the problem of caused test process is cumbersome on every virtual machine, greatly simplifie whole
A test process, has saved human cost.
The embodiment of the present invention provides the test method of another disk performance, as shown in figure 3, this method includes:
Step 301, host virtual machine generate disk performance test script according to the configuration information prestored.
Step 302, host virtual machine determine all from virtual machine according to the virtual machine Internet protocol address prestored.
Step 303, host virtual machine log in corresponding from virtual machine according to the virtual machine root password prestored.
Step 304, host virtual machine send the disk performance test script of generation to each predetermined directory from virtual machine
In.
Step 305, receive the disk performance test script that host virtual machine is sent from virtual machine.
Step 306, the disk performance test script of host virtual machine operation generation, and script operating instruction is sent to all
From virtual machine.
Step 307, receive the script operating instruction that host virtual machine is sent from virtual machine.
Step 308, from virtual machine run disk performance test script, and generates test result.
Step 309, host virtual machine send test result acquisition request to all from virtual machine.
Step 310, receive the test result acquisition request that host virtual machine is sent from virtual machine.
Step 311, send the test result generated from virtual machine to host virtual machine.
Wherein, test result includes single disk response delay test result, single disk reading performance test result, itself every
The cluster reading performance test result of a disk, single disk write the performance test results, single virtual machine of each disk of itself are write
The performance test results, the cluster write performance test result of each disk of itself, the readwrite performance test result of single disk, itself
Single virtual machine readwrite performance test result of each disk and the cluster readwrite performance test result of each disk of itself.
Step 312, host virtual machine receive the test result each sent from virtual machine.
Wherein, the test result each sent from virtual machine includes single disk response delay test result, single disk property read
Can test result, the cluster reading performance test result of each disk of itself, single disk write the performance test results, itself each
The reading of the write performance test result of single virtual machine of disk, the cluster write performance test result of each disk of itself, single disk
The collection of write performance test result, single virtual machine readwrite performance test result of each disk of itself and each disk of itself
Group's readwrite performance test result.
Step 313, host virtual machine obtain single virtual machine reading performance test result, the cluster property read according to the test result of acquisition
Can test result, the write performance test result of single virtual machine, cluster write performance test result, single virtual machine readwrite performance test knot
Fruit and cluster readwrite performance test result.
It should be noted that due to single disk response delay test result, single disk reading performance test result, single disk write
The performance test results, the readwrite performance test result of single disk need not be handled, therefore these results can be used as final result
Present, and due to single virtual machine reading performance test result of each disk from virtual machine, from the collection of each disk of virtual machine
Group's reading performance test result, single virtual machine write performance test result from each disk of virtual machine, each magnetic from virtual machine
The cluster write performance test result of disk, from single virtual machine readwrite performance test result of each disk of virtual machine and from virtual
The cluster readwrite performance test result of each disk of machine is both for disk, so to obtain for virtual machine or cluster
The performance test results will pass through processing.
Specifically, step 313 can be realized by step 313a~313f:
Step 313a, acquisition is belonged to together a single virtual machine reading performance test result phase from each disk of virtual machine
Add, obtain single virtual machine reading performance test result.
Specifically, the quantity for assuming virtual machine in cluster is N number of, then obtained list virtual machine reading performance result also has
N number of (N-1 is a from single virtual machine reading performance result of virtual machine and single virtual machine reading performance result of 1 host virtual machine), the 1st
Single virtual machine reading performance result is by the way that single virtual machine reading performance test result of each disk of the 1st single virtual machine is added
Arrive, the 2nd single virtual machine reading performance result by single virtual machine reading performance of each disk of the 2nd single virtual machine by testing knot
N-th list virtual machine reading performance result that fruit is added to obtain ... passes through the list of each disk of n-th list virtual machine is virtual machine-readable
The performance test results are added to obtain.
Step 313b, acquisition is belonged to together a single virtual machine write performance test result phase from each disk of virtual machine
Add, obtain single virtual machine write performance test result.
Specifically, it is still assumed that the quantity of virtual machine is N number of in cluster, then obtained list virtual machine write performance result
Also there is N number of (N-1 is a from single virtual machine write performance result of virtual machine and single virtual machine write performance result of 1 host virtual machine),
1st single virtual machine write performance result is by by single virtual machine write performance test result of each disk of the 1st single virtual machine
Addition obtains, and the 2nd single virtual machine write performance result is by by single virtual machine write performance of each disk of the 2nd single virtual machine
N-th list virtual machine write performance result that test result is added to obtain ... passes through the list of each disk of n-th list virtual machine is empty
Plan machine write performance test result is added to obtain.
Step 313c, acquisition is belonged to together a single virtual machine readwrite performance test result from each disk of virtual machine
It is added, obtains single virtual machine readwrite performance test result.
Specifically, it is still assumed that the quantity of virtual machine is N number of in cluster, then obtained list virtual machine readwrite performance knot
Fruit also has that N number of (N-1 is from single virtual machine readwrite performance result of virtual machine and single virtual machine readwrite performance of 1 host virtual machine
As a result), the 1st single virtual machine readwrite performance result by single virtual machine of each disk of the 1st single virtual machine by reading and writing property
Can test result be added to obtain, the 2nd single virtual machine readwrite performance result is by by the list of each disk of the 2nd single virtual machine
N-th list virtual machine readwrite performance result that virtual machine readwrite performance test result is added to obtain ... is by by n-th list virtual machine
Single virtual machine readwrite performance test result of each disk be added to obtain.
Step 313d, all single virtual machine reading performance test results of acquisition are added, obtain cluster reading performance test knot
Fruit.
Specifically, assume there are N number of single virtual machine reading performance result (N-1 single virtual machine reading performance results from virtual machine
With single virtual machine reading performance result of 1 host virtual machine), this N number of results added is just obtained into cluster reading performance test result.
Step 313e, all single virtual machine write performance test results of acquisition are added, obtain cluster write performance test knot
Fruit.
Specifically, assume there are N number of single virtual machine write performance result (N-1 single virtual machine write performance results from virtual machine
With single virtual machine write performance result of 1 host virtual machine), this N number of results added is just obtained into cluster write performance test result.
Step 313f, all single virtual machine readwrite performance test results of acquisition are added, obtain the survey of cluster readwrite performance
Test result.
Specifically, it is still assumed that there is N number of single virtual machine readwrite performance result, (N-1 single virtual machines from virtual machine are read and write
Single virtual machine readwrite performance result of results of property and 1 host virtual machine), this N number of results added is just obtained into cluster read-write property
Can test result.
The test method for the disk performance that the embodiment of the present invention is provided, host virtual machine is according to the configuration information prestored
Generate disk performance test script;The disk performance test script of generation is sent to all from virtual machine;Run the magnetic of generation
Disk performance test script, and script operating instruction is sent to it is all from virtual machine so that each being obtained from virtual machine operation
Disk performance test script.From technical solution provided by the invention as it can be seen that since host virtual machine is generated according to configuration information
Disk performance test script, and test script is automatically transmitted to from virtual machine, by being generated from virtual machine testing results script
Test result, test script is write so as to avoid because of operation maintenance personnel, and then copies script caused by every virtual machine
The problem of test process is cumbersome, greatly simplifies whole test process, has saved human cost.
The embodiment of the present invention also provides a kind of test method of disk performance, and this method is showed in the form of script, test
Following configuration file is included in script:
1、parameter.cfg:Each virtual machine IP to be measured, the data drive of each virtual machine, host root password.
2、config_pretest.cfg/config_delay.cfg/config_volume.cfg/config_
node.cfg/
cfg/config_system.cfg:
Pretest files are that disk write to be tested first is expired data, when ensureing follow-up test reading performance, will not read empty number
According to influencing test result.Alternative document is the file of test single-deck time delay, the file of the single magnetic property of test, the single void of test respectively
The file of the file of plan machine performance test cluster performance.
Cfg file intrinsic parameters include:
test_mode:Test pattern, including order reading, sequential write, random write, random write, mixing read-write etc..
test_BS(K):Block size, block size is arranged to 8 or 4, when testing sequence is read and write when testing random read-write performance
Block size is arranged to 512 or 1024.
test_times:Test execution time, unit are the second, are generally defaulted as 300s.
test_iodepths:Queue depth, and the number of concurrent of test block, queue depth is full when test-types are delay
Portion is arranged to 1;Other types, queue depth is defaulted as 128 during random read-write, and queue depth is defaulted as 32 when order is read and write.
Automatic testing process step is as follows:
1st, by each parameter value, fio test scripts is generated and are output in temporary file.
Under the 2nd, tmp catalogues that the contents such as script are reached to other virtual machines to be measured by spawn scp orders.
3rd, test script is performed on each virtual machine by spawn ssh orders.
4th, perform script, each execution interval 5 seconds or so are circulated according to test_mode test patterns.
5th, according to the test result of test-types circulatory support script, output volume, node, system etc..
6th, perform after completing that by spawn scp orders the result of each virtual machine is uniformly copied to host virtual machine is pre-
Under the VM $ i catalogues first established, and result is uniformly collected.
The embodiment of the present invention also provides a kind of computer-readable recording medium, is stored with computer executable instructions, calculates
Machine executable instruction is used for the test method for performing any of the above-described disk performance.
The embodiment of the present invention also provides a kind of host virtual machine, as shown in figure 4, the host virtual machine 4 includes:
First processing module 41, for generating disk performance test script according to the configuration information prestored.
First sending module 42, it is all from virtual machine for the disk performance test script of generation to be sent to.
Second sending module 43, for running the disk performance test script of generation, and script operating instruction is sent to
It is all from virtual machine so that each from the disk performance test script that obtains of virtual machine operation.
Further, the first sending module 42 is specifically used for:
Virtual machine Internet protocol address according to prestoring determines all from virtual machine.
Logged according to the virtual machine root password prestored corresponding from virtual machine.
The disk performance test script of generation is sent into each predetermined directory from virtual machine.
Further, on the basis of the corresponding embodiments of Fig. 4, the embodiment of the present invention provides another host virtual machine, such as Fig. 5
Shown, which further includes:
3rd sending module 44, for sending test result acquisition request from virtual machine to all.
3rd receiving module 45, for receiving the test result each sent from virtual machine
Configuration information includes default delay testing block size, reads test block size, writes test block size, readwrite tests block
Size, read test block number of concurrent, write test block number of concurrent, read test block number of concurrent, readwrite tests block number of concurrent and testing time,
First processing module 41, is specifically used for:
According to delay testing block size and the single disk response delay test script of testing time generation.
Single disk reading performance test script, list are generated according to test block size, reading test block number of concurrent and testing time is read
Virtual machine reading performance test script and cluster reading performance test script.
According to writing test block size, write test block number of concurrent and the single disk write performance test script of testing time generation, list
Virtual machine write performance test script and cluster write performance test script.
Single disk read-write performance test foot is generated according to readwrite tests block size, readwrite tests block number of concurrent and testing time
Originally, single virtual machine readwrite performance test script and cluster readwrite performance test script.
The test result each sent from virtual machine includes single disk response delay test result, single disk reading performance test
As a result, single virtual machine reading performance test result from each disk of virtual machine, the cluster from each disk of virtual machine read property
Can test result, single disk write the performance test results, from single virtual machine write performance test result of each disk of virtual machine, from
The cluster write performance test result of each disk of virtual machine, the readwrite performance test result of single disk, from each of virtual machine
The cluster readwrite performance test result of single virtual machine readwrite performance test result of disk and each disk from virtual machine.Should
Host virtual machine 4 further includes:
3rd processing module 46, is used for:
The single virtual machine reading performance test result from each disk of virtual machine that belongs to together of acquisition is added, obtains list
Virtual machine reading performance test result.
The single virtual machine write performance test result from each disk of virtual machine that belongs to together of acquisition is added, obtains list
Virtual machine write performance test result.
The single virtual machine readwrite performance test result from each disk of virtual machine that belongs to together of acquisition is added, is obtained
Single virtual machine readwrite performance test result.
All single virtual machine reading performance test results of acquisition are added, obtain cluster reading performance test result.
All single virtual machine write performance test results of acquisition are added, obtain cluster write performance test result.
All single virtual machine readwrite performance test results of acquisition are added, obtain cluster readwrite performance test result.
The host virtual machine that the embodiment of the present invention is provided, according to the configuration information generation disk performance test foot prestored
This;The disk performance test script of generation is sent to all from virtual machine;The disk performance test script of generation is run, and will
Script operating instruction be sent to it is all from virtual machine so that each from the disk performance test script that obtains of virtual machine operation.
From technical solution provided by the invention as it can be seen that since host virtual machine according to configuration information generates disk performance test script, and
Test script is automatically transmitted to from virtual machine, by from virtual machine testing results script, being write so as to avoid because of operation maintenance personnel
Test script, and then script is copied to the problem of caused test process is cumbersome on every virtual machine, greatly simplifie whole
A test process, has saved human cost.
In practical applications, first processing module 41, the first sending module 42, the second sending module the 43, the 3rd send mould
Block 44, the 3rd receiving module 45, the 3rd processing module 46 can be by the central processing unit (Central positioned at host virtual machine
Processing Unit, CPU), microprocessor (Micro Processor Unit, MPU), digital signal processor
(Digital Signal Processor, DSP) or field programmable gate array (Field Programmable Gate
Array, FPGA) etc. realize.
The embodiment of the present invention also provides one kind from virtual machine, as shown in fig. 6, should include from virtual machine 5:
First receiving module 51, for receiving the disk performance test script of host virtual machine transmission from virtual machine.
Second receiving module 52, for receiving the script operating instruction of host virtual machine transmission.
Second processing module 53, for running disk performance test script, and generates generation test result.
Further, disk performance test script includes single disk response delay test script, single disk reading performance test foot
Originally, single virtual machine reading performance test script, cluster reading performance test script, single disk write performance test script, single virtual machine are write
Performance test script, cluster write performance test script, single disk read-write performance test script, single virtual machine readwrite performance test foot
Sheet and cluster readwrite performance test script.Second processing module 53 is specifically used for:
The single disk response delay test script of operation, generates single disk response delay test result.
The single disk reading performance test script of operation, generates single disk reading performance test result.
The single virtual machine reading performance test script of operation, generates single virtual machine reading performance test knot of each disk of itself
Fruit.
Cluster reading performance test script is run, generates the cluster reading performance test result of each disk of itself.
The single disk write performance test script of operation, generates single disk write the performance test results.
The single virtual machine write performance test script of operation, generates the write performance test knot of single virtual machine of each disk of itself
Fruit.
Cluster write performance test script is run, generates the cluster write performance test result of each disk of itself.
The single disk read-write performance test script of operation, generates the readwrite performance test result of single disk.
The single virtual machine readwrite performance test script of operation, generates single virtual machine readwrite performance test of each disk of itself
As a result.
Cluster readwrite performance test script is run, generates the cluster readwrite performance test result of each disk of itself.
Further, on the basis of the corresponding embodiments of Fig. 6, the embodiment of the present invention provides another from virtual machine, such as Fig. 7
It is shown, it should include from server 5:
4th receiving module 54, the test result for receiving host virtual machine transmission obtain request.
4th sending module 55, for sending the test result of generation to host virtual machine;Wherein test result includes single magnetic
Disk response delay test result, single disk reading performance test result, the cluster reading performance test result of each disk of itself, list
Disk write the performance test results, the write performance test result of single virtual machine of each disk of itself, each disk of itself
Cluster write performance test result, the readwrite performance test result of single disk, single virtual machine readwrite performance of each disk of itself
The cluster readwrite performance test result of test result and each disk of itself.
The slave virtual machine that the embodiment of the present invention is provided, receives the disk performance test script that host virtual machine is sent;Receive
The script operating instruction that host virtual machine is sent;Disk performance test script is run, and generates test result.From provided by the invention
Technical solution is run and is received as it can be seen that due to receiving the disk performance test script that sends automatically of host virtual machine from virtual machine
To disk performance test script to generate test result, write test script so as to avoid because of operation maintenance personnel, and then copy
Script greatly simplifies whole test process to the problem of caused test process is cumbersome on every virtual machine, saves
Human cost.
In practical applications, the first receiving module 51, the second receiving module 52, Second processing module the 53, the 4th receive mould
Block 54, the 4th sending module 55 can be by realizing positioned at CPU, MPU, DSP or FPGA from virtual machine etc..
The embodiment of the present invention also provides a kind of device for being used to test disk performance, including first memory and the first processing
Device, wherein, the following instruction that can be performed by first processor is stored with first memory:
Disk performance test script is generated according to the configuration information prestored.
The disk performance test script of generation is sent to all from virtual machine in cluster.
Run the disk performance test script of generation, and script operating instruction is sent to it is all from virtual machine so that
The disk performance test script each obtained from virtual machine operation.
Further, it is specific in first memory to be also stored with the following instruction that performed by first processor:
Virtual machine Internet protocol address according to prestoring determines all from virtual machine.
Logged according to the virtual machine root password prestored corresponding from virtual machine.
The disk performance test script of generation is sent into each predetermined directory from virtual machine.
Further, the following instruction that can be performed by first processor is also stored with first memory:
To all test result acquisition request is sent from virtual machine.
Receive the test result each sent from virtual machine.
Further, configuration information includes default delay testing block size, reads test block size, write test block size, read
Write test block size, read test block number of concurrent, write test block number of concurrent, read test block number of concurrent, readwrite tests block number of concurrent and
Testing time, the following instruction that can be performed by first processor is specifically stored with first memory:
According to delay testing block size and the single disk response delay test script of testing time generation.
Single disk reading performance test script, list are generated according to test block size, reading test block number of concurrent and testing time is read
Virtual machine reading performance test script and cluster reading performance test script.
According to writing test block size, write test block number of concurrent and the single disk write performance test script of testing time generation, list
Virtual machine write performance test script and cluster write performance test script.
Single disk read-write performance test foot is generated according to readwrite tests block size, readwrite tests block number of concurrent and testing time
Originally, single virtual machine readwrite performance test script and cluster readwrite performance test script.
Further, the test result each sent from virtual machine includes single disk response delay test result, single disk is read
The performance test results, single virtual machine reading performance test result from each disk of virtual machine, each disk from virtual machine
Cluster reading performance test result, single disk write the performance test results, single virtual machine write performance from each disk of virtual machine are surveyed
Test result, the cluster write performance test result from each disk of virtual machine, the readwrite performance test result of single disk, from virtual
Single virtual machine readwrite performance test result of each disk of machine and surveyed from the cluster readwrite performance of each disk of virtual machine
Test result.The following instruction that can be performed by first processor is also stored with first memory:
The single virtual machine reading performance test result from each disk of virtual machine that belongs to together of acquisition is added, obtains list
Virtual machine reading performance test result.
The single virtual machine write performance test result from each disk of virtual machine that belongs to together of acquisition is added, obtains list
Virtual machine write performance test result.
The single virtual machine readwrite performance test result from each disk of virtual machine that belongs to together of acquisition is added, is obtained
Single virtual machine readwrite performance test result.
All single virtual machine reading performance test results of acquisition are added, obtain cluster reading performance test result.
All single virtual machine write performance test results of acquisition are added, obtain cluster write performance test result.
All single virtual machine readwrite performance test results of acquisition are added, obtain cluster readwrite performance test result.
The embodiment of the present invention also provides another device for being used to test disk performance, including at second memory and second
Device is managed, wherein, the following instruction that can be performed by second processor is stored with second memory:
Receive the disk performance test script that host virtual machine is sent.
Receive the script operating instruction that host virtual machine is sent.
Disk performance test script is run, and generates test result.
Further, disk performance test script includes single disk response delay test script, single disk reading performance test foot
Originally, single virtual machine reading performance test script, cluster reading performance test script, single disk write performance test script, single virtual machine are write
Performance test script, cluster write performance test script, single disk read-write performance test script, single virtual machine readwrite performance test foot
This and cluster readwrite performance test script, are specifically stored with the following finger that can be performed by second processor in second memory
Order:
The single disk response delay test script of operation, generates single disk response delay test result.
The single disk reading performance test script of operation, generates single disk reading performance test result.
The single virtual machine reading performance test script of operation, generates single virtual machine reading performance test knot of each disk of itself
Fruit.
Cluster reading performance test script is run, generates the cluster reading performance test result of each disk of itself.
The single disk write performance test script of operation, generates single disk write the performance test results.
The single virtual machine write performance test script of operation, generates the write performance test knot of single virtual machine of each disk of itself
Fruit.
Cluster write performance test script is run, generates the cluster write performance test result of each disk of itself.
The single disk read-write performance test script of operation, generates the readwrite performance test result of single disk.
The single virtual machine readwrite performance test script of operation, generates single virtual machine readwrite performance test of each disk of itself
As a result.
Cluster readwrite performance test script is run, generates the cluster readwrite performance test result of each disk of itself.
Further, the following instruction that can be performed by second processor is also stored with second memory:
Receive the test result that host virtual machine is sent and obtain request.
The test result of generation is sent to host virtual machine;Wherein test result include single disk response delay test result,
Single disk reading performance test result, the cluster reading performance test result of each disk of itself, single disk write the performance test results,
The write performance test result of single virtual machine of each disk of itself, the cluster write performance test result of each disk of itself,
The readwrite performance test result of single disk, single virtual machine readwrite performance test result of each disk of itself and itself is every
The cluster readwrite performance test result of a disk.
Although disclosed herein embodiment as above, content be only readily appreciate the present invention and use implementation
Mode, is not limited to the present invention.Technical staff in any fields of the present invention, do not depart from disclosed herein
On the premise of spirit and scope, any modification and change can be carried out in the form and details of implementation, but the present invention's is special
Sharp protection domain, still should be subject to the scope of the claims as defined in the appended claims.
Claims (10)
- A kind of 1. test method of disk performance, it is characterised in that including:Host virtual machine generates disk performance test script according to the configuration information prestored;The disk performance test script of generation is sent to all from virtual machine in cluster;The disk performance test script of host virtual machine operation generation, and script operating instruction is sent to it is all from virtual machine, with So that the disk performance test script each obtained from virtual machine operation.
- 2. test method according to claim 1, it is characterised in that the disk performance test script by generation is sent To all from virtual machine, including:Virtual machine Internet protocol address according to prestoring determines all from virtual machine;Logged according to the virtual machine root password prestored corresponding from virtual machine;The disk performance test script of generation is sent into each predetermined directory from virtual machine.
- 3. the test method according to Claims 2 or 3, it is characterised in that the disk performance test foot of the operation generation This, and script operating instruction is sent to it is all from virtual machine so that the disk performance each received from virtual machine operation After test script, further include:To all test result acquisition request is sent from virtual machine;Receive the test result each sent from virtual machine.
- 4. test method according to claim 1, it is characterised in that the configuration information includes default delay testing block Size, read test block size, write test block size, readwrite tests block size, read test block number of concurrent, write test block number of concurrent, Read test block number of concurrent, readwrite tests block number of concurrent and testing time;The host virtual machine generates disk performance test script according to the configuration information prestored, including:The host virtual machine is according to the delay testing block size and the single disk response delay test foot of testing time generation This;Read to test block size, the reading test block number of concurrent and the single disk reading performance test of testing time generation according to described Script, single virtual machine reading performance test script and cluster reading performance test script;Write test block size according to described, described write test block number of concurrent and the single disk write performance test of testing time generation Script, single virtual machine write performance test script and cluster write performance test script;Single disk read-write is generated according to the readwrite tests block size, the readwrite tests block number of concurrent and the testing time Can test script, single virtual machine readwrite performance test script and cluster readwrite performance test script.
- 5. test method according to claim 3, it is characterised in that the test result bag each sent from virtual machine Include single disk response delay test result, single disk reading performance test result, from the single virtual machine-readable of each disk of virtual machine The performance test results, the cluster reading performance test result from each disk of virtual machine, single disk write the performance test results, from void Single virtual machine write performance test result of each disk of plan machine, the cluster write performance from each disk of virtual machine test knot Fruit, the readwrite performance test result of single disk, from single virtual machine readwrite performance test result of each disk of virtual machine and From the cluster readwrite performance test result of each disk of virtual machine;The reception each after the test result that virtual machine is sent, further includes:The single virtual machine reading performance test result from each disk of virtual machine that belongs to together of acquisition is added, obtains the list Virtual machine reading performance test result;The single virtual machine write performance test result from each disk of virtual machine that belongs to together of acquisition is added, obtains the list Virtual machine write performance test result;The single virtual machine readwrite performance test result from each disk of virtual machine that belongs to together of acquisition is added, is obtained described Single virtual machine readwrite performance test result;All single virtual machine reading performance test results of acquisition are added, obtain the cluster reading performance test result;All single virtual machine write performance test results of acquisition are added, obtain the cluster write performance test result;All single virtual machine readwrite performance test results of acquisition are added, obtain the cluster readwrite performance test result.
- A kind of 6. test method of disk performance, it is characterised in that including:The disk performance test script of host virtual machine transmission is received from virtual machine;Receive the script operating instruction that the host virtual machine is sent;The disk performance test script is run, and generates test result.
- 7. test method according to claim 6, it is characterised in that the disk performance test script includes single disk and rings Answer delay testing script, single disk reading performance test script, single virtual machine reading performance test script, cluster reading performance test foot Originally, single disk write performance test script, single virtual machine write performance test script, cluster write performance test script, single disk read-write Performance test script, single virtual machine readwrite performance test script and cluster readwrite performance test script;The operation disk performance test script, and test result is generated, including:Single disk response delay test script is run, generates single disk response delay test result;Single disk reading performance test script is run, generates single disk reading performance test result;Single virtual machine reading performance test script is run, generates single virtual machine reading performance test knot of each disk of itself Fruit;The cluster reading performance test script is run, generates the cluster reading performance test result of each disk of itself;Single disk write performance test script is run, generates single disk write the performance test results;Single virtual machine write performance test script is run, generates the write performance test knot of single virtual machine of each disk of itself Fruit;The cluster write performance test script is run, generates the cluster write performance test result of each disk of itself;Single disk read-write performance test script is run, generates the readwrite performance test result of single disk;Single virtual machine readwrite performance test script is run, generates single virtual machine readwrite performance test of each disk of itself As a result;The cluster readwrite performance test script is run, generates the cluster readwrite performance test result of each disk of itself.
- 8. the test method according to claim 6 or 7, it is characterised in that the operation disk performance test script, and it is raw Into after test result, further include:Receive the test result that the host virtual machine is sent and obtain request;The test result of generation is sent to the host virtual machine;Wherein test result include single disk response delay test result, Single disk reading performance test result, the cluster reading performance test result of each disk of itself, single disk write the performance test results, The write performance test result of single virtual machine of each disk of itself, the cluster write performance test result of each disk of itself, The readwrite performance test result of single disk, single virtual machine readwrite performance test result of each disk of itself and itself is every The cluster readwrite performance test result of a disk.
- A kind of 9. host virtual machine, it is characterised in that including:First processing module, for generating disk performance test script according to the configuration information prestored;First sending module, the disk performance test script of generation is sent to all from virtual machine;Second sending module, for run generation disk performance test script, and by script operating instruction be sent to it is all from Virtual machine, so that the disk performance test script each obtained from virtual machine operation.
- It is 10. a kind of from server, it is characterised in that including:First receiving module, for receiving the disk performance test script of host virtual machine transmission from virtual machine;Second receiving module, the script operating instruction sent for receiving the host virtual machine;Second processing module, for running the disk performance test script, and generates generation test result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711120114.XA CN107908512A (en) | 2017-11-14 | 2017-11-14 | The test method and test device of a kind of disk performance |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711120114.XA CN107908512A (en) | 2017-11-14 | 2017-11-14 | The test method and test device of a kind of disk performance |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107908512A true CN107908512A (en) | 2018-04-13 |
Family
ID=61845132
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711120114.XA Pending CN107908512A (en) | 2017-11-14 | 2017-11-14 | The test method and test device of a kind of disk performance |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107908512A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108763008A (en) * | 2018-05-31 | 2018-11-06 | 郑州云海信息技术有限公司 | A kind of server storage hard disk performance batch testing system, server and method |
CN109101385A (en) * | 2018-08-16 | 2018-12-28 | 郑州云海信息技术有限公司 | A kind of automation method for testing pressure and system based on cloud computing |
CN109542701A (en) * | 2018-11-19 | 2019-03-29 | 郑州云海信息技术有限公司 | A kind of disk performance test method and device |
CN111382040A (en) * | 2018-12-29 | 2020-07-07 | 中兴通讯股份有限公司 | Network performance testing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102404385A (en) * | 2011-10-25 | 2012-04-04 | 华中科技大学 | Virtual cluster deployment system and deployment method for high performance computing |
CN103631537A (en) * | 2013-11-29 | 2014-03-12 | 华为技术有限公司 | Method and device for managing virtual disk |
CN104333488A (en) * | 2014-11-04 | 2015-02-04 | 哈尔滨工业大学 | Cloud service platform performance test method |
CN107092541A (en) * | 2017-04-27 | 2017-08-25 | 郑州云海信息技术有限公司 | A kind of method that utilization virtual machine carries out storage performance test |
-
2017
- 2017-11-14 CN CN201711120114.XA patent/CN107908512A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102404385A (en) * | 2011-10-25 | 2012-04-04 | 华中科技大学 | Virtual cluster deployment system and deployment method for high performance computing |
CN103631537A (en) * | 2013-11-29 | 2014-03-12 | 华为技术有限公司 | Method and device for managing virtual disk |
CN104333488A (en) * | 2014-11-04 | 2015-02-04 | 哈尔滨工业大学 | Cloud service platform performance test method |
CN107092541A (en) * | 2017-04-27 | 2017-08-25 | 郑州云海信息技术有限公司 | A kind of method that utilization virtual machine carries out storage performance test |
Non-Patent Citations (3)
Title |
---|
吴可心: "云平台虚拟化性能的评测与研究", 《高技术通讯》 * |
张传通等: "《计算机网络服务配置与应用教程》", 31 December 2007 * |
黄戈简: "基于自动测试的虚拟机磁盘I/O服务质量评估框架", 《计算机应用与软件》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108763008A (en) * | 2018-05-31 | 2018-11-06 | 郑州云海信息技术有限公司 | A kind of server storage hard disk performance batch testing system, server and method |
CN109101385A (en) * | 2018-08-16 | 2018-12-28 | 郑州云海信息技术有限公司 | A kind of automation method for testing pressure and system based on cloud computing |
CN109542701A (en) * | 2018-11-19 | 2019-03-29 | 郑州云海信息技术有限公司 | A kind of disk performance test method and device |
CN109542701B (en) * | 2018-11-19 | 2022-02-18 | 郑州云海信息技术有限公司 | Method and device for testing performance of magnetic disk |
CN111382040A (en) * | 2018-12-29 | 2020-07-07 | 中兴通讯股份有限公司 | Network performance testing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9720804B2 (en) | Dynamic tracing framework for debugging in virtualized environments | |
CN107908512A (en) | The test method and test device of a kind of disk performance | |
US10268398B2 (en) | Storage system, recording medium for storing control program and control method for storage system | |
CN104077212B (en) | pressure testing system and method | |
CN105074671B (en) | For detecting the method and system of concurrency programming mistake in kernel module and device driver | |
CN103324533B (en) | distributed data processing method, device and system | |
CN110430100A (en) | Network connectivty detection method and device | |
CN105068876B (en) | Method based on distributed deployment prototype collection cell phone application performance data | |
CN110750458A (en) | Big data platform testing method and device, readable storage medium and electronic equipment | |
CN108563571A (en) | Software interface test approach and system, computer readable storage medium, terminal | |
CN112039722B (en) | MQTT protocol simulation method and simulation equipment | |
CN110011952A (en) | A kind of method, service cluster and the client of data transmission | |
CN104123228B (en) | A kind of data-storage system and its application method | |
CN106161396B (en) | A kind of method and device for realizing virtual machine network access control | |
CN105988922B (en) | Test method, device and the server of application program | |
WO2015084140A1 (en) | A system and method for emulating multiple independent wireless client devices in the cloud | |
CN106708710A (en) | Thread jamming identification method and apparatus | |
CN107395456A (en) | Distributed file system stream directly deposits method of testing and platform | |
CN108289080A (en) | A kind of methods, devices and systems accessing file system | |
CN108228099A (en) | A kind of method and device of data storage | |
CN105446867B (en) | A kind of generation method and device of test data | |
CN110932879B (en) | Network performance test method, data processing device and storage medium | |
Liu et al. | A large-scale real-time network simulation study using prime | |
CN110413477A (en) | Method, equipment and the readable medium of the input and output performance of test distributed storage | |
CN107025064B (en) | A kind of data access method of the high IOPS of low latency |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180413 |