SlideShare a Scribd company logo
1 of 10
Download to read offline
VMware vSphere Optimize and Scale [v5.5]
Custom Lab 12 – Diagnosing CPU performance issues
© Copyright 2014 – Global Knowledge Network Training Ltd.
Lab 12 Diagnosing CPU performance issues 2
Lab 12
Diagnosing CPU performance issues
Objective: Use a performance troubleshooting checklist to detect possible CPU performance problems
In this lab, you will perform the following tasks:
1. Configure advanced performance charts
2. Prepare the lab environment
3. Check for performance issues in a Resource Pool
4. Check for CPU saturation of an ESXi host
5. Check for CPU saturation within a guest Virtual Machine
6. Determine if high guest CPU load causes performance issues
Task 1: Configure advanced performance charts
You configure an advanced CPU performance chart for the VMware® ESXi™ host and another CPU performance chart for the test virtual machine.
Student A and student B should do this task independently.
1. In the browser window, click the vSphere Web Client tab.
2. In the Hosts and Clusters inventory tree, select the ESXi host.
3. In the middle pane, click the Monitor tab and click the Performance button.
4. Select the Advanced link and collapse the links panel by clicking the icon.
5. Click the chart View menu, select CPU and click the Chart Options link.
6. Configure and save the ESXi host CPU performance chart.
a. For Timespan, leave Real-time selected.
b. In the Select object for this chart panel, click the None button and select the ESXi host check box.
c. For the Chart Type, leave Line Graph selected.
d. In the Select counters for this chart panel, click the None button and select the Usage check box.
e. At the top of the Chart Options dialog box, click the Save Options As button, type Lab-12a in the Chart options name text box, and
click OK.
-CAUTION-
Save the chart options as instructed. If the chart resets to a default set of options, you can restore the chart by loading the saved
options using the Chart Options dialog box.
f. Click OK to close the Chart Options dialog box.
Lab 12 Diagnosing CPU performance issues 3
7. Verify that the chart View selection is Lab-12a.
8. In the Hosts and Clusters inventory tree, expand the CPU-HOG vApp and select any one of the Workload## virtual machines.
9. In the middle pane, click the Monitor tab and click the Performance button.
10. Select the Advanced link and collapse the links panel by clicking the icon.
11. Click the chart View button, select CPU and click the Chart Options link.
12. Configure and save the virtual machine CPU performance chart.
a. For Timespan, leave Real-time selected.
b. In the Select object for this chart panel, click the None button and select the Workload## check box.
c. For the Chart Type, leave Line Graph selected.
d. In Select counters for this chart panel, click the None button and select the Max Limited, Ready and Used check boxes.
e. At the top of the Chart Options dialog box, click the Save Options As button, type Lab-12b in the Chart options name text box, and
click OK.
f. Click OK to close the Chart Options dialog box.
13. Verify that the chart View selection is Lab-12b.
14. In the Hosts and Clusters inventory tree, select the Linux01 virtual machine.
15. In the middle pane, click the Monitor tab and click the Performance button.
16. Select the Advanced link and collapse the links panel by clicking the icon.
17. Click the chart View button, select CPU and click the Chart Options link.
18. Configure and save the virtual machine CPU performance chart.
a. For Timespan, leave Real-time selected.
b. In the Select object for this chart panel, click the None button and select the Linux01 check box.
c. For the Chart Type, leave Line Graph selected.
d. In Select counters for this chart panel, click the None button and select the Max Limited, Ready and Used check boxes.
e. At the top of the Chart Options dialog box, click the Save Options As button, type Lab-12c in the Chart options name text box, and
click OK.
f. Click OK to close the Chart Options dialog box.
19. Verify that the chart View selection is Lab-12c.
Lab 12 Diagnosing CPU performance issues 4
Task 2: Prepare the lab environment
In this task, you will stop the Linux01 virtual machine and adjust CPU-HOG vApp configuration. Student A and student B should do this task
independently.
1. Close all tabs to your virtual machine consoles.
2. Shutdown the Linux01 and any windows virtual machines that might be running, but leave the CPU-HOG vApp running.
3. Make sure your environment state resembles the following screenshot
4. Select your ESXi host and in the middle pane, select the Summary tab.
5. In the Hardware section, make a note of the maximum Mhz your ESXi host can provide, rounding the number down to the nearest thousand.
For example, if your host has 2 x CPUs running at 2.50 Ghz write down 5000. Max Mhz: _________________
6. Right click the CPU-HOG vApp and select Edit Settings.
7. Expand CPU resources and set the CPU Limit to HALF of the Mhz value that you recorded in step 5. For instance if you recorded 5000 Mhz,
set the Limit to 2500. Click OK.
8. Leave resxtop running in the PuTTY session to the vSphere Management Assistant.
9. Change the resxtop interval refresh rate to 20 seconds:
a. Switch to your PuTTY session that is running resxtop
b. Type s.
c. Type 20.
d. Press Enter.
Lab 12 Diagnosing CPU performance issues 5
Task 3: Check for performance issues within a resource pool
You examine advanced performance charts and resxtop CPU statistics to determine if a Resource Pool (in this case the CPU-HOG vApp) has CPU
performance issues.
Student A and student B should do this task independently.
1. Record the advanced performance chart statistics for the host
a. In the Hosts and Clusters inventory tree, select the ESXi host.
b. Verify that the chart View selection is Lab-12a and correct the selection if necessary.
Perform this verification step each time when switching between the various performance charts.
c. Scroll down to uncover the Performance Chart Legend counter value columns.
d. Record the column values for Usage.
 Latest (Usage) _________________
 Maximum (Usage) _________________
 Average (Usage) _________________
If the Average column is not displayed, resize one or more of the visible columns. The Average column is always the last column in
the Legend and appears when a column resize occurs.
2. Record the resxtop statistics.
a. Switch to the PuTTY (vSphere Management Assistant session) window.
b. In the section above the per-object statistics table, find PCPU USED (%)
c. Record the PCPU USED (%) AVG value. _________________
3. Record the advanced performance chart statistics for virtual machines within the resource pool
a. In the Hosts and Clusters inventory tree, expand the CPU-HOG vApp and select the same workload## virtual machines you used
earlier.
b. Verify that the chart View selection is Lab-12b and correct the selection if necessary.
c. Scroll down to uncover the Performance Chart Legend counter value columns.
d. Record the Latest column values for each metric.
 Max Limited _________________
 Ready _________________
 Used _________________
The Max Limited metric represents the amount of time that a virtual machine was ready to execute, but has not been scheduled for CPU
time because the VMkernel deliberately constrained it.
Lab 12 Diagnosing CPU performance issues 6
The values recorded above are the sum total of milliseconds observed over the chart refresh interval period (every 20 seconds). In order
to be of more use, they can be converted to a percentage value. For each value recorded above, use the following formula to convert
the summation into a percentage value and record the results below.
(summation_value / (chart_refresh_interval * 1000)) * 100
Note: The chart_refresh_interval depends on which type of chart you are currently viewing. For a list of all possible chart intervals see
http://kb.vmware.com/kb/2002181
 Max Limited (%) _________________
 Ready (%) _________________
 Used (%) _________________
4. Record the resxtop statistcs
a. Switch to the PuTTY (vSphere Management Assistant session) window.
b. Record the latest Used, Ready and Max-Limited values for the Workload VM you used in the previous step.
 %USED _________________
 %RDY _________________
 %MLMTD _________________
5. Use the gathered statistics to answer the questions.
Q1. Does the Latest CPU usage metric of the host show a value > 75%?
No, the Latest CPU usage metric will be at approximately 50%. At this time the host should not be CPU saturated because the CPU-HOG vApp
was restricted to approximately half of the clusters available CPU resources. Maximum and Average cannot be relied upon as they both will be
skewed by older stats. These two metrics would only become useful if the CPU issues had persisted for longer than 1 hour.
Q2. Do any of the workload virtual machines inside the resource pool (CPU-HOG vApp) have a Max Limited value higher than 0.00 or 0%?
Yes. All of the workload virtual machines will show quite a lot of “Max Limited” restrictions.
Q3. The Ready metric includes the Max Limited value in its calculation. Comparing Max Limited % to the Ready % values, how much of the
Ready time is due to limitations being imposed on the VM by the VMKernel?
Nearly ALL of the Ready time shown will be due to the VMkernel imposed Max Limit restrictions.
Q4. Considering the workload virtual machines are running a CPU stress testing tool, are the USED percentage values lower than you
would expect?
Yes. You would expect to see high used percentages if there were adequate resources available.
The USED percentage of each virtual machine tells you how much CPU resource that VM was given. To determine how much the VM actually
wanted to use, add the Used and Ready percentages together. You can use the percentage values either from the Performance Charts or the
resxtop values. Record the result here: _________________
Q5. Based on the result recorded above, are the VMs in the resource pool being given the physical CPU resources they require?
No. For the majority of the snapshot period the vCPUs will be stuck in a Ready state.
Lab 12 Diagnosing CPU performance issues 7
Q6. Based on the information gathered so far, is there a CPU performance problem within the resource pool?
Yes.
Q7. Is the CPU performance issue due to host CPU saturation?
No. The host CPU usage is averaging at around 50%.
Q6. What if anything could be done to improve the problem?
Increase the CPU limit on the resource pool or move some of the VMs elsewhere.
Task 4: Check for CPU saturation of an ESXi host
You examine advanced performance charts and resxtop CPU statistics to determine if the ESXi host has CPU performance issues.
1. Return to the vSphere Web Client browser tab and power on the Linux01 virtual machine.
2. Right click the Linux01 virtual machine and select Open Console.
3. Whilst the Linux01 VM boots, return to the PuTTY window that is connected to the vSphere Management Assistant and observe the values for
PCPU USED (%) Average and the %MLMTD for the Linux01 virtual machine. Although the host now has quite high CPU usage, there are no
VMKernel imposed restrictions on this virtual machine.
4. Once the Linux01 virtual machine has booted, login as root using the standard lab password and run the starttest2 script. This script is
configured to mimic database activity using two separate threads. Allow the script to run for a few moments before continuing.
5. Record the advanced performance chart statistics for the ESXi host.
 In the Hosts and Clusters inventory tree, select the ESXi host.
 Verify that the chart View selection is Lab-12a and correct the selection if necessary.
 Scroll down to uncover the Performance Chart Legend counter value columns.
 Record the column values for Usage.
 Latest (Usage) _________________
 Maximum (Usage) _________________
Note: Do not record the Average usage, as it shows the average usage over the chart interval (1 hour), which will remain low.
6. Record the resxtop statistics for the host.
 Switch to the PuTTY (vSphere Management Assistant session) window.
 In the section above the per-object statistics table, find PCPU USED (%)
 Record the PCPU USED (%) AVG value. _________________
7. Use the gathered statistics to answer the questions.
Q1. Is the average CPU usage greater than 75 percent?
Yes.
Lab 12 Diagnosing CPU performance issues 8
Q2. Is the maximum (peak) greater than 90 percent?
Maybe
If the answer to either question 1 or 2 is yes, then the host might be suffering from CPU saturation.
8. In the PuTTY window connected to the vSphere Management Assistant, find the Linux01 virtual machine and observe the values for %USED,
%RDY, %CSTP and %MLMTD. Record the values below.
 %USED _________________
 %RDY _________________
 %CSTP _________________
 %MLMTD _________________
9. Used the gathered statistics so far in this task to answer the following questions.
Q1. Does the Linux01 virtual machine show more than 10% Ready?
Yes, the virtual machine should be showing a lot of %RDY
It is generally accepted that a Ready value of anything up to 10% is acceptable. Anything above this point could indicate performance problems.
Q2. Does the Linux01 virtual machine have any limitations imposed by the VMKernel?
No. The %MLMTD should read 0.00 since the Linux VM is not in a resource pool and there are no other limits imposed on it.
Q3. Add %USED and %RDY together. Record the value here _________________. Is the result what you expected?
Depends on experience. The collapsed view shows the aggregate of all the virtual machines worlds. Since the Linux VM has two CPUs, the
maximum achievable value for %USED will be close to 200% (the remaining worlds are for the most part idle and will not contribute much to the
overall USED value). When adding %USED and %RDY together the value shown should be > than 100% but not quite 200% either.
Return to PuTTY and expand the Linux01 group.
1. Return to PuTTY and type e.
2. Enter the GID value shown against the Linux01 virtual machine. Press Enter.
Q4. Review the %CSTP metric. Does it show a value greater than 0.00 for either of the vCPUs?
It should do.
The %CSTP (CO-STOP) metric represents the percentage of time that the virtual machine is ready to execute commands but was waiting for the
availability of multiple CPUs. This metric is only relevant to SMP virtual machines (VMs with more than one vCPU) and will show 0.00 for VMs with
a single vCPU. If this metric is showing values above 0.00 for either vCPU in the Linux01 VM this can indicate one of two things;
1. If a %CSTP value for either vCPU is persistently higher than the other, this can indicate that there might be too many vCPU’s allocated to
this VM, the vCPU with the higher %CSTP value is being used much more than the others.
2. If the CSTP values are present but do not show a bias to either vCPU, this could indicate that the ESXi host does not have enough CPU
resources available to co-schedule the processors.
The combination of a low USED value with high RDY, a certain amount of CSTP and no MLMTD on the Linux01 VM (this particular VM is not in a
resource pool) could indicate that there is host CPU saturation and that it is causing a performance problem (If RDY was low, we wouldn’t
necessarily need to worry about the other values). If the current PCPU USED average is also above 75%, there is a high chance of CPU saturation.
Lab 12 Diagnosing CPU performance issues 9
Task 5: Check for CPU saturation within a guest virtual machine
You examine advanced performance charts and resxtop CPU statistics to determine if there is possibly CPU saturation present in a virtual
machine.
1. Stop the starttest2 script and run a command that will cause the guests CPU’s to spike
 Return to the Linux01 browser tab, activate the console and press CTRL+C to cancel the running script.
 Type the following command to cause a high amount of guest CPU activity.
for i in 1 2; do while : ; do : ; done & done
The script starts two background processes. Return to the vSphere Web Client tab.
2. Record the advanced performance chart statistics for the virtual machine.
3. In the vSphere Web Client tab, select the Linux01 virtual machine. The advanced performance charts should be displayed with your custom
Lab-12c chart view.
4. Scroll down to uncover the Performance Chart Legend counter value columns.
5. Record the Latest column values for Used and Ready.
 Used (Summation) _________________
 Ready (Summation) _________________
Using the formula from Task 3 - Step 3, convert the summation values to percentages and record them below.
 Used (%) _________________
 Ready (%) _________________
6. Using the statistics gathered, answer the following questions.
Q1. Is the Ready (%) value greater than 10%?
Yes. The value should be quite high (>50%)
Q2. Is the Used (%) value lower than what you might expect?
Yes. The Used value will be affected by RDY.
Q3. Does USED (%) + Ready (%) = (Number of vCPUs * 100%)?
Maybe, it depends if CSTP is present
If the answer is no, return to the PuTTY session and observe the %CSTP value for the Linux01 VM (collapse the world’s first!)
Q3a. Does %USED + %RDY + %CSTP = 200%?
Yes, more or less the totals of these will roughly equal 200%.
%USED + %RDY + %CSTP is the amount of CPU requested by the guest VM. Without looking at any further metrics you can make the assumption
that the guest VM is either close to or is CPU saturated. Since there is a low value for USED, coupled with a large amount of Ready and possibly
CSTP present, the assumption can be made that the VM is CPU saturated but it is also not getting enough CPU entitlements from the host.
Lab 12 Diagnosing CPU performance issues 10
Task 6: Determine if high guest CPU load causes performance issues
In this task you stop the CPU-HOG vApp and determine if saturated guest CPUs are always a cause for concern.
1. Return to the vSphere Web Client tab and select the CPU-HOG vApp.
2. From the Actions menu, select Power Off. Click Yes on the confirmation dialog.
3. Return to the PuTTY session connected to the vSphere Management Assistant and wait for all the Workload## VMs to disappear.
4. Wait a little while for resxtop to refresh and observe what happens to the values.
You should see that %USED increases to almost the maximum amount (approximately 200%). %RDY should decrease to acceptable levels (at or
lower than 10%). %CSTP should also have reduced to very minimal levels. PCPU USED (%) for the host should be high at approximately 99%.
Summary
Although the host CPU is peaking at almost 100% activity, the only active virtual machine for the most part is getting the resources it requires (at
least within acceptable tolerances). Although the depicted scenario of a single VM on an ESXi host is a little unlikely, the point here is that high
CPU activity observed on a guest VM is not always a cause for concern. Whilst it is pretty clear that the Linux01 VM is CPU saturated, the guest is
not suffering from any VMware related performance issues. To investigate if the guest itself was having performance problems as a result of the
CPU saturation, you would need to login to the guest OS to investigate further.
Task 7: Clean-up for the next lab
1. Return to the console of the Linux01 VM and run the following command to terminate the CPU spike script:
killall bash
This command will terminate the running scripts and display an output similar to the following when complete:
[1]- Terminated while :; do
:;
done
[2]- Terminated while :; do
:;
done
-NOTE-
It may be necessary to type the killall bash command twice, before the output above is displayed.
2. When the prompt returns. start the starttest2 script in preparation for the next lab. Type . /starttest2.
3. Return to the vSphere Web Client tab.
4. In the Hosts and Clusters inventory tree, select the CPU-HOG vApp.
5. Select All vCenter Actions -> Remove from Inventory from the Actions drop-down menu.
6. On the Confirm Remove dialog box, click Yes.

More Related Content

Similar to Diagnose CPU issues in vSphere lab

Sap bpc Planning and consolidation
Sap bpc Planning and consolidationSap bpc Planning and consolidation
Sap bpc Planning and consolidationSreekanth Gogula
 
Presentation v mware roi tco calculator
Presentation   v mware roi tco calculatorPresentation   v mware roi tco calculator
Presentation v mware roi tco calculatorsolarisyourep
 
Where to start with power cli
Where to start with power cliWhere to start with power cli
Where to start with power cliChris Halverson
 
Integrate UFT with Jenkins Guide
Integrate UFT with Jenkins GuideIntegrate UFT with Jenkins Guide
Integrate UFT with Jenkins GuideYu Tao Zhang
 
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docx
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docxCASE STUDY InternetExcel Exercises, page 434, textRecord your.docx
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docxketurahhazelhurst
 
PowerWorld 15. Transient Stability Quickstart
PowerWorld 15. Transient Stability QuickstartPowerWorld 15. Transient Stability Quickstart
PowerWorld 15. Transient Stability QuickstartJ. FR
 
E catt tutorial
E catt tutorialE catt tutorial
E catt tutorialNaveen Raj
 
Lecture16_Process Analyzer and OPTQUEST.ppt
Lecture16_Process Analyzer and OPTQUEST.pptLecture16_Process Analyzer and OPTQUEST.ppt
Lecture16_Process Analyzer and OPTQUEST.pptAbdAbd72
 
ENGR 131 Elementary Computer ProgrammingTeam IN – Instructor
ENGR 131  Elementary Computer ProgrammingTeam IN – InstructorENGR 131  Elementary Computer ProgrammingTeam IN – Instructor
ENGR 131 Elementary Computer ProgrammingTeam IN – InstructorTanaMaeskm
 
Sap basis made_easy321761331053730
Sap basis made_easy321761331053730Sap basis made_easy321761331053730
Sap basis made_easy321761331053730K Hari Shankar
 
A Better Way to Capture and Manage Cement Lab Data
A Better Way to Capture and Manage Cement Lab DataA Better Way to Capture and Manage Cement Lab Data
A Better Way to Capture and Manage Cement Lab Datapvisoftware
 
User Guide of Regression Test & Validation Tool (v1.0)
User Guide of Regression Test & Validation Tool (v1.0)User Guide of Regression Test & Validation Tool (v1.0)
User Guide of Regression Test & Validation Tool (v1.0)Chen Fang
 
FEATool Multiphysics Matlab FEM and CFD Toolbox - v1.6 Quickstart Guide
FEATool Multiphysics Matlab FEM and CFD Toolbox - v1.6 Quickstart GuideFEATool Multiphysics Matlab FEM and CFD Toolbox - v1.6 Quickstart Guide
FEATool Multiphysics Matlab FEM and CFD Toolbox - v1.6 Quickstart GuideFEATool Multiphysics
 

Similar to Diagnose CPU issues in vSphere lab (20)

000 237
000 237000 237
000 237
 
Sap bpc Planning and consolidation
Sap bpc Planning and consolidationSap bpc Planning and consolidation
Sap bpc Planning and consolidation
 
Presentation v mware roi tco calculator
Presentation   v mware roi tco calculatorPresentation   v mware roi tco calculator
Presentation v mware roi tco calculator
 
thesis-shai
thesis-shaithesis-shai
thesis-shai
 
Where to start with power cli
Where to start with power cliWhere to start with power cli
Where to start with power cli
 
V sphere perf_charts
V sphere perf_chartsV sphere perf_charts
V sphere perf_charts
 
Integrate UFT with Jenkins Guide
Integrate UFT with Jenkins GuideIntegrate UFT with Jenkins Guide
Integrate UFT with Jenkins Guide
 
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docx
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docxCASE STUDY InternetExcel Exercises, page 434, textRecord your.docx
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docx
 
PowerWorld 15. Transient Stability Quickstart
PowerWorld 15. Transient Stability QuickstartPowerWorld 15. Transient Stability Quickstart
PowerWorld 15. Transient Stability Quickstart
 
E catt tutorial
E catt tutorialE catt tutorial
E catt tutorial
 
Lecture16_Process Analyzer and OPTQUEST.ppt
Lecture16_Process Analyzer and OPTQUEST.pptLecture16_Process Analyzer and OPTQUEST.ppt
Lecture16_Process Analyzer and OPTQUEST.ppt
 
ENGR 131 Elementary Computer ProgrammingTeam IN – Instructor
ENGR 131  Elementary Computer ProgrammingTeam IN – InstructorENGR 131  Elementary Computer ProgrammingTeam IN – Instructor
ENGR 131 Elementary Computer ProgrammingTeam IN – Instructor
 
Cadence manual
Cadence manualCadence manual
Cadence manual
 
Innovyze Infonet Manual
Innovyze Infonet ManualInnovyze Infonet Manual
Innovyze Infonet Manual
 
Sap basis made_easy321761331053730
Sap basis made_easy321761331053730Sap basis made_easy321761331053730
Sap basis made_easy321761331053730
 
A Better Way to Capture and Manage Cement Lab Data
A Better Way to Capture and Manage Cement Lab DataA Better Way to Capture and Manage Cement Lab Data
A Better Way to Capture and Manage Cement Lab Data
 
User Guide of Regression Test & Validation Tool (v1.0)
User Guide of Regression Test & Validation Tool (v1.0)User Guide of Regression Test & Validation Tool (v1.0)
User Guide of Regression Test & Validation Tool (v1.0)
 
Sap consultancy 1
Sap consultancy 1Sap consultancy 1
Sap consultancy 1
 
FEATool Multiphysics Matlab FEM and CFD Toolbox - v1.6 Quickstart Guide
FEATool Multiphysics Matlab FEM and CFD Toolbox - v1.6 Quickstart GuideFEATool Multiphysics Matlab FEM and CFD Toolbox - v1.6 Quickstart Guide
FEATool Multiphysics Matlab FEM and CFD Toolbox - v1.6 Quickstart Guide
 
Implementation procedure of OPNET, and Qualnet
Implementation procedure of OPNET, and QualnetImplementation procedure of OPNET, and Qualnet
Implementation procedure of OPNET, and Qualnet
 

Recently uploaded

Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 

Recently uploaded (20)

Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 

Diagnose CPU issues in vSphere lab

  • 1. VMware vSphere Optimize and Scale [v5.5] Custom Lab 12 – Diagnosing CPU performance issues © Copyright 2014 – Global Knowledge Network Training Ltd.
  • 2. Lab 12 Diagnosing CPU performance issues 2 Lab 12 Diagnosing CPU performance issues Objective: Use a performance troubleshooting checklist to detect possible CPU performance problems In this lab, you will perform the following tasks: 1. Configure advanced performance charts 2. Prepare the lab environment 3. Check for performance issues in a Resource Pool 4. Check for CPU saturation of an ESXi host 5. Check for CPU saturation within a guest Virtual Machine 6. Determine if high guest CPU load causes performance issues Task 1: Configure advanced performance charts You configure an advanced CPU performance chart for the VMware® ESXi™ host and another CPU performance chart for the test virtual machine. Student A and student B should do this task independently. 1. In the browser window, click the vSphere Web Client tab. 2. In the Hosts and Clusters inventory tree, select the ESXi host. 3. In the middle pane, click the Monitor tab and click the Performance button. 4. Select the Advanced link and collapse the links panel by clicking the icon. 5. Click the chart View menu, select CPU and click the Chart Options link. 6. Configure and save the ESXi host CPU performance chart. a. For Timespan, leave Real-time selected. b. In the Select object for this chart panel, click the None button and select the ESXi host check box. c. For the Chart Type, leave Line Graph selected. d. In the Select counters for this chart panel, click the None button and select the Usage check box. e. At the top of the Chart Options dialog box, click the Save Options As button, type Lab-12a in the Chart options name text box, and click OK. -CAUTION- Save the chart options as instructed. If the chart resets to a default set of options, you can restore the chart by loading the saved options using the Chart Options dialog box. f. Click OK to close the Chart Options dialog box.
  • 3. Lab 12 Diagnosing CPU performance issues 3 7. Verify that the chart View selection is Lab-12a. 8. In the Hosts and Clusters inventory tree, expand the CPU-HOG vApp and select any one of the Workload## virtual machines. 9. In the middle pane, click the Monitor tab and click the Performance button. 10. Select the Advanced link and collapse the links panel by clicking the icon. 11. Click the chart View button, select CPU and click the Chart Options link. 12. Configure and save the virtual machine CPU performance chart. a. For Timespan, leave Real-time selected. b. In the Select object for this chart panel, click the None button and select the Workload## check box. c. For the Chart Type, leave Line Graph selected. d. In Select counters for this chart panel, click the None button and select the Max Limited, Ready and Used check boxes. e. At the top of the Chart Options dialog box, click the Save Options As button, type Lab-12b in the Chart options name text box, and click OK. f. Click OK to close the Chart Options dialog box. 13. Verify that the chart View selection is Lab-12b. 14. In the Hosts and Clusters inventory tree, select the Linux01 virtual machine. 15. In the middle pane, click the Monitor tab and click the Performance button. 16. Select the Advanced link and collapse the links panel by clicking the icon. 17. Click the chart View button, select CPU and click the Chart Options link. 18. Configure and save the virtual machine CPU performance chart. a. For Timespan, leave Real-time selected. b. In the Select object for this chart panel, click the None button and select the Linux01 check box. c. For the Chart Type, leave Line Graph selected. d. In Select counters for this chart panel, click the None button and select the Max Limited, Ready and Used check boxes. e. At the top of the Chart Options dialog box, click the Save Options As button, type Lab-12c in the Chart options name text box, and click OK. f. Click OK to close the Chart Options dialog box. 19. Verify that the chart View selection is Lab-12c.
  • 4. Lab 12 Diagnosing CPU performance issues 4 Task 2: Prepare the lab environment In this task, you will stop the Linux01 virtual machine and adjust CPU-HOG vApp configuration. Student A and student B should do this task independently. 1. Close all tabs to your virtual machine consoles. 2. Shutdown the Linux01 and any windows virtual machines that might be running, but leave the CPU-HOG vApp running. 3. Make sure your environment state resembles the following screenshot 4. Select your ESXi host and in the middle pane, select the Summary tab. 5. In the Hardware section, make a note of the maximum Mhz your ESXi host can provide, rounding the number down to the nearest thousand. For example, if your host has 2 x CPUs running at 2.50 Ghz write down 5000. Max Mhz: _________________ 6. Right click the CPU-HOG vApp and select Edit Settings. 7. Expand CPU resources and set the CPU Limit to HALF of the Mhz value that you recorded in step 5. For instance if you recorded 5000 Mhz, set the Limit to 2500. Click OK. 8. Leave resxtop running in the PuTTY session to the vSphere Management Assistant. 9. Change the resxtop interval refresh rate to 20 seconds: a. Switch to your PuTTY session that is running resxtop b. Type s. c. Type 20. d. Press Enter.
  • 5. Lab 12 Diagnosing CPU performance issues 5 Task 3: Check for performance issues within a resource pool You examine advanced performance charts and resxtop CPU statistics to determine if a Resource Pool (in this case the CPU-HOG vApp) has CPU performance issues. Student A and student B should do this task independently. 1. Record the advanced performance chart statistics for the host a. In the Hosts and Clusters inventory tree, select the ESXi host. b. Verify that the chart View selection is Lab-12a and correct the selection if necessary. Perform this verification step each time when switching between the various performance charts. c. Scroll down to uncover the Performance Chart Legend counter value columns. d. Record the column values for Usage.  Latest (Usage) _________________  Maximum (Usage) _________________  Average (Usage) _________________ If the Average column is not displayed, resize one or more of the visible columns. The Average column is always the last column in the Legend and appears when a column resize occurs. 2. Record the resxtop statistics. a. Switch to the PuTTY (vSphere Management Assistant session) window. b. In the section above the per-object statistics table, find PCPU USED (%) c. Record the PCPU USED (%) AVG value. _________________ 3. Record the advanced performance chart statistics for virtual machines within the resource pool a. In the Hosts and Clusters inventory tree, expand the CPU-HOG vApp and select the same workload## virtual machines you used earlier. b. Verify that the chart View selection is Lab-12b and correct the selection if necessary. c. Scroll down to uncover the Performance Chart Legend counter value columns. d. Record the Latest column values for each metric.  Max Limited _________________  Ready _________________  Used _________________ The Max Limited metric represents the amount of time that a virtual machine was ready to execute, but has not been scheduled for CPU time because the VMkernel deliberately constrained it.
  • 6. Lab 12 Diagnosing CPU performance issues 6 The values recorded above are the sum total of milliseconds observed over the chart refresh interval period (every 20 seconds). In order to be of more use, they can be converted to a percentage value. For each value recorded above, use the following formula to convert the summation into a percentage value and record the results below. (summation_value / (chart_refresh_interval * 1000)) * 100 Note: The chart_refresh_interval depends on which type of chart you are currently viewing. For a list of all possible chart intervals see http://kb.vmware.com/kb/2002181  Max Limited (%) _________________  Ready (%) _________________  Used (%) _________________ 4. Record the resxtop statistcs a. Switch to the PuTTY (vSphere Management Assistant session) window. b. Record the latest Used, Ready and Max-Limited values for the Workload VM you used in the previous step.  %USED _________________  %RDY _________________  %MLMTD _________________ 5. Use the gathered statistics to answer the questions. Q1. Does the Latest CPU usage metric of the host show a value > 75%? No, the Latest CPU usage metric will be at approximately 50%. At this time the host should not be CPU saturated because the CPU-HOG vApp was restricted to approximately half of the clusters available CPU resources. Maximum and Average cannot be relied upon as they both will be skewed by older stats. These two metrics would only become useful if the CPU issues had persisted for longer than 1 hour. Q2. Do any of the workload virtual machines inside the resource pool (CPU-HOG vApp) have a Max Limited value higher than 0.00 or 0%? Yes. All of the workload virtual machines will show quite a lot of “Max Limited” restrictions. Q3. The Ready metric includes the Max Limited value in its calculation. Comparing Max Limited % to the Ready % values, how much of the Ready time is due to limitations being imposed on the VM by the VMKernel? Nearly ALL of the Ready time shown will be due to the VMkernel imposed Max Limit restrictions. Q4. Considering the workload virtual machines are running a CPU stress testing tool, are the USED percentage values lower than you would expect? Yes. You would expect to see high used percentages if there were adequate resources available. The USED percentage of each virtual machine tells you how much CPU resource that VM was given. To determine how much the VM actually wanted to use, add the Used and Ready percentages together. You can use the percentage values either from the Performance Charts or the resxtop values. Record the result here: _________________ Q5. Based on the result recorded above, are the VMs in the resource pool being given the physical CPU resources they require? No. For the majority of the snapshot period the vCPUs will be stuck in a Ready state.
  • 7. Lab 12 Diagnosing CPU performance issues 7 Q6. Based on the information gathered so far, is there a CPU performance problem within the resource pool? Yes. Q7. Is the CPU performance issue due to host CPU saturation? No. The host CPU usage is averaging at around 50%. Q6. What if anything could be done to improve the problem? Increase the CPU limit on the resource pool or move some of the VMs elsewhere. Task 4: Check for CPU saturation of an ESXi host You examine advanced performance charts and resxtop CPU statistics to determine if the ESXi host has CPU performance issues. 1. Return to the vSphere Web Client browser tab and power on the Linux01 virtual machine. 2. Right click the Linux01 virtual machine and select Open Console. 3. Whilst the Linux01 VM boots, return to the PuTTY window that is connected to the vSphere Management Assistant and observe the values for PCPU USED (%) Average and the %MLMTD for the Linux01 virtual machine. Although the host now has quite high CPU usage, there are no VMKernel imposed restrictions on this virtual machine. 4. Once the Linux01 virtual machine has booted, login as root using the standard lab password and run the starttest2 script. This script is configured to mimic database activity using two separate threads. Allow the script to run for a few moments before continuing. 5. Record the advanced performance chart statistics for the ESXi host.  In the Hosts and Clusters inventory tree, select the ESXi host.  Verify that the chart View selection is Lab-12a and correct the selection if necessary.  Scroll down to uncover the Performance Chart Legend counter value columns.  Record the column values for Usage.  Latest (Usage) _________________  Maximum (Usage) _________________ Note: Do not record the Average usage, as it shows the average usage over the chart interval (1 hour), which will remain low. 6. Record the resxtop statistics for the host.  Switch to the PuTTY (vSphere Management Assistant session) window.  In the section above the per-object statistics table, find PCPU USED (%)  Record the PCPU USED (%) AVG value. _________________ 7. Use the gathered statistics to answer the questions. Q1. Is the average CPU usage greater than 75 percent? Yes.
  • 8. Lab 12 Diagnosing CPU performance issues 8 Q2. Is the maximum (peak) greater than 90 percent? Maybe If the answer to either question 1 or 2 is yes, then the host might be suffering from CPU saturation. 8. In the PuTTY window connected to the vSphere Management Assistant, find the Linux01 virtual machine and observe the values for %USED, %RDY, %CSTP and %MLMTD. Record the values below.  %USED _________________  %RDY _________________  %CSTP _________________  %MLMTD _________________ 9. Used the gathered statistics so far in this task to answer the following questions. Q1. Does the Linux01 virtual machine show more than 10% Ready? Yes, the virtual machine should be showing a lot of %RDY It is generally accepted that a Ready value of anything up to 10% is acceptable. Anything above this point could indicate performance problems. Q2. Does the Linux01 virtual machine have any limitations imposed by the VMKernel? No. The %MLMTD should read 0.00 since the Linux VM is not in a resource pool and there are no other limits imposed on it. Q3. Add %USED and %RDY together. Record the value here _________________. Is the result what you expected? Depends on experience. The collapsed view shows the aggregate of all the virtual machines worlds. Since the Linux VM has two CPUs, the maximum achievable value for %USED will be close to 200% (the remaining worlds are for the most part idle and will not contribute much to the overall USED value). When adding %USED and %RDY together the value shown should be > than 100% but not quite 200% either. Return to PuTTY and expand the Linux01 group. 1. Return to PuTTY and type e. 2. Enter the GID value shown against the Linux01 virtual machine. Press Enter. Q4. Review the %CSTP metric. Does it show a value greater than 0.00 for either of the vCPUs? It should do. The %CSTP (CO-STOP) metric represents the percentage of time that the virtual machine is ready to execute commands but was waiting for the availability of multiple CPUs. This metric is only relevant to SMP virtual machines (VMs with more than one vCPU) and will show 0.00 for VMs with a single vCPU. If this metric is showing values above 0.00 for either vCPU in the Linux01 VM this can indicate one of two things; 1. If a %CSTP value for either vCPU is persistently higher than the other, this can indicate that there might be too many vCPU’s allocated to this VM, the vCPU with the higher %CSTP value is being used much more than the others. 2. If the CSTP values are present but do not show a bias to either vCPU, this could indicate that the ESXi host does not have enough CPU resources available to co-schedule the processors. The combination of a low USED value with high RDY, a certain amount of CSTP and no MLMTD on the Linux01 VM (this particular VM is not in a resource pool) could indicate that there is host CPU saturation and that it is causing a performance problem (If RDY was low, we wouldn’t necessarily need to worry about the other values). If the current PCPU USED average is also above 75%, there is a high chance of CPU saturation.
  • 9. Lab 12 Diagnosing CPU performance issues 9 Task 5: Check for CPU saturation within a guest virtual machine You examine advanced performance charts and resxtop CPU statistics to determine if there is possibly CPU saturation present in a virtual machine. 1. Stop the starttest2 script and run a command that will cause the guests CPU’s to spike  Return to the Linux01 browser tab, activate the console and press CTRL+C to cancel the running script.  Type the following command to cause a high amount of guest CPU activity. for i in 1 2; do while : ; do : ; done & done The script starts two background processes. Return to the vSphere Web Client tab. 2. Record the advanced performance chart statistics for the virtual machine. 3. In the vSphere Web Client tab, select the Linux01 virtual machine. The advanced performance charts should be displayed with your custom Lab-12c chart view. 4. Scroll down to uncover the Performance Chart Legend counter value columns. 5. Record the Latest column values for Used and Ready.  Used (Summation) _________________  Ready (Summation) _________________ Using the formula from Task 3 - Step 3, convert the summation values to percentages and record them below.  Used (%) _________________  Ready (%) _________________ 6. Using the statistics gathered, answer the following questions. Q1. Is the Ready (%) value greater than 10%? Yes. The value should be quite high (>50%) Q2. Is the Used (%) value lower than what you might expect? Yes. The Used value will be affected by RDY. Q3. Does USED (%) + Ready (%) = (Number of vCPUs * 100%)? Maybe, it depends if CSTP is present If the answer is no, return to the PuTTY session and observe the %CSTP value for the Linux01 VM (collapse the world’s first!) Q3a. Does %USED + %RDY + %CSTP = 200%? Yes, more or less the totals of these will roughly equal 200%. %USED + %RDY + %CSTP is the amount of CPU requested by the guest VM. Without looking at any further metrics you can make the assumption that the guest VM is either close to or is CPU saturated. Since there is a low value for USED, coupled with a large amount of Ready and possibly CSTP present, the assumption can be made that the VM is CPU saturated but it is also not getting enough CPU entitlements from the host.
  • 10. Lab 12 Diagnosing CPU performance issues 10 Task 6: Determine if high guest CPU load causes performance issues In this task you stop the CPU-HOG vApp and determine if saturated guest CPUs are always a cause for concern. 1. Return to the vSphere Web Client tab and select the CPU-HOG vApp. 2. From the Actions menu, select Power Off. Click Yes on the confirmation dialog. 3. Return to the PuTTY session connected to the vSphere Management Assistant and wait for all the Workload## VMs to disappear. 4. Wait a little while for resxtop to refresh and observe what happens to the values. You should see that %USED increases to almost the maximum amount (approximately 200%). %RDY should decrease to acceptable levels (at or lower than 10%). %CSTP should also have reduced to very minimal levels. PCPU USED (%) for the host should be high at approximately 99%. Summary Although the host CPU is peaking at almost 100% activity, the only active virtual machine for the most part is getting the resources it requires (at least within acceptable tolerances). Although the depicted scenario of a single VM on an ESXi host is a little unlikely, the point here is that high CPU activity observed on a guest VM is not always a cause for concern. Whilst it is pretty clear that the Linux01 VM is CPU saturated, the guest is not suffering from any VMware related performance issues. To investigate if the guest itself was having performance problems as a result of the CPU saturation, you would need to login to the guest OS to investigate further. Task 7: Clean-up for the next lab 1. Return to the console of the Linux01 VM and run the following command to terminate the CPU spike script: killall bash This command will terminate the running scripts and display an output similar to the following when complete: [1]- Terminated while :; do :; done [2]- Terminated while :; do :; done -NOTE- It may be necessary to type the killall bash command twice, before the output above is displayed. 2. When the prompt returns. start the starttest2 script in preparation for the next lab. Type . /starttest2. 3. Return to the vSphere Web Client tab. 4. In the Hosts and Clusters inventory tree, select the CPU-HOG vApp. 5. Select All vCenter Actions -> Remove from Inventory from the Actions drop-down menu. 6. On the Confirm Remove dialog box, click Yes.