SlideShare a Scribd company logo
Done by
Anitha Devi S
Optimizing CPU Resources
Optimizing CPU Resources
 Modern CPUs are equipped with multiple cores per CPU
and hyper-threading features. A multi-core CPU is an
integrated circuit to which two or more processing units
have been attached for enhanced performance and more
efficient, simultaneous processing of multiple processes.
Hyper-threading makes a physical CPU appear as two or
more CPUs.
 A conventional Operating System schedules a
process or thread on a CPU, while a hypervisor
schedules virtual CPUs of virtual machines on the
physical machines.
 A hypervisor supports and optimizes the CPU
resources using modern CPU features such as
multi-core and hyper-threading. They also support
CPU load balancing, which is discussed later.
Multicore CPU’s
 Multi-core CPUs provide many advantages to a
hypervisor that performs multitasking of virtual machines.
A dual-core CPU, for example, can provide almost double
the performance of a single-core CPU by allowing two
virtual CPUs to execute at the same time. To maximize
the overall utilization and performance, a hypervisor
scheduler optimizes the placement of virtual CPUs onto
different sockets.


Hyper-threading
 Hyper-threading makes a physical CPU appear as two or
more Logical CPUs , allowing the operating system to
schedule two threads or processes simultaneously. The
two threads cannot be executed at the same time
because the two logical CPUs share a single set of
physical resources.
 When a hypervisor runs on a hyper-threading enabled
CPU, it provides improved performance and utilization.

LOAD BALANCING
 When a hypervisor is running on multi-processor and
hyper-threading-enabled compute systems, balancing the
load across CPUs is critical to the performance. In this
environment, load balancing is achieved by migrating a
thread from one logical CPU (over utilized) to another
(under utilized) to keep the load balanced.
optimizing Memory Resources
 Hypervisor allows configuring more memory to the virtual
machines than what is physically available. This is known
as overcommitment of memory. Memory overcommitment
allows the hypervisor to use memory reclamation
techniques to take the inactive or unused memory away
from the idle virtual machines and give it to other virtual
machines that will actively use it.

 In order to effectively support memory overcommitment,
the hypervisor must provide efficient physical memory
reclamation techniques. A hypervisor supports three
techniques to reclaim memory: transparent page sharing,
ballooning, and memory swapping.

Transparent Page Sharing
 When multiple virtual machines (VMs) are
running, some of them may have identical sets of
memory content. This presents opportunities to
share memory across virtual machines (as well
as to share within a single virtual machine). For
example, several virtual machines may run the
same guest operating system, have the same
applications, or contain the same user data. With
page sharing, the hypervisor can reclaim the
redundant copies and keep only one copy, which
is shared by multiple virtual machines in the
physical memory. As a result, the total amount of
physical memory consumed by virtual machines
is reduced and memory overcommitment
There has been recent academic research that leverages Transparent
Page Sharing (TPS) to gain unauthorized access to data under certain
highly controlled conditions and documents VMware’s precautionary
measure of restricting TPS to individual virtual machines by default in
upcoming ESXi releases. At this time, VMware believes that the published
information disclosure due to TPS between virtual machines is impractical
in a real world deployment.
Memory Balooning
 Ballooning is a completely different memory reclamation
technique, compared to page sharing. When a virtual
machine (VM) must yield memory, the best thing is to let
the guest operating system of the VM select the memory
pages to give up. The virtual machine knows which
pages have been least recently used and can be freed
up. Ballooning technique makes the guest operating
system free some of the virtual machine memory.

No memory shortage, balloon
remains uninflated
Virtual Machine (VM)
Virtual Machine (VM)
Virtual Machine (VM)
Memory shortage resolved,
deflates balloon
Driver relinquishes memory
Guest OS can use pages
Hypervisor grants memory
Memory shortage, balloon
inflates
Driver demands memory from
guest operating system (OS)
Guest OS forces page out
Hypervisor reclaims memory
Memory Swapping
 The hypervisor will swap the virtual machine’s (VM’s)
memory content to their swap files. When virtual
machines are powered on, the hypervisor creates and
assigns one swap file to each virtual machine. This swap
file stores the virtual machine’s memory contents. If a
physical machine cannot get enough memory through
page sharing and memory ballooning, the hypervisor
forcibly reclaims memory from virtual machines by
memory swapping. The hypervisor copies the VM page
contents to their corresponding swap files before
assigning the pages to the virtual machines that need
memory.

Optimizing cpu resources
Optimizing cpu resources

More Related Content

What's hot

Cache memory
Cache memoryCache memory
Cache memory
chauhankapil
 
Swap Administration in linux platform
Swap Administration in linux platformSwap Administration in linux platform
Swap Administration in linux platform
ashutosh123gupta
 
Locality of (p)reference
Locality of (p)referenceLocality of (p)reference
Locality of (p)referenceFromDual GmbH
 
Virtualization
VirtualizationVirtualization
Virtualization
YaqutAlsaad
 
virtual memory - Computer operating system
virtual memory - Computer operating systemvirtual memory - Computer operating system
virtual memory - Computer operating system
Electronics - Embedded System
 
Virtualization ppt1
Virtualization ppt1Virtualization ppt1
Virtualization ppt1
abdulrubbinmohsin
 
Usb flash driver
Usb flash driverUsb flash driver
Usb flash driver
Rahmad Sudirman
 
Linux Memory Management
Linux Memory ManagementLinux Memory Management
Linux Memory ManagementNi Zo-Ma
 
OS - Memory Management
OS - Memory ManagementOS - Memory Management
OS - Memory Managementvinay arora
 
Virtualization_TechTalk
Virtualization_TechTalkVirtualization_TechTalk
Virtualization_TechTalkArif k
 
Linux%20 memory%20management
Linux%20 memory%20managementLinux%20 memory%20management
Linux%20 memory%20management
Koteswaran Chandra Mohan
 
Docker 101
Docker 101Docker 101
Docker 101
Josué Neis
 
Virtualization and cloud Computing
Virtualization and cloud ComputingVirtualization and cloud Computing
Virtualization and cloud Computing
Rishikese MR
 
VMware Interview questions and answers
VMware Interview questions and answersVMware Interview questions and answers
VMware Interview questions and answers
vivaankumar
 
Multicore processor by Ankit Raj and Akash Prajapati
Multicore processor by Ankit Raj and Akash PrajapatiMulticore processor by Ankit Raj and Akash Prajapati
Multicore processor by Ankit Raj and Akash Prajapati
Ankit Raj
 
Multi core-architecture
Multi core-architectureMulti core-architecture
Multi core-architecturePiyush Mittal
 
Virtualization session 2
Virtualization session 2Virtualization session 2
Virtualization session 2
Navaneethan Naveen
 
CPU Caches
CPU CachesCPU Caches
CPU Caches
shinolajla
 
Linux boot process
Linux boot processLinux boot process
Linux boot process
brusnigin
 

What's hot (20)

Cache memory
Cache memoryCache memory
Cache memory
 
Swap Administration in linux platform
Swap Administration in linux platformSwap Administration in linux platform
Swap Administration in linux platform
 
Locality of (p)reference
Locality of (p)referenceLocality of (p)reference
Locality of (p)reference
 
PPT
PPTPPT
PPT
 
Virtualization
VirtualizationVirtualization
Virtualization
 
virtual memory - Computer operating system
virtual memory - Computer operating systemvirtual memory - Computer operating system
virtual memory - Computer operating system
 
Virtualization ppt1
Virtualization ppt1Virtualization ppt1
Virtualization ppt1
 
Usb flash driver
Usb flash driverUsb flash driver
Usb flash driver
 
Linux Memory Management
Linux Memory ManagementLinux Memory Management
Linux Memory Management
 
OS - Memory Management
OS - Memory ManagementOS - Memory Management
OS - Memory Management
 
Virtualization_TechTalk
Virtualization_TechTalkVirtualization_TechTalk
Virtualization_TechTalk
 
Linux%20 memory%20management
Linux%20 memory%20managementLinux%20 memory%20management
Linux%20 memory%20management
 
Docker 101
Docker 101Docker 101
Docker 101
 
Virtualization and cloud Computing
Virtualization and cloud ComputingVirtualization and cloud Computing
Virtualization and cloud Computing
 
VMware Interview questions and answers
VMware Interview questions and answersVMware Interview questions and answers
VMware Interview questions and answers
 
Multicore processor by Ankit Raj and Akash Prajapati
Multicore processor by Ankit Raj and Akash PrajapatiMulticore processor by Ankit Raj and Akash Prajapati
Multicore processor by Ankit Raj and Akash Prajapati
 
Multi core-architecture
Multi core-architectureMulti core-architecture
Multi core-architecture
 
Virtualization session 2
Virtualization session 2Virtualization session 2
Virtualization session 2
 
CPU Caches
CPU CachesCPU Caches
CPU Caches
 
Linux boot process
Linux boot processLinux boot process
Linux boot process
 

Similar to Optimizing cpu resources

Virtualize of IO Devices .docx
Virtualize of IO Devices .docxVirtualize of IO Devices .docx
Virtualize of IO Devices .docx
kumari36
 
VirutualMemory.docx
VirutualMemory.docxVirutualMemory.docx
VirutualMemory.docx
rangarajansoft69
 
Memory Virtualization In Cloud Computing.pdf
Memory Virtualization In Cloud Computing.pdfMemory Virtualization In Cloud Computing.pdf
Memory Virtualization In Cloud Computing.pdf
Host It Smart
 
Vm ware esx memory management
Vm ware esx memory managementVm ware esx memory management
Vm ware esx memory managementpurplesea
 
Esxi troubleshooting
Esxi troubleshootingEsxi troubleshooting
Esxi troubleshooting
Ovi Chis
 
Introduction to Cloud Computing
Introduction to Cloud ComputingIntroduction to Cloud Computing
Introduction to Cloud Computing
Bhuvanesh Hingal
 
Optimizing the memory management of a virtual machine monitor on a NUMA syste...
Optimizing the memory management of a virtual machine monitor on a NUMA syste...Optimizing the memory management of a virtual machine monitor on a NUMA syste...
Optimizing the memory management of a virtual machine monitor on a NUMA syste...
Farwa Ansari
 
Avoid resource contention with e4 c
Avoid resource contention with e4 cAvoid resource contention with e4 c
Avoid resource contention with e4 c
Eco4Cloud
 
Virtual Memory
Virtual MemoryVirtual Memory
Virtual Memory
vampugani
 
Esx mem-osdi02
Esx mem-osdi02Esx mem-osdi02
Esx mem-osdi02
35146895
 
Hyper-V vs. vSphere: Understanding the Differences
Hyper-V vs. vSphere: Understanding the DifferencesHyper-V vs. vSphere: Understanding the Differences
Hyper-V vs. vSphere: Understanding the Differences
SolarWinds
 
OS Presentation 2023.pptx
OS Presentation 2023.pptxOS Presentation 2023.pptx
OS Presentation 2023.pptx
ShayanAli68
 
How many total bits are required for a direct-mapped cache with 2048 .pdf
How many total bits are required for a direct-mapped cache with 2048 .pdfHow many total bits are required for a direct-mapped cache with 2048 .pdf
How many total bits are required for a direct-mapped cache with 2048 .pdf
Eye2eyeopticians10
 
Memory virtualisation
Memory virtualisationMemory virtualisation
Memory virtualisationKumar
 
CH14-Virtual Machines.pptx
CH14-Virtual Machines.pptxCH14-Virtual Machines.pptx
CH14-Virtual Machines.pptx
AmirZaman21
 
Intro to virtualization
Intro to virtualizationIntro to virtualization
Intro to virtualization
Kalpna Saharan
 
Fullandparavirtualization.ppt
Fullandparavirtualization.pptFullandparavirtualization.ppt
Fullandparavirtualization.ppt
ImXaib
 
Virtual Machine Migration & Hypervisors
Virtual Machine Migration & HypervisorsVirtual Machine Migration & Hypervisors
Virtual Machine Migration & Hypervisors
Arun Shukla
 
Hyperconvergence FAQ's
Hyperconvergence FAQ'sHyperconvergence FAQ's
Hyperconvergence FAQ's
Springpath
 

Similar to Optimizing cpu resources (20)

Virtualize of IO Devices .docx
Virtualize of IO Devices .docxVirtualize of IO Devices .docx
Virtualize of IO Devices .docx
 
VirutualMemory.docx
VirutualMemory.docxVirutualMemory.docx
VirutualMemory.docx
 
Memory Virtualization In Cloud Computing.pdf
Memory Virtualization In Cloud Computing.pdfMemory Virtualization In Cloud Computing.pdf
Memory Virtualization In Cloud Computing.pdf
 
Vm ware esx memory management
Vm ware esx memory managementVm ware esx memory management
Vm ware esx memory management
 
Esxi troubleshooting
Esxi troubleshootingEsxi troubleshooting
Esxi troubleshooting
 
Introduction to Cloud Computing
Introduction to Cloud ComputingIntroduction to Cloud Computing
Introduction to Cloud Computing
 
Optimizing the memory management of a virtual machine monitor on a NUMA syste...
Optimizing the memory management of a virtual machine monitor on a NUMA syste...Optimizing the memory management of a virtual machine monitor on a NUMA syste...
Optimizing the memory management of a virtual machine monitor on a NUMA syste...
 
Avoid resource contention with e4 c
Avoid resource contention with e4 cAvoid resource contention with e4 c
Avoid resource contention with e4 c
 
Virtual Memory
Virtual MemoryVirtual Memory
Virtual Memory
 
Esx mem-osdi02
Esx mem-osdi02Esx mem-osdi02
Esx mem-osdi02
 
Hyper-V vs. vSphere: Understanding the Differences
Hyper-V vs. vSphere: Understanding the DifferencesHyper-V vs. vSphere: Understanding the Differences
Hyper-V vs. vSphere: Understanding the Differences
 
OS Presentation 2023.pptx
OS Presentation 2023.pptxOS Presentation 2023.pptx
OS Presentation 2023.pptx
 
How many total bits are required for a direct-mapped cache with 2048 .pdf
How many total bits are required for a direct-mapped cache with 2048 .pdfHow many total bits are required for a direct-mapped cache with 2048 .pdf
How many total bits are required for a direct-mapped cache with 2048 .pdf
 
Memory virtualisation
Memory virtualisationMemory virtualisation
Memory virtualisation
 
CH14-Virtual Machines.pptx
CH14-Virtual Machines.pptxCH14-Virtual Machines.pptx
CH14-Virtual Machines.pptx
 
Intro to virtualization
Intro to virtualizationIntro to virtualization
Intro to virtualization
 
Fullandparavirtualization.ppt
Fullandparavirtualization.pptFullandparavirtualization.ppt
Fullandparavirtualization.ppt
 
Virtual Machine Migration & Hypervisors
Virtual Machine Migration & HypervisorsVirtual Machine Migration & Hypervisors
Virtual Machine Migration & Hypervisors
 
Hyperconvergence FAQ's
Hyperconvergence FAQ'sHyperconvergence FAQ's
Hyperconvergence FAQ's
 
Virtualization
VirtualizationVirtualization
Virtualization
 

Recently uploaded

一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
ssuser7dcef0
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
ChristineTorrepenida1
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 

Recently uploaded (20)

一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 

Optimizing cpu resources

  • 1. Done by Anitha Devi S Optimizing CPU Resources
  • 2. Optimizing CPU Resources  Modern CPUs are equipped with multiple cores per CPU and hyper-threading features. A multi-core CPU is an integrated circuit to which two or more processing units have been attached for enhanced performance and more efficient, simultaneous processing of multiple processes. Hyper-threading makes a physical CPU appear as two or more CPUs.
  • 3.  A conventional Operating System schedules a process or thread on a CPU, while a hypervisor schedules virtual CPUs of virtual machines on the physical machines.  A hypervisor supports and optimizes the CPU resources using modern CPU features such as multi-core and hyper-threading. They also support CPU load balancing, which is discussed later.
  • 4. Multicore CPU’s  Multi-core CPUs provide many advantages to a hypervisor that performs multitasking of virtual machines. A dual-core CPU, for example, can provide almost double the performance of a single-core CPU by allowing two virtual CPUs to execute at the same time. To maximize the overall utilization and performance, a hypervisor scheduler optimizes the placement of virtual CPUs onto different sockets.  
  • 5. Hyper-threading  Hyper-threading makes a physical CPU appear as two or more Logical CPUs , allowing the operating system to schedule two threads or processes simultaneously. The two threads cannot be executed at the same time because the two logical CPUs share a single set of physical resources.  When a hypervisor runs on a hyper-threading enabled CPU, it provides improved performance and utilization. 
  • 6. LOAD BALANCING  When a hypervisor is running on multi-processor and hyper-threading-enabled compute systems, balancing the load across CPUs is critical to the performance. In this environment, load balancing is achieved by migrating a thread from one logical CPU (over utilized) to another (under utilized) to keep the load balanced.
  • 7. optimizing Memory Resources  Hypervisor allows configuring more memory to the virtual machines than what is physically available. This is known as overcommitment of memory. Memory overcommitment allows the hypervisor to use memory reclamation techniques to take the inactive or unused memory away from the idle virtual machines and give it to other virtual machines that will actively use it. 
  • 8.  In order to effectively support memory overcommitment, the hypervisor must provide efficient physical memory reclamation techniques. A hypervisor supports three techniques to reclaim memory: transparent page sharing, ballooning, and memory swapping. 
  • 9. Transparent Page Sharing  When multiple virtual machines (VMs) are running, some of them may have identical sets of memory content. This presents opportunities to share memory across virtual machines (as well as to share within a single virtual machine). For example, several virtual machines may run the same guest operating system, have the same applications, or contain the same user data. With page sharing, the hypervisor can reclaim the redundant copies and keep only one copy, which is shared by multiple virtual machines in the physical memory. As a result, the total amount of physical memory consumed by virtual machines is reduced and memory overcommitment
  • 10. There has been recent academic research that leverages Transparent Page Sharing (TPS) to gain unauthorized access to data under certain highly controlled conditions and documents VMware’s precautionary measure of restricting TPS to individual virtual machines by default in upcoming ESXi releases. At this time, VMware believes that the published information disclosure due to TPS between virtual machines is impractical in a real world deployment.
  • 11. Memory Balooning  Ballooning is a completely different memory reclamation technique, compared to page sharing. When a virtual machine (VM) must yield memory, the best thing is to let the guest operating system of the VM select the memory pages to give up. The virtual machine knows which pages have been least recently used and can be freed up. Ballooning technique makes the guest operating system free some of the virtual machine memory. 
  • 12. No memory shortage, balloon remains uninflated Virtual Machine (VM) Virtual Machine (VM) Virtual Machine (VM) Memory shortage resolved, deflates balloon Driver relinquishes memory Guest OS can use pages Hypervisor grants memory Memory shortage, balloon inflates Driver demands memory from guest operating system (OS) Guest OS forces page out Hypervisor reclaims memory
  • 13. Memory Swapping  The hypervisor will swap the virtual machine’s (VM’s) memory content to their swap files. When virtual machines are powered on, the hypervisor creates and assigns one swap file to each virtual machine. This swap file stores the virtual machine’s memory contents. If a physical machine cannot get enough memory through page sharing and memory ballooning, the hypervisor forcibly reclaims memory from virtual machines by memory swapping. The hypervisor copies the VM page contents to their corresponding swap files before assigning the pages to the virtual machines that need memory. 