SlideShare a Scribd company logo
1 of 15
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

Swap Administration in linux platform
Swap Administration in linux platformSwap Administration in linux platform
Swap Administration in linux platformashutosh123gupta
 
Locality of (p)reference
Locality of (p)referenceLocality of (p)reference
Locality of (p)referenceFromDual GmbH
 
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
 
Virtualization and cloud Computing
Virtualization and cloud ComputingVirtualization and cloud Computing
Virtualization and cloud ComputingRishikese MR
 
VMware Interview questions and answers
VMware Interview questions and answersVMware Interview questions and answers
VMware Interview questions and answersvivaankumar
 
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 PrajapatiAnkit Raj
 
Multi core-architecture
Multi core-architectureMulti core-architecture
Multi core-architecturePiyush Mittal
 
Linux boot process
Linux boot processLinux boot process
Linux boot processbrusnigin
 

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 .docxkumari36
 
Memory Virtualization In Cloud Computing.pdf
Memory Virtualization In Cloud Computing.pdfMemory Virtualization In Cloud Computing.pdf
Memory Virtualization In Cloud Computing.pdfHost 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 troubleshootingOvi Chis
 
Introduction to Cloud Computing
Introduction to Cloud ComputingIntroduction to Cloud Computing
Introduction to Cloud ComputingBhuvanesh 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 cEco4Cloud
 
Virtual Memory
Virtual MemoryVirtual Memory
Virtual Memoryvampugani
 
Esx mem-osdi02
Esx mem-osdi02Esx mem-osdi02
Esx mem-osdi0235146895
 
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 DifferencesSolarWinds
 
OS Presentation 2023.pptx
OS Presentation 2023.pptxOS Presentation 2023.pptx
OS Presentation 2023.pptxShayanAli68
 
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 .pdfEye2eyeopticians10
 
Memory virtualisation
Memory virtualisationMemory virtualisation
Memory virtualisationKumar
 
CH14-Virtual Machines.pptx
CH14-Virtual Machines.pptxCH14-Virtual Machines.pptx
CH14-Virtual Machines.pptxAmirZaman21
 
Intro to virtualization
Intro to virtualizationIntro to virtualization
Intro to virtualizationKalpna Saharan
 
Fullandparavirtualization.ppt
Fullandparavirtualization.pptFullandparavirtualization.ppt
Fullandparavirtualization.pptImXaib
 
Virtual Machine Migration & Hypervisors
Virtual Machine Migration & HypervisorsVirtual Machine Migration & Hypervisors
Virtual Machine Migration & HypervisorsArun Shukla
 
Hyperconvergence FAQ's
Hyperconvergence FAQ'sHyperconvergence FAQ's
Hyperconvergence FAQ'sSpringpath
 

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

Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 

Recently uploaded (20)

Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 

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. 