CPU (Central Processing Unit) scheduling method and device in cloud host system
A scheduling method and cloud host technology, applied in the field of CPU scheduling, can solve problems such as the inability to use the host machine
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0021] figure 1 It is a flow chart of a CPU scheduling method in a cloud host system provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where the CPU is scheduled according to the quality of service level. The method can be scheduled by the CPU in the cloud host system device, which may be implemented by software and / or hardware. The method specifically includes the following steps:
[0022] Step 110, setting the CPU priorities of the cloud host processes in the cloud host system to the same value.
[0023] Wherein, the cloud host system refers to multiple cloud hosts installed on one host machine.
[0024] In common server operating systems, the nice value of a process is often used to indicate the CPU priority of the process. The higher the priority, the nice value is at the end of the month; the lower the priority, the higher the nice value. According to the nice value, the length of CPU time that a process can occupy for ea...
Embodiment 2
[0035] figure 2 It is a flowchart of a CPU scheduling method in a cloud host system provided by Embodiment 2 of the present invention. This embodiment is optimized on the basis of Embodiment 1. The method specifically includes the following steps:
[0036] Step 210, setting the CPU scheduling policy of the cloud host process as time slice round-robin scheduling.
[0037] Among them, time slice round-robin scheduling is a real-time scheduling strategy for processes.
[0038] By setting the CPU scheduling policy of all cloud host processes to time slice round-robin scheduling, it is ensured that the time length of the CPU used by the cloud host process in one scheduling is the length of the time slice.
[0039] In the time slice round-robin scheduling mode, when the time slice of a process is used up, the system will re-allocate the time slice for the process and place it at the end of the ready queue. Putting it at the end of the queue ensures fair scheduling of all tasks wi...
Embodiment 3
[0053] image 3 It is a flowchart of a CPU scheduling method in a cloud host system provided by Embodiment 3 of the present invention. This embodiment is a preferred example based on the above embodiments. The method specifically includes the following steps:
[0054] Step 310, setting the scheduling policy of each cloud host process in the physical device to time slice round-robin scheduling.
[0055] Wherein, the physical device is the above-mentioned host machine.
[0056] Step 320, setting the CPU priorities of all cloud host processes to the same value.
[0057] Step 330, acquiring the CPU load information of the physical device every preset time interval.
[0058] Step 340 , judging whether the CPU load information reaches a critical value, if yes, execute step 350 , if not, return to execute step 330 .
[0059] Step 350, according to the preset QOS level of each cloud host, gradually increase the CPU priority of the corresponding cloud host process, or gradually decr...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 