CN102866950A - Performance testing method and testing tool for virtual server - Google Patents
Performance testing method and testing tool for virtual server Download PDFInfo
- Publication number
- CN102866950A CN102866950A CN2012103401550A CN201210340155A CN102866950A CN 102866950 A CN102866950 A CN 102866950A CN 2012103401550 A CN2012103401550 A CN 2012103401550A CN 201210340155 A CN201210340155 A CN 201210340155A CN 102866950 A CN102866950 A CN 102866950A
- Authority
- CN
- China
- Prior art keywords
- test
- virtual machine
- module
- test case
- virtual
- 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
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention provides a performance testing method and a testing tool for a virtual server. The method comprises the following steps of: selecting a plurality of test objects to be tested in the virtual server; generating a corresponding test sample for each test object; loading a test sample by using a virtual machine, and running a plurality of virtual machines loaded with the test samples; and generating a test result according to a running result. Due to the adoption of the method and the tool, simultaneous measurement of a plurality of performance indexes of the virtual server is realized.
Description
Technical field
The present invention relates to the system performance testing field, relate in particular to a kind of performance test methods and testing tool of virtual server.
Background technology
The development of computer hardware is so that powerful and relatively cheap multiprocessor servers becomes main flow, but in many situations, the performance of these systems all can not be fully utilized, and recent multi-core processor is universal, also so that this insufficiency is more serious, so industry begins the virtual interest that produced.Virtualized environment provides a software layer, allows the user create a plurality of independently virtual machines in same physical server, has greatly improved the utilization rate of physical server.
Although virtual technology as taking full advantage of server performance has been an irreversible trend, and more and more faster computing velocity and the more powerful flexibly Intel Virtualization Technology of computing machine also created more multimachine meeting for virtualized application, is still a problem but how to weigh the server virtualization performance.For addressing this problem, Vmware company and Intel Company have developed respectively virtualizing performance testing tool VMmark and VConsolidat.But these two virtualizing performance testing tools are all only paid close attention to the single performance index of virtual server, can't pay close attention to simultaneously a plurality of performance index of virtual server.
Summary of the invention
The invention provides a kind of performance test methods and testing tool of virtual server, to solve technical matters how to measure simultaneously the multinomial performance index of virtual server.
For solving the problems of the technologies described above, the invention provides a kind of performance test methods of virtual server, described method comprises:
A plurality of tested objects to be tested in the selected virtual server;
For each tested object generates corresponding test case;
Load a test case by a virtual machine, simultaneously operation has loaded a plurality of virtual machines of test case;
Generate test result according to operation result.
Further,
Described tested object comprises: virtual server performance index and/or virtual machine overall performance.
Further, described method also comprises
When described tested object is the virtual machine overall performance, before generating corresponding test case for this tested object, selected a plurality of virtual machines are carried out isolation test.
Further,
Described isolation test comprises the steps:
Each virtual machine is carried out respectively pressure test, when a virtual machine is carried out pressure test, other virtual machines are carried out traditional performance test, logging test results; Until each virtual machine is all carried out the excess pressure test.
Further,
Described test result comprises test result file.
For solving the problems of the technologies described above, the present invention also provides a kind of performance testing tool of virtual server, and described instrument comprises tested object selection module, test case generation module, test case execution module and test result output module, wherein,
Described tested object is selected module, be used for selected virtual server a plurality of tested objects to be tested, and a plurality of tested objects that will select is sent to described test case generation module;
Described test case generation module is used to each tested object of reception to generate corresponding test case, and the test case that generates is sent to described test case execution module;
Described test case execution module is used for loading a test case by a virtual machine, and simultaneously operation has loaded a plurality of virtual machines of test case; And operation result is sent to described test result output module;
Described test result output module is used for generating test result according to operation result.
Further,
Described tested object comprises: virtual server performance index and/or virtual machine overall performance.
Further, described performance testing tool also comprises virtual machine isolation test module;
Described test case generation module is used for when a plurality of tested objects that receive comprise a plurality of virtual machine overall performance, and a plurality of virtual machines signs of correspondence are sent to described virtual machine isolation test module; And after receiving the notice that sends from described virtual machine isolation test module, for each virtual machine overall performance generates corresponding test case, and the test case that generates is sent to described test case execution module;
Described virtual machine isolation test module after being used for receiving a plurality of virtual machines signs of described test case generation module transmission, is carried out isolation test to a plurality of virtual machines corresponding with sign; And at the described test case generation module of isolation test Inform when done.
Further,
Described virtual machine isolation test module is used for a plurality of virtual machines corresponding with sign are carried out isolation test, comprising:
Described virtual machine isolation test module is used for each virtual machine corresponding with sign carried out respectively pressure test, when a virtual machine is carried out pressure test, other virtual machines is carried out traditional performance test, logging test results; Until each virtual machine is all carried out the excess pressure test.
Further,
Described test result output module is used for generating test result according to operation result, comprising:
Described test result output module is used for generating test result file according to operation result.
Technique scheme is when carrying out the multinomial test case corresponding with the multinomial performance index of virtual server to be tested, load a test case by a virtual machine, the characteristics of utilizing a plurality of virtual machines to move have simultaneously realized measuring simultaneously the purpose of the multinomial performance index of virtual server.
Description of drawings
Fig. 1 is the performance test methods process flow diagram of the virtual server of present embodiment;
Fig. 2 is that the virtual server testing tool of present embodiment forms module map.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, hereinafter in connection with accompanying drawing embodiments of the invention are elaborated.Need to prove that in the situation of not conflicting, the embodiment among the application and the feature among the embodiment be combination in any mutually.
Fig. 1 is the performance test methods process flow diagram of the virtual server of present embodiment, comprises that step S101 is to step S104:
A plurality of tested objects to be tested in the selected virtual server of S101;
Described tested object comprises: virtual server performance index and/or virtual machine overall performance;
When described tested object comprises the virtual machine overall performance, before execution in step S102, can carry out isolation test to selected a plurality of virtual machines, to guarantee the accuracy of test result;
Isolation test can comprise the steps 1 and step 2:
Step 1: an optional virtual machine that does not carry out the excess pressure test carries out pressure test, and other virtual machines are carried out traditional performance test, logging test results;
Step 2: judge whether not carry out in addition the virtual machine of excess pressure test, if having then repeating step 1, if not then finish isolation test;
S102 generates corresponding test case for each tested object;
The process that generates its test case for tested object is prior art, is not repeated herein;
S103 loads a test case by a virtual machine, and simultaneously operation has loaded a plurality of virtual machines of test case;
The test case of each virtual machine operation is different;
S104 generates test result according to operation result;
This test result can be a test result file.
Fig. 2 is that the virtual server testing tool of present embodiment forms module map.
This testing tool comprises: tested object is selected module, test case generation module, test case execution module and test result output module, wherein,
Tested object is selected module, be used for selected virtual server a plurality of tested objects to be tested, and a plurality of tested objects that will select is sent to described test case generation module;
Tested object can comprise: virtual server performance index and/or virtual machine overall performance;
The test case generation module is used to each tested object of reception to generate corresponding test case, and the test case that generates is sent to described test case execution module;
The test case execution module is used for loading a test case by a virtual machine, and simultaneously operation has loaded a plurality of virtual machines of test case; And operation result is sent to described test result output module;
Test result output module is used for generating test result according to operation result, such as test result file.
In other embodiments, the virtual server testing tool also can comprise virtual machine isolation test module except the above-mentioned module of mentioning;
In described other embodiment, described test case generation module is used for when a plurality of tested objects that receive comprise a plurality of virtual machine overall performance, and a plurality of virtual machines signs of correspondence are sent to described virtual machine isolation test module; And after receiving the notice that sends from described virtual machine isolation test module, for each virtual machine overall performance generates corresponding test case, and the test case that generates is sent to described test case execution module;
Described virtual machine isolation test module after being used for receiving a plurality of virtual machines signs of described test case generation module transmission, is carried out isolation test to a plurality of virtual machines corresponding with sign; And at the described test case generation module of isolation test Inform when done;
When this virtual machine isolation test module is carried out isolation test in realization to a plurality of virtual machines corresponding with sign, can when a virtual machine is carried out pressure test, carry out traditional performance test, logging test results to other virtual machines; Until each virtual machine is all carried out the excess pressure test.
One of ordinary skill in the art will appreciate that all or part of step in the said method can come the instruction related hardware to finish by program, described program can be stored in the computer-readable recording medium, such as ROM (read-only memory), disk or CD etc.Alternatively, all or part of step of above-described embodiment can realize with one or more integrated circuit that also correspondingly, each the module/unit in above-described embodiment can adopt the form of hardware to realize, also can adopt the form of software function module to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.
Need to prove; the present invention also can have other various embodiments; in the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art can make according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.
Claims (10)
1. the performance test methods of a virtual server is characterized in that, described method comprises:
A plurality of tested objects to be tested in the selected virtual server;
For each tested object generates corresponding test case;
Load a test case by a virtual machine, simultaneously operation has loaded a plurality of virtual machines of test case;
Generate test result according to operation result.
2. the method for claim 1 is characterized in that,
Described tested object comprises: virtual server performance index and/or virtual machine overall performance.
3. method as claimed in claim 2 is characterized in that, described method also comprises
When described tested object is the virtual machine overall performance, before generating corresponding test case for this tested object, selected a plurality of virtual machines are carried out isolation test.
4. method as claimed in claim 3 is characterized in that,
Described isolation test comprises the steps:
Each virtual machine is carried out respectively pressure test, when a virtual machine is carried out pressure test, other virtual machines are carried out traditional performance test, logging test results; Until each virtual machine is all carried out the excess pressure test.
5. such as the described method of claim 1~4, it is characterized in that,
Described test result comprises test result file.
6. the performance testing tool of a virtual server is characterized in that, described instrument comprises tested object selection module, test case generation module, test case execution module and test result output module, wherein,
Described tested object is selected module, be used for selected virtual server a plurality of tested objects to be tested, and a plurality of tested objects that will select is sent to described test case generation module;
Described test case generation module is used to each tested object of reception to generate corresponding test case, and the test case that generates is sent to described test case execution module;
Described test case execution module is used for loading a test case by a virtual machine, and simultaneously operation has loaded a plurality of virtual machines of test case; And operation result is sent to described test result output module;
Described test result output module is used for generating test result according to operation result.
7. performance testing tool as claimed in claim 6 is characterized in that,
Described tested object comprises: virtual server performance index and/or virtual machine overall performance.
8. performance testing tool as claimed in claim 7 is characterized in that, described performance testing tool also comprises virtual machine isolation test module;
Described test case generation module is used for when a plurality of tested objects that receive comprise a plurality of virtual machine overall performance, and a plurality of virtual machines signs of correspondence are sent to described virtual machine isolation test module; And after receiving the notice that sends from described virtual machine isolation test module, for each virtual machine overall performance generates corresponding test case, and the test case that generates is sent to described test case execution module;
Described virtual machine isolation test module after being used for receiving a plurality of virtual machines signs of described test case generation module transmission, is carried out isolation test to a plurality of virtual machines corresponding with sign; And at the described test case generation module of isolation test Inform when done.
9. performance testing tool as claimed in claim 8 is characterized in that,
Described virtual machine isolation test module is used for a plurality of virtual machines corresponding with sign are carried out isolation test, further comprises:
Described virtual machine isolation test module is used for each virtual machine corresponding with sign carried out respectively pressure test, when a virtual machine is carried out pressure test, other virtual machines is carried out traditional performance test, logging test results; Until each virtual machine is all carried out the excess pressure test.
10. such as the described performance testing tool of claim 6~9, it is characterized in that,
Described test result output module is used for generating test result according to operation result, further comprises:
Described test result output module is used for generating test result file according to operation result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210340155.0A CN102866950B (en) | 2012-09-13 | 2012-09-13 | A kind of performance test methods of virtual server and testing tool |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210340155.0A CN102866950B (en) | 2012-09-13 | 2012-09-13 | A kind of performance test methods of virtual server and testing tool |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102866950A true CN102866950A (en) | 2013-01-09 |
CN102866950B CN102866950B (en) | 2016-04-20 |
Family
ID=47445829
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210340155.0A Active CN102866950B (en) | 2012-09-13 | 2012-09-13 | A kind of performance test methods of virtual server and testing tool |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102866950B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103793327A (en) * | 2014-02-24 | 2014-05-14 | 浪潮电子信息产业股份有限公司 | Method for testing performance of JVM of virtual platform |
CN104572473A (en) * | 2015-01-29 | 2015-04-29 | 无锡江南计算技术研究所 | Compatibility testing method of Web applications supporting multi-type and multi-version browsers |
CN104598776A (en) * | 2013-10-31 | 2015-05-06 | 深圳市腾讯计算机系统有限公司 | Method and device for testing software |
CN104750537A (en) * | 2013-12-31 | 2015-07-01 | 腾讯科技(深圳)有限公司 | Test case execution method and device |
CN105630575A (en) * | 2015-12-23 | 2016-06-01 | 一兰云联科技股份有限公司 | Performance evaluation method aiming at KVM virtualization server |
CN106933715A (en) * | 2017-03-14 | 2017-07-07 | 郑州云海信息技术有限公司 | A kind of server performance method of testing based on different test scenes |
CN107526661A (en) * | 2017-08-21 | 2017-12-29 | 郑州云海信息技术有限公司 | A kind of method of testing and system of magnetic disk of virtual machine performance |
WO2018157768A1 (en) * | 2017-02-28 | 2018-09-07 | 华为技术有限公司 | Method and device for scheduling running device, and running device |
CN109656828A (en) * | 2018-12-18 | 2019-04-19 | 郑州云海信息技术有限公司 | Virtual machine pressure automatic test approach, terminal and readable storage medium storing program for executing in a kind of cluster |
CN109857643A (en) * | 2018-12-29 | 2019-06-07 | 北京奇安信科技有限公司 | A kind of method and device of virtual platform performance automatic test |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102073535A (en) * | 2011-01-11 | 2011-05-25 | 华中科技大学 | Hardware counter virtualization-based performance analysis method for multiple virtual machines |
-
2012
- 2012-09-13 CN CN201210340155.0A patent/CN102866950B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102073535A (en) * | 2011-01-11 | 2011-05-25 | 华中科技大学 | Hardware counter virtualization-based performance analysis method for multiple virtual machines |
Non-Patent Citations (4)
Title |
---|
LI ZHANG 等: "Design and Implementation of Cloud-based Performance Testing System for Web Services", 《2011 6TH INTERNATIONAL ICST CONFERENCE ON COMMUNICATIONS AND NETWORKING IN CHINA》 * |
LI ZHANG 等: "Design and Implementation of Cloud-based Performance Testing System for Web Services", 《2011 6TH INTERNATIONAL ICST CONFERENCE ON COMMUNICATIONS AND NETWORKING IN CHINA》, 19 August 2011 (2011-08-19), pages 875 - 880, XP032120030, DOI: doi:10.1109/ChinaCom.2011.6158278 * |
丁崇: "虚拟化系统性能隔离度评测研究", 《中国优秀硕士学位论文全文数据库·信息科技辑》 * |
周斌: "虚拟化环境中内存隔离性测试与分析", 《计算机工程》 * |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104598776A (en) * | 2013-10-31 | 2015-05-06 | 深圳市腾讯计算机系统有限公司 | Method and device for testing software |
CN104598776B (en) * | 2013-10-31 | 2018-11-23 | 深圳市腾讯计算机系统有限公司 | The method and device that a kind of pair of software is tested |
CN104750537A (en) * | 2013-12-31 | 2015-07-01 | 腾讯科技(深圳)有限公司 | Test case execution method and device |
CN103793327A (en) * | 2014-02-24 | 2014-05-14 | 浪潮电子信息产业股份有限公司 | Method for testing performance of JVM of virtual platform |
CN104572473A (en) * | 2015-01-29 | 2015-04-29 | 无锡江南计算技术研究所 | Compatibility testing method of Web applications supporting multi-type and multi-version browsers |
CN104572473B (en) * | 2015-01-29 | 2017-06-20 | 无锡江南计算技术研究所 | Support the Web application compatibility test methods of polymorphic type and multi version browser |
CN105630575A (en) * | 2015-12-23 | 2016-06-01 | 一兰云联科技股份有限公司 | Performance evaluation method aiming at KVM virtualization server |
CN105630575B (en) * | 2015-12-23 | 2019-02-15 | 兰雨晴 | For the performance estimating method of KVM virtualization server |
WO2018157768A1 (en) * | 2017-02-28 | 2018-09-07 | 华为技术有限公司 | Method and device for scheduling running device, and running device |
CN108509256A (en) * | 2017-02-28 | 2018-09-07 | 华为技术有限公司 | Method, equipment and the running equipment of management and running equipment |
CN108509256B (en) * | 2017-02-28 | 2021-01-15 | 华为技术有限公司 | Method and device for scheduling running device and running device |
CN106933715A (en) * | 2017-03-14 | 2017-07-07 | 郑州云海信息技术有限公司 | A kind of server performance method of testing based on different test scenes |
CN107526661A (en) * | 2017-08-21 | 2017-12-29 | 郑州云海信息技术有限公司 | A kind of method of testing and system of magnetic disk of virtual machine performance |
CN109656828A (en) * | 2018-12-18 | 2019-04-19 | 郑州云海信息技术有限公司 | Virtual machine pressure automatic test approach, terminal and readable storage medium storing program for executing in a kind of cluster |
CN109656828B (en) * | 2018-12-18 | 2022-03-04 | 郑州云海信息技术有限公司 | Automatic testing method for pressure of virtual machine in cluster, terminal and readable storage medium |
CN109857643A (en) * | 2018-12-29 | 2019-06-07 | 北京奇安信科技有限公司 | A kind of method and device of virtual platform performance automatic test |
Also Published As
Publication number | Publication date |
---|---|
CN102866950B (en) | 2016-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102866950A (en) | Performance testing method and testing tool for virtual server | |
US9898395B2 (en) | Unit-level formal verification for vehicular software systems | |
US8935573B2 (en) | Reliable unit testing through cached mocking | |
US9684786B2 (en) | Monitoring an application in a process virtual machine | |
US9946628B2 (en) | Embedding and executing trace functions in code to gather trace data | |
US20150278079A1 (en) | Creating software performance testing environment based on virtual machine | |
US20130055250A1 (en) | Performance benchmarking in virtual machines | |
CN105183592B (en) | Method and apparatus for supporting performance evaluation | |
US9256520B2 (en) | Using linked data to determine package quality | |
Yu et al. | Cloud computing-based time series analysis for structural damage detection | |
US9747203B2 (en) | Multi-section garbage collection system including multi-use source register | |
US20180336114A1 (en) | Evaluating fairness in devices under test | |
US9519566B2 (en) | Modeling memory use of applications | |
US20160364830A1 (en) | Asynchronous translation of computer program resources in graphics processing unit emulation | |
US9860155B1 (en) | Code coverage and data analysis | |
CN108228445B (en) | Method and device for testing energy consumption of virtual machine | |
US20230056423A1 (en) | Processor core simulator including trace-based coherent cache driven memory traffic generator | |
US11520961B2 (en) | Heterogeneous-computing based emulator | |
US10102007B2 (en) | Simultaneously capturing status information for multiple operating modes | |
US9524801B2 (en) | Persistent command parameter table for pre-silicon device testing | |
US20210303766A1 (en) | Pre-silicon chip model of extracted workload inner loop instruction traces | |
US20230229586A1 (en) | Environment specific software test failure analysis | |
US20230121795A1 (en) | Software object identification using record generating code insertion | |
von Kistowski et al. | Predicting power consumption in virtualized environments | |
Järvinen | Containerization of Web Application Back-Ends |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |