虛擬化的蓬勃發展,也令資源管理配置與系統優化的重要性受到注目,如何解決將資源正確的配給與利用是我們探討的議題。 本論文提出一個建於KVM (Kernel based Virtual Machine)全虛擬化架構下的動態調整運算資源的機制。此系統採用CPU hot-plug技術來達成不中斷情況下動態調整CPU數量,以提高運算效能,當執行完畢時即可回收CPU資源,以增加整體資源的利用度。由於使用者需求的不同,如果多個虛擬機不斷的嘗試取得資源,將會因互相競爭導致降低整體系統的效能。因此,我們採用靜態優先(static priority)調度的方式來解決。 我們證明了此方式可提高系統資源使用率與配合使用者需求,在同一台實體主機可以放入更多的虛擬機器的同時也能減少在實體主機數量上的需求以減少硬體之購置、維護成本。
With the rapid development of virtual¬ization, people pay attention to the significance of the resources management and the system optimization. How to solve the resource allocation and utilization problem will be discussed. In this work, we presents a dynamic adjustment mechanism for computing resources based on KVM (Kernel based Virtual Machine). When system is running, using hot-plug to adjust the number of CPU dynamically can get better performance. While the task is finished, it can decrease the number of CPU for better utilization rate of resources. Because of different demand from users, it will cause poor performance when several virtual machines request resources continuously. For this issue, we use static priority to solve. We prove this way can get better utilization rate of resources and match demand from users. Besides, it can be run more virtual machines in the same physical machines and reduce the cost of hardware purchased and maintenance.