SlideShare a Scribd company logo
1 of 3
Download to read offline
www.expedient.com
CPU Ready and Virtual
Colocation:
The restaurant will probably have an
assortment of table sizes available with
2 seats being the most popular. For
larger parties, they will either have larger
tables or push together smaller tables to
accommodate the larger group.
The larger your party, the less opportunity
you will have for a seating area compared
to a party of 2. You will either have to wait
for a large table, or wait until enough small
tables in the same area are available. The
length of your wait will vary depending on
the other parties in the restaurant. CPU
scheduling works in much the same way
as restaurant seating.
On occasion, Expedient customers request large numbers of vCPUs be added to their virtual machines hosted
on Expedient’s Virtual Colocation platform. Most of these requests stem from a perception that more vCPUs will
automatically increase virtual machine performance or are the recommendation from a vendor that usually deals
with physical hardware installations. However, adding additional vCPUs to a virtual machine can actually have a
negative performance impact on the virtual machine.
Visualization
1
To help understand this scenario a bit better, let’s imagine going to eat at a
popular restaurant on a Saturday night. If it is a busy night, you are more than
likely going to be waiting for a table. You arrive to the restaurant and get
placed onto a waiting list for your table.
1
2
Seats
2
Seats
2
Seats
2
Seats
2
Seats
2
Seats
2
Seats
2
Seats
2
Seats
2
Seats
2
Seats
2
Seats
2
Seats
4
Seats
4
Seats
4
Seats
2
Seats
2
Seats
2
Seats
2
Seats
2
Seats
2
Seats
2
Seats
2
Seats
2
Seats
2
Seats
2
Seats
2
Seats
2
Seats
12
Seats
8
Seats
8
Seats
4
Seats
Host / Hostess
Waiting List
for Tables
The larger your party, the
less opportunity you will
have for a seating area
compared to a party of two.
Figure 1
CPU Ready
We can correlate a virtual CPU (vCPU) to each
person in a dinner party, and the dinner party to a
virtual machine. As each vCPU of a virtual machine
requests resources (table), it is placed into a queue
that is processed by the CPU Scheduler service
(host/hostess) on the ESXi host (restaurant).
Just as you wouldn’t want your party of 8 to be
separated between 4 different 2 person tables, the
CPU Scheduler has to schedule all of the vCPUs in
a virtual machine to run concurrently. The CPU
Scheduler’s job is to pair the vCPU to a physical
CPU core* (pCPU). The time that elapses between
the instruction being placed into the queue by
the vCPU and the instruction being executed by
the pCPU is called CPU Ready. As CPU Ready times
increase, the performance of the virtual machine
decreases.
Figure 2 shows the time slots that an 8 core ESXi
host has available to the CPU Scheduler.
In the 6 timeslot example in Figure 2, an instruction
from a virtual machine with a single vCPU can be
executed in any of the 48 available pCPU timeslots.
In comparison, an 8 vCPU virtual machine would
only have 6 opportunities to be executed since
all 8 pCPUs would need to be available at the
same time to process its instruction, even if some
of the vCPUs were idle. As the number of vCPUs
increase, the opportunities for execution decrease,
which increases the time the instruction is waiting
to be scheduled, thus increasing CPU Ready and
decreasing performance.
This is the reason that right-sizing your virtual
machines is so important. An oversized virtual
machine with too many vCPUs is similar to a party
of 4 going into a restaurant and asking for a table
that will seat 8 or 12. While this can be done, you
will be waiting longer for a larger table to become
available just to have empty seats doing absolutely
nothing.
2
As the number of vCPUs increase,
the opportunities for execution
decrease, which increases the
time the instruction is waiting
to be scheduled, thus increasing
CPU Ready and decreasing
performance.
2
*In this case, hyperthreading is ignored due to the fact that
the hypervisor attempts to avoid scheduling vCPUs from
the same virtual machine on threads of the same physical
CPU core.
Figure 2
The Expedient Virtual Colocation infrastructure is
provisioned to customers as dedicated resources. A
customer that subscribes to 24 units ofVirtual Colocation
is provided 24 GB of memory and 6 GHz of CPU. If a single
pCPU is capable of 3 GHz, that customer is essentially
provided 2 full pCPUs. However, this customer would
still be able to assign more than 2 vCPUs to a single
virtual machine. All 16 pCPUs would still be available for
scheduling, but no more than 6 GHz could be used at any
one time. If an 8 vCPU virtual machine were provisioned,
the maximum that each vCPU could run simultaneously
wouldbe25%. Inthisscenario,thevirtualmachinewould
have increased performance by assigning 2 vCPUs that
were able to run at 100% utilization. The performance
increase would come from more opportunities for 2
vCPUs to be scheduled versus 8 vCPUs being scheduled.
3
Recommendations
If possible, start with a single vCPU.
Monitor the CPU usage over time and if it is
consistently using over 80-90% of the vCPU,
then assign an additional vCPU. Repeat the
monitoring, adding additional vCPUs only as
required.
Scale applications out instead of up. If a
virtual machine is consuming all of the vCPUs
assigned, considering scaling the application
across multiple virtual machines if feasible.
There will be more scheduling opportunities
for 2x 2 vCPU virtual machines versus a single
4 vCPU virtual machine.
Only assign multiple vCPUs to virtual
machines hosting applications that run
multithreaded processes.
Limit the number of vCPUs to the number
of pCPUs of a single CPU socket. The CPU
Scheduler will perform faster if it only has to
schedule the cores across a single physical
CPU socket.
Virtual
Colocation &
CPU Limits
www.expedient.com
3
3GHz
0.75
GHz
6 GHz Total Used
3GHz
6 GHz Total
Used
8 vCPU with 6 GHz Limit
2 vCPU with 6 GHz
Limit
Figure 3

More Related Content

Recently uploaded

ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...FIDO Alliance
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfFIDO Alliance
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlPeter Udo Diehl
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekCzechDreamin
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...CzechDreamin
 
Buy Epson EcoTank L3210 Colour Printer Online.pptx
Buy Epson EcoTank L3210 Colour Printer Online.pptxBuy Epson EcoTank L3210 Colour Printer Online.pptx
Buy Epson EcoTank L3210 Colour Printer Online.pptxEasyPrinterHelp
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераMark Opanasiuk
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Julian Hyde
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoTAnalytics
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka DoktorováCzechDreamin
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1DianaGray10
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfFIDO Alliance
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomCzechDreamin
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2DianaGray10
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastUXDXConf
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxJennifer Lim
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FIDO Alliance
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxDavid Michel
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfFIDO Alliance
 

Recently uploaded (20)

ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
Buy Epson EcoTank L3210 Colour Printer Online.pptx
Buy Epson EcoTank L3210 Colour Printer Online.pptxBuy Epson EcoTank L3210 Colour Printer Online.pptx
Buy Epson EcoTank L3210 Colour Printer Online.pptx
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 

Featured

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Featured (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

Expedient White paper: CPU & Virtual Colocation

  • 1. www.expedient.com CPU Ready and Virtual Colocation: The restaurant will probably have an assortment of table sizes available with 2 seats being the most popular. For larger parties, they will either have larger tables or push together smaller tables to accommodate the larger group. The larger your party, the less opportunity you will have for a seating area compared to a party of 2. You will either have to wait for a large table, or wait until enough small tables in the same area are available. The length of your wait will vary depending on the other parties in the restaurant. CPU scheduling works in much the same way as restaurant seating. On occasion, Expedient customers request large numbers of vCPUs be added to their virtual machines hosted on Expedient’s Virtual Colocation platform. Most of these requests stem from a perception that more vCPUs will automatically increase virtual machine performance or are the recommendation from a vendor that usually deals with physical hardware installations. However, adding additional vCPUs to a virtual machine can actually have a negative performance impact on the virtual machine. Visualization 1 To help understand this scenario a bit better, let’s imagine going to eat at a popular restaurant on a Saturday night. If it is a busy night, you are more than likely going to be waiting for a table. You arrive to the restaurant and get placed onto a waiting list for your table. 1 2 Seats 2 Seats 2 Seats 2 Seats 2 Seats 2 Seats 2 Seats 2 Seats 2 Seats 2 Seats 2 Seats 2 Seats 2 Seats 4 Seats 4 Seats 4 Seats 2 Seats 2 Seats 2 Seats 2 Seats 2 Seats 2 Seats 2 Seats 2 Seats 2 Seats 2 Seats 2 Seats 2 Seats 2 Seats 12 Seats 8 Seats 8 Seats 4 Seats Host / Hostess Waiting List for Tables The larger your party, the less opportunity you will have for a seating area compared to a party of two. Figure 1
  • 2. CPU Ready We can correlate a virtual CPU (vCPU) to each person in a dinner party, and the dinner party to a virtual machine. As each vCPU of a virtual machine requests resources (table), it is placed into a queue that is processed by the CPU Scheduler service (host/hostess) on the ESXi host (restaurant). Just as you wouldn’t want your party of 8 to be separated between 4 different 2 person tables, the CPU Scheduler has to schedule all of the vCPUs in a virtual machine to run concurrently. The CPU Scheduler’s job is to pair the vCPU to a physical CPU core* (pCPU). The time that elapses between the instruction being placed into the queue by the vCPU and the instruction being executed by the pCPU is called CPU Ready. As CPU Ready times increase, the performance of the virtual machine decreases. Figure 2 shows the time slots that an 8 core ESXi host has available to the CPU Scheduler. In the 6 timeslot example in Figure 2, an instruction from a virtual machine with a single vCPU can be executed in any of the 48 available pCPU timeslots. In comparison, an 8 vCPU virtual machine would only have 6 opportunities to be executed since all 8 pCPUs would need to be available at the same time to process its instruction, even if some of the vCPUs were idle. As the number of vCPUs increase, the opportunities for execution decrease, which increases the time the instruction is waiting to be scheduled, thus increasing CPU Ready and decreasing performance. This is the reason that right-sizing your virtual machines is so important. An oversized virtual machine with too many vCPUs is similar to a party of 4 going into a restaurant and asking for a table that will seat 8 or 12. While this can be done, you will be waiting longer for a larger table to become available just to have empty seats doing absolutely nothing. 2 As the number of vCPUs increase, the opportunities for execution decrease, which increases the time the instruction is waiting to be scheduled, thus increasing CPU Ready and decreasing performance. 2 *In this case, hyperthreading is ignored due to the fact that the hypervisor attempts to avoid scheduling vCPUs from the same virtual machine on threads of the same physical CPU core. Figure 2
  • 3. The Expedient Virtual Colocation infrastructure is provisioned to customers as dedicated resources. A customer that subscribes to 24 units ofVirtual Colocation is provided 24 GB of memory and 6 GHz of CPU. If a single pCPU is capable of 3 GHz, that customer is essentially provided 2 full pCPUs. However, this customer would still be able to assign more than 2 vCPUs to a single virtual machine. All 16 pCPUs would still be available for scheduling, but no more than 6 GHz could be used at any one time. If an 8 vCPU virtual machine were provisioned, the maximum that each vCPU could run simultaneously wouldbe25%. Inthisscenario,thevirtualmachinewould have increased performance by assigning 2 vCPUs that were able to run at 100% utilization. The performance increase would come from more opportunities for 2 vCPUs to be scheduled versus 8 vCPUs being scheduled. 3 Recommendations If possible, start with a single vCPU. Monitor the CPU usage over time and if it is consistently using over 80-90% of the vCPU, then assign an additional vCPU. Repeat the monitoring, adding additional vCPUs only as required. Scale applications out instead of up. If a virtual machine is consuming all of the vCPUs assigned, considering scaling the application across multiple virtual machines if feasible. There will be more scheduling opportunities for 2x 2 vCPU virtual machines versus a single 4 vCPU virtual machine. Only assign multiple vCPUs to virtual machines hosting applications that run multithreaded processes. Limit the number of vCPUs to the number of pCPUs of a single CPU socket. The CPU Scheduler will perform faster if it only has to schedule the cores across a single physical CPU socket. Virtual Colocation & CPU Limits www.expedient.com 3 3GHz 0.75 GHz 6 GHz Total Used 3GHz 6 GHz Total Used 8 vCPU with 6 GHz Limit 2 vCPU with 6 GHz Limit Figure 3