CN111443989B - Virtual machine placement method, device, equipment and storage medium based on harmony search - Google Patents
Virtual machine placement method, device, equipment and storage medium based on harmony search Download PDFInfo
- Publication number
- CN111443989B CN111443989B CN202010210298.4A CN202010210298A CN111443989B CN 111443989 B CN111443989 B CN 111443989B CN 202010210298 A CN202010210298 A CN 202010210298A CN 111443989 B CN111443989 B CN 111443989B
- Authority
- CN
- China
- Prior art keywords
- harmony
- virtual machine
- tone information
- new
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000004364 calculation method Methods 0.000 claims abstract description 24
- 238000012545 processing Methods 0.000 claims description 16
- 238000005265 energy consumption Methods 0.000 abstract description 28
- 238000005457 optimization Methods 0.000 abstract description 6
- 230000008569 process Effects 0.000 description 16
- 230000006870 function Effects 0.000 description 8
- 101100177269 Arabidopsis thaliana HCAR gene Proteins 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 230000007246 mechanism Effects 0.000 description 5
- 238000011161 development Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 241001342895 Chorus Species 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- HAORKNGNJCEJBX-UHFFFAOYSA-N cyprodinil Chemical compound N=1C(C)=CC(C2CC2)=NC=1NC1=CC=CC=C1 HAORKNGNJCEJBX-UHFFFAOYSA-N 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000011156 evaluation Methods 0.000 description 2
- 230000010429 evolutionary process Effects 0.000 description 2
- 239000011159 matrix material Substances 0.000 description 2
- 230000002028 premature Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000001816 cooling Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000009751 slip forming Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/329—Power saving characterised by the action undertaken by task scheduling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/60—Information retrieval; Database structures therefor; File system structures therefor of audio data
- G06F16/61—Indexing; Data structures therefor; Storage structures
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Memory System Of A Hierarchy Structure (AREA)
- Stored Programmes (AREA)
Abstract
Description
技术领域technical field
本发明涉及云计算领域技术领域,尤其涉及一种基于和声搜索的虚拟机放置方法、装置、设备及存储介质。The present invention relates to the technical field of cloud computing, and in particular to a harmony search-based virtual machine placement method, device, device and storage medium.
背景技术Background technique
云计算数据中心内的高能耗问题越来越突出,其主机能耗和冷却系统能耗已经组成数据中心运营成本的主要部分。物理主机利用效率低会增加数据中心的能耗成本。通过虚拟化技术,可以在一台物理主机上虚拟机若干台虚拟机,以虚拟机为单位执行用户应用。如何在主机上放置虚拟机成为最终影响主机能耗的关键因素。虚拟机放置问题即是将虚拟机集合放置至物理主机的过程。由于虚拟机在资源请求上的异构性和主机资源提供能力上的不同,不同的虚拟机放置策略将导致不同的主机能耗。而研究表明,闲置部分的物理主机仍然会消耗满载主机能耗的一半以上。为了降低总体的主机能耗,应该尽可能利用数量更少的主机进行虚拟机放置,从而关闭完全未利用的主机,节省闲置部分的能耗。The problem of high energy consumption in cloud computing data centers has become more and more prominent, and the energy consumption of hosts and cooling systems has constituted the main part of the operating costs of data centers. Inefficient utilization of physical hosts increases the energy costs of the data center. Through virtualization technology, several virtual machines can be virtualized on one physical host, and user applications can be executed in units of virtual machines. How to place virtual machines on the host becomes a key factor that ultimately affects the energy consumption of the host. The virtual machine placement problem is the process of placing a collection of virtual machines onto a physical host. Due to the heterogeneity of virtual machine resource requests and the difference in host resource provisioning capabilities, different virtual machine placement strategies will result in different host energy consumption. However, studies have shown that idle physical hosts still consume more than half of the energy consumption of fully loaded hosts. In order to reduce the overall energy consumption of hosts, a smaller number of hosts should be used as much as possible for virtual machine placement, so as to shut down completely unused hosts and save energy consumption of idle parts.
和声搜索机制是一种效率较高的启发式方法,该方法模拟即兴音乐演奏过程,演奏者即兴调整乐器音调,目标是通过不同音调调整演奏出最优美的和声,既能用于连续空间优化问题,也能用于离散空间优化问题。基于该方法实现简单,依赖参数较少。The harmony search mechanism is a highly efficient heuristic method. This method simulates the process of impromptu music performance. The player adjusts the pitch of the instrument impromptu. The goal is to play the most beautiful harmony through different pitch adjustments. It can be used in continuous spaces. Optimization problems can also be used for discrete space optimization problems. Based on this method, it is simple to implement and has less dependent parameters.
发明内容Contents of the invention
本发明的主要目的在于提供一种基于和声搜索的虚拟机放置方法、装置、设备及存储介质,旨在解决如何实现依赖参数少、低能耗虚拟机放置的技术问题。The main purpose of the present invention is to provide a virtual machine placement method, device, equipment and storage medium based on harmony search, aiming at solving the technical problem of how to realize virtual machine placement with less dependent parameters and low energy consumption.
为实现上述目的,本发明提供了一种基于和声搜索的虚拟机放置方法,所述方法包括:In order to achieve the above object, the present invention provides a virtual machine placement method based on harmony search, the method comprising:
获取待放置的虚拟机集合及物理主机集合,并根据所述虚拟机集合及所述物理主机集合建立和声记忆库;Obtain a set of virtual machines and a set of physical hosts to be placed, and establish a harmony memory bank according to the set of virtual machines and the set of physical hosts;
按照预设和声生成条件生成一种新和声;Generate a new harmony according to the preset harmony generation conditions;
对所述和声记忆库中的各种和声及所述新和声进行适应度计算,并根据计算结果对所述和声记忆库中的和声进行更新;Computing the fitness of various harmony in the harmony memory and the new harmony, and updating the harmony in the harmony memory according to the calculation result;
根据更新结果确定适应度值最大的目标和声,并将所述目标和声的音调信息作为虚拟机放置最优解;Determine the target harmony with the maximum fitness value according to the update result, and use the pitch information of the target harmony as the optimal solution for placing the virtual machine;
根据所述虚拟机放置最优解将所述虚拟机集合中的虚拟机放置到所述物理主机集合对应的物理主机中。The virtual machines in the virtual machine set are placed in the physical hosts corresponding to the physical host set according to the optimal virtual machine placement solution.
优选地,所述获取待放置的虚拟机集合及物理主机集合,并根据所述虚拟机集合及所述物理主机集合建立和声记忆库的步骤,具体包括:Preferably, the step of obtaining the set of virtual machines and the set of physical hosts to be placed, and establishing a harmony memory bank according to the set of virtual machines and the set of physical hosts, specifically includes:
获取所述物理主机集合对应的物理主机数及所述虚拟机集合对应的虚拟机数;Obtain the number of physical hosts corresponding to the set of physical hosts and the number of virtual machines corresponding to the set of virtual machines;
将所述虚拟机数作为各种和声对应的音调信息数,根据所述物理主机数随机设置各种和声对应的音调信息;Using the number of virtual machines as the number of tone information corresponding to various chords, randomly setting the tone information corresponding to various chords according to the number of physical hosts;
根据预设和声种数、所述音调信息数及所述音调信息建立和声记忆库。A harmony memory bank is established according to the number of preset harmony types, the number of tone information and the tone information.
优选地,所述按照预设和声生成条件生成一种新和声的步骤,具体包括:Preferably, the step of generating a new harmony according to preset harmony generation conditions specifically includes:
根据所述物理主机数随机设置数量为所述虚拟机数的音调信息,以获得待处理和声;randomly setting the number of tone information equal to the number of virtual machines according to the number of physical hosts, so as to obtain the harmony to be processed;
对所述待处理和声进行和声记忆库选择处理及音调微调扰动处理,以获取处理后的新和声。A harmony memory bank selection process and tone fine-tuning perturbation process are performed on the harmony to be processed, so as to obtain a processed new harmony.
优选地,所述对所述待处理和声进行和声记忆库选择处理及音调微调扰动处理,以获取处理后的新和声的步骤,具体包括:Preferably, the step of performing harmony memory bank selection processing and tone fine-tuning disturbance processing on the harmony to be processed to obtain a processed new harmony specifically includes:
生成所述待处理和声中每个音调信息对应的第一随机数对,根据所述第一随机数对及预先设定的和声记忆库选择概率从所述和声记忆库中随机选取音调信息,并用所述音调信息替换所述待处理和声对应的音调信息;Generate a first random number pair corresponding to each tone information in the harmony to be processed, and randomly select a tone from the harmony memory bank according to the first random number pair and the preset harmony memory bank selection probability information, and replace the tone information corresponding to the harmony to be processed with the tone information;
生成所述待处理和声中每个音调信息对应的第二随机数对,根据所述第二随机数对、音调调节概率及扰动带宽对替换后的音调信息进行音调微调扰动处理,以获取处理后的新和声。Generate a second random number pair corresponding to each pitch information in the harmony to be processed, and perform pitch fine-tuning disturbance processing on the replaced pitch information according to the second random number pair, pitch adjustment probability, and disturbance bandwidth, so as to obtain a processing New harmony after.
优选地,所述生成所述待处理和声中每个音调信息对应的第一随机数对,根据所述第一随机数对及预先设定的和声记忆库选择概率从所述和声记忆库中随机选取音调信息,并用所述音调信息替换所述待处理和声对应的音调信息的步骤之前,还包括:Preferably, said generating the first random number pair corresponding to each tone information in the harmony to be processed, selecting the probability from the harmony memory according to the first random number pair and the preset harmony memory bank Before the step of randomly selecting tone information in the library, and replacing the tone information corresponding to the harmony to be processed with the tone information, it also includes:
获取所述和声记忆库的当前迭代次数;Obtain the current number of iterations of the harmony memory bank;
根据所述当前迭代次数对音调调节概率及扰动带宽进行更新。The pitch adjustment probability and the disturbance bandwidth are updated according to the current number of iterations.
优选地,所述对所述和声记忆库中的各种和声及所述新和声进行适应度计算,并根据计算结果对所述和声记忆库中的和声进行更新的步骤,具体包括:Preferably, the step of calculating the fitness of various harmony in the harmony memory and the new harmony, and updating the harmony in the harmony memory according to the calculation result, specifically include:
对所述和声记忆库中的各种和声及所述新和声进行适应度计算;Computing the fitness of various harmony in the harmony memory and the new harmony;
获取所述和声记忆库中当前适应度值最小的待选和声,并判断所述新和声的适应度值是否大于所述待选和声的适应度值;Obtaining the candidate harmony with the smallest current fitness value in the harmony memory, and judging whether the fitness value of the new harmony is greater than the fitness value of the candidate harmony;
在所述新和声的适应度值大于所述待选和声的适应度值时,将所述待选和声替换为所述新和声,以实现对所述和声记忆库中的和声的更新。When the fitness value of the new harmony is greater than the fitness value of the candidate harmony, the candidate harmony is replaced by the new harmony, so as to realize the sum in the harmony memory sound update.
优选地,所述根据更新结果确定适应度值最大的目标和声,并将所述目标和声的音调信息作为虚拟机放置最优解的步骤之后,所述方法还包括:Preferably, after the step of determining the target harmony with the largest fitness value according to the update result, and using the pitch information of the target harmony as the optimal solution for virtual machine placement, the method further includes:
检测当前和声记忆库的当前迭代次数,判断所述当前迭代次数是否小于预设迭代次数;Detecting the current number of iterations of the current harmony memory bank, and judging whether the current number of iterations is less than the preset number of iterations;
在所述当前迭代次数小于所述预设迭代次数时,返回所述按照预设和声生成条件生成一种新和声的步骤;When the current number of iterations is less than the preset number of iterations, returning to the step of generating a new harmony according to preset harmony generation conditions;
在所述当前迭代次数等于所述预设迭代次数时,输出所述虚拟机放置最优解。When the current number of iterations is equal to the preset number of iterations, output the optimal solution for virtual machine placement.
此外,为实现上述目的,本发明还提出一种基于和声搜索的虚拟机放置装置,所述装置包括:和声库建立模块、适应度计算模块、最优解获取模块及放置模块,其中;In addition, in order to achieve the above purpose, the present invention also proposes a virtual machine placement device based on harmony search, which includes: a harmony library establishment module, a fitness calculation module, an optimal solution acquisition module and a placement module, wherein;
所述和声库建立模块,用于获取待放置的虚拟机集合及物理主机集合,并根据所述虚拟机集合及所述物理主机集合建立和声记忆库;The harmony library building module is used to obtain a set of virtual machines and a set of physical hosts to be placed, and establish a harmony memory bank according to the set of virtual machines and the set of physical hosts;
所述适应度计算模块,用于按照预设和声生成条件生成一种新和声;还用于对所述和声记忆库中的各种和声及所述新和声进行适应度计算,并根据计算结果对所述和声记忆库中的和声进行更新;The fitness calculation module is used to generate a new harmony according to preset harmony generation conditions; it is also used to calculate the fitness of various harmony in the harmony memory and the new harmony, And update the harmony in the harmony memory bank according to the calculation result;
所述最优解获取模块,用于根据更新结果确定适应度值最大的目标和声,并将所述和声的音调信息作为虚拟机放置最优解;The optimal solution acquisition module is used to determine the target harmony with the largest fitness value according to the update result, and use the tone information of the harmony as the optimal solution for virtual machine placement;
所述放置模块,用于根据所述虚拟机放置最优解将所述虚拟机集合中的虚拟机放置到所述物理主机集合对应的物理主机中。The placement module is configured to place the virtual machines in the virtual machine set into physical hosts corresponding to the physical host set according to the optimal virtual machine placement solution.
此外,为实现上述目的,本发明还提出一种基于和声搜索的虚拟机放置设备,所述设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的基于和声搜索的虚拟机放置程序,所述基于和声搜索的虚拟机放置程序配置为实现如上所述的基于和声搜索的虚拟机放置方法的步骤。In addition, in order to achieve the above object, the present invention also proposes a device for placing a virtual machine based on harmony search, which includes: a memory, a processor, and a device based on A virtual machine placement program based on harmony search, the virtual machine placement program based on harmony search is configured to implement the steps of the method for placing a virtual machine based on harmony search as described above.
此外,为实现上述目的,本发明还提出一种存储介质,所述存储介质上存储有基于和声搜索的虚拟机放置程序,所述基于和声搜索的虚拟机放置程序被处理器执行时实现如上所述的基于和声搜索的虚拟机放置方法的步骤。In addition, in order to achieve the above object, the present invention also proposes a storage medium, the storage medium stores a virtual machine placement program based on harmony search, and the virtual machine placement program based on harmony search is implemented when the processor executes The steps of the virtual machine placement method based on harmony search as described above.
本发明通过获取待放置的虚拟机集合及物理主机集合,并根据所述虚拟机集合及所述物理主机集合建立和声记忆库;按照预设和声生成条件生成一种新和声;对所述和声记忆库中的各种和声及所述新和声进行适应度计算,并根据计算结果对所述和声记忆库中的和声进行更新;根据更新结果确定适应度值最大的目标和声,并将所述目标和声的音调信息作为虚拟机放置最优解;根据所述虚拟机放置最优解将所述虚拟机集合中的虚拟机放置到所述物理主机集合对应的物理主机中。在物理主机的资源利用率及能耗均有约束的条件下,通过生成新和声即新的放置方案,形成虚拟机放置的低能耗优化,提高了虚拟机放置的效率及效果。The present invention acquires a set of virtual machines and a set of physical hosts to be placed, and establishes a harmony memory library according to the set of virtual machines and the set of physical hosts; generates a new harmony according to preset harmony generation conditions; Carry out fitness calculations for various harmony in the harmony memory and the new harmony, and update the harmony in the harmony memory according to the calculation result; determine the target with the largest fitness value according to the update result Harmony, and use the tone information of the target harmony as the optimal solution for virtual machine placement; according to the optimal solution for virtual machine placement, place the virtual machines in the virtual machine set on the corresponding physical host set in the host. Under the condition that the resource utilization rate and energy consumption of the physical host are constrained, by generating a new harmony, that is, a new placement scheme, a low-energy optimization of virtual machine placement is formed, which improves the efficiency and effect of virtual machine placement.
附图说明Description of drawings
图1是本发明实施例方案涉及的硬件运行环境的基于和声搜索的虚拟机放置设备的结构示意图;Fig. 1 is a schematic structural diagram of a virtual machine placement device based on a harmony search in a hardware operating environment related to the solution of an embodiment of the present invention;
图2为本发明基于和声搜索的虚拟机放置方法第一实施例的流程示意图;Fig. 2 is a schematic flow chart of the first embodiment of the virtual machine placement method based on harmony search in the present invention;
图3为本发明基于和声搜索的虚拟机放置方法第二实施例的流程示意图;FIG. 3 is a schematic flowchart of a second embodiment of the harmony search-based virtual machine placement method of the present invention;
图4为本发明基于和声搜索的虚拟机放置装置第一实施例的结构框图。Fig. 4 is a structural block diagram of the first embodiment of the harmony search-based virtual machine placement device of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
参照图1,图1为本发明实施例方案涉及的硬件运行环境的基于和声搜索的虚拟机放置设备结构示意图。Referring to FIG. 1 , FIG. 1 is a schematic structural diagram of a virtual machine placement device based on harmony search in a hardware operating environment involved in the solution of an embodiment of the present invention.
如图1所示,该基于和声搜索的虚拟机放置设备可以包括:处理器1001,例如中央处理器(Central Processing Unit,CPU),通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如无线保真(WIreless-FIdelity,WI-FI)接口)。存储器1005可以是高速的随机存取存储器(RandomAccess Memory,RAM)存储器,也可以是稳定的非易失性存储器(Non-Volatile Memory,NVM),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1 , the virtual machine placement device based on harmony search may include: a
本领域技术人员可以理解,图1中示出的结构并不构成对基于和声搜索的虚拟机放置设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 1 does not constitute a limitation on the virtual machine placement device based on harmony search, and may include more or less components than those shown in the figure, or combine certain components, or Different component arrangements.
如图1所示,作为一种存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及基于和声搜索的虚拟机放置程序。As shown in FIG. 1 , the
在图1所示的基于和声搜索的虚拟机放置设备中,网络接口1004主要用于与网络服务器进行数据通信;用户接口1003主要用于与用户进行数据交互;本发明基于和声搜索的虚拟机放置设备中的处理器1001、存储器1005可以设置在基于和声搜索的虚拟机放置设备中,所述基于和声搜索的虚拟机放置设备通过处理器1001调用存储器1005中存储的基于和声搜索的虚拟机放置程序,并执行本发明实施例提供的基于和声搜索的虚拟机放置方法。In the virtual machine placement device based on harmony search shown in Figure 1, the
本发明实施例提供了一种基于和声搜索的虚拟机放置方法,参照图2,图2为本发明一种基于和声搜索的虚拟机放置方法第一实施例的流程示意图。An embodiment of the present invention provides a method for placing a virtual machine based on harmony search. Referring to FIG. 2 , FIG. 2 is a schematic flow chart of a first embodiment of a method for placing a virtual machine based on harmony search according to the present invention.
需要说明的是,云计算环境中,物理主机的能耗主要来源于CPU、内存RAM以及存储系统等。通常,CPU的能耗占据物理主机能耗的绝大部分。单CPU的节能技术以动态电压/频率缩放(DVFS,Dynamic voltage and frequency scaling)最为常用。该技术主要考虑了CPU的两种状态:空闲状态和负荷状态。在空闲状态下(即无任何执行负载),CPU的内部组件可以转换为关闭模式,从而降低CPU的时钟频率,CPU可以最小的运行频率进行运转,以此节省能耗。负荷状态下,CPU的能耗取决于CPU上执行的负载量以及CPU的利用率。研究表明,物理主机的功耗与其CPU的利用率是成线性关系的。It should be noted that in the cloud computing environment, the energy consumption of the physical host mainly comes from the CPU, memory RAM, and storage system. Usually, the energy consumption of the CPU accounts for most of the energy consumption of the physical host. Dynamic voltage/frequency scaling (DVFS, Dynamic voltage and frequency scaling) is the most commonly used energy-saving technology for a single CPU. This technology mainly considers two states of CPU: idle state and load state. In an idle state (that is, without any execution load), the internal components of the CPU can be switched to a shutdown mode, thereby reducing the clock frequency of the CPU, and the CPU can run at a minimum operating frequency to save energy consumption. In the load state, the energy consumption of the CPU depends on the amount of load executed on the CPU and the utilization rate of the CPU. Studies have shown that the power consumption of a physical host is linearly related to its CPU utilization.
定义主机功耗公式为:Define the host power consumption formula as:
其中,Pj,max表示物理主机hj的最大功耗,即物理主机满载时的功耗,Pj,idle表示物理主机hj的最小功耗,即物理主机空闲状况下的功耗,该功耗通常为满载功耗的70%,uj,CPU表示物理主机hj的CPU利用率。Among them, P j, max represents the maximum power consumption of the physical host h j , that is, the power consumption when the physical host is fully loaded, P j , idle represents the minimum power consumption of the physical host h j , that is, the power consumption when the physical host is idle, the The power consumption is usually 70% of the full load power consumption, u j, CPU represents the CPU utilization of the physical host h j .
易于理解的是,假设云计算环境中现有待放置的虚拟机n台,表示为集合V={v1,v2,...,vn},可用物理主机有m台,表示为集合H={h1,h2,...,hm}。虚拟机放置问题即是将虚拟机集合映射至物理主机的过程。考虑放置过程中三种资源类型的请求,包括:CPU、内存RAM以及磁盘存储DISK。令ri,CPU、ri,RAM和ri,DISK分别表示虚拟机vi在CPU资源、内存RAM资源和存储DISK资源上的请求量,i=1,2,...,n,cj,CPU、cj,RAM和cj,DISK分别表示物理主机hj在CPU资源、内存RAM资源和存储DISK资源上的提供能力,j=1,2,...,m。令xi,j表示放置因子,表明虚拟机vi是否放置在物理主机hj上,为二进制变量,放置因子的表达式为:It is easy to understand that, assuming that there are n virtual machines to be placed in the cloud computing environment, expressed as a set V={v 1 , v 2 ,...,v n }, there are m available physical hosts, expressed as a set H = {h 1 , h 2 , . . . , h m }. The problem of virtual machine placement is the process of mapping collections of virtual machines to physical hosts. Consider requests for three resource types during placement, including: CPU, memory RAM, and disk storage DISK. Let ri, CPU , ri , RAM and ri , DISK denote the request amount of virtual machine v i on CPU resource, memory RAM resource and storage DISK resource respectively, i=1, 2,..., n, c j, CPU , c j, RAM and c j, DISK represent the provisioning capabilities of the physical host h j on CPU resources, memory RAM resources and storage DISK resources respectively, j=1, 2, . . . , m. Let x i,j represent the placement factor, indicating whether the virtual machine v i is placed on the physical host h j , which is a binary variable, and the expression of the placement factor is:
令zj表示物理主机的利用因子,表示虚拟机放置过程中物理主机hj是否被利用,为二进制变量,利用因子的表达式为:Let z j represent the utilization factor of the physical host, indicating whether the physical host h j is utilized during the virtual machine placement process, which is a binary variable, and the expression of the utilization factor is:
为了节省物理主机能耗,完全空闲状态的物理主机需要转换为休眠模式,以此节省空闲物理主机的能耗。因此,能耗最小化公式为:In order to save energy consumption of physical hosts, completely idle physical hosts need to be converted to sleep mode, so as to save energy consumption of idle physical hosts. Therefore, the energy consumption minimization formula is:
相应的约束条件依次为:虚拟机对应约束条件,确保一台虚拟机仅能放置至一台物理主机上,对应公式如下:The corresponding constraints are as follows: the corresponding constraints of the virtual machine, to ensure that a virtual machine can only be placed on one physical host, the corresponding formula is as follows:
放置因子约束条件,表明放置因子是仅能取值0或1的二进制数,对应公式如下:Placement factor constraints, indicating that the placement factor is a binary number that can only take the value 0 or 1, and the corresponding formula is as follows:
利用因子约束条件,表明物理主机利用因子是仅能取值0或1的二进制数,对应公式如下:Using factor constraints, it indicates that the physical host utilization factor is a binary number that can only take the value 0 or 1, and the corresponding formula is as follows:
内存量约束条件,表明虚拟机请求的内存量不能超过主机的内存能力,对应公式如下:The memory constraint condition indicates that the amount of memory requested by the virtual machine cannot exceed the memory capacity of the host, and the corresponding formula is as follows:
内存请求约束条件,确保虚拟机请求的内存资源不能超过物理主机的内存能力,对应公式如下:The memory request constraints ensure that the memory resources requested by the virtual machine cannot exceed the memory capacity of the physical host. The corresponding formula is as follows:
存储请求约束条件,确保虚拟机请求的存储资源不能超过物理主机的存储能力,对应公式如下:The storage request constraints ensure that the storage resources requested by the virtual machine cannot exceed the storage capacity of the physical host. The corresponding formula is as follows:
本实施例中,所述基于和声搜索的虚拟机放置方法包括以下步骤:In this embodiment, the virtual machine placement method based on harmony search includes the following steps:
步骤S10,获取待放置的虚拟机集合及物理主机集合,并根据所述虚拟机集合及所述物理主机集合建立和声记忆库。Step S10, obtaining a set of virtual machines and a set of physical hosts to be placed, and establishing a harmony memory library according to the set of virtual machines and the set of physical hosts.
步骤S10具体包括:获取所述物理主机集合对应的物理主机数及所述虚拟机集合对应的虚拟机数;将所述虚拟机数作为各种和声对应的音调信息数,根据所述物理主机数随机设置各种和声对应的音调信息;根据预设和声种数、所述音调信息数及所述音调信息建立和声记忆库。Step S10 specifically includes: obtaining the number of physical hosts corresponding to the set of physical hosts and the number of virtual machines corresponding to the set of virtual machines; using the number of virtual machines as the number of tone information corresponding to various chords, according to the physical host Randomly set the tone information corresponding to various harmony; according to the number of preset harmony types, the number of tone information and the tone information, a harmony memory bank is established.
令一种和声h表示为:Let a harmony h be expressed as:
Xh=[xh,1,xh,2,...,xh,n]X h =[x h,1 ,x h,2 ,...,x h,n ]
其中,矢量中的元素xh,k表示和声h中第k个乐器演奏的音调,该音调对应于放置虚拟机k的物理主机序号,该物理主机序号取值为[1,m]区间内整型值,h=1,2,…,HMS,HMS表示和声记忆库的大小,HMS为预设和声种数,可根据问题实际需求进行设置,k=1,2,…,n,n表示乐器数量,对应于待放置的虚拟机总数,即对应音调信息数。换言之,一种和声代表一种虚拟机放置方案,可定义在n维搜索空间内。虚拟机放置问题下和声搜索机制中的一个和声仅能以1至m间的离散数值序号形式出现,m代表物理主机最大数量。Among them, the element x h, k in the vector represents the tone played by the kth instrument in the harmony h, and the tone corresponds to the serial number of the physical host where the virtual machine k is placed, and the value of the physical host serial number is within the interval [1, m] Integer value, h=1, 2, ..., HMS, HMS indicates the size of the harmony memory, HMS is the number of preset harmony types, which can be set according to the actual needs of the problem, k = 1, 2, ..., n, n represents the number of musical instruments, corresponding to the total number of virtual machines to be placed, that is, the corresponding number of tone information. In other words, a harmony represents a virtual machine placement scheme, which can be defined in an n-dimensional search space. A harmony in the harmony search mechanism under the virtual machine placement problem can only appear in the form of a discrete numerical sequence number between 1 and m, where m represents the maximum number of physical hosts.
本实施例中,如和声h为Xh=[2,1,5,4,2,3,2,1],表明一共8种乐器演奏了8种音调,其代表的虚拟机放置方案的含义为:虚拟机v1、v5和v7放置到物理主机h2上,虚拟机v2、v8放置到物理主机h1上,虚拟机v3放置到物理主机h5上,虚拟机v4放置到物理主机h4上,虚拟机v6放置到物理主机h3。In this embodiment, if the harmony h is X h = [2, 1, 5, 4, 2, 3, 2, 1], it indicates that a total of 8 musical instruments play 8 tones, which represent the virtual machine placement scheme The meaning is: virtual machines v 1 , v 5 and v 7 are placed on physical host h 2 , virtual machines v 2 and v 8 are placed on physical host h 1 , virtual machine v 3 is placed on physical host h 5 , virtual machine v4 is placed on the physical host h4 , and the virtual machine v6 is placed on the physical host h3 .
所有可能的和声可组成一个矩阵,定义为和声记忆库HM:All possible harmony can form a matrix, defined as the harmony memory HM:
步骤S20,按照预设和声生成条件生成一种新和声。Step S20, generating a new harmony according to preset harmony generation conditions.
步骤S20具体包括:根据所述物理主机数随机设置数量为所述虚拟机数的音调信息,以获得待处理和声;对所述待处理和声进行和声记忆库选择处理及音调微调扰动处理,以获取处理后的新和声。Step S20 specifically includes: randomly setting tone information equal to the number of virtual machines according to the number of physical hosts to obtain the harmony to be processed; performing harmony memory bank selection processing and tone fine-tuning disturbance processing on the harmony to be processed , to get the new processed harmony.
需要说明的是,和声记忆库选择处理的过程具体包括:生成所述待处理和声中每个音调信息对应的第一随机数对,根据所述第一随机数对及预先设定的和声记忆库选择概率从所述和声记忆库中随机选取音调信息,并用所述音调信息替换所述待处理和声对应的音调信息。It should be noted that the process of selecting the harmony memory bank specifically includes: generating a first random number pair corresponding to each tone information in the harmony to be processed, and according to the first random number pair and the preset sum The sound memory selection probability randomly selects pitch information from the harmony memory, and replaces the pitch information corresponding to the harmony to be processed with the pitch information.
对于每一个和声Xh中的音调xh,k,k=1,2,...,n,随机生成一对随机数,即,第一随机数对,第一随机数对中包括随机数r1和随机数r2,随机数对中的两个随机数都在(0,1)之间。For each tone x h , k in harmony X h, k=1, 2, ..., n, randomly generate a pair of random numbers, that is, the first pair of random numbers, the first pair of random numbers includes random The number r 1 and the random number r 2 , the two random numbers in the random number pair are both between (0, 1).
如果r1小于和声记忆库选择概率HMCR,则从和声记忆库HM中随机选择一个和声HM[a][b]替换xh,k,a=1,2,...,HMS,b=1,2,...,n,即音调xh,k更新为:If r 1 is less than the harmony memory bank selection probability HMCR, then randomly select a harmony HM[a][b] from the harmony memory bank HM to replace x h, k , a=1, 2, ..., HMS, b=1, 2,..., n, that is, the tone x h, k is updated as:
xh,k=HM[a][b]x h,k = HM[a][b]
否则,若r1>HMCR,则xh,k的更新值在区间[1,m]内随机生成一个整型数,即:Otherwise, if r 1 >HMCR, then the update value of x h, k randomly generates an integer number in the interval [1, m], namely:
其中,r2表示区间(0,1)内的随机数。Among them, r 2 represents a random number in the interval (0, 1).
需要说明的是,音调微调扰动处理的过程具体包括:生成所述待处理和声中每个音调信息对应的第二随机数对,根据所述第二随机数对、音调调节概率及扰动带宽对替换后的音调信息进行音调微调扰动处理,以获取处理后的新和声。It should be noted that the process of tone fine-tuning disturbance processing specifically includes: generating a second random number pair corresponding to each tone information in the chorus to be processed, and according to the second random number pair, tone adjustment probability and disturbance bandwidth pair The replaced tone information is subjected to tone fine-tuning perturbation processing to obtain the processed new harmony.
易于理解的是,对于每一个和声Xh中的音调xh,k,k=1,2,...,n,再随机生成一对随机数,即,第二随机数对,第一随机数对中包括随机数r3和随机数r4,随机数对中的两个随机数都在(0,1)之间。It is easy to understand that, for each tone x h , k in harmony X h, k=1, 2, ..., n, a pair of random numbers is randomly generated, that is, the second pair of random numbers, the first pair of random numbers The random number pair includes a random number r 3 and a random number r 4 , and both of the two random numbers in the random number pair are between (0, 1).
在满足r1<HMCR的同时,如果r3小于音调调节概率PAR,则进一步对前一步的更新值HM[a][b]进行微调扰动。微调扰动公式为:While satisfying r 1 <HMCR, if r 3 is smaller than the pitch adjustment probability PAR, further fine-tuning disturbance is performed on the update value HM[a][b] of the previous step. The fine-tuning perturbation formula is:
其中,r4表示区间(0,1)内的随机数,BW表示扰动带宽。Among them, r 4 represents a random number in the interval (0, 1), and BW represents the disturbance bandwidth.
由于放置方案仅是限制在[1,m]区间内的整数值,即xh,k的取值必须处于[1,m]区间以内,而根据微调扰动公式的更新方式可能会出现取值不在该范围内的情况。因此,优化的音调微调扰动公式为:Since the placement scheme is only an integer value limited to the interval [1, m], that is, the value of x h, k must be within the interval [1, m], and according to the update method of the fine-tuning disturbance formula, it may appear that the value is not in conditions within this range. Therefore, the optimized pitch fine-tuning perturbation formula is:
其中,mod表示取模运算,表示向下取整,m表示物理主机总量,即最大物理主机序号。Among them, mod means modulo operation, Indicates rounding down, and m indicates the total number of physical hosts, that is, the maximum physical host serial number.
所述生成所述待处理和声中每个音调信息对应的第一随机数对,根据所述第一随机数对及预先设定的和声记忆库选择概率从所述和声记忆库中随机选取音调信息,并用所述音调信息替换所述待处理和声对应的音调信息的步骤之前,还包括:获取所述和声记忆库的当前迭代次数;根据所述当前迭代次数对音调调节概率及扰动带宽进行更新。The first random number pair corresponding to each tone information in the harmony to be processed is generated, and randomly selected from the harmony memory bank according to the first random number pair and the preset harmony memory bank selection probability Before the step of selecting tone information and replacing the tone information corresponding to the harmony to be processed with the tone information, it also includes: obtaining the current iteration number of the harmony memory bank; adjusting the probability and pitch according to the current iteration number The perturbation bandwidth is updated.
传统的和声搜索机制中,音调调节概率PAR和扰动带宽BW均为固定值,两个参数决定了和声搜索过程中全局勘探和局部开发均衡,而固定取值并没有考虑和声搜索的迭代进化过程。迭代初期较小的PAR可以使和声搜索具有更强的全部勘探能力,避免算法早熟和过快收敛;而迭代后期较大的PAR可以使和声搜索具有更强的局部开发能力,提升在局部空间中的搜索能力,加快算法收敛。同时,对于BW也是同样的考虑,随着迭代的进行,应该作出相应变化。In the traditional harmony search mechanism, the pitch adjustment probability PAR and the disturbance bandwidth BW are both fixed values. The two parameters determine the global exploration and local development balance in the harmony search process, and the fixed values do not consider the iteration of the harmony search. evolutionary process. A smaller PAR at the beginning of the iteration can make the harmony search have a stronger overall exploration ability, avoiding the premature and too fast convergence of the algorithm; while a larger PAR in the later stage of the iteration can make the harmony search have a stronger local development ability, and improve the local exploration ability. The search capability in the space speeds up the algorithm convergence. At the same time, the same considerations apply to BW, and corresponding changes should be made as the iteration progresses.
本实施例中,音调调节概率PAR对应的公式为:In this embodiment, the formula corresponding to the pitch adjustment probability PAR is:
其中,PAR(t)表示迭代t时的音调调节概率,PARmin表示音调调节概率最小值,PARmax表示音调调节概率最大值,Tmax表示和声搜索的最大迭代次数,即和声演奏的最大次数。Among them, PAR(t) represents the pitch adjustment probability at iteration t, PAR min represents the minimum value of pitch modulation probability, PAR max represents the maximum value of pitch modulation probability, T max represents the maximum number of iterations of harmony search, that is, the maximum value of harmony performance frequency.
本实施例中,扰动带宽BW对应的公式为:In this embodiment, the formula corresponding to the disturbance bandwidth BW is:
其中,BW(t)表示迭代t时的扰动带宽,BWmin表示扰动带宽最小值,BWmax表示扰动带宽最大值,Tmax表示和声搜索的最大迭代次数,即和声演奏的最大次数。Among them, BW(t) represents the disturbance bandwidth at iteration t, BW min represents the minimum value of the disturbance bandwidth, BW max represents the maximum value of the disturbance bandwidth, and T max represents the maximum number of iterations of harmony search, that is, the maximum number of harmony performances.
步骤S30,对所述和声记忆库中的各种和声及所述新和声进行适应度计算,并根据计算结果对所述和声记忆库中的和声进行更新。Step S30, calculating the fitness of various harmony in the harmony memory and the new harmony, and updating the harmony in the harmony memory according to the calculation result.
需要说明的是,对所述和声记忆库中的各种和声及所述新和声进行适应度计算;获取所述和声记忆库中当前适应度值最小的待选和声,并判断所述新和声的适应度值是否大于所述待选和声的适应度值;在所述新和声的适应度值大于所述待选和声的适应度值时,将所述待选和声替换为所述新和声,以实现对所述和声记忆库中的和声的更新。即,若新的和声适应度大于当前和声记忆库HM中的最差适应度和声,则将最差适应度和声替换为新生成的和声;否则,维持原和声记忆库HM不变。It should be noted that the fitness calculation is performed on various harmony in the harmony memory and the new harmony; the candidate harmony with the smallest current fitness value in the harmony memory is obtained, and judged Whether the fitness value of the new harmony is greater than the fitness value of the candidate harmony; when the fitness value of the new harmony is greater than the fitness value of the candidate harmony, the candidate The harmony is replaced by the new harmony, so as to update the harmony in the harmony memory. That is, if the new harmony fitness is greater than the worst fitness harmony in the current harmony memory HM, replace the worst fitness harmony with the newly generated harmony; otherwise, maintain the original harmony memory HM constant.
根据虚拟机的放置目标,目标函数值越小,个体适应度越大。故可以设置评估和声所代表的虚拟机放置方案的适应度函数为:According to the placement target of the virtual machine, the smaller the value of the objective function, the greater the fitness of the individual. Therefore, the fitness function of the virtual machine placement scheme represented by the evaluation harmony can be set as:
其中,P表示能耗最小化公式中的目标函数,即最小化物理主机功耗。Wherein, P represents the objective function in the energy consumption minimization formula, that is, to minimize the power consumption of the physical host.
若得到的放置方案无法满足物理主机资源提供约束,可将其适应度设置为0。因此,评估和声所代表的放置方案的质量时,优化的适应度函数为:If the obtained placement scheme cannot meet the resource constraints of the physical host, its fitness can be set to 0. Therefore, when evaluating the quality of the placement scheme represented by the harmony, the optimized fitness function is:
步骤S40,根据更新结果确定适应度值最大的目标和声,并将所述目标和声的音调信息作为虚拟机放置最优解。Step S40, determine the target harmony with the highest fitness value according to the update result, and use the pitch information of the target harmony as the optimal solution for virtual machine placement.
易于理解的是,虚拟机放置的目标是降低主机能耗,因此,适应度值越大,和声代表的放置解越佳。It is easy to understand that the goal of virtual machine placement is to reduce the energy consumption of the host, therefore, the larger the fitness value, the better the placement solution represented by harmony.
步骤S50,根据所述虚拟机放置最优解将所述虚拟机集合中的虚拟机放置到所述物理主机集合对应的物理主机中。Step S50, place the virtual machines in the virtual machine set on physical hosts corresponding to the physical host set according to the optimal virtual machine placement solution.
易于理解的是,获取到虚拟机放置最优解后可根据最优解进行虚拟机放置,以实现物理主机资源与能耗的合理应用。It is easy to understand that after obtaining the optimal solution for virtual machine placement, the virtual machine can be placed according to the optimal solution, so as to realize the reasonable application of physical host resources and energy consumption.
本发明实施例通过上述方法,在物理主机的资源利用率及能耗均有约束的条件下,通过生成新和声即新的放置方案,形成虚拟机放置的低能耗优化,提高了虚拟机放置的效率及效果。In the embodiment of the present invention, through the above method, under the condition that the resource utilization rate and energy consumption of the physical host are constrained, by generating a new harmony, that is, a new placement scheme, the low energy consumption optimization of virtual machine placement is formed, and the virtual machine placement is improved. efficiency and effectiveness.
参考图3,图3为本发明一种基于和声搜索的虚拟机放置方法第三实施例的流程示意图。基于上述第一实施例,本实施例基于和声搜索的虚拟机放置方法在所述步骤S40之后,还包括:Referring to FIG. 3 , FIG. 3 is a schematic flowchart of a third embodiment of a harmony search-based virtual machine placement method according to the present invention. Based on the first embodiment above, the method for placing a virtual machine based on harmony search in this embodiment, after step S40, further includes:
步骤S401,检测当前和声记忆库的当前迭代次数,判断所述当前迭代次数是否小于预设迭代次数。Step S401, detecting the current iteration number of the current harmony memory bank, and judging whether the current iteration number is less than a preset iteration number.
步骤S402,在所述当前迭代次数小于所述预设迭代次数时,返回所述按照预设和声生成条件生成一种新和声的步骤。Step S402, when the current iteration number is less than the preset iteration number, return to the step of generating a new harmony according to preset harmony generation conditions.
易于理解的是,所述预设迭代次数为和声记忆库HM的最大迭代次数,在生成和声记忆库HM时,根据虚拟机放置问题的需求进行设置。在迭代次数不足时,反复生成新和声即新的虚拟机放置方案并作适应度计算,根据计算结果进行相应的判断,更新和声记忆库HM,直到达到最大迭代次数Tmax终止。最终,输出和声记忆库中适应度最大的和声作为最终的虚拟机放置最优解。It is easy to understand that the preset number of iterations is the maximum number of iterations of the harmony memory HM, which is set according to the requirement of virtual machine placement when generating the harmony memory HM. When the number of iterations is insufficient, a new harmony, that is, a new virtual machine placement plan, is repeatedly generated and the fitness is calculated. According to the calculation results, corresponding judgments are made, and the harmony memory HM is updated until the maximum number of iterations Tmax is reached. Finally, the harmony with the greatest fitness in the output harmony memory is used as the final virtual machine placement optimal solution.
步骤S403,在所述当前迭代次数等于所述预设迭代次数时,输出所述虚拟机放置最优解。Step S403, when the current number of iterations is equal to the preset number of iterations, output the optimal solution for virtual machine placement.
本发明实施例通过上述方法,迭代进行新和声的生成,使得和声库不断更新,不断形成新的放置方案,以获得优化的放置方案,提升了虚拟机放置的精度及效果。The embodiment of the present invention uses the above method to iteratively generate new harmony, so that the harmony library is continuously updated, and new placement schemes are continuously formed to obtain an optimized placement scheme, which improves the accuracy and effect of virtual machine placement.
参照图4,图4为本发明基于和声搜索的虚拟机放置装置第一实施例的结构框图。需要说明的是,本实施例基于上述方法实施例中的云计算环境,此处不再一一赘述。所述装置包括:和声库建立模块10、适应度计算模块20、最优解获取模块30及放置模块40,其中;Referring to FIG. 4 , FIG. 4 is a structural block diagram of the first embodiment of the harmony search-based virtual machine placement device of the present invention. It should be noted that this embodiment is based on the cloud computing environment in the foregoing method embodiments, which will not be repeated here. The device includes: a harmony
所述和声库建立模块10,用于获取待放置的虚拟机集合及物理主机集合,并根据所述虚拟机集合及所述物理主机集合建立和声记忆库。The harmony
所述和声库建立模块10,具体用于:获取所述物理主机集合对应的物理主机数及所述虚拟机集合对应的虚拟机数;将所述虚拟机数作为各种和声对应的音调信息数,根据所述物理主机数随机设置各种和声对应的音调信息;根据预设和声种数、所述音调信息数及所述音调信息建立和声记忆库。The harmony
令一种和声h表示为:Let a harmony h be expressed as:
Xh=[xh,1,xh,2,...,xh,n]X h =[x h,1 ,x h,2 ,...,x h,n ]
其中,矢量中的元素xh,k表示和声h中第k个乐器演奏的音调,该音调对应于放置虚拟机k的物理主机序号,该物理主机序号取值为[1,m]区间内整型值,h=1,2,…,HMS,HMS表示和声记忆库的大小,HMS为预设和声种数,可根据问题实际需求进行设置,k=1,2,…,n,n表示乐器数量,对应于待放置的虚拟机总数,即对应音调信息数。换言之,一种和声代表一种虚拟机放置方案,可定义在n维搜索空间内。虚拟机放置问题下和声搜索机制中的一个和声仅能以1至m间的离散数值序号形式出现,m代表物理主机最大数量。Among them, the element x h, k in the vector represents the tone played by the kth instrument in the harmony h, and the tone corresponds to the serial number of the physical host where the virtual machine k is placed, and the value of the physical host serial number is within the interval [1, m] Integer value, h=1, 2, ..., HMS, HMS indicates the size of the harmony memory, HMS is the number of preset harmony types, which can be set according to the actual needs of the problem, k = 1, 2, ..., n, n represents the number of musical instruments, corresponding to the total number of virtual machines to be placed, that is, the corresponding number of tone information. In other words, a harmony represents a virtual machine placement scheme, which can be defined in an n-dimensional search space. A harmony in the harmony search mechanism under the virtual machine placement problem can only appear in the form of a discrete numerical sequence number between 1 and m, where m represents the maximum number of physical hosts.
本实施例中,如和声h为Xh=[2,1,5,4,2,3,2,1],表明一共8种乐器演奏了8种音调,其代表的虚拟机放置方案的含义为:虚拟机v1、v5和v7放置到物理主机h2上,虚拟机v2、v8放置到物理主机h1上,虚拟机v3放置到物理主机h5上,虚拟机v4放置到物理主机h4上,虚拟机v6放置到物理主机h3。In this embodiment, if the harmony h is X h = [2, 1, 5, 4, 2, 3, 2, 1], it indicates that a total of 8 musical instruments play 8 tones, which represent the virtual machine placement scheme The meaning is: virtual machines v 1 , v 5 and v 7 are placed on physical host h 2 , virtual machines v 2 and v 8 are placed on physical host h 1 , virtual machine v 3 is placed on physical host h 5 , virtual machine v4 is placed on the physical host h4 , and the virtual machine v6 is placed on the physical host h3 .
所有可能的和声可组成一个矩阵,定义为和声记忆库HM:All possible harmony can form a matrix, defined as the harmony memory HM:
适应度计算模块20,用于按照预设和声生成条件生成一种新和声。具体用于根据所述物理主机数随机设置数量为所述虚拟机数的音调信息,以获得待处理和声;对所述待处理和声进行和声记忆库选择处理及音调微调扰动处理,以获取处理后的新和声。The
需要说明的是,和声记忆库选择处理的过程具体包括:生成所述待处理和声中每个音调信息对应的第一随机数对,根据所述第一随机数对及预先设定的和声记忆库选择概率从所述和声记忆库中随机选取音调信息,并用所述音调信息替换所述待处理和声对应的音调信息。It should be noted that the process of selecting the harmony memory bank specifically includes: generating a first random number pair corresponding to each tone information in the harmony to be processed, and according to the first random number pair and the preset sum The sound memory selection probability randomly selects pitch information from the harmony memory, and replaces the pitch information corresponding to the harmony to be processed with the pitch information.
对于每一个和声Xh中的音调xh,k,k=1,2,...,n,随机生成一对随机数,即,第一随机数对,第一随机数对中包括随机数r1和随机数r2,随机数对中的两个随机数都在(0,1)之间。For each tone x h , k in harmony X h, k=1, 2, ..., n, randomly generate a pair of random numbers, that is, the first pair of random numbers, the first pair of random numbers includes random The number r 1 and the random number r 2 , the two random numbers in the random number pair are both between (0, 1).
如果r1小于和声记忆库选择概率HMCR,则从和声记忆库HM中随机选择一个和声HM[a][b]替换xh,k,a=1,2,...,HMS,b=1,2,...,n,即音调xh,k更新为:If r 1 is less than the harmony memory bank selection probability HMCR, then randomly select a harmony HM[a][b] from the harmony memory bank HM to replace x h, k , a=1, 2, ..., HMS, b=1, 2,..., n, that is, the tone x h, k is updated as:
xh,k=HM[a][b]x h,k = HM[a][b]
否则,若r1>HMCR,则xh,k的更新值在区间[1,m]内随机生成一个整型数,即:Otherwise, if r 1 >HMCR, then the update value of x h, k randomly generates an integer number in the interval [1, m], namely:
其中,r2表示区间(0,1)内的随机数。Among them, r 2 represents a random number in the interval (0, 1).
需要说明的是,音调微调扰动处理的过程具体包括:生成所述待处理和声中每个音调信息对应的第二随机数对,根据所述第二随机数对、音调调节概率及扰动带宽对替换后的音调信息进行音调微调扰动处理,以获取处理后的新和声。It should be noted that the process of tone fine-tuning disturbance processing specifically includes: generating a second random number pair corresponding to each tone information in the chorus to be processed, and according to the second random number pair, tone adjustment probability and disturbance bandwidth pair The replaced tone information is subjected to tone fine-tuning perturbation processing to obtain the processed new harmony.
易于理解的是,对于每一个和声Xh中的音调xh,k,k=1,2,...,n,再随机生成一对随机数,即,第二随机数对,第一随机数对中包括随机数r3和随机数r4,随机数对中的两个随机数都在(0,1)之间。It is easy to understand that, for each tone x h , k in harmony X h, k=1, 2, ..., n, a pair of random numbers is randomly generated, that is, the second pair of random numbers, the first pair of random numbers The random number pair includes a random number r 3 and a random number r 4 , and both of the two random numbers in the random number pair are between (0, 1).
在满足r1<HMCR的同时,如果r3小于音调调节概率PAR,则进一步对前一步的更新值HM[a][b]进行微调扰动。微调扰动公式为:While satisfying r 1 <HMCR, if r 3 is smaller than the pitch adjustment probability PAR, further fine-tuning disturbance is performed on the update value HM[a][b] of the previous step. The fine-tuning perturbation formula is:
其中,r4表示区间(0,1)内的随机数,BW表示扰动带宽。Among them, r 4 represents a random number in the interval (0, 1), and BW represents the disturbance bandwidth.
由于放置方案仅是限制在[1,m]区间内的整数值,即xh,k的取值必须处于[1,m]区间以内,而根据微调扰动公式的更新方式可能会出现取值不在该范围内的情况。因此,优化的音调微调扰动公式为:Since the placement scheme is only an integer value limited to the interval [1, m], that is, the value of x h, k must be within the interval [1, m], and according to the update method of the fine-tuning disturbance formula, it may appear that the value is not in conditions within this range. Therefore, the optimized pitch fine-tuning perturbation formula is:
其中,mod表示取模运算,表示向下取整,m表示物理主机总量,即最大物理主机序号。Among them, mod means modulo operation, Indicates rounding down, and m indicates the total number of physical hosts, that is, the maximum physical host serial number.
所述生成所述待处理和声中每个音调信息对应的第一随机数对,根据所述第一随机数对及预先设定的和声记忆库选择概率从所述和声记忆库中随机选取音调信息,并用所述音调信息替换所述待处理和声对应的音调信息的步骤之前,还包括:获取所述和声记忆库的当前迭代次数;根据所述当前迭代次数对音调调节概率及扰动带宽进行更新。The first random number pair corresponding to each tone information in the harmony to be processed is generated, and randomly selected from the harmony memory bank according to the first random number pair and the preset harmony memory bank selection probability Before the step of selecting tone information and replacing the tone information corresponding to the harmony to be processed with the tone information, it also includes: obtaining the current iteration number of the harmony memory bank; adjusting the probability and pitch according to the current iteration number The perturbation bandwidth is updated.
传统的和声搜索机制中,音调调节概率PAR和扰动带宽BW均为固定值,两个参数决定了和声搜索过程中全局勘探和局部开发均衡,而固定取值并没有考虑和声搜索的迭代进化过程。迭代初期较小的PAR可以使和声搜索具有更强的全部勘探能力,避免算法早熟和过快收敛;而迭代后期较大的PAR可以使和声搜索具有更强的局部开发能力,提升在局部空间中的搜索能力,加快算法收敛。同时,对于BW也是同样的考虑,随着迭代的进行,应该作出相应变化。In the traditional harmony search mechanism, the pitch adjustment probability PAR and the disturbance bandwidth BW are both fixed values. The two parameters determine the global exploration and local development balance in the harmony search process, and the fixed values do not consider the iteration of the harmony search. evolutionary process. A smaller PAR at the beginning of the iteration can make the harmony search have a stronger overall exploration ability, avoiding the premature and too fast convergence of the algorithm; while a larger PAR in the later stage of the iteration can make the harmony search have a stronger local development ability, and improve the local exploration ability. The search capability in the space speeds up the algorithm convergence. At the same time, the same considerations apply to BW, and corresponding changes should be made as the iteration progresses.
本实施例中,音调调节概率PAR对应的公式为:In this embodiment, the formula corresponding to the pitch adjustment probability PAR is:
其中,PAR(t)表示迭代t时的音调调节概率,PARmin表示音调调节概率最小值,PARmax表示音调调节概率最大值,Tmax表示和声搜索的最大迭代次数,即和声演奏的最大次数。Among them, PAR(t) represents the pitch adjustment probability at iteration t, PAR min represents the minimum value of pitch modulation probability, PAR max represents the maximum value of pitch modulation probability, T max represents the maximum number of iterations of harmony search, that is, the maximum value of harmony performance frequency.
本实施例中,扰动带宽BW对应的公式为:In this embodiment, the formula corresponding to the disturbance bandwidth BW is:
其中,BW(t)表示迭代t时的扰动带宽,BWmin表示扰动带宽最小值,BWmax表示扰动带宽最大值,Tmax表示和声搜索的最大迭代次数,即和声演奏的最大次数。Among them, BW(t) represents the disturbance bandwidth at iteration t, BW min represents the minimum value of the disturbance bandwidth, BW max represents the maximum value of the disturbance bandwidth, and T max represents the maximum number of iterations of harmony search, that is, the maximum number of harmony performances.
所述适应度计算模块20,还用于对所述和声记忆库中的各种和声及所述新和声进行适应度计算,并根据计算结果对所述和声记忆库中的和声进行更新。The
需要说明的是,对所述和声记忆库中的各种和声及所述新和声进行适应度计算;获取所述和声记忆库中当前适应度值最小的待选和声,并判断所述新和声的适应度值是否大于所述待选和声的适应度值;在所述新和声的适应度值大于所述待选和声的适应度值时,将所述待选和声替换为所述新和声,以实现对所述和声记忆库中的和声的更新。即,若新的和声适应度大于当前和声记忆库HM中的最差适应度和声,则将最差适应度和声替换为新生成的和声;否则,维持原和声记忆库HM不变。It should be noted that the fitness calculation is performed on various harmony in the harmony memory and the new harmony; the candidate harmony with the smallest current fitness value in the harmony memory is obtained, and judged Whether the fitness value of the new harmony is greater than the fitness value of the candidate harmony; when the fitness value of the new harmony is greater than the fitness value of the candidate harmony, the candidate The harmony is replaced by the new harmony, so as to update the harmony in the harmony memory. That is, if the new harmony fitness is greater than the worst fitness harmony in the current harmony memory HM, replace the worst fitness harmony with the newly generated harmony; otherwise, maintain the original harmony memory HM constant.
根据虚拟机的放置目标,目标函数值越小,个体适应度越大。故可以设置评估和声所代表的虚拟机放置方案的适应度函数为:According to the placement target of the virtual machine, the smaller the value of the objective function, the greater the fitness of the individual. Therefore, the fitness function of the virtual machine placement scheme represented by the evaluation harmony can be set as:
其中,P表示能耗最小化公式中的目标函数,即最小化物理主机功耗。Wherein, P represents the objective function in the energy consumption minimization formula, that is, to minimize the power consumption of the physical host.
若得到的放置方案无法满足物理主机资源提供约束,可将其适应度设置为0。因此,评估和声所代表的放置方案的质量时,优化的适应度函数为:If the obtained placement scheme cannot meet the resource constraints of the physical host, its fitness can be set to 0. Therefore, when evaluating the quality of the placement scheme represented by the harmony, the optimized fitness function is:
所述最优解获取模块30,用于根据更新结果确定适应度值最大的目标和声,并将所述目标和声的音调信息作为虚拟机放置最优解。The optimal
易于理解的是,虚拟机放置的目标是降低主机能耗,因此,适应度值越大,和声代表的放置解越佳。It is easy to understand that the goal of virtual machine placement is to reduce the energy consumption of the host, therefore, the larger the fitness value, the better the placement solution represented by harmony.
所述放置模块40,用于根据所述虚拟机放置最优解将所述虚拟机集合中的虚拟机放置到所述物理主机集合对应的物理主机中。The placing
易于理解的是,获取到虚拟机放置最优解后可根据最优解进行虚拟机放置,以实现物理主机资源与能耗的合理应用。It is easy to understand that after obtaining the optimal solution for virtual machine placement, the virtual machine can be placed according to the optimal solution, so as to realize the reasonable application of physical host resources and energy consumption.
本发明实施例通过上述装置,在物理主机的资源利用率及能耗均有约束的条件下,通过生成新和声即新的放置方案,形成虚拟机放置的低能耗优化,提高了虚拟机放置的效率及效果。In the embodiment of the present invention, by using the above-mentioned device, under the condition that the resource utilization rate and energy consumption of the physical host are constrained, by generating a new harmony, that is, a new placement scheme, low energy consumption optimization of virtual machine placement is formed, and virtual machine placement is improved. efficiency and effectiveness.
此外,本发明实施例还提出一种基于和声搜索的虚拟机放置设备,所述设备为一种电子设备,所述设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的基于和声搜索的虚拟机放置程序,所述基于和声搜索的虚拟机放置程序配置为实现如上所述的基于和声搜索的虚拟机放置方法的步骤。In addition, the embodiment of the present invention also proposes a virtual machine placement device based on harmony search, the device is an electronic device, and the device includes: a memory, a processor, and a A harmony search-based virtual machine placement program running on the processor, the harmony search-based virtual machine placement program configured to implement the steps of the harmony search-based virtual machine placement method described above.
由于本设备采用了上述所有实施例的全部技术方案,因此至少具有上述实施例的技术方案所带来的所有有益效果,在此不再一一赘述。Since this device adopts all the technical solutions of all the above-mentioned embodiments, it at least has all the beneficial effects brought by the technical solutions of the above-mentioned embodiments, which will not be repeated here.
此外,本发明实施例还提出一种存储介质,所述存储介质上存储有基于和声搜索的虚拟机放置程序,所述基于和声搜索的虚拟机放置程序被处理器执行如上文所述的基于和声搜索的虚拟机放置方法的步骤。In addition, the embodiment of the present invention also proposes a storage medium, on which a virtual machine placement program based on harmony search is stored, and the virtual machine placement program based on harmony search is executed by a processor as described above Steps of a harmony search based virtual machine placement method.
由于本存储介质采用了上述所有实施例的全部技术方案,因此至少具有上述实施例的技术方案所带来的所有有益效果,在此不再一一赘述。Since the storage medium adopts all the technical solutions of all the above-mentioned embodiments, it at least has all the beneficial effects brought by the technical solutions of the above-mentioned embodiments, which will not be repeated here.
应当理解的是,以上仅为举例说明,对本发明的技术方案并不构成任何限定,在具体应用中,本领域的技术人员可以根据需要进行设置,本发明对此不做限制。It should be understood that the above is only an example, and does not constitute any limitation to the technical solution of the present invention. In specific applications, those skilled in the art can make settings according to needs, and the present invention is not limited thereto.
需要说明的是,以上所描述的工作流程仅仅是示意性的,并不对本发明的保护范围构成限定,在实际应用中,本领域的技术人员可以根据实际的需要选择其中的部分或者全部来实现本实施例方案的目的,此处不做限制。It should be noted that the workflow described above is only illustrative and does not limit the protection scope of the present invention. In practical applications, those skilled in the art can select part or all of them to implement according to actual needs. The purpose of the scheme of this embodiment is not limited here.
另外,未在本实施例中详尽描述的技术细节,可参见本发明任意实施例所提供的基于和声搜索的虚拟机放置方法,此处不再赘述。In addition, for technical details not described in detail in this embodiment, reference may be made to the harmony search-based virtual machine placement method provided in any embodiment of the present invention, and details are not repeated here.
此外,需要说明的是,在本实施例中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。In addition, it should be noted that in this embodiment, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion, so that a process, method, article or system comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent in such process, method, article, or system. Without further limitations, an element defined by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system comprising that element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如只读存储器(Read Only Memory,ROM)/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as a read-only memory (Read Only Memory) , ROM)/RAM, magnetic disk, optical disk), including several instructions to make a terminal device (which can be a mobile phone, computer, server, or network device, etc.) execute the methods described in various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010210298.4A CN111443989B (en) | 2020-03-23 | 2020-03-23 | Virtual machine placement method, device, equipment and storage medium based on harmony search |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010210298.4A CN111443989B (en) | 2020-03-23 | 2020-03-23 | Virtual machine placement method, device, equipment and storage medium based on harmony search |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111443989A CN111443989A (en) | 2020-07-24 |
CN111443989B true CN111443989B (en) | 2023-06-23 |
Family
ID=71654324
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010210298.4A Expired - Fee Related CN111443989B (en) | 2020-03-23 | 2020-03-23 | Virtual machine placement method, device, equipment and storage medium based on harmony search |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111443989B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6584612B1 (en) * | 1999-07-15 | 2003-06-24 | International Business Machines Corporation | Transparent loading of resources from read-only memory for an application program |
CN1805483A (en) * | 2006-01-23 | 2006-07-19 | 王凌云 | Multimedia transmission and playing method and system in mobile phone network |
CN102789493A (en) * | 2012-07-06 | 2012-11-21 | 葛彦强 | Self-adaptive dual-harmony optimization method |
CN103853618A (en) * | 2014-03-06 | 2014-06-11 | 南京理工大学 | Resource allocation method with minimized cloud system cost based on expiration date drive |
CN106227491A (en) * | 2016-08-04 | 2016-12-14 | 浪潮电子信息产业股份有限公司 | A kind of remote desktop video broadcasting method, server, client and system |
CN109961152A (en) * | 2019-03-14 | 2019-07-02 | 广州多益网络股份有限公司 | Personalized interactive method, system, terminal device and the storage medium of virtual idol |
CN110135094A (en) * | 2019-05-22 | 2019-08-16 | 长沙理工大学 | An Optimal Dispatch Method for Virtual Power Plant Based on Shrinking Space Harmony Algorithm |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10430395B2 (en) * | 2017-03-01 | 2019-10-01 | International Business Machines Corporation | Iterative widening search for designing chemical compounds |
US10650054B2 (en) * | 2018-04-24 | 2020-05-12 | Rovi Guides, Inc. | Systems and methods for updating search results based on a conversation |
-
2020
- 2020-03-23 CN CN202010210298.4A patent/CN111443989B/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6584612B1 (en) * | 1999-07-15 | 2003-06-24 | International Business Machines Corporation | Transparent loading of resources from read-only memory for an application program |
CN1805483A (en) * | 2006-01-23 | 2006-07-19 | 王凌云 | Multimedia transmission and playing method and system in mobile phone network |
CN102789493A (en) * | 2012-07-06 | 2012-11-21 | 葛彦强 | Self-adaptive dual-harmony optimization method |
CN103853618A (en) * | 2014-03-06 | 2014-06-11 | 南京理工大学 | Resource allocation method with minimized cloud system cost based on expiration date drive |
CN106227491A (en) * | 2016-08-04 | 2016-12-14 | 浪潮电子信息产业股份有限公司 | A kind of remote desktop video broadcasting method, server, client and system |
CN109961152A (en) * | 2019-03-14 | 2019-07-02 | 广州多益网络股份有限公司 | Personalized interactive method, system, terminal device and the storage medium of virtual idol |
CN110135094A (en) * | 2019-05-22 | 2019-08-16 | 长沙理工大学 | An Optimal Dispatch Method for Virtual Power Plant Based on Shrinking Space Harmony Algorithm |
Non-Patent Citations (1)
Title |
---|
《计算机工程与设计》2014年第35卷总目次;计算机工程与设计(第12期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN111443989A (en) | 2020-07-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10175745B2 (en) | Optimizing power consumption by dynamic workload adjustment | |
Deng et al. | Mobile service selection for composition: An energy consumption perspective | |
CN113110933A (en) | System with Nginx load balancing technology | |
CN111324422B (en) | Multi-target virtual machine deployment method, device, equipment and storage medium | |
CN108416465B (en) | A workflow optimization method in mobile cloud environment | |
CN106775638A (en) | A kind of object serialization method, device and computing device | |
CN111785238A (en) | Audio calibration method, device and storage medium | |
Elsedimy et al. | Toward enhancing the energy efficiency and minimizing the SLA violations in cloud data centers | |
CN111338765B (en) | Virtual machine deployment method, device, equipment and storage medium based on cat group algorithm | |
Khani et al. | Distributed consolidation of virtual machines for power efficiency in heterogeneous cloud data centers | |
WO2025086988A1 (en) | Knowledge question answering method, system and apparatus, and storage medium | |
CN118733282A (en) | A distributed training method, device, equipment and medium based on heterogeneous devices | |
CN111443989B (en) | Virtual machine placement method, device, equipment and storage medium based on harmony search | |
CN114741029B (en) | Data distribution method applied to deduplication storage system and related equipment | |
Chandrakala et al. | Efficient Heuristic Replication Techniques for High Data Availability in Cloud. | |
Shi et al. | Research on multi-objective optimization method of edge cloud computing virtual machine placement | |
CN115033183A (en) | A distributed storage method and electronic device | |
Zhang et al. | Task offloading for scientific workflow application in mobile cloud | |
CN111427661A (en) | Virtual machine placement method, device, electronic device and storage medium | |
CN114928862B (en) | System overhead reduction method and system based on task unloading and service caching | |
Zhu et al. | New deadline-aware energy-consumption optimization model and genetic algorithm under cloud computing | |
CN114675738B (en) | CPU frequency modulation method, system and storage medium based on optimal feedback time | |
CN117950863A (en) | Cloud resource task scheduling method with efficient optimization | |
CN116931944A (en) | Data storage method, device, computer equipment and storage medium | |
JP2018132899A (en) | Storage method, storage device, and storage program |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20230623 |
|
CF01 | Termination of patent right due to non-payment of annual fee |