- vSphere High Performance Cookbook(Second Edition)
- Kevin Elder Christopher Kusek Prasenjit Sarkar
- 210字
- 2021-07-02 20:59:53
How it works…
So in the case of an SMP VM, if it demands high CPU resources, it may happen that either the application is single threaded, or the guest operating system is configured with uniprocessor HAL.
Many applications are written with only a single thread of control. These applications cannot take advantage of more than one processor core.
In order for a VM to take advantage of multiple vCPUs, the guest operating system running on the VM must be able to recognize and use multiple processor cores. If the VM is doing all of its work on vCPU0, the guest operating system might be configured with a kernel or HAL that can recognize only a single processor core.
In the preceding graph, the OS is sharing the load of the single-threaded application between both the available vCPUs.
You have two possible approaches to solve performance problems related to guest CPU saturation:
- Increase the CPU resources provided to the application
- Increase the efficiency with which the VM uses CPU resources
Adding CPU resources is often the easiest choice, particularly in a virtualized environment. If a VM continues to experience CPU saturation even after adding CPU resources, the tuning and behavior of the application and operating system should be investigated.
- Vue.js設(shè)計(jì)與實(shí)現(xiàn)
- Spring技術(shù)內(nèi)幕:深入解析Spring架構(gòu)與設(shè)計(jì)
- 數(shù)據(jù)庫系統(tǒng)原理及MySQL應(yīng)用教程
- Magento 2 Development Cookbook
- Mastering Python High Performance
- PhoneGap Mobile Application Development Cookbook
- Gradle for Android
- Visual C#.NET Web應(yīng)用程序設(shè)計(jì)
- Machine Learning With Go
- 并行編程方法與優(yōu)化實(shí)踐
- 從程序員角度學(xué)習(xí)數(shù)據(jù)庫技術(shù)(藍(lán)橋杯軟件大賽培訓(xùn)教材-Java方向)
- 從Excel到Python數(shù)據(jù)分析:Pandas、xlwings、openpyxl、Matplotlib的交互與應(yīng)用
- Java Web從入門到精通(第2版)
- Mastering OAuth 2.0
- Solr權(quán)威指南(下卷)