CN105630645B - Virtual machine performance determines method and device - Google Patents

Virtual machine performance determines method and device Download PDF

Info

Publication number
CN105630645B
CN105630645B CN201410623705.9A CN201410623705A CN105630645B CN 105630645 B CN105630645 B CN 105630645B CN 201410623705 A CN201410623705 A CN 201410623705A CN 105630645 B CN105630645 B CN 105630645B
Authority
CN
China
Prior art keywords
time
file
virtual machine
determining
performance
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.)
Active
Application number
CN201410623705.9A
Other languages
Chinese (zh)
Other versions
CN105630645A (en
Inventor
方全杰
胡泊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing ZTE New Software Co Ltd
Original Assignee
Nanjing ZTE New Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing ZTE New Software Co Ltd filed Critical Nanjing ZTE New Software Co Ltd
Priority to CN201410623705.9A priority Critical patent/CN105630645B/en
Priority to PCT/CN2015/070383 priority patent/WO2015184801A1/en
Publication of CN105630645A publication Critical patent/CN105630645A/en
Application granted granted Critical
Publication of CN105630645B publication Critical patent/CN105630645B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing

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)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of virtual machine performances to determine method and device, wherein this method comprises: periodically acquiring network bandwidth in chronological order;The time spent by the file opened on virtual machine is recorded according to the network bandwidth of acquisition;It determines that the performance of virtual machine solves the problems, such as that virtual machine performance test accuracy present in the relevant technologies is low through the invention according to the time spent by the above-mentioned file of opening of record, and then has achieved the effect that improve virtual machine performance test accuracy.

Description

Virtual machine performance determines method and device
Technical field
The present invention relates to the communications fields, determine method and device in particular to a kind of virtual machine performance.
Background technique
Cloud terminal is the general name of terminal device and terminal platform service based on the application of cloud computing business model.Desktop is virtual Change and depend on server virtualization, server virtualization is carried out on the server of data center, generates a large amount of independent table Face operating system (virtual machine or virtual desktop), while terminal device is sent to according to proprietary virtual desktop agreement.Cloud is whole End is logged on fictitious host computer by Ethernet, it is only necessary to remember username and password and gateway information, it can be anywhere or anytime The desktop system of oneself is accessed by network, to realize single machine multi-user.
The hardware requirement of cloud terminal device compares lower, depends on virtual machine itself with the experience of the dynamic interaction of virtual machine Performance, network bandwidth and terminal itself performance.After performance test for cloud terminal device, especially login virtual desktop Performance test, do not have accurate test method at present.
For the low problem of virtual machine performance test accuracy present in the relevant technologies, effective solution is not yet proposed at present Certainly scheme.
Summary of the invention
The present invention provides a kind of virtual machine performances to determine method and device, at least to solve void present in the relevant technologies The low problem of quasi- machine performance test accuracy.
According to an aspect of the invention, there is provided a kind of virtual machine performance determines method, comprising: the period in chronological order The acquisition network bandwidth of property;The time spent by the file opened on virtual machine is recorded according to the network bandwidth of acquisition;Root Time spent by the opening file according to record determines the performance of the virtual machine.
When preferably, according to spent by the file that the network bandwidth of acquisition record is opened on the virtual machine Between comprise determining that open the file before and after network bandwidth be in first time point and the second time point of stable state;According to The determining first time point and second time point record open the time spent by the file.
Preferably, it is opened spent by the file according to the determining first time point and second time point record Time comprise determining that open the file before and after network bandwidth be in stable state first time point and the second time point it Between the smallest time interval of time interval be to open the time spent by the file.
Preferably, the time according to spent by the opening file of record determines that the performance of the virtual machine includes: to work as When the determining the smallest time interval is less than the first predetermined threshold, determine that the virtual machine performance is high-performance;Work as determination The smallest time interval be greater than the second predetermined threshold when, determine the virtual machine performance be low performance.
Preferably, it determines and opens first time point and the second time that file front and back network bandwidth is in stable state The smallest time interval of time interval is to open the opening that the time spent by the file includes: record pre-determined number between point Time spent by the file;Determine the average value of time spent by the opening file of pre-determined number.
According to another aspect of the present invention, a kind of virtual machine performance determining device is provided, comprising: acquisition module is used for Network bandwidth is periodically acquired in chronological order;Logging modle opens void for recording according to the network bandwidth of acquisition Time spent by file on quasi- machine;Determining module is determined for the time spent by the opening file according to record The performance of the virtual machine.
Preferably, the logging modle includes: the first determination unit, opens file front and back network bandwidth for determining First time point and the second time point in stable state;Recording unit, for according to the determining first time point and The second time point record opens the time spent by the file.
Preferably, the recording unit comprises determining that subelement, opens at the network bandwidth of the file front and back for determining In the first time point of stable state and the smallest time interval of time interval is the opening file institute between the second time point The time of consuming.
Preferably, the determining module includes: the second determination unit, and the smallest time interval for working as determining is small When the first predetermined threshold, determine that the virtual machine performance is high-performance;Third determination unit, for when determining the smallest institute When stating time interval greater than the second predetermined threshold, determine that the performance of the virtual machine is low performance.
Preferably, the determining subelement includes: to record time subelement, the opening file for recording pre-determined number The spent time;Time subelement is determined, for determining the average value of time spent by the opening file of pre-determined number.
Through the invention, use periodically acquires network bandwidth in chronological order;According to the network bandwidth of acquisition Record opens the time spent by the file on virtual machine;According to time determination spent by the opening file of record The performance of virtual machine solves the problems, such as that virtual machine performance test accuracy present in the relevant technologies is low, and then has reached and mentioned The effect of high virtual machine performance test accuracy.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart that virtual machine performance according to an embodiment of the present invention determines method;
Fig. 2 is the structural block diagram of virtual machine performance determining device according to an embodiment of the present invention;
Fig. 3 is the structural block diagram of logging modle 24 in virtual machine performance determining device according to an embodiment of the present invention;
Fig. 4 is the structural block diagram of recording unit 34 in virtual machine performance determining device according to an embodiment of the present invention;
Fig. 5 is the structural block diagram of determining module 26 in virtual machine performance determining device according to an embodiment of the present invention;
Fig. 6 is the structural block diagram that subelement 42 is determined in virtual machine performance determining device according to an embodiment of the present invention;
Fig. 7 is according to an embodiment of the present invention according to network bandwidth consumption acquisition virtual desktop document opening time delay method Flow chart;
Fig. 8 is that document opens time-delay calculation schematic diagram on virtual desktop according to an embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
A kind of virtual machine performance is provided in the present embodiment and determines method, and Fig. 1 is according to an embodiment of the present invention virtual Machine performance determines the flow chart of method, as shown in Figure 1, the process includes the following steps:
Step S102 periodically acquires network bandwidth in chronological order;
Step S104 records the time spent by the file opened on virtual machine according to the network bandwidth of acquisition;
Step S106 determines the performance of virtual machine according to the time spent by the above-mentioned file of opening of record.
Through the above steps, network bandwidth is periodically acquired in chronological order;It is beaten according to the network bandwidth of acquisition record Open the time spent by the file on virtual machine;The property of virtual machine is determined according to the time spent by the above-mentioned file of opening of record Can, the time spent by the file on accurately record opening virtual machine is realized, and then the virtual machine has accurately been determined Performance solves the problems, such as that virtual machine performance test accuracy present in the relevant technologies is low, and then has reached raising virtual machine The effect of performance test accuracy.
In a preferred embodiment, it is recorded according to the network bandwidth of acquisition spent by the file opened on virtual machine Time, which comprises determining that, opens first time point and the second time point that this document front and back network bandwidth is in stable state;According to Determining first time point and the second time point record open the time spent by this document.That is, in embodiments of the present invention, it can The performance to determine virtual machine is handled as follows, first is that the network bandwidth of acquisition cloud terminal device (that is, virtual machine) uses Situation: bandwidth when including not operated after cloud terminal device logs virtual desktop operates document using acquisition, virtual desktop Bandwidth when opening is used using the bandwidth obtained and when not carrying out other operations after virtual desktop has operated document opening It obtains;Second is that the data to acquisition carry out finishing analysis, the performance of virtual machine is determined according to the data of finishing analysis.
In a preferred embodiment, above-mentioned file is opened according to determining first time point and the second time point record The spent time, which comprises determining that, opens first time point and the second time that this document front and back network bandwidth is in stable state The smallest time interval of time interval is to open the time spent by this document between point.Network bandwidth is in front of and after opening file The minimum interval of stable state is to open the time spent by this document, can be quasi- by analyzing the minimum interval The performance of true determination virtual machine.
Wherein, the time according to spent by the opening above-mentioned file of record determines that the performance of virtual machine includes: when determining When the smallest time interval is less than the first predetermined threshold, determine that the virtual machine performance is high-performance;When the determining the smallest time When interval is greater than the second predetermined threshold, determine that the performance of the virtual machine is low performance.It follows that the File Open on virtual machine Speed it is faster, illustrate that the virtual machine performance is better.
In a preferred embodiment, when determining that network bandwidth is in the first of stable state before and after opening above-mentioned file Between put and the second time point between the smallest time interval of time interval be open this document spent by the time include: record in advance Determine the time spent by opening this document of number;Determine the average value for opening the time spent by this document of pre-determined number. It the time and is averaged spent by file by repeatedly obtaining to open, the property for reflecting virtual machine that can be more objective and accurate Energy.
Additionally provide a kind of virtual machine performance determining device in the present embodiment, the device for realizing above-described embodiment and Preferred embodiment, the descriptions that have already been made will not be repeated.As used below, predetermined function may be implemented in term " module " The combination of the software and/or hardware of energy.It is hard although device described in following embodiment is preferably realized with software The realization of the combination of part or software and hardware is also that may and be contemplated.
Fig. 2 is the structural block diagram of virtual machine performance determining device according to an embodiment of the present invention, as shown in Fig. 2, the device Including acquisition module 22, logging modle 24 and determining module 26, the device is illustrated below.
Acquisition module 22, for periodically acquiring network bandwidth in chronological order;Logging modle 24 is connected to above-mentioned adopt Collect module 22, for recording the time spent by the file on opening virtual machine according to the network bandwidth of acquisition;Determining module 26, It is connected to above-mentioned logging modle 24, the performance of virtual machine is determined for the time spent by opening this document according to record.
Fig. 3 is the structural block diagram of logging modle 24 in virtual machine performance determining device according to an embodiment of the present invention, such as Fig. 3 Shown, which includes the first determination unit 32 and recording unit 34, is illustrated below to the logging modle 24.
First determination unit 32, for determining the first time opened above-mentioned file front and back network bandwidth and be in stable state Point and the second time point;Recording unit 34 is connected to above-mentioned first determination unit 32, for according to determining first time point and Second time point record opens the time spent by this document.
Fig. 4 is the structural block diagram of recording unit 34 in virtual machine performance determining device according to an embodiment of the present invention, such as Fig. 4 Shown, which includes determining subelement 42, is illustrated below to the recording unit 34.
Subelement 42 is determined, for determining the first time point opened above-mentioned file front and back network bandwidth and be in stable state And second the smallest time interval of time interval between time point be to open the time spent by this document.
Fig. 5 is the structural block diagram of determining module 26 in virtual machine performance determining device according to an embodiment of the present invention, such as Fig. 5 Shown, which includes the second determination unit 52, third determination unit 54, is said below to the determining module 26 It is bright.
Second determination unit 52, for determining the void when determining the smallest time interval is less than the first predetermined threshold Quasi- machine performance is high-performance;Third determination unit 54, for when determining the smallest time interval be greater than the second predetermined threshold when, The performance for determining the virtual machine is low performance.
Fig. 6 is the structural block diagram that subelement 42 is determined in virtual machine performance determining device according to an embodiment of the present invention, such as Shown in Fig. 6, which includes recording time subelement 62 and determining time subelement 64, below to the determination subelement 42 It is illustrated.
Time subelement 62 is recorded, for recording the time spent by the above-mentioned file of opening of pre-determined number;Determine second son list Member 64 is connected to above-mentioned record time subelement 62, for determining being averaged for time spent by opening this document of pre-determined number Value.
In order to solve the problems, such as that quasi- machine performance test accuracy present in the relevant technologies is low, also mentioned in the embodiment of the present invention Gone out it is a kind of according to network bandwidth consumption obtain virtual desktop document open time delay method, as will be described below.
Operation cloud terminal (i.e. virtual machine) logs on to virtual desktop, acquires cloud terminal in real time after virtual desktop frame stabilization Network interface card bandwidth (i.e. network bandwidth) service condition;Then operation virtual desktop opens document, closes cloud after document is opened and stablized The network interface card bandwidth usage of terminal device acquires.
After cloud terminal logs on to virtual desktop, when operating virtual desktop document opening, due to the variation of desktop images, meeting So that virtual machine, which transmits a large amount of data, carries out the update that desktop is shown to cloud terminal, and when desktop is stablized, not due to picture Becoming, the data that virtual desktop is transferred to cloud terminal are then less, and even 0, therefore can change-stablize this process according to stabilization- Network bandwidth service condition come obtain document open time delay.
Two stationary values are calculated finally by the bandwidth usage of analysis whole process (to beat before document is opened with document After opening) between minimum interval be that the document of virtual desktop opens time delay.It can accurately measure through the foregoing embodiment Change cloud terminal and logs in the document opening performance index after virtual desktop.
Fig. 7 is according to an embodiment of the present invention according to network bandwidth consumption acquisition virtual desktop document opening time delay method Flow chart, as shown in fig. 7, the process includes the following steps:
Step S702, operation cloud terminal logs on to virtual desktop, also, does nothing after logining successfully;
Step S704 starts acquisition cloud terminal network card bandwidth usage in real time after virtual desktop is stablized, can be spaced Collection in 0.1 second is primary, records bandwidth and uses the relational graph with the time;
Step S706, operation virtual desktop open document, during which no longer carry out other operations;
Step S708 turns off the network interface card bandwidth usage acquisition of cloud terminal device after document is opened and stablized;
Step S710, according to the minimum between two stationary values of network bandwidth consumption (before document is opened and after document opening) Time interval gets document and opens time delay.
Fig. 8 is that document opens time-delay calculation schematic diagram on virtual desktop according to an embodiment of the present invention, as shown in figure 8, literary Smallest interval corresponding with two stationary values after document opening, as document open time delay before shelves opening, T2-T1 in diagram Value is that document opens time delay.
In the above-described embodiments, the acquisition of document opening time delay after virtual desktop is logged in for cloud terminal, the present invention provides Time delay obtain embodiment be only preferred embodiment, be not intended to restrict the invention.Certainly, the present invention can also have it Its numerous embodiments, without deviating from the spirit and substance of the present invention, those familiar with ordinary skill in the art can Various corresponding changes, deformation, equivalent replacement for making according to the present invention etc., but these corresponding changes and modifications all should belong to Protection scope of the presently claimed invention.
Also, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.

Claims (8)

1. a kind of virtual machine performance determines method characterized by comprising
Network bandwidth is periodically acquired in chronological order;
The time spent by the file opened on virtual machine is recorded according to the network bandwidth of acquisition;
The performance of the virtual machine is determined according to the time spent by the opening file of record;
Wherein, the time packet according to spent by the file that the network bandwidth of acquisition record is opened on the virtual machine It includes:
It determines and opens first time point and the second time point that file front and back network bandwidth is in stable state;
The time spent by the file is opened according to the determining first time point and second time point record.
2. the method according to claim 1, wherein according to the determining first time point and it is described second when Between point record open the time spent by the file and include:
Determine the first time point and time between the second time point that network bandwidth is in stable state before and after opening the file Being spaced the smallest time interval is to open the time spent by the file.
3. according to the method described in claim 2, it is characterized in that, the time according to spent by the opening file of record it is true The performance of the virtual machine includes: calmly
When the determining the smallest time interval is less than the first predetermined threshold, determine that the virtual machine performance is high-performance;
When the determining the smallest time interval is greater than the second predetermined threshold, determine that the performance of the virtual machine is low property Energy.
4. according to the method described in claim 2, stablizing it is characterized in that, determining to open file front and back network bandwidth and be in The smallest time interval of time interval is to open spent by the file between the first time point of state and the second time point Time includes:
Record the time spent by the opening file of pre-determined number;
Determine the average value of time spent by the opening file of pre-determined number.
5. a kind of virtual machine performance determining device characterized by comprising
Acquisition module, for periodically acquiring network bandwidth in chronological order;
Logging modle, for recording the time spent by the file on opening virtual machine according to the network bandwidth of acquisition;
Determining module determines the performance of the virtual machine for the time spent by the opening file according to record;
Wherein, the logging modle includes:
First determination unit, for determine open the file before and after network bandwidth be in the first time point and the of stable state Two time points;
Recording unit is consumed for opening the file according to the determining first time point and second time point record The time taken.
6. device according to claim 5, which is characterized in that the recording unit includes:
Subelement is determined, for determining the first time point and second opened file front and back network bandwidth and be in stable state The smallest time interval of time interval is to open the time spent by the file between time point.
7. device according to claim 6, which is characterized in that the determining module includes:
Second determination unit, for determining the void when the determining the smallest time interval is less than the first predetermined threshold Quasi- machine performance is high-performance;
Third determination unit, for determining the void when the determining the smallest time interval is greater than the second predetermined threshold The performance of quasi- machine is low performance.
8. device according to claim 6, which is characterized in that the determining subelement includes:
Time subelement is recorded, for recording the time spent by the opening file of pre-determined number;
Time subelement is determined, for determining the average value of time spent by the opening file of pre-determined number.
CN201410623705.9A 2014-11-06 2014-11-06 Virtual machine performance determines method and device Active CN105630645B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410623705.9A CN105630645B (en) 2014-11-06 2014-11-06 Virtual machine performance determines method and device
PCT/CN2015/070383 WO2015184801A1 (en) 2014-11-06 2015-01-08 Method and apparatus for determining performance of virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410623705.9A CN105630645B (en) 2014-11-06 2014-11-06 Virtual machine performance determines method and device

Publications (2)

Publication Number Publication Date
CN105630645A CN105630645A (en) 2016-06-01
CN105630645B true CN105630645B (en) 2019-10-11

Family

ID=54766044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410623705.9A Active CN105630645B (en) 2014-11-06 2014-11-06 Virtual machine performance determines method and device

Country Status (2)

Country Link
CN (1) CN105630645B (en)
WO (1) WO2015184801A1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101754046A (en) * 2008-12-18 2010-06-23 威睿公司 Measuring client interactive performance using a display channel

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7324922B2 (en) * 2005-10-26 2008-01-29 International Business Machines Corporation Run-time performance verification system
CN102799512B (en) * 2012-07-04 2015-06-03 南京邮电大学 Virtual machine monitoring method in vector-autoregression-based cloud computing
CN103294579A (en) * 2013-06-09 2013-09-11 浪潮电子信息产业股份有限公司 Method for testing high-performance computing cluster application performance
CN103455396B (en) * 2013-09-03 2016-08-31 北京安兔兔科技有限公司 The method of testing of electronic equipment hardware performance and device
CN103595578B (en) * 2013-11-01 2016-06-29 福建升腾资讯有限公司 A kind of desktop cloud terminal is in the performance evaluation methodology of virtualization applications scene and system thereof

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101754046A (en) * 2008-12-18 2010-06-23 威睿公司 Measuring client interactive performance using a display channel

Also Published As

Publication number Publication date
CN105630645A (en) 2016-06-01
WO2015184801A1 (en) 2015-12-10

Similar Documents

Publication Publication Date Title
CN108768791B (en) Information acquisition configuration management system and method
CN104717124B (en) A kind of friend recommendation method, apparatus and server
CN104869203B (en) Method of testing, device and the test equipment of interim card
US20150379420A1 (en) Methods for provisioning workloads in a storage system using machine learning and devices thereof
CN109254922B (en) Automatic testing method and device for BMC Redfish function of server
CN109101397A (en) High-Performance Computing Cluster monitoring method, unit and storage medium
US9727394B2 (en) Establishing causality order of computer trace records
CN106302421B (en) A kind of information intercepting processing method and device
CN110428153A (en) Message polymerization and device
CN109873734A (en) A kind of bottom data monitoring method, medium, equipment and device
CN112380131A (en) Module testing method and device and electronic equipment
US9565079B1 (en) Holographic statistics reporting
CN109800052B (en) Anomaly detection and positioning method and device applied to distributed container cloud platform
CN109783459A (en) The method, apparatus and computer readable storage medium of data are extracted from log
CN107301084B (en) Virtual machine migration method and device of cluster server, server and storage medium
CN111901405B (en) Multi-node monitoring method and device, electronic equipment and storage medium
CN109656683A (en) A kind of virtual machine management system and method
CN113641742A (en) Data extraction method, device, equipment and storage medium
CN111368413A (en) Tracking management method and system for clothing production plan
CN105630645B (en) Virtual machine performance determines method and device
US20140222771A1 (en) Management device and management method
CN110909072B (en) Data table establishment method, device and equipment
CN113269658B (en) Method, device and equipment for estimating production time of core data and storage medium
CN109640127A (en) The Fault Locating Method and device of content distributing network
CN111123744B (en) Menu recording method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20190812

Address after: 210012 Nanjing, Yuhuatai District, South Street, Bauhinia Road, No. 68

Applicant after: Nanjing Zhongxing Software Co., Ltd.

Address before: 518057 Nanshan District science and technology, Guangdong Province, South Road, No. 55, No.

Applicant before: ZTE Corporation

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant