WO2015184801A1 - 虚拟机性能确定方法及装置 - Google Patents

虚拟机性能确定方法及装置 Download PDF

Info

Publication number
WO2015184801A1
WO2015184801A1 PCT/CN2015/070383 CN2015070383W WO2015184801A1 WO 2015184801 A1 WO2015184801 A1 WO 2015184801A1 CN 2015070383 W CN2015070383 W CN 2015070383W WO 2015184801 A1 WO2015184801 A1 WO 2015184801A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
virtual machine
performance
open
time
Prior art date
Application number
PCT/CN2015/070383
Other languages
English (en)
French (fr)
Inventor
方全杰
胡泊
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015184801A1 publication Critical patent/WO2015184801A1/zh

Links

Images

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

Definitions

  • the present invention relates to the field of communications, and in particular to a method and apparatus for determining virtual machine performance.
  • the cloud terminal is a general term for terminal devices and terminal platform services based on cloud computing business model applications.
  • Desktop virtualization relies on server virtualization, server virtualization on servers in the data center, and the generation of a large number of independent desktop operating systems (virtual machines or virtual desktops) that are sent to the end devices according to a proprietary virtual desktop protocol.
  • the cloud terminal logs onto the virtual host through Ethernet. It only needs to remember the user name and password and the gateway information, so that it can access its own desktop system through the network anytime and anywhere, thus achieving single-machine multi-user.
  • the hardware requirements of the cloud terminal device are relatively low, and the dynamic interaction experience with the virtual machine depends on the performance of the virtual machine itself, the network bandwidth, and the performance of the terminal itself.
  • the invention provides a method and a device for determining the performance of a virtual machine, so as to at least solve the problem that the performance of the virtual machine performance test existing in the related art is low.
  • a method for determining a performance of a virtual machine includes: collecting network bandwidth periodically in chronological order; and recording a time taken to open a file on the virtual machine according to the collected network bandwidth; The time it takes to open the file determines the performance of the virtual machine.
  • the time taken to open the file on the virtual machine according to the collected network bandwidth record includes: determining a first time point and a second time point when the network bandwidth is in a stable state before and after the file is opened; The determined first time point and the second time point record the time taken to open the file.
  • recording the time taken to open the file according to the determined first time point and the second time point comprises: determining a first time point and a second time when the network bandwidth is in a stable state before and after opening the file
  • the minimum time interval between points is the time it takes to open the file.
  • determining the performance of the virtual machine according to the recorded time taken to open the file comprises determining that the virtual machine performance is high performance when the determined minimum time interval is less than a first predetermined threshold; The determined performance of the virtual machine is low performance when the determined minimum of the time interval is greater than a second predetermined threshold.
  • a virtual machine performance determining apparatus includes: an collecting module configured to periodically collect network bandwidths in a time sequence; and a recording module configured to open a virtual according to the collected network bandwidth records The time taken by the files on the machine; the determination module is arranged to determine the performance of the virtual machine based on the time taken to open the file.
  • the recording module includes: a first determining unit, configured to determine a first time point and a second time point before the network bandwidth is in a stable state before and after opening the file; and the recording unit is configured to be according to the determined first The time point and the second time point record the time taken to open the file.
  • the recording unit includes: a determining subunit, configured to determine that a time interval between a first time point and a second time point in which the network bandwidth is in a stable state before and after the file is opened is the smallest time interval is to open the file Time spent.
  • a determining subunit configured to determine that a time interval between a first time point and a second time point in which the network bandwidth is in a stable state before and after the file is opened is the smallest time interval is to open the file Time spent.
  • the determining module includes: a second determining unit, configured to determine that the virtual machine performance is high performance when the determined minimum time interval is less than a first predetermined threshold; and the third determining unit is configured to be The determined performance of the virtual machine is low performance when the determined minimum of the time interval is greater than a second predetermined threshold.
  • the determining subunit comprises: recording a sub-subunit, configured to record a predetermined number of times of opening the file; determining a sub-subunit, configured to determine a predetermined number of times of opening the file average value.
  • the network bandwidth is periodically collected in time series; the time taken to open the file on the virtual machine is recorded according to the collected network bandwidth; and the virtual machine is determined according to the recorded time taken to open the file.
  • FIG. 1 is a flowchart of a virtual machine performance determining method according to an embodiment of the present invention
  • FIG. 2 is a structural block diagram of a virtual machine performance determining apparatus according to an embodiment of the present invention.
  • FIG. 3 is a structural block diagram of a recording module 24 in a virtual machine performance determining apparatus according to an embodiment of the present invention
  • FIG. 4 is a block diagram showing the structure of a recording unit 34 in a virtual machine performance determining apparatus according to an embodiment of the present invention
  • FIG. 5 is a structural block diagram of a determining module 26 in a virtual machine performance determining apparatus according to an embodiment of the present invention
  • FIG. 6 is a structural block diagram of a determining subunit 42 in a virtual machine performance determining apparatus according to an embodiment of the present invention
  • FIG. 7 is a flowchart of a method for acquiring a virtual desktop document open delay according to network bandwidth consumption according to an embodiment of the present invention
  • FIG. 8 is a schematic diagram of calculation of document opening delay on a virtual desktop according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a virtual machine performance determining method according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
  • Step S102 periodically collecting network bandwidth in time series
  • Step S104 recording the time taken to open the file on the virtual machine according to the collected network bandwidth
  • Step S106 determining the performance of the virtual machine according to the recorded time taken to open the file.
  • the network bandwidth is periodically collected in time series; the time taken to open the file on the virtual machine is recorded according to the collected network bandwidth; the performance of the virtual machine is determined according to the recorded time taken to open the file, and the accuracy is achieved. Records the time it takes to open a file on a virtual machine, which in turn accurately determines the The performance of the virtual machine solves the problem that the performance of the virtual machine performance test in the related technology is low, thereby achieving the effect of improving the performance of the virtual machine performance test.
  • the time taken to open the file on the virtual machine according to the collected network bandwidth includes: determining a first time point and a second time point when the network bandwidth is in a stable state before and after opening the file; The first time point and the second time point record the time taken to open the file. That is, in the embodiment of the present invention, the following processing may be performed to determine the performance of the virtual machine. First, the network bandwidth usage of the cloud terminal device (ie, the virtual machine) is collected: when the cloud terminal device is not operated after logging in to the virtual desktop.
  • the time taken to open the file according to the determined first time point and the second time point includes: determining a first time point and a second time point when the network bandwidth is in a stable state before and after the file is opened.
  • the minimum time interval between the intervals is the time it takes to open the file.
  • the minimum time interval for the network bandwidth to be stable before and after the file is opened is the time taken to open the file.
  • Determining the performance of the virtual machine according to the recorded time taken to open the file includes determining that the performance of the virtual machine is high performance when the determined minimum time interval is less than the first predetermined threshold; when the determined minimum time interval is greater than At the second predetermined threshold, the performance of the virtual machine is determined to be low performance. It can be seen that the faster the file on the virtual machine is opened, the better the performance of the virtual machine.
  • determining that the time interval between the first time point and the second time point when the network bandwidth is in a stable state before and after opening the file is the time interval for opening the file includes: recording a predetermined number of times The time it takes to open the file; determine the average number of times it takes to open the file a predetermined number of times.
  • a virtual machine performance determining apparatus is further provided, which is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 2 is a structural block diagram of a virtual machine performance determining apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes an acquisition module 22, a recording module 24, and a determination module 26. The apparatus will be described below.
  • the acquiring module 22 is configured to periodically collect the network bandwidth in a time sequence; the recording module 24 is connected to the collecting module 22, and is configured to record the time taken to open the file on the virtual machine according to the collected network bandwidth; the determining module 26, Connected to the above-described recording module 24, it is arranged to determine the performance of the virtual machine based on the time it takes to open the file.
  • FIG. 3 is a structural block diagram of a recording module 24 in a virtual machine performance determining apparatus according to an embodiment of the present invention.
  • the recording module 24 includes a first determining unit 32 and a recording unit 34, and the recording module 24 is provided below. Be explained.
  • the first determining unit 32 is configured to determine a first time point and a second time point when the network bandwidth is in a stable state before and after the opening of the file; the recording unit 34 is connected to the first determining unit 32, and is set according to the determined first time The point and the second point in time record the time it takes to open the file.
  • the recording unit 34 includes a determining subunit 42, which will be described below.
  • the determining sub-unit 42 is configured to determine that the time interval between the first time point and the second time point in which the network bandwidth is in a stable state before and after the opening of the file is minimized is the time taken to open the file.
  • FIG. 5 is a structural block diagram of a determining module 26 in a virtual machine performance determining apparatus according to an embodiment of the present invention. As shown in FIG. 5, the determining module 26 includes a second determining unit 52 and a third determining unit 54. Module 26 is described.
  • the second determining unit 52 is configured to determine that the virtual machine performance is high performance when the determined minimum time interval is less than the first predetermined threshold; and the third determining unit 54 is configured to: when the determined minimum time interval is greater than the second predetermined At the threshold, the performance of the virtual machine is determined to be low performance.
  • the determining subunit 42 includes a recording sub subunit 62 and a determining sub subunit 64. This determination subunit 42 will be described.
  • the recording sub-sub-unit 62 is arranged to record a predetermined number of times of time required to open the file; the determining sub-sub-unit 64, connected to the recording sub-sub-unit 62, is set to determine an average of the predetermined number of times of opening the file. value.
  • the method for obtaining the open delay of the virtual desktop document according to the network bandwidth consumption is also proposed in the embodiment of the present invention, which will be described below.
  • Run the cloud terminal that is, the virtual machine
  • the virtual desktop image is stable
  • collect the bandwidth of the cloud terminal NIC that is, the network bandwidth
  • operate the virtual desktop to open the document.
  • close the cloud terminal device After the document is stable, close the cloud terminal device.
  • NIC bandwidth usage collection After the document is stable, close the cloud terminal device.
  • the virtual machine After the cloud terminal logs in to the virtual desktop, when the virtual desktop document is opened, the virtual machine transmits a large amount of data to the cloud terminal for desktop display update due to the change of the desktop screen, and when the desktop is stable, the screen is unchanged.
  • the virtual desktop transmits less data to the cloud terminal, even 0, so the document open delay can be obtained according to the network bandwidth usage of the stable-changing-stable process.
  • the minimum time interval between the two stable values (before the document is opened and after the document is opened) is the document open delay of the virtual desktop.
  • FIG. 7 is a flowchart of a method for obtaining a virtual desktop document open delay according to network bandwidth consumption according to an embodiment of the present invention. As shown in FIG. 7, the process includes the following steps:
  • Step S702 the cloud terminal is operated to log in to the virtual desktop, and no operation is performed after the login succeeds;
  • Step S704 After the virtual desktop is stabilized, the bandwidth usage of the cloud terminal network card is collected in real time, and the information may be collected once every 0.1 seconds, and the relationship between bandwidth usage and time is recorded.
  • Step S706 the virtual desktop is operated to open the document, and no other operations are performed during the period;
  • Step S708 after the document is opened stably, the network card bandwidth usage of the cloud terminal device is closed.
  • Step S710 Acquire a document open delay according to a minimum time interval between two stable values of the network bandwidth consumption (before the document is opened and after the document is opened).
  • FIG. 8 is a schematic diagram of calculating a file opening delay on a virtual desktop according to an embodiment of the present invention. As shown in FIG. 8 , a minimum interval corresponding to two stable values before the document is opened and after the document is opened, that is, a document opening delay, FIG. The value of T2-T1 is the document open delay.
  • the implementation of the delay acquisition provided by the present invention is only a preferred embodiment, and is not intended to limit the present invention, for obtaining the document open delay after the cloud terminal logs in to the virtual desktop.
  • the invention may, of course, be embodied in a variety of other embodiments, and various modifications, variations and equivalents can be made in accordance with the present invention without departing from the spirit and scope of the invention. Etc. However, these corresponding changes and modifications are intended to fall within the scope of protection claimed herein.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device, which can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the method and device for determining the performance of a virtual machine provided by the embodiment of the present invention have the following beneficial effects: solving the problem that the performance of the virtual machine performance test in the related art is low, thereby improving the performance of the virtual machine. Sexual effect.

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

一种虚拟机性能确定方法及装置,其中,该方法包括:按时间顺序周期性的采集网络带宽(S102);根据采集的网络带宽记录打开虚拟机上的文件所耗费的时间(S104);根据记录的打开上述文件所耗费的时间确定虚拟机的性能(S106)。解决了相关技术中存在的虚拟机性能测试准确性低的问题,进而达到了提高虚拟机性能测试准确性的效果。

Description

虚拟机性能确定方法及装置 技术领域
本发明涉及通信领域,具体而言,涉及一种虚拟机性能确定方法及装置。
背景技术
云终端是基于云计算商业模式应用的终端设备和终端平台服务的总称。桌面虚拟化依赖于服务器虚拟化,在数据中心的服务器上进行服务器虚拟化,生成大量的独立的桌面操作系统(虚拟机或者虚拟桌面),同时根据专有的虚拟桌面协议发送给终端设备。云终端通过以太网登陆到虚拟主机上,只需要记住用户名和密码及网关信息,即可随时随地的通过网络访问自己的桌面系统,从而实现单机多用户。
云终端设备的硬件要求相对比较低,与虚拟机的动态交互体验依赖于虚拟机本身的性能、网络带宽以及终端本身性能。对于云终端设备的性能测试,尤其是登录虚拟桌面后的性能测试,目前未有较准确的测试方法。
针对相关技术中存在的虚拟机性能测试准确性低的问题,目前尚未提出有效的解决方案。
发明内容
本发明提供了一种虚拟机性能确定方法及装置,以至少解决相关技术中存在的虚拟机性能测试准确性低的问题。
根据本发明的一个方面,提供了一种虚拟机性能确定方法,包括:按时间顺序周期性的采集网络带宽;根据采集的所述网络带宽记录打开虚拟机上的文件所耗费的时间;根据记录的打开所述文件所耗费的时间确定所述虚拟机的性能。
优选地,根据采集的所述网络带宽记录打开所述虚拟机上的所述文件所耗费的时间包括:确定打开所述文件前后网络带宽处于稳定状态的第一时间点和第二时间点;根据确定的所述第一时间点和所述第二时间点记录打开所述文件所耗费的时间。
优选地,根据确定的所述第一时间点和所述第二时间点记录打开所述文件所耗费的时间包括:确定打开所述文件前后网络带宽处于稳定状态的第一时间点和第二时间点之间时间间隔最小的时间间隔为打开所述文件所耗费的时间。
优选地,根据记录的打开所述文件所耗费的时间确定所述虚拟机的性能包括:当确定的最小的所述时间间隔小于第一预定阈值时,确定所述虚拟机性能为高性能;当确定的最小的所述时间间隔大于第二预定阈值时,确定所述虚拟机的性能为低性能。
优选地,确定打开所述文件前后网络带宽处于稳定状态的第一时间点和第二时间点之间时间间隔最小的时间间隔为打开所述文件所耗费的时间包括:记录预定次数的打开所述文件所耗费的时间;确定预定次数的打开所述文件所耗费的时间的平均值。
根据本发明的另一方面,提供了一种虚拟机性能确定装置,包括:采集模块,设置为按时间顺序周期性的采集网络带宽;记录模块,设置为根据采集的所述网络带宽记录打开虚拟机上的文件所耗费的时间;确定模块,设置为根据记录的打开所述文件所耗费的时间确定所述虚拟机的性能。
优选地,所述记录模块包括:第一确定单元,设置为确定打开所述文件前后网络带宽处于稳定状态的第一时间点和第二时间点;记录单元,设置为根据确定的所述第一时间点和所述第二时间点记录打开所述文件所耗费的时间。
优选地,所述记录单元包括:确定子单元,设置为确定打开所述文件前后网络带宽处于稳定状态的第一时间点和第二时间点之间时间间隔最小的时间间隔为打开所述文件所耗费的时间。
优选地,所述确定模块包括:第二确定单元,设置为当确定的最小的所述时间间隔小于第一预定阈值时,确定所述虚拟机性能为高性能;第三确定单元,设置为当确定的最小的所述时间间隔大于第二预定阈值时,确定所述虚拟机的性能为低性能。
优选地,所述确定子单元包括:记录次子单元,设置为记录预定次数的打开所述文件所耗费的时间;确定次子单元,设置为确定预定次数的打开所述文件所耗费的时间的平均值。
通过本发明,采用按时间顺序周期性的采集网络带宽;根据采集的所述网络带宽记录打开虚拟机上的文件所耗费的时间;根据记录的打开所述文件所耗费的时间确定所述虚拟机的性能,解决了相关技术中存在的虚拟机性能测试准确性低的问题,进而达到了提高虚拟机性能测试准确性的效果。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的虚拟机性能确定方法的流程图;
图2是根据本发明实施例的虚拟机性能确定装置的结构框图;
图3是根据本发明实施例的虚拟机性能确定装置中记录模块24的结构框图;
图4是根据本发明实施例的虚拟机性能确定装置中记录单元34的结构框图;
图5是根据本发明实施例的虚拟机性能确定装置中确定模块26的结构框图;
图6是根据本发明实施例的虚拟机性能确定装置中确定子单元42的结构框图;
图7是根据本发明实施例的根据网络带宽消耗获取虚拟桌面文档打开时延方法的流程图;
图8是根据本发明实施例的虚拟桌面上文档打开时延计算示意图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
在本实施例中提供了一种虚拟机性能确定方法,图1是根据本发明实施例的虚拟机性能确定方法的流程图,如图1所示,该流程包括如下步骤:
步骤S102,按时间顺序周期性的采集网络带宽;
步骤S104,根据采集的网络带宽记录打开虚拟机上的文件所耗费的时间;
步骤S106,根据记录的打开上述文件所耗费的时间确定虚拟机的性能。
通过上述步骤,按时间顺序周期性的采集网络带宽;根据采集的网络带宽记录打开虚拟机上的文件所耗费的时间;根据记录的打开上述文件所耗费的时间确定虚拟机的性能,实现了准确的记录打开虚拟机上的文件所耗费的时间,进而准确的确定了该 虚拟机的性能,解决了相关技术中存在的虚拟机性能测试准确性低的问题,进而达到了提高虚拟机性能测试准确性的效果。
在一个优选的实施例中,根据采集的网络带宽记录打开虚拟机上的文件所耗费的时间包括:确定打开该文件前后网络带宽处于稳定状态的第一时间点和第二时间点;根据确定的第一时间点和第二时间点记录打开该文件所耗费的时间。即,在本发明实施例中,可以进行如下处理来确定虚拟机的性能,一是采集云终端设备(即,虚拟机)的网络带宽使用情况:包括云终端设备登录虚拟桌面后未进行操作时的带宽使用获取、虚拟桌面操作文档打开时的带宽使用获取以及在虚拟桌面操作完文档打开后未进行其他操作时的带宽使用获取;二是对采集的数据进行整理分析,根据整理分析的数据来确定虚拟机的性能。
在一个优选地实施例中,根据确定的第一时间点和第二时间点记录打开上述文件所耗费的时间包括:确定打开该文件前后网络带宽处于稳定状态的第一时间点和第二时间点之间时间间隔最小的时间间隔为打开该文件所耗费的时间。打开文件前后网络带宽处于稳定状态的最小时间间隔即为打开该文件所耗费的时间,通过分析该最小时间间隔可以准确的确定虚拟机的性能。
其中,根据记录的打开上述文件所耗费的时间确定虚拟机的性能包括:当确定的最小的时间间隔小于第一预定阈值时,确定该虚拟机性能为高性能;当确定的最小的时间间隔大于第二预定阈值时,确定该虚拟机的性能为低性能。由此可知,虚拟机上的文件打开的速度越快,说明该虚拟机性能越好。
在一个优选的实施例中,确定打开上述文件前后网络带宽处于稳定状态的第一时间点和第二时间点之间时间间隔最小的时间间隔为打开该文件所耗费的时间包括:记录预定次数的打开该文件所耗费的时间;确定预定次数的打开该文件所耗费的时间的平均值。通过多次获取打开文件所耗费的时间并取平均值,可以更加客观准确的反映出虚拟机的性能。
在本实施例中还提供了一种虚拟机性能确定装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图2是根据本发明实施例的虚拟机性能确定装置的结构框图,如图2所示,该装置包括采集模块22、记录模块24和确定模块26,下面对该装置进行说明。
采集模块22,设置为按时间顺序周期性的采集网络带宽;记录模块24,连接至上述采集模块22,设置为根据采集的网络带宽记录打开虚拟机上的文件所耗费的时间;确定模块26,连接至上述记录模块24,设置为根据记录的打开该文件所耗费的时间确定虚拟机的性能。
图3是根据本发明实施例的虚拟机性能确定装置中记录模块24的结构框图,如图3所示,该记录模块24包括第一确定单元32和记录单元34,下面对该记录模块24进行说明。
第一确定单元32,设置为确定打开上述文件前后网络带宽处于稳定状态的第一时间点和第二时间点;记录单元34,连接至上述第一确定单元32,设置为根据确定的第一时间点和第二时间点记录打开该文件所耗费的时间。
图4是根据本发明实施例的虚拟机性能确定装置中记录单元34的结构框图,如图4所示,该记录单元34包括确定子单元42,下面对该记录单元34进行说明。
确定子单元42,设置为确定打开上述文件前后网络带宽处于稳定状态的第一时间点和第二时间点之间时间间隔最小的时间间隔为打开该文件所耗费的时间。
图5是根据本发明实施例的虚拟机性能确定装置中确定模块26的结构框图,如图5所示,该确定模块26包括第二确定单元52、第三确定单元54,下面对该确定模块26进行说明。
第二确定单元52,设置为当确定的最小的时间间隔小于第一预定阈值时,确定该虚拟机性能为高性能;第三确定单元54,设置为当确定的最小的时间间隔大于第二预定阈值时,确定该虚拟机的性能为低性能。
图6是根据本发明实施例的虚拟机性能确定装置中确定子单元42的结构框图,如图6所示,该确定子单元42包括记录次子单元62和确定次子单元64,下面对该确定子单元42进行说明。
记录次子单元62,设置为记录预定次数的打开上述文件所耗费的时间;确定次子单元64,连接至上述记录次子单元62,设置为确定预定次数的打开该文件所耗费的时间的平均值。
为了解决相关技术中存在的拟机性能测试准确性低的问题,本发明实施例中还提出了一种根据网络带宽消耗获取虚拟桌面文档打开时延方法,下面对其进行说明。
操作云终端(即虚拟机)登录到虚拟桌面,待虚拟桌面画面稳定后实时采集云终端网卡带宽(即网络带宽)使用情况;然后操作虚拟桌面打开文档,待文档打开稳定后关闭云终端设备的网卡带宽使用情况采集。
云终端登录到虚拟桌面后,在操作虚拟桌面文档打开时,由于桌面画面的变化,会使得虚拟机传输大量的数据给云终端进行桌面显示的更新,而当桌面稳定时,由于画面不变,虚拟桌面传输给云终端的数据则较少,甚至是0,因此可根据稳定-变化-稳定这个过程的网络带宽使用情况来获取文档打开时延。
最后通过分析整个过程的带宽使用情况计算出两个稳定值(文档打开前和文档打开后)之间的最小时间间隔即为虚拟桌面的文档打开时延。通过上述实施例可以准确的量化云终端登录虚拟桌面后的文档打开性能指标。
图7是根据本发明实施例的根据网络带宽消耗获取虚拟桌面文档打开时延方法的流程图,如图7所示,该流程包括如下步骤:
步骤S702,操作云终端登录到虚拟桌面,并且,在登录成功后不进行任何操作;
步骤S704,待虚拟桌面稳定后开始实时采集云终端网卡带宽使用情况,可以间隔0.1秒收集一次,记录下带宽使用与时间的关系图;
步骤S706,操作虚拟桌面打开文档,期间不再进行其他操作;
步骤S708,待文档打开稳定后再关闭云终端设备的网卡带宽使用情况采集;
步骤S710,根据网络带宽消耗两个稳定值(文档打开前和文档打开后)之间的最小时间间隔获取到文档打开时延。
图8是根据本发明实施例的虚拟桌面上文档打开时延计算示意图,如图8所示,文档打开前和文档打开后的两个稳定值对应的最小区间,即为文档打开时延,图示中T2-T1的值为文档打开时延。
在上述实施例中,对于云终端登录虚拟桌面后文档打开时延的获取,本发明提供的时延获取的实施方案仅为优选的实施例,并不用于限制本发明。当然,本发明还可以有其它多种实施方式,在不背离本发明精神及其实质的情况下,熟悉本领域的普通技术人员可根据本发明做出的各种相应的改变、变形、等同替换等,但这些相应的改变和变形都应属于本发明所要求的保护范围。
并且,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
工业实用性
如上所述,本发明实施例提供的一种虚拟机性能确定方法及装置具有以下有益效果:解决了相关技术中存在的虚拟机性能测试准确性低的问题,进而达到了提高虚拟机性能测试准确性的效果。

Claims (10)

  1. 一种虚拟机性能确定方法,包括:
    按时间顺序周期性的采集网络带宽;
    根据采集的所述网络带宽记录打开虚拟机上的文件所耗费的时间;
    根据记录的打开所述文件所耗费的时间确定所述虚拟机的性能。
  2. 根据权利要求1所述的方法,其中,根据采集的所述网络带宽记录打开所述虚拟机上的所述文件所耗费的时间包括:
    确定打开所述文件前后网络带宽处于稳定状态的第一时间点和第二时间点;
    根据确定的所述第一时间点和所述第二时间点记录打开所述文件所耗费的时间。
  3. 根据权利要求2所述的方法,其中,根据确定的所述第一时间点和所述第二时间点记录打开所述文件所耗费的时间包括:
    确定打开所述文件前后网络带宽处于稳定状态的第一时间点和第二时间点之间时间间隔最小的时间间隔为打开所述文件所耗费的时间。
  4. 根据权利要求3所述的方法,其中,根据记录的打开所述文件所耗费的时间确定所述虚拟机的性能包括:
    当确定的最小的所述时间间隔小于第一预定阈值时,确定所述虚拟机性能为高性能;
    当确定的最小的所述时间间隔大于第二预定阈值时,确定所述虚拟机的性能为低性能。
  5. 根据权利要求1所述的方法,其中,确定打开所述文件前后网络带宽处于稳定状态的第一时间点和第二时间点之间时间间隔最小的时间间隔为打开所述文件所耗费的时间包括:
    记录预定次数的打开所述文件所耗费的时间;
    确定预定次数的打开所述文件所耗费的时间的平均值。
  6. 一种虚拟机性能确定装置,包括:
    采集模块,设置为按时间顺序周期性的采集网络带宽;
    记录模块,设置为根据采集的所述网络带宽记录打开虚拟机上的文件所耗费的时间;
    确定模块,设置为根据记录的打开所述文件所耗费的时间确定所述虚拟机的性能。
  7. 根据权利要求6所述的装置,其中,所述记录模块包括:
    第一确定单元,设置为确定打开所述文件前后网络带宽处于稳定状态的第一时间点和第二时间点;
    记录单元,设置为根据确定的所述第一时间点和所述第二时间点记录打开所述文件所耗费的时间。
  8. 根据权利要求7所述的装置,其中,所述记录单元包括:
    确定子单元,设置为确定打开所述文件前后网络带宽处于稳定状态的第一时间点和第二时间点之间时间间隔最小的时间间隔为打开所述文件所耗费的时间。
  9. 根据权利要求8所述的装置,其中,所述确定模块包括:
    第二确定单元,设置为当确定的最小的所述时间间隔小于第一预定阈值时,确定所述虚拟机性能为高性能;
    第三确定单元,设置为当确定的最小的所述时间间隔大于第二预定阈值时,确定所述虚拟机的性能为低性能。
  10. 根据权利要求8所述的装置,其中,所述确定子单元包括:
    记录次子单元,设置为记录预定次数的打开所述文件所耗费的时间;
    确定次子单元,设置为确定预定次数的打开所述文件所耗费的时间的平均值。
PCT/CN2015/070383 2014-11-06 2015-01-08 虚拟机性能确定方法及装置 WO2015184801A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410623705.9A CN105630645B (zh) 2014-11-06 2014-11-06 虚拟机性能确定方法及装置
CN201410623705.9 2014-11-06

Publications (1)

Publication Number Publication Date
WO2015184801A1 true WO2015184801A1 (zh) 2015-12-10

Family

ID=54766044

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/070383 WO2015184801A1 (zh) 2014-11-06 2015-01-08 虚拟机性能确定方法及装置

Country Status (2)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080133489A1 (en) * 2005-10-26 2008-06-05 International Business Machines Corporation Run-time performance verification system
CN102799512A (zh) * 2012-07-04 2012-11-28 南京邮电大学 一种基于向量自回归的云计算中虚拟机监控方法
CN103294579A (zh) * 2013-06-09 2013-09-11 浪潮电子信息产业股份有限公司 一种高性能计算集群应用性能测试方法
CN103595578A (zh) * 2013-11-01 2014-02-19 福建升腾资讯有限公司 一种桌面云终端在虚拟化应用场景的性能评测方法及其系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7831661B2 (en) * 2008-12-18 2010-11-09 Vmware, Inc. Measuring client interactive performance using a display channel
CN103455396B (zh) * 2013-09-03 2016-08-31 北京安兔兔科技有限公司 电子设备硬件性能的测试方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080133489A1 (en) * 2005-10-26 2008-06-05 International Business Machines Corporation Run-time performance verification system
CN102799512A (zh) * 2012-07-04 2012-11-28 南京邮电大学 一种基于向量自回归的云计算中虚拟机监控方法
CN103294579A (zh) * 2013-06-09 2013-09-11 浪潮电子信息产业股份有限公司 一种高性能计算集群应用性能测试方法
CN103595578A (zh) * 2013-11-01 2014-02-19 福建升腾资讯有限公司 一种桌面云终端在虚拟化应用场景的性能评测方法及其系统

Also Published As

Publication number Publication date
CN105630645B (zh) 2019-10-11
CN105630645A (zh) 2016-06-01

Similar Documents

Publication Publication Date Title
CN110245078B (zh) 一种软件的压力测试方法、装置、存储介质和服务器
CN108768791B (zh) 一种信息采集配置管理系统及方法
US9866573B2 (en) Dynamic malicious application detection in storage systems
US8521868B2 (en) Platform-level indicators of application performance
US11074514B2 (en) Confidence intervals for anomalies in computer log data
WO2015180291A1 (zh) 监控服务器集群的方法和系统
US20190065738A1 (en) Detecting anomalous entities
US9996332B2 (en) Accurately estimating install time
EP3211825A1 (en) Trusted terminal verification method and apparatus
US10411969B2 (en) Backend resource costs for online service offerings
Wolski et al. Using parametric models to represent private cloud workloads
CN109474603B (zh) 数据抓包处理方法及终端设备
CN109873734B (zh) 一种底层数据监控方法、介质、设备及装置
US10025671B2 (en) Smart virtual machine snapshotting
WO2016193060A1 (en) Method, apparatus and system for device replacement detection and device recommendation
WO2014206131A1 (en) Method and apparatus for report generation
US20180095819A1 (en) Incident analysis program, incident analysis method, information processing device, service identification program, service identification method, and service identification device
CN109783459A (zh) 从日志中提取数据的方法、装置及计算机可读存储介质
CN110493085A (zh) IPv6活跃用户数的统计方法、系统、电子设备及介质
WO2016176053A1 (en) Establishing causality order of computer trace records
US10505963B1 (en) Anomaly score generation based on adaptive clustering of user location
CN109800052B (zh) 应用于分布式容器云平台的异常检测与定位方法及装置
CN109144837B (zh) 一种支持精准服务推送的用户行为模式识别方法
US8385213B2 (en) Error identification in a computer-based network
CN105207829B (zh) 一种入侵检测数据处理方法、装置,及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15803455

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15803455

Country of ref document: EP

Kind code of ref document: A1