[go: up one dir, main page]

CN106775949A - A kind of Application of composite feature that perceives migrates optimization method online with the virtual machine of the network bandwidth - Google Patents

A kind of Application of composite feature that perceives migrates optimization method online with the virtual machine of the network bandwidth Download PDF

Info

Publication number
CN106775949A
CN106775949A CN201611231403.2A CN201611231403A CN106775949A CN 106775949 A CN106775949 A CN 106775949A CN 201611231403 A CN201611231403 A CN 201611231403A CN 106775949 A CN106775949 A CN 106775949A
Authority
CN
China
Prior art keywords
virtual machine
network
network bandwidth
migration
memory
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
Application number
CN201611231403.2A
Other languages
Chinese (zh)
Other versions
CN106775949B (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.)
Guangxi University
Original Assignee
Guangxi University
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 Guangxi University filed Critical Guangxi University
Priority to CN201611231403.2A priority Critical patent/CN106775949B/en
Publication of CN106775949A publication Critical patent/CN106775949A/en
Application granted granted Critical
Publication of CN106775949B publication Critical patent/CN106775949B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种感知复合应用特征与网络带宽的虚拟机在线迁优化移方法,属于软件技术领域。本发明的方法为:1)感知虚拟机应用特征环境和网络带宽环境,收集内存脏页面数;2)使用灰色预测模型预测内存脏页面数;3)计算虚拟机的迭代周期的脏页面率;4)收集网络带宽使用情况;5)根据虚拟机中应用所需网络带宽,判断虚拟机是否为网络密集型虚拟机,然后进行网络带宽预留。本发明在面对网络密集型应用或内存密集应用的虚拟机迁移时,能减少迁移过程中的额外开销,提高迁移过程中的传输效率,有效降低迁移时间。

The invention discloses a virtual machine online migration optimization method for sensing compound application characteristics and network bandwidth, and belongs to the field of software technology. The method of the present invention is as follows: 1) perceiving the virtual machine application feature environment and the network bandwidth environment, and collecting the number of dirty pages in the memory; 2) predicting the number of dirty pages in the memory using a gray prediction model; 3) calculating the dirty page rate of the iterative cycle of the virtual machine; 4) Collect network bandwidth usage; 5) According to the network bandwidth required by the application in the virtual machine, determine whether the virtual machine is a network-intensive virtual machine, and then reserve the network bandwidth. When facing the virtual machine migration of network-intensive applications or memory-intensive applications, the present invention can reduce extra expenses in the migration process, improve transmission efficiency in the migration process, and effectively reduce migration time.

Description

一种感知复合应用特征与网络带宽的虚拟机在线迁移优化 方法A virtual machine online migration optimization based on perception of compound application characteristics and network bandwidth method

技术领域technical field

本发明设计一种感知应用特征与网络环境的虚拟机在线迁移优化方法,尤其设计一种应用特征感知的网络带宽预留调整算法,属于软件技术领域。The invention designs an online migration optimization method of a virtual machine that perceives application characteristics and network environment, especially an application characteristic-aware network bandwidth reservation adjustment algorithm, which belongs to the field of software technology.

背景技术Background technique

随着虚拟化技术的广泛应用,虚拟机的动态管理也变得越来越重要,而在线迁移是对虚拟机动态管理的重要手段。在线迁移是一种网络密集型活动,它要求传输几GB甚至几十GB的虚拟机内存状态从源宿主机到目的宿主机。除了占用网络资源外,在线迁移消耗额外的内存和CPU等物理资源。With the wide application of virtualization technology, the dynamic management of virtual machines has become more and more important, and online migration is an important means of dynamic management of virtual machines. Live migration is a network-intensive activity that requires the transfer of several gigabytes or even tens of gigabytes of virtual machine memory state from the source host to the destination host. In addition to occupying network resources, online migration consumes additional physical resources such as memory and CPU.

目前,传统的在线迁移方法有pre-copy(预拷贝)、post-copy(后拷贝)和hybridcopy(混合拷贝)在线迁移方法。pre-copy在线迁移是现在主流的虚拟机动态迁移技术,pre-copy分为3个阶段:首次拷贝和迭代拷贝、停机拷贝。具体迁移过程见图1所示。首先,将虚拟机的全部内存拷贝到目的宿主机中,该过程不中断虚拟机运行,这个阶段叫做“首次拷贝”阶段;接着,进入“迭代拷贝阶段”,把上一拷贝过程中产生的内存脏页面(上一次被修改过的内存页面)迭代复制到目的宿主机,该过程也不中断虚拟机的运行。在每一轮迭代复制结束后需要判断当前是否符合进入stop-and-coy阶段(即停机拷贝阶段)的条件。如果满足则进入第三阶段——“停机拷贝”阶段,否则继续进行迭代拷贝。在停机拷贝阶段在源宿主机上的虚拟机被暂停运行,然后将剩余的虚拟机内存脏页面同步到目的宿主机。同时,还把虚拟机系统信息,包括CPU和网络状态等,同步到目的端。在传输完信息之后,在目的宿主机上的虚拟机会根据传送过来的虚拟机系统信息恢复系统。与pre-copy在线迁移不同,post-copy在线迁移的内存同步是在虚拟机在目的宿主机上恢复运行之后。Hybrid copy在线迁移是post-copy在线迁移的一个特例。它融合了pre-copy在线迁移方法和post-copy在线迁移方法的特点,在虚拟机系统信息传送到目的宿主机之前,把最经常访问的内存页面子集传送到目的主机当中。剩下不经常使用的内存页面会在虚拟机运行需要时在从源宿主机中获取。Currently, traditional online migration methods include pre-copy (pre-copy), post-copy (post-copy) and hybridcopy (mixed copy) online migration methods. Pre-copy online migration is the mainstream virtual machine dynamic migration technology. Pre-copy is divided into three stages: first copy, iterative copy, and downtime copy. The specific migration process is shown in Figure 1. First, copy all the memory of the virtual machine to the destination host without interrupting the operation of the virtual machine. This stage is called the "first copy" stage; then, enter the "iterative copy stage", and copy the memory generated during the previous copy process. Dirty pages (memory pages that were modified last time) are iteratively copied to the destination host, and the process does not interrupt the running of the virtual machine. After each round of iterative copying, it is necessary to judge whether the current conditions for entering the stop-and-coy stage (that is, the stop-and-coy stage) are met. If it is satisfied, it will enter the third stage - "downtime copy" stage, otherwise continue to iterative copy. During the shutdown copy phase, the virtual machine on the source host is suspended, and then the remaining dirty memory pages of the virtual machine are synchronized to the destination host. At the same time, it also synchronizes the virtual machine system information, including CPU and network status, to the destination. After the information is transmitted, the virtual machine on the destination host restores the system according to the transmitted virtual machine system information. Different from pre-copy online migration, the memory synchronization of post-copy online migration is after the virtual machine resumes running on the destination host. Hybrid copy online migration is a special case of post-copy online migration. It combines the characteristics of the pre-copy online migration method and the post-copy online migration method. Before the virtual machine system information is transmitted to the destination host, the most frequently accessed subset of memory pages is transferred to the destination host. The remaining infrequently used memory pages will be obtained from the source host when the virtual machine needs to run.

主流的虚拟化平台(KVM、Xen和VMware等)都支持pre-copy算法进行在线迁移。pre-copy在线迁移方法在商业和学术领域得到了广泛应用和发展。该方法能够有效缩短迁移时间和提高迁移性能,但在实际应用中,受迭代收敛性、虚拟机不同应用特征和资源限制的影响,使用pre-copy在线迁移方法迁移网络密集型和内存密集型虚拟机时迁移性能并不理想。比如,若虚拟机中运行着内存密集型应用,虚拟机的内存不断被快速修改,且当修改的速度大于内存脏页面的传输速度时,这会造成pre-copy迭代拷贝时间延长,占用物理资源时间也增加,并且难以进入停机拷贝阶段,这会严重影响其他服务,甚至会导致迁移失败。在预测虚拟机内存脏页面方法中都没有考虑到虚拟机应用特征环境对虚拟机内存脏页面的影响。目前,pre-copy在线迁移改进方法往往通过删除重复内存页面数据和压缩内存页面、抑制相似内存页面产生等方法减少内存脏页面的数据传输,以降低迁移时间和宕机时间。然而上述方法往往会增加大量额外的CPU消耗,同时未考虑到网络带宽环境对传输内存脏页面的影响。The mainstream virtualization platforms (KVM, Xen, VMware, etc.) all support the pre-copy algorithm for online migration. Pre-copy online transfer methods are widely used and developed in commercial and academic fields. This method can effectively shorten the migration time and improve migration performance, but in practical applications, due to the influence of iterative convergence, different application characteristics of virtual machines and resource constraints, using the pre-copy online migration method to migrate network-intensive and memory-intensive virtual machines Machine-time migration performance is not ideal. For example, if a memory-intensive application is running in a virtual machine, the memory of the virtual machine is constantly being modified rapidly, and when the modification speed is greater than the transmission speed of dirty pages in the memory, this will prolong the iterative copying time of pre-copy and occupy physical resources The time also increases and it is difficult to enter the downtime copy phase, which can seriously affect other services and even cause the migration to fail. None of the methods for predicting virtual machine memory dirty pages takes into account the impact of virtual machine application characteristics and environments on virtual machine memory dirty pages. At present, pre-copy online migration improvement methods often reduce the data transmission of memory dirty pages by deleting duplicate memory page data, compressing memory pages, and suppressing the generation of similar memory pages, so as to reduce migration time and downtime. However, the above method often increases a large amount of extra CPU consumption, and does not take into account the impact of the network bandwidth environment on the dirty pages of the transmitted memory.

发明内容Contents of the invention

本发明的目的在于:克服现有相关成果中未考虑应用特征对内存脏页面数量影响,同时忽略内存脏页面数量和网络带宽的共同作用以及在网络密集型或者内存密集型虚拟机迁移场景中迭代周期长、宕机时间增加等迁移性能问题,提供一种感知应用特征与网络环境的虚拟机在线迁移优化方法,能有效减少网络资源的竞争,提高网络传输效率,减少迁移时间,达到提供虚拟机迁移性能的目的。The purpose of the present invention is to overcome the influence of application features on the number of memory dirty pages in existing related achievements, ignore the combined effect of memory dirty pages and network bandwidth, and iterate in network-intensive or memory-intensive virtual machine migration scenarios Migration performance problems such as long cycle time and increased downtime, provide an online virtual machine migration optimization method that perceives application characteristics and network environment, which can effectively reduce competition for network resources, improve network transmission efficiency, reduce migration time, and achieve provision of virtual machines. Purpose of migration performance.

在本发明中,为了得到内存脏页面的具体值采用灰色预测模型进行内存脏页面的预测。选择该方法的原因在于内存拷贝过程内存脏页面信息采集比较难,采集的数量比较少,而灰色预测模型能够在数据样本较少的情况下进行较好的预测。In the present invention, in order to obtain the specific value of the dirty pages in the memory, a gray prediction model is used to predict the dirty pages in the memory. The reason for choosing this method is that it is difficult to collect dirty page information during the memory copy process, and the number of collected pages is relatively small, while the gray prediction model can make better predictions with fewer data samples.

如图2所示,本发明感知应用特征与网络环境的虚拟机在线迁移优化方法如下:As shown in Figure 2, the virtual machine online migration optimization method for perceiving application characteristics and network environment of the present invention is as follows:

(1)感知虚拟机的应用特征和网络环境,收集内存脏页面数;所述感知虚拟机应用特征是指动态获取虚拟机中应用资源使用情况,包括内存使用率、CPU使用率和网络带宽,并且能够掌握该应用资源使用率变化的趋势;感知网络环境是指动态获取云数据中心网络带宽使用率;内存脏页面是指虚拟机迁移过程中被修改的内存页面;(1) Perceiving the application characteristics and network environment of the virtual machine, and collecting the number of dirty pages in the memory; the perceiving virtual machine application characteristics refers to dynamically obtaining the usage of application resources in the virtual machine, including memory usage, CPU usage and network bandwidth, And be able to grasp the change trend of the resource usage rate of the application; sensing the network environment refers to dynamically obtaining the network bandwidth usage rate of the cloud data center; memory dirty pages refer to the memory pages that are modified during the virtual machine migration process;

(2)根据步骤(1)中的感知虚拟机的应用特征和网络环境以及获取内存脏页面数作为样本数据,使用灰色预测模型预测内存脏页面数;(2) According to the application characteristics and the network environment of the perceived virtual machine in the step (1) and obtaining the number of dirty pages in the memory as sample data, use the gray prediction model to predict the number of dirty pages in the memory;

(3)根据步骤(2)中预测得到的内存脏页面数,计算虚拟机的迭代周期的脏页面率,脏页面率=迭代周期产生脏页面数/迭代周期时间;(3) According to the number of memory dirty pages predicted in step (2), calculate the dirty page rate of the iterative cycle of the virtual machine, dirty page rate=iterative cycle produces dirty page number/iterative cycle time;

(4)获得网络带宽使用情况;(4) obtain network bandwidth usage;

(5)根据步骤(4)获得的网络带宽使用情况,判断虚拟机是否为网络密集型虚拟机,然后进行网络带宽预留。在网络带宽预留过程中,根据虚拟机应用所需的网络带宽和脏页面率进行带宽预留,以保证在迁移过程中每个迭代周期网络带宽充足,减少网络拥塞。本方法对含网络密集型应用,结合网络环境进行网络带宽预留,能够减少迁移过程中网络带宽的竞争,提高迁移效率,减少迭代时间,降低迁移时间,从而达到了提高迁移性能的目的。同时,优先保证非网络密集型虚拟机迁移,合理调配了网络资源、提高了网络的利用率。(5) According to the network bandwidth usage obtained in step (4), it is judged whether the virtual machine is a network-intensive virtual machine, and then the network bandwidth is reserved. In the process of network bandwidth reservation, bandwidth reservation is performed according to the network bandwidth and dirty page rate required by the virtual machine application, so as to ensure that the network bandwidth is sufficient in each iteration cycle during the migration process and reduce network congestion. For network-intensive applications, the method reserves network bandwidth in combination with the network environment, which can reduce network bandwidth competition during the migration process, improve migration efficiency, reduce iteration time, and reduce migration time, thereby achieving the purpose of improving migration performance. At the same time, priority is given to ensuring the migration of non-network-intensive virtual machines, which rationally allocates network resources and improves network utilization.

所述步骤(2)使用灰色预测模型预测下一时段内存脏页面数的过程如下:The process of the step (2) using the gray prediction model to predict the number of dirty pages in the next period is as follows:

(21)对收集步骤(1)数据,即X1:迁移不同迭代周期产生的内存脏页面数量;X2:迁移不同迭代周期虚拟机内存使用率;X3:迁移不同迭代周期虚拟机CPU使用率;X4:迁移不同迭代周期虚拟机网络带宽;X5:上一次迭代的时间;X6:迁移不同迭代周期云数据中心的网络使用情况。将这些数据转化为矩阵,作为灰色预测序列X(0),并对所述序列X(0)进行累加,生成AGO序列令为X(1)(21) To collect the data in step (1), that is, X 1 : the number of memory dirty pages generated in different iteration cycles of migration; X 2 : the memory usage rate of virtual machines in different iteration cycles of migration; X 3 : the CPU usage of virtual machines in different iteration cycles X 4 : Network bandwidth of virtual machines in different iteration cycles of migration; X 5 : Time of last iteration; X 6 : Network usage of cloud data centers in different iteration cycles of migration. These data are transformed into matrix, as gray prediction sequence X (0) , and described sequence X (0) is accumulated, generate AGO sequence order to be X (1) ;

(22)根据步骤(21)得到的X(1)求解近邻值生成的序列即均值序列为;(22) The sequence that obtains according to step (21) X (1) solves the sequence that neighbor value generates is mean value sequence is;

(23)在灰色预测模型中,假设步骤(21)的X(1)与步骤(22)的存在一定关系,因此建立灰微分方程;(23) In the gray prediction model, assume that there is a certain relationship between X (1) of step (21) and step (22), so the gray differential equation is established;

(24)根据步骤(22)的建立白化微分方程;(24) according to the establishment of step (22) whitening differential equation;

(25)根据步骤(23)方程组,建立基于GM(1,N)方程组,利用最小二乘法求解GM(1,N)方程参数序列;(25) according to step (23) equation group, set up based on GM (1, N) equation group, utilize least square method to solve GM (1, N) equation parameter sequence;

(26)将参数代入(24)中的白化微分方程,求解得到GM(1,N)离散响应函数,经过累减还原公式求解出预测值序列;(26) Substituting the parameters into the whitening differential equation in (24), solving to obtain the GM (1, N) discrete response function, and solving the predicted value sequence through the cumulative reduction formula;

(27)为减少灰色预测模型的误差,通过残差修正预测值提高预测精度。(27) In order to reduce the error of the gray prediction model, the prediction accuracy is improved by correcting the prediction value by the residual.

所述步骤(5)中的网络带宽预留过程如下:The network bandwidth reservation process in the described step (5) is as follows:

(31)收集虚拟机中应用所需网络带宽信息,判断虚拟机是否属于网络密集型应用虚拟机,如果迁移虚拟机不是网络密集型应用虚拟机,跳到步骤(32);如果为网络密集型虚拟机,跳到步骤(34);(31) Collect the network bandwidth information required by the application in the virtual machine, and judge whether the virtual machine belongs to a network-intensive application virtual machine. If the migration virtual machine is not a network-intensive application virtual machine, skip to step (32); if it is a network-intensive application virtual machine virtual machine, skip to step (34);

(32)根据步骤(3)中计算虚拟机内存脏页面率,判断目前空闲带宽是否满足接下来内存脏页面数量的传输带宽,即网络带宽是否大于内存脏页面率;如果满足就不进行调整;否则,对网络带宽进行调整,即跳到步骤(33);(32) According to calculating the virtual machine memory dirty page rate in step (3), judge whether the current idle bandwidth meets the transmission bandwidth of the next memory dirty page quantity, that is, whether the network bandwidth is greater than the memory dirty page rate; if satisfied, do not adjust; Otherwise, adjust the network bandwidth, that is, skip to step (33);

(33)优先保证非网络密集型应用迁移,延迟同一时间网络密集型虚拟机迁移;(33) Prioritize the migration of non-network-intensive applications and delay the migration of network-intensive virtual machines at the same time;

(34)根据历史网络传输流量数据进行应用带宽预留,将现在空闲网络带宽减去应用预留带宽就为现在虚拟机迁移所分配的带宽。(34) The application bandwidth is reserved according to the historical network transmission traffic data, and the current idle network bandwidth is subtracted from the application reserved bandwidth to obtain the bandwidth allocated for the current virtual machine migration.

本发明与现有技术相比的优点在于:The advantage of the present invention compared with prior art is:

(1)现有技术重复内存页面数据删除和内存页面压缩、抑制相似内存页面产生等方法会带来较大的额外资源开销如CPU资源开销,同时这些方法的效率还依赖于删除算法、压缩和解压算法的效率,而且未考虑网络带宽环境对传输内存脏页面的影响。与传统的pre-copy策略相比,本发明能够在感知不同的应用特征环境下,对虚拟机内存脏页面产生数量进行预测,同时为了提高网络使用率,针对不同的应用特征,在感知网络环境下,进行网络带宽预留调整。(1) In the prior art, methods such as deleting duplicate memory page data, compressing memory pages, and suppressing the generation of similar memory pages will bring large additional resource overheads such as CPU resource overheads. At the same time, the efficiency of these methods also depends on the deletion algorithm, compression and The efficiency of the decompression algorithm does not consider the impact of the network bandwidth environment on the dirty pages of the transmitted memory. Compared with the traditional pre-copy strategy, the present invention can predict the number of dirty pages in the memory of the virtual machine under the perception of different application characteristics. Next, adjust the network bandwidth reservation.

(2)相比传统的pre-copy在线迁移方法,在含网络密集型应用或者内存密集应用的虚拟机迁移过程中,网络带宽预留调整不仅考虑了虚拟机迁移过程中的网络流量还针对虚拟机中含网络密集型的应用所需的网络带宽,为应用预留所需的网络带宽。本发明能有效减少网络资源的竞争,提高网络传输效率,减少迁移时间。(2) Compared with the traditional pre-copy online migration method, during the migration process of virtual machines containing network-intensive applications or memory-intensive applications, the network bandwidth reservation adjustment not only considers the network traffic during the virtual machine migration process but also The computer contains the network bandwidth required by network-intensive applications, and reserves the required network bandwidth for applications. The invention can effectively reduce the competition of network resources, improve network transmission efficiency and reduce migration time.

附图说明Description of drawings

图1为现有的pre-copy在线迁移的过程示意图;Figure 1 is a schematic diagram of the existing pre-copy online migration process;

图2为本发明的感知复合应用特征与网络环境的虚拟机在线迁移优化方法过程图;Fig. 2 is the process diagram of the virtual machine online migration optimization method of perception compound application characteristics and network environment of the present invention;

图3为GM(1,N)预测内存脏页面数;Figure 3 shows the number of dirty pages in memory predicted by GM(1, N);

图4为网络预留调整过程示意图。FIG. 4 is a schematic diagram of a network reservation adjustment process.

具体实施方式detailed description

以下结合具体实施例和附图对本发明进行详细说明。The present invention will be described in detail below in conjunction with specific embodiments and accompanying drawings.

本发明提出的感知应用特征与网络环境的虚拟机在线迁移优化策略收集虚拟机应用特征数据和网络环境特征数据,根据这些数据进行网络带宽预留调整,从而达到优化虚拟机迁移性能的目的,尤其是在含网络密集型应用和内存密集型应用虚拟机迁移场景下的作用显著。The virtual machine online migration optimization strategy for perceiving application characteristics and network environment proposed by the present invention collects virtual machine application characteristic data and network environment characteristic data, and adjusts network bandwidth reservation according to these data, so as to achieve the purpose of optimizing virtual machine migration performance, especially It plays a significant role in the virtual machine migration scenarios involving network-intensive applications and memory-intensive applications.

在收集了一定的虚拟机应用特征和网络环境的样本之后,会将这些样本输入到基于GM(1,N)(即灰色预测模型)内存脏页面数量预测模型中。After collecting certain samples of virtual machine application characteristics and network environment, these samples will be input into the memory dirty page number prediction model based on GM (1, N) (ie gray prediction model).

对虚拟机内存脏页面预测变量选取,本发明考虑以下能反映虚拟机应用特征环境的因素:X1:迁移不同迭代周期产生的内存脏页面数量;X2:迁移不同迭代周期虚拟机内存使用率;X3:迁移不同迭代周期虚拟机CPU使用率;X4:迁移不同迭代周期虚拟机网络带宽;X5:上一次迭代的时间;X6:迁移不同迭代周期云数据中心的网络使用情况。设迁移过程中总共进行S次迭代,每次内存脏页面产生数量都与上个迭代周期的应用特征和上一次迭代时间有关。For the selection of predictors of virtual machine memory dirty pages, the present invention considers the following factors that can reflect the characteristic environment of virtual machine applications: X1: the number of memory dirty pages generated in different iteration cycles of migration; X2: the memory usage rate of virtual machines in different iteration cycles of migration; X3 : CPU usage of virtual machine in different iteration cycles of migration; X4: network bandwidth of virtual machine in different iteration cycles of migration; X5: time of last iteration; X6: network usage of cloud data center in different iteration cycles of migration. It is assumed that a total of S iterations are performed during the migration process, and the number of memory dirty pages generated each time is related to the application characteristics of the last iteration cycle and the last iteration time.

基于G(1,N)的内存脏页面预测模型建立过程如图3所示,具体步骤如下:The establishment process of the memory dirty page prediction model based on G(1, N) is shown in Figure 3, and the specific steps are as follows:

步骤一:给出灰色预测序列X(0),令X(1)为X(0)的AGO序列:Step 1: Given the gray prediction sequence X (0) , let X (1) be the AGO sequence of X (0) :

其中,为X1的元素,即分别代表S个迭代周期中各周期产生的内存脏页面数量;为X2元素,即分别代表S个迭代周期中各迭代虚拟机内存使用率;为X3元素,即分别代表S个迭代周期中各迭代虚拟机CPU使用率;为X4元素,即分别代表S个迭代周期中各迭代虚拟机网络带宽;为X5元素,即分别代表上次迭代周期;为X6元素,分别代表S个迭代周期中各迭代的云数据中心的网络使用情况;Among them, the elements of X1 represent the number of memory dirty pages generated in each cycle of S iteration cycles respectively; the elements of X2 represent the memory usage rate of each iteration virtual machine in S iteration cycles respectively; Represents the CPU usage rate of each iterative virtual machine in S iteration cycles; X4 elements represent the network bandwidth of each iteration virtual machine in S iteration cycles; X5 elements represent the last iteration cycle; X6 elements represent Represents the network usage of the cloud data center of each iteration in the S iteration cycles;

步骤二:求解 Step 2: Solving

的近邻值生成的序列,令的均值序列,所以 for The sequence generated by the neighbor values of , let for mean sequence of , so but

为矩阵的元素,的均值,其中k为2~S; for the matrix Elements, for with The mean value of , where k is 2~S;

步骤三:建立灰微分方程:Step 3: Establish the gray differential equation:

其中,k=1,2,…,S;a为发展系数;bi(i=2,3,…,6)为驱动系数。Among them, k=1,2,...,S; a is the development coefficient; b i (i=2,3,...,6) is the driving coefficient.

步骤四:建立白化微分方程:Step 4: Establish whitening differential equation:

其中,k=1,2,…,S;a为发展系数;bi(i=2,3,…,6)为驱动系数。Among them, k=1,2,...,S; a is the development coefficient; bi(i=2,3,...,6) is the driving coefficient.

步骤五:建立基于GM(1,N)方程组:Step 5: Establish a system based on GM(1,N) equations:

令参数列为 则GM(1,N)灰微分方程为:其中,k=1,2,…,S;a为发展系数;bi(i=2,3,…,6)为驱动系数。Let the parameters be listed as Then the GM(1,N) gray differential equation is: Among them, k=1,2,...,S; a is the development coefficient; bi(i=2,3,...,6) is the driving coefficient.

利用最小二乘法求解 Solve using the method of least squares

步骤六:求解出GM(1,N)离散响应函数:Step 6: Solve the GM(1,N) discrete response function:

将解得参数代入微分方程,则GM(1,N)离散响应函数为:Substituting the solved parameters into the differential equation, the GM(1,N) discrete response function is:

其中k=1,2,3,…,6;e为数学常量。又因为累减还原公式为:Wherein k=1,2,3,...,6; e is a mathematical constant. also because The cumulative reduction formula is:

步骤七:残差修正Step 7: Residual Correction

灰色预测模型有时候预测出波动较大的数据会影响数据列发展规律,因此需要对GM(1,N)进行模型修正。令为原始残差序列,若存在k0满足以下条件:The gray prediction model sometimes predicts that the data with large fluctuations will affect the development of the data series, so it is necessary to modify the model of GM(1,N). make is the original residual sequence, If there exists k 0 that satisfies the following conditions:

(1)的符号相同;(1) have the same sign;

(2)当S-k0≥4时,可称为可建模残差尾段,记为 (2) When Sk 0 ≥ 4, it can be called is the tail segment of the modelable residual, denoted as

对£(0)建立GM(1,1)模型,求出其参数列计算出的模拟值:Establish a GM(1,1) model for £ (0) , and find its parameter list Calculate The simulated value of:

则GM(1,N)离散响应函数的修正式为:Then the modified formula of GM(1,N) discrete response function is:

在预测了内存脏页面数量之后,计算内存脏页面率。根据不同应用特征产生的内存脏页面率,结合网络环境进行网络带宽调整,提出了一个应用特征感知的网络带宽预留调整算法。After predicting the number of memory dirty pages, calculate the memory dirty page rate. According to the memory dirty page rate generated by different application characteristics, combined with the network environment to adjust the network bandwidth, an application characteristic-aware network bandwidth reservation adjustment algorithm is proposed.

网络预留调整算法如图4所示。从图4中可以看出,以虚拟机应用所需的网络带宽情况判断虚拟机是否为网络密集型应用,即如果虚拟机的网络带宽的平均负载大于设定的网络带宽密集型的阈值时,为网络密集型应用虚拟机;反正,不是网络带宽密集型应用虚拟机。具体步骤如下:The network reservation adjustment algorithm is shown in Figure 4. It can be seen from Figure 4 that judging whether the virtual machine is a network-intensive application based on the network bandwidth required by the virtual machine application, that is, if the average load of the network bandwidth of the virtual machine is greater than the set network bandwidth-intensive threshold, For network-intensive application virtual machines; anyway, not network bandwidth-intensive application virtual machines. Specific steps are as follows:

步骤一:通过收集虚拟机中应用所需网络带宽信息,判断虚拟机是否属于网络密集型应用虚拟机。如果迁移虚拟机不是网络密集型应用虚拟机,跳到步骤二;如果为网络密集型虚拟机,跳到步骤四;Step 1: Determine whether the virtual machine is a network-intensive application virtual machine by collecting the network bandwidth information required by the application in the virtual machine. If the migrated virtual machine is not a network-intensive application virtual machine, skip to step 2; if it is a network-intensive virtual machine, skip to step 4;

步骤二:根据预测的内存脏页面数量,判断目前空闲带宽是否满足接下来内存脏页面数量的传输带宽(即网络带宽是否大于内存脏页面率)。如果满足就不进行调整;否则,对网络带宽进行调整,即跳到步骤三;Step 2: According to the predicted number of memory dirty pages, determine whether the current free bandwidth meets the transmission bandwidth of the next number of memory dirty pages (that is, whether the network bandwidth is greater than the memory dirty page rate). If it is satisfied, do not adjust; otherwise, adjust the network bandwidth, that is, skip to step 3;

步骤三:优先保证非网络密集型应用迁移,延迟同一时间网络密集型虚拟机迁移。步骤四:根据历史网络传输流量数据进行应用带宽预留。将现在空闲网络带宽减去应用预留带宽就为现在虚拟机迁移所分配的带宽。Step 3: Prioritize the migration of non-network-intensive applications, and delay the migration of network-intensive virtual machines at the same time. Step 4: Reserve application bandwidth based on historical network transmission traffic data. The bandwidth allocated for virtual machine migration is obtained by subtracting the application reserved bandwidth from the current idle network bandwidth.

流量调整和控制主要由流量控制模块实现,即流量控制(Traffic control)模块,主要分为输入接口(Input Interfaces)、流量限制(Ingress Policing)、输入复用(InputDe-Multiplexing)、转发(Forwarding)、队列调度(Queue Scheduling)和输出接口(OutputInterface)6个模块。输入接口负责接收数据包,并把数据包传送到流量限制模块。流量限制模块负责筛选数据包,将符合规定的数据包传输到输入复用模块中并把不符合规定的数据包丢弃。输入复用模块对输入的数据包进行判断分析,决定数据包的流向。如果数据包为本主机的则将数据包交给上层(Upper Layer);否则,将数据包传输给转发模块进行转发处理:通过查看路由表流,决定数据包的下一跳。接着,数据包会把传输到队列调度模块中,该模块会对数据包进行排队,按照队列顺序将数据包传输到输出接口。输出接口按照将数据包传输给下一跳。流量控制主要是在队列调度排列时处理和实现的。Traffic adjustment and control is mainly realized by the traffic control module, that is, the traffic control (Traffic control) module, which is mainly divided into input interfaces (Input Interfaces), traffic limitation (Ingress Policing), input multiplexing (InputDe-Multiplexing), forwarding (Forwarding) , queue scheduling (Queue Scheduling) and output interface (OutputInterface) 6 modules. The input interface is responsible for receiving data packets and sending the data packets to the flow limiting module. The flow limiting module is responsible for screening data packets, transmitting the qualified data packets to the input multiplexing module and discarding the non-compliant data packets. The input multiplexing module judges and analyzes the input data packets, and determines the flow direction of the data packets. If the data packet belongs to the host, the data packet is delivered to the upper layer (Upper Layer); otherwise, the data packet is transmitted to the forwarding module for forwarding processing: by checking the routing table flow, the next hop of the data packet is determined. Then, the data packets will be transmitted to the queue scheduling module, which will queue the data packets and transmit the data packets to the output interface according to the order of the queues. The output interface transmits the packet to the next hop in accordance with the Flow control is mainly processed and implemented during queue scheduling.

总之,本发明在面对网络密集型应用或内存密集应用的虚拟机迁移时,能减少迁移过程中的额外开销,提高迁移过程中的传输效率,有效降低迁移时间。In a word, the present invention can reduce the extra overhead in the migration process, improve the transmission efficiency in the migration process, and effectively reduce the migration time when facing the virtual machine migration of network-intensive applications or memory-intensive applications.

Claims (3)

1. a kind of Application of composite feature that perceives moves optimization shifting method online with the virtual machine of the network bandwidth, it is characterised in that step For:
(1) the application feature and network environment of virtual machine are perceived, the dirty page number of internal memory is collected;The perception virtual machine application feature Refer to application resource service condition in dynamic access virtual machine, including memory usage, CPU usage and the network bandwidth, and Will appreciate that the trend of application resource utilization rate change;Sensing network environment refers to the dynamic access cloud data center network bandwidth Utilization rate;Internal memory containing dirty pages face refers to the memory pages changed during virtual machine (vm) migration;
(2) the application feature and network environment of the perception virtual machine in step (1) and the acquisition dirty page number conduct of internal memory Sample data, the dirty page number of internal memory is predicted using grey forecasting model;
(3) the dirty page number of internal memory obtained according to prediction in step (2), calculates the containing dirty pages face rate of the iteration cycle of virtual machine, dirty Page rate=iteration cycle produces dirty page number/iteration cycle time, is that step (5) carries out the reserved of the network bandwidth;
(4) network bandwidth service condition is obtained;
(5) network bandwidth service condition obtained according to step (4), judges whether virtual machine is network-intensive virtual machine, so After carry out the network bandwidth reserve;In network bandwidth reservation procedure, the network bandwidth and containing dirty pages face according to needed for virtual machine application Rate carries out RSVP, to ensure that each iteration cycle network bandwidth is sufficient in transition process, reduces network congestion.
2. method according to claim 1, it is characterised in that:The step (2) is predicted next using grey forecasting model The process of the dirty page number of period internal memory is as follows:
(21) to collection step (1) data, i.e. X1:Migrate the dirty page quantity of internal memory that different iteration cycles are produced;X2:Migration is not With iteration cycle virutal machine memory utilization rate;X3:Migrate different iteration cycle virtual machine CPU usages;X4:Migrate different iteration Cycle virtual machine network bandwidth;X5:The time of last iteration;X6:Migrate the Web vector graphic of different iteration cycle cloud data centers These data are converted into matrix by situation, used as gray prediction sequence X(0), and to the sequence X(0)Added up, generated AGO Sequence order is X(1)
(22) X obtained according to step (21)(1)The sequence for solving the generation of neighbour's value is that equal value sequence is;
(23) in grey forecasting model, it is assumed that the X of step (21)(1)With the certain relation of presence of step (22), grey differential is set up Equation;
(24) albinism differential equation is set up according to step (22);
(25) according to step (23) equation group, set up and be based on GM (1, N) equation group, GM (1, N) sides are solved using least square method Journey argument sequence;
(26) parameter is substituted into the albinism differential equation in (24), solution obtains GM (1, N) discrete receptance function, by regressive also Former equations go out to predict value sequence;
(27) be reduce grey forecasting model error, by forecasting with residual error modification value improve precision of prediction.
3. method according to claim 1, it is characterised in that:Network bandwidth reservation procedure in the step (5) is as follows:
(31) judge whether virtual machine belongs to network-intensive application virtual using required network bandwidth information in collection virtual machine Machine, if migration virtual machine is not network-intensive application virtual machine, jumps to step (32);It is virtual if network-intensive Machine, jumps to step (34);
(32) according to virutal machine memory containing dirty pages face rate is calculated in step (3), judge whether current idle bandwidth is met in next Whether the transmission bandwidth of dirty page quantity, the i.e. network bandwidth are deposited more than internal memory containing dirty pages face rate;It is not adjusted if meeting;It is no Then, the network bandwidth is adjusted, that is, jumps to step (33);
(33) it is preferential to ensure the migration of non-network intensive applications, postpone same time network intensity virtual machine (vm) migration;
(34) carry out application bandwidth according to web-based history transmission data on flows to reserve, present idle network bandwidth is subtracted using pre- The bandwidth for staying bandwidth just to be distributed by present virtual machine (vm) migration.
CN201611231403.2A 2016-12-28 2016-12-28 Virtual machine online migration optimization method capable of sensing composite application characteristics and network bandwidth Active CN106775949B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611231403.2A CN106775949B (en) 2016-12-28 2016-12-28 Virtual machine online migration optimization method capable of sensing composite application characteristics and network bandwidth

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611231403.2A CN106775949B (en) 2016-12-28 2016-12-28 Virtual machine online migration optimization method capable of sensing composite application characteristics and network bandwidth

Publications (2)

Publication Number Publication Date
CN106775949A true CN106775949A (en) 2017-05-31
CN106775949B CN106775949B (en) 2020-08-18

Family

ID=58921091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611231403.2A Active CN106775949B (en) 2016-12-28 2016-12-28 Virtual machine online migration optimization method capable of sensing composite application characteristics and network bandwidth

Country Status (1)

Country Link
CN (1) CN106775949B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107479944A (en) * 2017-07-20 2017-12-15 上海交通大学 Mix the adaptive thermophoresis dispatching method of virutal machine memory and system under cloud mode
CN108491248A (en) * 2018-03-07 2018-09-04 山东大学 A kind of triggering method and realization system of the dynamic migration of virtual machine based on prediction
CN109062669A (en) * 2018-08-07 2018-12-21 郑州云海信息技术有限公司 Virtual machine migration method and system under a kind of Random Load
CN109343931A (en) * 2018-09-12 2019-02-15 西安交通大学 An application-aware virtual machine scheduling method for load balancing in IaaS environment
CN111259318A (en) * 2020-01-19 2020-06-09 平安科技(深圳)有限公司 Intelligent data optimization method and device and computer readable storage medium
CN111381934A (en) * 2020-03-11 2020-07-07 重庆邮电大学 Method for improving rapid migration reliability of virtual machine under disaster risk model
WO2021169618A1 (en) * 2020-02-29 2021-09-02 苏州浪潮智能科技有限公司 Virtual machine migration method, apparatus and device, and medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096461B (en) * 2011-01-13 2013-06-19 浙江大学 Energy-saving method of cloud data center based on virtual machine migration and load perception integration

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096461B (en) * 2011-01-13 2013-06-19 浙江大学 Energy-saving method of cloud data center based on virtual machine migration and load perception integration

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘诗海等: "面向业务特征的自适应虚拟机迁移带宽分配算法", 《计算机学报2013年》 *
李子堂: "面向负载均衡的虚拟机动态迁移优化研究", 《中国优秀硕士学位论文全文数据库信息科技辑2016年》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107479944A (en) * 2017-07-20 2017-12-15 上海交通大学 Mix the adaptive thermophoresis dispatching method of virutal machine memory and system under cloud mode
CN107479944B (en) * 2017-07-20 2021-11-30 上海交通大学 Virtual machine memory self-adaptive thermal migration scheduling method and system in hybrid cloud mode
CN108491248A (en) * 2018-03-07 2018-09-04 山东大学 A kind of triggering method and realization system of the dynamic migration of virtual machine based on prediction
CN109062669A (en) * 2018-08-07 2018-12-21 郑州云海信息技术有限公司 Virtual machine migration method and system under a kind of Random Load
CN109343931A (en) * 2018-09-12 2019-02-15 西安交通大学 An application-aware virtual machine scheduling method for load balancing in IaaS environment
CN109343931B (en) * 2018-09-12 2021-02-12 西安交通大学 Load balancing oriented application perception virtual machine scheduling method in IaaS environment
CN111259318A (en) * 2020-01-19 2020-06-09 平安科技(深圳)有限公司 Intelligent data optimization method and device and computer readable storage medium
CN111259318B (en) * 2020-01-19 2025-09-16 平安科技(深圳)有限公司 Intelligent data optimization method, device and computer readable storage medium
WO2021169618A1 (en) * 2020-02-29 2021-09-02 苏州浪潮智能科技有限公司 Virtual machine migration method, apparatus and device, and medium
CN111381934A (en) * 2020-03-11 2020-07-07 重庆邮电大学 Method for improving rapid migration reliability of virtual machine under disaster risk model
CN111381934B (en) * 2020-03-11 2023-07-21 重庆邮电大学 A method to improve the reliability of virtual machine rapid migration under the disaster risk model

Also Published As

Publication number Publication date
CN106775949B (en) 2020-08-18

Similar Documents

Publication Publication Date Title
CN106775949A (en) A kind of Application of composite feature that perceives migrates optimization method online with the virtual machine of the network bandwidth
CN108829494B (en) Intelligent resource optimization method of container cloud platform based on load prediction
CN110275758B (en) Intelligent migration method for virtual network function
CN111475252B (en) Virtual network function deployment optimization method based on deep reinforcement learning
CN103294521B (en) A kind of method reducing data center's traffic load and energy consumption
WO2022021176A1 (en) Cloud-edge collaborative network resource smooth migration and restructuring method and system
Baumgartner et al. Combined virtual mobile core network function placement and topology optimization with latency bounds
CN106844051A (en) The loading commissions migration algorithm of optimised power consumption in a kind of edge calculations environment
US20140082202A1 (en) Method and Apparatus for Integration of Virtual Cluster and Virtual Cluster System
CN110519783B (en) 5G network slice resource allocation method based on reinforcement learning
CN103336722B (en) A kind of CPU resources of virtual machine monitoring and dynamic allocation method
CN105302632A (en) Cloud computing working load dynamic integration method
CN105610715B (en) A kind of cloud data center multi-dummy machine migration scheduling method of planning based on SDN
CN107193652A (en) The flexible resource dispatching method and system of flow data processing system in container cloud environment
CN103309946A (en) Method, device and system for processing multimedia file
CN111756654B (en) A Reliability-Based Resource Allocation Method for Large-Scale Virtual Networks
CN109062668A (en) A kind of virtual network function moving method of the multipriority based on 5G access network
CN113596868A (en) 5G network slice resource management mechanism based on SDN and NFV
CN108089918B (en) A Graph Computing Load Balancing Method for Heterogeneous Server Structure
CN107122233A (en) A kind of adaptive real-time scheduling methods of many VCPU towards TSN business
CN106681815A (en) Concurrent migration method of virtual machines
CN119544504A (en) A multi-modal network resource scheduling method and system based on resource blocks
CN110990160A (en) Static security analysis container cloud elastic expansion method based on load prediction
Zhao et al. Training job placement in clusters with statistical in-network aggregation
CN110138830A (en) Across data center task schedule and bandwidth allocation methods based on hypergraph partitioning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant