CN112667999A - Method and device for adjusting execution time of virtual machine - Google Patents

Method and device for adjusting execution time of virtual machine Download PDF

Info

Publication number
CN112667999A
CN112667999A CN202011643636.XA CN202011643636A CN112667999A CN 112667999 A CN112667999 A CN 112667999A CN 202011643636 A CN202011643636 A CN 202011643636A CN 112667999 A CN112667999 A CN 112667999A
Authority
CN
China
Prior art keywords
time
execution
information
execution time
virtual machine
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.)
Pending
Application number
CN202011643636.XA
Other languages
Chinese (zh)
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.)
China Power Great Wall Internetworking Safety Technology Research Institute Beijing Co ltd
Original Assignee
China Power Great Wall Internetworking Safety Technology Research Institute Beijing Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Power Great Wall Internetworking Safety Technology Research Institute Beijing Co ltd filed Critical China Power Great Wall Internetworking Safety Technology Research Institute Beijing Co ltd
Priority to CN202011643636.XA priority Critical patent/CN112667999A/en
Publication of CN112667999A publication Critical patent/CN112667999A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application discloses a method and a device for adjusting execution time of a virtual machine, and relates to the technical field of computers. The execution time adjustment method of the virtual machine comprises the following steps: acquiring first time information of a physical machine; determining time adjustment information according to the service adjustment information, wherein the service adjustment information is used for indicating a virtual machine corresponding to a physical machine to adjust the operation cycle of service data; and adjusting the time of the virtual machine based on the time adjustment information and the first time information to obtain second time information. Ensuring that the time adjustment information can meet the requirements of the service adjustment information; and under the condition of not consuming hardware equipment resources, the execution time of the virtual machine is adjusted to meet the requirement of the service adjustment information, so that the virtual machine can execute the preset instruction according to the second time information, and the processed execution result can be ensured to be optimized. And executing a preset instruction according to the second time information through the virtual machine, so that botnet viruses are prevented, and the safety of the equipment is improved.

Description

Method and device for adjusting execution time of virtual machine
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for adjusting execution time of a virtual machine.
Background
There is a problem of time delay in communication between a plurality of devices or in operation of internal modules of a certain device, and the time delay may be minutes, hours, days, months, or the like. Some devices are implanted with botnet viruses, which causes the running delay of the devices to be lengthened or causes the devices to be out of order (for example, a device implanted with botnet viruses becomes a botnet device, which lengthens the execution time of instructions to be executed by multiple times, for example, a heartbeat message which needs to be sent every second is lengthened to a heartbeat message which is sent to a server only once every day), so that the devices cannot run normally.
Disclosure of Invention
Therefore, the application provides a method and a device for adjusting the execution time of a virtual machine, so as to solve the problem that the safety of equipment cannot be guaranteed due to the fact that the time delay is prolonged without a reason.
In order to achieve the above object, a first aspect of the present application provides an execution time adjustment method for a virtual machine, including: acquiring first time information of a physical machine; determining time adjustment information according to the service adjustment information, wherein the service adjustment information is used for indicating a virtual machine corresponding to a physical machine to adjust the operation cycle of service data; and adjusting the execution time of the virtual machine based on the time adjustment information and the first time information to obtain second time information, wherein the second time information is used for representing the information of the execution time of the virtual machine.
In some implementations, the service adjustment information includes an original operation period and a target operation period of the service data, and the time adjustment information includes a time adjustment ratio; determining time adjustment information according to the service adjustment information, including: and determining a time adjustment proportion according to the original operation period and the target operation period.
In some implementations, the first time information includes a first set of execution times and the second time information includes a second set of execution times; adjusting the time of the virtual machine based on the time adjustment information and the first time information to obtain second time information, including: adjusting the execution time in the second execution time set according to the time adjustment proportion and the execution time in the first execution time set; and determining second time information according to the execution time in the adjusted second execution time set.
In some implementations, adjusting the execution times in the second set of execution times according to the time adjustment ratio and the execution times in the first set of execution times includes: and expanding the execution time in the first execution time set according to the time adjustment proportion to obtain the execution time in the second execution time set.
In some implementations, adjusting the execution times in the second set of execution times according to the time adjustment ratio and the execution times in the first set of execution times includes: and reducing the execution time in the first execution time set according to the time adjustment proportion to obtain the execution time in the second execution time set.
In some implementations, a first difference between two adjacent first execution times in the first set of execution times is the same; second differences between two adjacent second execution times in the second execution time set are the same, and the first differences and the second differences are different.
In some implementations, the first time information further includes a first execution time initial value; before adjusting the execution time in the second execution time set according to the time adjustment proportion and the execution time in the first execution time set, the method further includes: and determining the execution time in the first execution time set according to the first execution time initial value and the timing period of the physical machine.
In some implementations, the second time information further includes a second execution time initial value; before adjusting the execution time in the second execution time set according to the time adjustment proportion and the execution time in the first execution time set, the method further includes: and determining a second execution time initial value according to the first execution time initial value and a preset weight coefficient.
In order to achieve the above object, a second aspect of the present application provides an execution time adjustment apparatus, including: the acquisition module is used for acquiring first time information of the physical machine; the determining module is used for determining time adjustment information according to the service adjustment information, wherein the service adjustment information is used for indicating the virtual machine corresponding to the physical machine to adjust the operation cycle of the service data; and the adjusting module is used for adjusting the execution time of the virtual machine based on the time adjusting information and the first time information to obtain second time information, and the second time information is used for representing the information of the execution time of the virtual machine.
In some implementations, the service adjustment information includes an original operation period and a target operation period of the service data, and the time adjustment information includes a time adjustment ratio; the determining module comprises: and the proportion adjusting submodule is used for determining the time adjusting proportion according to the original operation period and the target operation period.
According to the method and the device for adjusting the execution time of the virtual machine, the time adjustment information is determined according to the service adjustment information, and the service adjustment information is used for indicating the virtual machine corresponding to the physical machine to adjust the operation period of the service data, so that the time adjustment information can meet the requirement of the service adjustment information; and adjusting the execution time of the virtual machine based on the time adjustment information and the first time information to obtain second time information, and ensuring that the second time information of the virtual machine meets the requirement of the service adjustment information by adjusting the second time information of the virtual machine under the condition of not consuming hardware equipment resources, so that the virtual machine can execute a preset instruction according to the second time information, and ensuring that the processed execution result can be optimized. And the virtual machine executes the preset instruction according to the second time information, so that the botnet virus can be prevented, discovery of the botnet virus is accelerated, the virus is processed in time, and the safety of equipment is improved.
Drawings
The accompanying drawings are included to provide a further understanding of the embodiments of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the principles of the application. The above and other features and advantages will become more apparent to those skilled in the art by describing in detail exemplary embodiments thereof with reference to the attached drawings, in which:
fig. 1 illustrates a flowchart of an execution time adjustment method for a virtual machine in an embodiment of the present application.
Fig. 2 is a flowchart illustrating an execution time adjustment method for a virtual machine in another embodiment of the present application.
Fig. 3 is a block diagram showing components of the execution time adjustment apparatus in the embodiment of the present application.
Fig. 4 shows a block diagram of the components of the time adjustment system in the embodiment of the present application.
Fig. 5 is a flowchart illustrating a method of operating the time adjustment system in the embodiment of the present application.
Fig. 6 is a schematic diagram illustrating resource consumption before adjusting execution time of a virtual machine in the embodiment of the present application.
Fig. 7 is a schematic diagram illustrating resource consumption after adjusting the execution time of the virtual machine in the embodiment of the present application.
Detailed Description
The following detailed description of embodiments of the present application will be made with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present application, are given by way of illustration and explanation only, and are not intended to limit the present application. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present application by illustrating examples thereof.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The application provides a method for adjusting execution time of a virtual machine in a first aspect. Fig. 1 is a flowchart illustrating an execution time adjustment method for a virtual machine according to an embodiment of the present application, where the method is applicable to an execution time adjustment apparatus. As shown in fig. 1, the method for adjusting the execution time of the virtual machine includes:
step S101, first time information of the physical machine is obtained.
The physical machine includes a physical computer or other devices capable of running a virtual machine, the physical machine provides a hardware environment for the virtual machine, and the physical machine may also be referred to as a "host" or a "host". The first time information is time information generated by the physical machine in real time.
And step S102, determining time adjustment information according to the service adjustment information.
The service adjustment information is information used for indicating the virtual machine corresponding to the physical machine to adjust the operation cycle of the service data.
For example, if the operation period of the service data needs to be accelerated, the service adjustment information is information for indicating that the execution time of the virtual machine is accelerated to be adjusted; and if the operation period of the service data needs to be slowed down, the service adjustment information is information for indicating the execution time of the slowing-down adjustment virtual machine.
Step S103, adjusting the execution time of the virtual machine based on the time adjustment information and the first time information, and obtaining second time information.
And the second time information is used for representing the information of the adjusted execution time of the virtual machine. A Virtual Machine (Virtual Machine) refers to a complete computer system with complete hardware system functionality, operating in a completely isolated environment, simulated by software. When the virtual machine obtains the second time information, the virtual machine can execute the preset instruction according to the second time information, and the processing efficiency of the preset instruction is improved.
In this embodiment, time adjustment information is determined according to the service adjustment information, where the service adjustment information is information used to instruct a virtual machine corresponding to a physical machine to adjust a running period of service data, and it can be ensured that the time adjustment information can meet a requirement of the service adjustment information; and adjusting the execution time of the virtual machine based on the time adjustment information and the first time information to obtain second time information, and ensuring that the second time information of the virtual machine meets the requirement of service adjustment information by adjusting the second time information of the virtual machine under the condition of not consuming hardware equipment resources, so that the virtual machine can execute a preset instruction according to the second time information, and ensuring that the processed execution result can be optimized. And the virtual machine executes the preset instruction according to the second time information, so that the botnet virus can be prevented, discovery of the botnet virus is accelerated, the virus is processed in time, and the safety of equipment is improved.
Fig. 2 is a flowchart illustrating an execution time adjustment method for a virtual machine in another embodiment of the present application. The method can be applied to an execution time adjustment device. As shown in fig. 2, the method for adjusting the execution time of the virtual machine includes:
step S201, determining the execution time in the first execution time set according to the first execution time initial value and the timing period of the physical machine.
The first initial execution time value is an initial execution time after the physical machine is started, and the first initial execution time value may be a time initial value determined by the positioning system or a time initial value set by an operator. The above manner for acquiring the first execution time initial value is only an example, and may be specifically set according to specific situations, and other manners for acquiring the first execution time initial value that are not described are also within the scope of the present application, and are not described herein again.
For example, the first set of execution times may include N first execution times, N being an integer greater than or equal to 1. If the timing period of the physical machine is set to be t, the initial value of the first execution time is X0Then, each execution time in the first set of execution times of the physical machine is respectivelyX1=X0+t、X2=X1+t、……、XN=XN-1+t。
Step S202, first time information of the physical machine is obtained.
The first time information comprises a first execution time set and a first execution time initial value.
Step S203, determining time adjustment information according to the service adjustment information.
It should be noted that steps S202 to S203 in this embodiment are the same as steps S101 to S102 in the previous embodiment, and are not repeated herein.
Step S204, the execution time of the virtual machine is adjusted based on the time adjustment information and the first time information, and second time information is obtained.
Wherein the second time information comprises a second execution time set and a second execution time initial value.
In some implementations, before adjusting the execution times in the second execution time set according to the time adjustment ratio and the execution times in the first execution time set, the method further includes: and determining a second execution time initial value according to the first execution time initial value and a preset weight coefficient.
For example, if the preset weight coefficient is set to K, the initial value Y of the second execution time of the virtual machine is set0=X0K, where K may be any positive real number, e.g., K equals 1, 0.5, etc.
Further, each execution time in the second execution time set of the virtual machine is Y1=Y0+T、Y2=Y1+T、……、YM=YM-1And + T, wherein T is a time adjustment step size for adjusting the second execution time, which is determined according to the time adjustment information and the first time information.
Wherein, the first difference values between two adjacent first execution times in the first execution time set are the same; second differences between two adjacent second execution times in the second execution time set are the same, and the first differences and the second differences are different.
For example, the first difference is T, the second difference is T, and T are two different values, so that the second time information of the virtual machine can be adjusted in a wider range.
In a specific implementation, T and T may also be two same values, so as to simplify complexity of adjusting the execution time of the virtual machine, accelerate obtaining of each second execution time in the second execution time set, and facilitate further processing by the virtual machine.
In this embodiment, the execution time in the first execution time set is determined according to the first execution time initial value and the timing period of the physical machine, so as to obtain the specific execution time of the physical machine, and then the execution time of the virtual machine is adjusted according to the execution time in the first execution time set and the time adjustment information determined according to the service adjustment information, so as to obtain the second time information, so as to ensure that the service is normally performed and the processing speed of the service is accelerated by adjusting the time of the virtual machine to meet the requirement of the service adjustment information without consuming hardware device resources.
In some implementations, the service adjustment information includes an original operation period and a target operation period of the service data, and the time adjustment information includes a time adjustment ratio; determining time adjustment information according to the service adjustment information, including: and determining a time adjustment proportion according to the original operation period and the target operation period.
The original operation period and the target operation period may be the same or different. When the original operation period is the same as the target operation period, the time adjustment proportion is 1, namely, the representation does not need to adjust the time of the virtual machine. When the original operation period and the target operation period are different, the time adjustment ratio can be determined by the ratio between the original operation period and the target operation period.
Through different time adjustment proportions, specific requirements of service data can be made clear, the virtual machine can meet the requirements of the service data, if the time adjustment of the virtual machine is accelerated according to the time adjustment proportions, the virtual machine can conveniently execute preset instructions in the virtual machine according to second time information in a follow-up mode, and the processing efficiency of the virtual machine is improved. If the time of the virtual machine is adjusted slowly according to the time adjustment proportion, the problems existing in the preset instruction can be found, and the problem finding and processing efficiency is improved.
In some implementations, adjusting the time of the virtual machine based on the time adjustment information and the first time information, obtaining the second time information includes: adjusting the execution time in the second execution time set according to the time adjustment proportion and the execution time in the first execution time set; and determining second time information according to the execution time in the adjusted second execution time set.
The execution time in the second execution time set is sequentially adjusted through the time adjustment proportion, so that the execution time in the second execution time set and the execution time in the first execution time set can be proportionally adjusted, the second time information of the virtual machine is conveniently determined, and the execution time adjustment efficiency of the virtual machine is improved.
In some implementations, adjusting the execution times in the second set of execution times according to the time adjustment ratio and the execution times in the first set of execution times includes: and expanding the execution time in the first execution time set according to the time adjustment proportion to obtain the execution time in the second execution time set.
For example, if the time adjustment ratio is greater than 1 (e.g., 5), the representation needs to perform expansion adjustment on the time of the virtual machine, and the execution times in the second execution time set are obtained.
The execution time in the first execution time set is expanded through the time adjustment proportion, the execution speed of the virtual machine can be slowed down, the problem existing in the preset instruction in the virtual machine can be found, and the problem solving efficiency is improved.
In some implementations, adjusting the execution times in the second set of execution times according to the time adjustment ratio and the execution times in the first set of execution times includes: and reducing the execution time in the first execution time set according to the time adjustment proportion to obtain the execution time in the second execution time set.
For example, if the time adjustment ratio is smaller than 1 and larger than 0 (e.g., 0.5), the characterization requires reducing the time of the virtual machine, and obtaining the execution time in the second execution time set.
By reducing the execution time in the first execution time set according to the time adjustment proportion, the processing speed of the virtual machine can be increased, and the problems (for example, whether the attack of the botnet virus is received or not) existing in the preset instruction can be quickly exposed. If the virtual machine is attacked by the botnet virus, the botnet virus can not be hidden any more by shortening the execution period, the running speed of the botnet virus is increased, the virus is rapidly processed in a preset antivirus mode, and the safety of equipment is ensured.
A second aspect of the present application provides an execution time adjustment apparatus. Fig. 3 is a block diagram showing components of the execution time adjustment apparatus in the embodiment of the present application.
As shown in fig. 3, the execution time adjustment device includes: an obtaining module 301, configured to obtain first time information of a physical machine; a determining module 302, configured to determine time adjustment information according to the service adjustment information, where the service adjustment information is information used to instruct a virtual machine corresponding to a physical machine to adjust a running period of service data; the adjusting module 303 is configured to adjust the execution time of the virtual machine based on the time adjustment information and the first time information, and obtain second time information.
In some implementations, the service adjustment information includes an original operation period and a target operation period of the service data, and the time adjustment information includes a time adjustment ratio; the determination module 302 includes: and the proportion adjusting submodule is used for determining the time adjusting proportion according to the original operation period and the target operation period.
In this embodiment, the determining module determines the time adjustment information according to the service adjustment information, where the service adjustment information is used to instruct the virtual machine corresponding to the physical machine to adjust the operation period of the service data, and the time adjustment information can be ensured to meet the requirement of the service adjustment information; and adjusting the execution time of the virtual machine by using an adjusting module based on the time adjusting information and the first time information to obtain second time information, and ensuring that the second time information of the virtual machine meets the requirement of service adjusting information by adjusting the second time information of the virtual machine under the condition of not consuming hardware equipment resources, so that the virtual machine can execute a preset instruction according to the second time information, and the processed execution result can be ensured to be optimized. And the virtual machine executes the preset instruction according to the second time information, so that the botnet virus can be prevented, discovery of the botnet virus is accelerated, the virus is processed in time, and the safety of equipment is improved.
It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present application, a unit that is not so closely related to solving the technical problem proposed by the present application is not introduced in the present embodiment, but it does not indicate that no other unit exists in the present embodiment.
Fig. 4 shows a block diagram of the components of the time adjustment system in the embodiment of the present application. As shown in fig. 4, the time adjustment system includes: a physical machine 401, a virtual machine 402 corresponding to the physical machine 401, and an execution time adjustment device 403.
The physical machine 401 includes a physical computer, the physical machine 401 provides a hardware environment for the virtual machine 402, and the physical machine 401 may also become a "host" or a "host". The execution time adjustment device 403 may be provided inside the physical machine 401 or outside the physical machine 401 to facilitate adjustment of the execution time of the virtual machine 402.
Specifically, fig. 5 shows a flowchart of a working method of the time adjustment system in the embodiment of the present application. As shown in fig. 5, the method specifically includes the following steps.
In step S501, the physical device 401 transmits the first time information to the execution time adjustment device 403.
The first time information is time information generated by the physical machine 401 in real time, and the first time information includes a first execution time set and a first execution time initial value, the first execution time set includes a plurality of first execution times, and each first execution time is used for executing a hardware execution instruction in the physical machine 401. And, a first difference between two adjacent first execution times in the first set of execution times is the same. The first initial execution time value is the initial execution time after the physical machine 401 is started, and the first initial execution time value may be a time initial value determined by the positioning system or a time initial value set manually.
In step S502, after the execution time adjustment device 403 obtains the first time information, the time adjustment ratio is determined by combining the service adjustment information (for example, adjustment information such as the original operation period and the target operation period of the service data).
The time adjustment ratio is a ratio for adjusting the execution time of the virtual machine without consuming hardware resources. For example, the time adjustment ratio may be 0.5, 0.8, 5, or 10, etc. to represent the compression or expansion of the execution time of the virtual machine.
In step S503, the execution time adjusting device 403 determines that the execution time of the virtual machine 403 needs to be adjusted according to the time adjustment ratio and the execution time in the first execution time set, so as to obtain the second time information.
Wherein the second time information comprises a second execution time set and a second execution time initial value. For example, the first execution time initial value of the physical machine 401 is set to X0If the adjustment time step of the physical machine 401 is t, the execution times in the first execution time set of the physical machine 401 are X1=X0+t、X2=X1+t、……、XN=XN-1+ t, wherein N is an integer greater than or equal to 1.
By adjusting the time adjustment ratio Δ t and the time step to t, each second execution time in the second set of execution times of the virtual machine 402 corresponding to the physical machine 410 can be calculated and obtained. For example, the time adjustment step size T ═ T × Δ T of the virtual machine 402. If the initial value of the second execution time of the virtual machine 402 is Y0Then virtual machineEach execution time in the second set of execution times of 402 is Y1=Y0+T、Y2=Y1+T、……、YM=YM-1+ T, wherein M is an integer greater than or equal to 1.
It should be noted that the adjustment time step t of the physical machine 401 may also be a timing cycle of the physical machine 401, and the second time information of the virtual machine 402 is accelerated or decelerated by periodically obtaining the first execution time set of the physical machine 401 and then periodically updating the second execution time set of the virtual machine 402.
Wherein the initial value of the second execution time of the virtual machine 402 is Y0May be X according to the first execution time initial value of the physical machine 4010And an initial value of the execution time determined by a preset weight coefficient (e.g., the preset weight coefficient is any positive real number) to facilitate subsequent calculation of a second execution time of the virtual machine 402.
For example, the time adjustment ratio is obtained by periodically acquiring the first time information of the physical machine 401 and increasing or decreasing the first time information. Wherein, if increase first time information through time adjustment proportion, the accessible makes the instruction of predetermineeing on the virtual machine carry out in advance to accelerate the discovery to the botnet virus, after discovering the botnet virus, can handle this botnet virus rapidly, avoid causing the injury to physical machine 401 after the botnet virus outbreak, guarantee physical machine 401's security.
If the first time information is reduced through the time adjustment proportion, the preset instruction on the virtual machine can be executed after delay, and the problem existing in the preset instruction can be found favorably by slowing down the execution period of the preset instruction.
In step S504, the execution time adjustment device 403 sends the second time information to the virtual machine 402.
In step S505, the virtual machine 402 executes a preset instruction according to the acquired second time information, so as to complete a task on the virtual machine.
For example, a preset instruction (e.g., a preset instruction for executing a certain service requirement) is executed according to the second time information by releasing a Central Processing Unit (CPU) resource and suspending an Input/Output (I/O) resource.
It should be noted that, in the above execution method, the execution logic of the preset instruction remains unchanged, and the execution adjusts the execution period of the preset instruction according to the second time information, so as to expose the problem existing in the preset instruction and improve the security of the device.
Fig. 6 is a schematic diagram illustrating resource consumption before adjusting execution time of a virtual machine in the embodiment of the present application. As shown in fig. 6, when the time of the virtual machine 402 is not adjusted by using the execution time adjustment method for the virtual machine, the execution cycle of the virtual machine 402 is in units of days, which greatly wastes time resources and cannot quickly determine the problem of the preset instruction in the virtual machine.
Fig. 7 is a schematic diagram illustrating resource consumption after adjusting the execution time of the virtual machine in the embodiment of the present application. As shown in fig. 7, after the time of the virtual machine 402 is adjusted by using the execution time adjustment method for the virtual machine, the execution cycle of the virtual machine 402 is reduced to be in units of hours, which greatly accelerates the processing speed of the preset instruction and can quickly expose the problem existing in the preset instruction (for example, whether the preset instruction is attacked by botnet virus). If the current virtual machine 402 is attacked by the botnet virus, the execution period is shortened, so that the botnet virus is not hidden any more, the running speed of the botnet virus is increased, the virus is rapidly processed in a preset processing mode (for example, a preset antivirus mode), and the safety of the device is ensured.
It should be noted that, as shown in fig. 6 and 7, in the process of compressing time, it is based on shortening the waiting time of sleep, wait, etc., so as to speed up the running time process of the virtual machine, without affecting the actual resource consumption of the CPU and the memory, and improve the processing efficiency of the virtual machine.
In this embodiment, the time adjustment information is determined according to the service adjustment information, where the service adjustment information is used to instruct the virtual machine corresponding to the physical machine to adjust the operation period of the service data, so that it can be ensured that the time adjustment information can meet the requirement of the service adjustment information, and the idle waiting time can be compressed without consuming hardware resources, so as to improve the processing performance of the virtual machine, accelerate the detection of botnet viruses, and improve the security of the device.
It is to be understood that the above embodiments are merely exemplary embodiments that are employed to illustrate the principles of the present application, and that the present application is not limited thereto. It will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the application, and these changes and modifications are to be considered as the scope of the application.

Claims (10)

1. A method for adjusting execution time of a virtual machine, the method comprising:
acquiring first time information of a physical machine;
determining time adjustment information according to service adjustment information, wherein the service adjustment information is used for indicating a virtual machine corresponding to the physical machine to adjust the operation cycle of service data;
and adjusting the execution time of the virtual machine based on the time adjustment information and the first time information to obtain second time information.
2. The method of claim 1, wherein the service adjustment information includes an original operation period and a target operation period of the service data, and the time adjustment information includes a time adjustment ratio;
the determining the time adjustment information according to the service adjustment information includes:
and determining the time adjustment proportion according to the original operation period and the target operation period.
3. The method of claim 2, wherein the first time information comprises a first set of execution times and the second time information comprises a second set of execution times;
adjusting the execution time of the virtual machine based on the time adjustment information and the first time information to obtain second time information, including:
adjusting the execution time in the second execution time set according to the time adjustment proportion and the execution time in the first execution time set;
and determining the second time information according to the adjusted execution time in the second execution time set.
4. The method of claim 3, wherein said adjusting execution times in said second set of execution times in accordance with said time adjustment ratio and execution times in said first set of execution times comprises:
and expanding the execution time in the first execution time set according to the time adjustment proportion to obtain the execution time in the second execution time set.
5. The method of claim 3, wherein said adjusting execution times in said second set of execution times in accordance with said time adjustment ratio and execution times in said first set of execution times comprises:
and reducing the execution time in the first execution time set according to the time adjustment proportion to obtain the execution time in the second execution time set.
6. The method according to any of claims 3 to 5, wherein a first difference between two adjacent first execution times in the first set of execution times is the same; second difference values between two adjacent second execution times in the second execution time set are the same, and the first difference values and the second difference values are different.
7. The method of claim 3, wherein the first time information further comprises a first execution time initial value;
before the adjusting the execution time in the second execution time set according to the time adjustment proportion and the execution time in the first execution time set, the method further includes:
and determining the execution time in the first execution time set according to the first execution time initial value and the timing period of the physical machine.
8. The method of claim 7, wherein the second time information further comprises a second execution time initial value;
before the adjusting the execution time in the second execution time set according to the time adjustment proportion and the execution time in the first execution time set, the method further includes:
and determining the second execution time initial value according to the first execution time initial value and a preset weight coefficient.
9. An execution time adjustment apparatus, comprising:
the acquisition module is used for acquiring first time information of the physical machine;
the determining module is used for determining time adjustment information according to service adjustment information, wherein the service adjustment information is information used for indicating a virtual machine corresponding to the physical machine to adjust the operation cycle of service data;
and the adjusting module is used for adjusting the execution time of the virtual machine based on the time adjusting information and the first time information to obtain second time information.
10. The apparatus of claim 9, wherein the service adjustment information comprises an original operation period and a target operation period of the service data, and the time adjustment information comprises a time adjustment ratio;
the determining module comprises:
and the proportion adjusting submodule is used for determining the time adjusting proportion according to the original operation period and the target operation period.
CN202011643636.XA 2020-12-31 2020-12-31 Method and device for adjusting execution time of virtual machine Pending CN112667999A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011643636.XA CN112667999A (en) 2020-12-31 2020-12-31 Method and device for adjusting execution time of virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011643636.XA CN112667999A (en) 2020-12-31 2020-12-31 Method and device for adjusting execution time of virtual machine

Publications (1)

Publication Number Publication Date
CN112667999A true CN112667999A (en) 2021-04-16

Family

ID=75412354

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011643636.XA Pending CN112667999A (en) 2020-12-31 2020-12-31 Method and device for adjusting execution time of virtual machine

Country Status (1)

Country Link
CN (1) CN112667999A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488098A (en) * 2009-02-13 2009-07-22 华中科技大学 Multi-core computing resource management system based on virtual computing technology
CN103729254A (en) * 2013-12-31 2014-04-16 国网山东省电力公司 Virtual server Virtual CPU resource monitoring and dynamic allocation method
CN104011685A (en) * 2012-12-26 2014-08-27 华为技术有限公司 Resource management method of virtual machine system, virtual machine system, and apparatus
CN104301404A (en) * 2014-09-29 2015-01-21 华为技术有限公司 Method and device for regulating resources of service system based on virtual machines
US20150309832A1 (en) * 2014-03-24 2015-10-29 Huawei Technologies Co., Ltd. Isolation Method for Management Virtual Machine and Apparatus
CN105357038A (en) * 2015-10-26 2016-02-24 北京百度网讯科技有限公司 Method and system for monitoring virtual machine cluster
CN107463476A (en) * 2016-06-02 2017-12-12 中兴通讯股份有限公司 The acquisition methods and device of information
CN107544619A (en) * 2017-06-27 2018-01-05 新华三云计算技术有限公司 Method for synchronizing time and device
CN109284173A (en) * 2018-09-21 2019-01-29 南京中高知识产权股份有限公司 A kind of Intelligent management device for virtual machine business migration
CN109412841A (en) * 2018-09-30 2019-03-01 北京金山云网络技术有限公司 Method of adjustment, device and the cloud platform of resources of virtual machine
CN111176792A (en) * 2019-12-31 2020-05-19 华为技术有限公司 Resource scheduling method, device and related equipment
CN116991546A (en) * 2023-09-28 2023-11-03 杭州优云科技有限公司 Cross-platform storage heat migration method and device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488098A (en) * 2009-02-13 2009-07-22 华中科技大学 Multi-core computing resource management system based on virtual computing technology
CN104011685A (en) * 2012-12-26 2014-08-27 华为技术有限公司 Resource management method of virtual machine system, virtual machine system, and apparatus
CN103729254A (en) * 2013-12-31 2014-04-16 国网山东省电力公司 Virtual server Virtual CPU resource monitoring and dynamic allocation method
US20150309832A1 (en) * 2014-03-24 2015-10-29 Huawei Technologies Co., Ltd. Isolation Method for Management Virtual Machine and Apparatus
CN104301404A (en) * 2014-09-29 2015-01-21 华为技术有限公司 Method and device for regulating resources of service system based on virtual machines
CN105357038A (en) * 2015-10-26 2016-02-24 北京百度网讯科技有限公司 Method and system for monitoring virtual machine cluster
CN107463476A (en) * 2016-06-02 2017-12-12 中兴通讯股份有限公司 The acquisition methods and device of information
CN107544619A (en) * 2017-06-27 2018-01-05 新华三云计算技术有限公司 Method for synchronizing time and device
CN109284173A (en) * 2018-09-21 2019-01-29 南京中高知识产权股份有限公司 A kind of Intelligent management device for virtual machine business migration
CN109412841A (en) * 2018-09-30 2019-03-01 北京金山云网络技术有限公司 Method of adjustment, device and the cloud platform of resources of virtual machine
CN111176792A (en) * 2019-12-31 2020-05-19 华为技术有限公司 Resource scheduling method, device and related equipment
CN116991546A (en) * 2023-09-28 2023-11-03 杭州优云科技有限公司 Cross-platform storage heat migration method and device

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
HUIHONG HE等: "An SLA-Driven Cache Optimization Approach for Multi-tenant Application on PaaS", 《2014 IEEE 38TH ANNUAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE》, 22 September 2014 (2014-09-22), pages 139 - 148 *
SRZYHEAD: "深入理解Java虚拟机 (11-运行期优化)", Retrieved from the Internet <URL:https://srzyhead.github.io> *
王晓静: "I/O虚拟化的性能隔离和优化", 《中国博士学位论文全文数据库》, 31 July 2013 (2013-07-31), pages 137 - 1 *
赵卓峰等: "面向交通感知数据处理业务的虚拟机调度系统", 《重庆邮电大学学报(自然科学版)》, vol. 26, no. 06, 15 December 2014 (2014-12-15), pages 737 - 744 *
鲁明明: "基于SOA的交通信息服务系统的研究与实现", 《中国优秀硕士学位论文全文数据库》, 31 October 2016 (2016-10-31), pages 138 - 193 *

Similar Documents

Publication Publication Date Title
JP5758995B2 (en) System, method and computer-readable storage medium for sharing analysis results between virtual machines
US9256464B2 (en) Method and apparatus to replicate stateful virtual machines between clouds
EP3242440A1 (en) Fault tolerant method, apparatus and system for virtual machine
US20070168525A1 (en) Method for improved virtual adapter performance using multiple virtual interrupts
US20190007369A1 (en) Assigning ip addresses and configuration parameters in hyper-converged infrastructure
US10824469B2 (en) Reordering avoidance for flows during transition between slow-path handling and fast-path handling
JP6306265B2 (en) Malware detection method and malware detection device
EP3376424B1 (en) Scanning files using antivirus software
US10942762B2 (en) Launch web browser applications in microservice-based containers
US10291730B1 (en) Throttling push notifications using predictive workload modeling
US8312449B2 (en) Viral installation of operating systems in a network
EP3577559A1 (en) Completion-side client throttling
RU2599945C2 (en) System and method for database augmentation with objects antivirus inspection on a plurality of virtual machines
CN112929424B (en) Gateway load balancing method, device, equipment and storage medium
CN112667999A (en) Method and device for adjusting execution time of virtual machine
CN110389827B (en) Method, apparatus and computer program product for optimization in a distributed system
US10402234B2 (en) Fine-grain synchronization in data-parallel jobs
US20220405104A1 (en) Cross platform and platform agnostic accelerator remoting service
CN115756740A (en) Container virtual machine resource management method and device and electronic equipment
KR101674324B1 (en) Task scheduling device and method for real-time control applications
US11899793B2 (en) Information processing apparatus, control method, and program
CN107317880B (en) Method and device for realizing load balance
CN114780501A (en) Data processing method, electronic device and computer program product
US20240104195A1 (en) Apparatus and method for updating internet-based malware detection engine using scaling control of virtual machine
KR20240044034A (en) Apparatus and Method for Updating Internet-based Malware Detection Engine using Scaling Control of Virtual Machine

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