SlideShare ist ein Scribd-Unternehmen logo
1 von 59
Downloaden Sie, um offline zu lesen
Advanced performance troubleshooting using
esxtop/resxtop
Krishna Raj Raja
Staff Engineer, Performance Group




                                    © 2010 VMware Inc. All rights reserved
Disclaimer
  This session may contain product features that are
 currently under development.
  This session/overview of the new technology represents
 no commitment from VMware to deliver these features in
 any generally available product.
  Features are subject to change, and must not be included in
 contracts, purchase orders, or sales agreements of any kind.
  Technical feasibility and market demand will affect final delivery.
  Pricing and packaging for any new technologies or features
 discussed or presented have not been determined.

 “THESE FEATURES ARE REPRESENTATIVE OF FEATURE AREAS UNDER
DEVELOPMENT. FEATURE COMMITMENTS ARE SUBJECT TO CHANGE, AND
MUST NOT BE INCLUDED IN CONTRACTS, PURCHASE ORDERS, OR SALES
   AGREEMENTS OF ANY KIND. TECHNICAL FEASIBILITY AND MARKET
                  DEMAND WILL AFFECT FINAL.”


 2
esxtop resources

esxtop manual:
    http://www.vmware.com/pdf/vsphere4/r41/vsp_41_resource_mgmt.pdf


VMware Community documents:
    http://communities.vmware.com/docs/DOC-9279 - ESX 4.0
    http://communities.vmware.com/docs/DOC-11812 - ESX 4.1


esxtop for advanced users:
    VMworld 2008 - http://vmworld.com/docs/DOC-2356
    VMworld 2009 - http://vmworld.com/docs/DOC-3838




3
Ten things that you need to know about
                     esxtop




4
esxtop counters

1. esxtop does not create performance metrics
    •   esxtop derives performance metrics from raw counters exported in the
        VMkernel System Info nodes (VSI nodes)
    •   esxtop can show new counters on older ESX system if the raw counters
        are present in VMKernel




5
esxtop counters

2. Counter values
    •   Many raw counters have static values that do no change with time – esxtop
        displays them as it is




    •   Many counters increment monotonically, esxtop reports the delta for these
        for the given refresh interval – for instance CMDS/sec, packets
        transmitted/sec etc




    •   %USED and %RUN - CPU occupancy delta between successive
        snapshots




6
Refresh interval

3. Graphs will look different depending on the refresh interval
    •   Many counters values are dependent on refresh interval
    •   Larger refresh interval smoothens spikes and troughs




         2 second refresh interval             10 second refresh interval
7
esxtop counters

4. Counter normalization
    •   By default counters are shown for the group
    •   In group view counters values are cumulative
    •   In expanded view, counters are normalized per entity

                                                               Cumulative
                                                                 stats




    Pressing ‘e’ key expands a group




                                                                      vcpu world
                                                                    consumes CPU

8
esxtop counters

5. %USED can exceed 100
    •   Turbo boost can increase the processor clock speed
    •   Asynchronous work can be happening on a different core on behalf of the
        VM




           VM on a NFS datastore running I/O intensive workload


9
esxtop batch mode

6. Batch mode (-b)
     •   Produces windows perfmon compatible CSV file
     •   CSV file compatibility requires fixed number of columns on every row -
         statistics of VMs/worlds instances that appear after starting the batch mode
         are not collected because of this reason
     •   Only counters that are specified in the configuration file are collected, (-a)
         option collects all counters
     •   Counters are named slightly differently




10
esxtop batch mode – importing data into perfmon




11
esxtop batch mode – viewing data in perfmon




12
esxtop batch mode – trimming data




       Trimming data
                                Saving data after trim




13
esxplot

 http://labs.vmware.com/flings/esxplot




14
I/O Latencies

7. IO latencies
     •   IO latencies are measured per SCSI command so it is not affected by
         refresh interval
     •   Reported latencies are average values for all the SCSI commands issued
         within the refresh interval window
     •   Reported average latencies can be different on different screens (adapter,
         LUN, VM), since each screen accounts for different group of I/Os




15
resxtop – remote esxtop

8. You can use resxtop to connect to different ESX hosts
     •   Newer version of resxtop will connect to older ESX hosts


9. You don’t need root access to view esxtop counters
     •   resxtop can authenticate using vCenter credentials




16
esxtop CPU usage

10. esxtop can consume non-trivial amount of CPU
     •      When you have very large inventory (VMs, LUNs, virtual disks, virtual NICs
            etc)




         CPU consumption on a host with 512 VMs        CPU usage when using resxtop



     •      You can limit the amount of data collected by limiting the fields (columns)
            and entities (rows), you can also reduce CPU consumption by locking
            entities, (-l) option




                                   CPU consumption with esxtop -l

17
Performance Troubleshooting Using
                  esxtop




18
esxtop screens



Screens
     •   c: cpu (default)
     •   m: memory
                                                 VM        VM        VM        VM
     •   n: network
     •   d: disk adapter
     •   u: disk device (added in ESX 3.5)     CPU       Memory      Virtual
                                                                                vSCSI
     •   v: disk VM (added in ESX 3.5)       Scheduler   Scheduler   Switch
     •   i: Interrupts (new in ESX 4.0)        c, i, p     m          n        d, u, v
     •   p: power management (new in ESX
         4.1)
                                             VMkernel




19
Troubleshooting CPU Problems




20
CPU Constrained




                  SMP VM


                  High CPU
                  utilization




                     Both the
                  virtual CPUs
                       CPU
                  constrained




21
CPU Contention




     4 CPUs,             VMs don’t
                 3 SMP    get to run      %ready
       all at     VMs    all the time   accumulates
      100%




22
CPU Limit




                          Max
                        Limited




            CPU
            Limit   AMAX = -1 : Unlimited


23
Mis-configured SMP VM




      vCPU 1 not        Incorrect (UP) Kernel/HAL inside the
      used by the         guest or the application inside the
         VM                   guest is single threaded



24
Power management – CPU frequency scaling




     C states: C0 – busy, C1 – halted, C2 – deep halt

     P states: P0 – Highest clock frequency, P11 – Lowest clock frequency

25
VM Power Usage


     Experimental feature, not enabled by default.
     VMkernel advanced setting: Power.ChargeVMs




26
CPU clock frequency scaling



                                                                VM is running all
                                                                the time but uses
                                                                 only 75% of the
                                                                 clock frequency




     %USED: CPU usage with reference to base clock frequency
     %UTIL: CPU utilization with reference to current clock frequency
     %RUN: CPU scheduled time




27
Hyperthreading



                          Two VMs running
                          on different cores




                               Two VMs sharing
                                the same core



                  %LAT_C counter
                 shows the time de-
                  scheduled due to
                    core sharing




28
Timer interrupt rate

 Linux Guests




29
Timer interrupt rate

 Windows Guests – Multimedia timer




30
New metrics in CPU screen




%LAT_C : %time the VM was not scheduled due to CPU resource issue


%LAT_M : %time the VM was not scheduled due to memory resource issue


%DMD : Moving CPU utilization average in the last one minute


EMIN : Minimum CPU resources in MHZ that the VM is guaranteed to get
when there is CPU contention
31
Troubleshooting Memory Problems




32
esxtop memory screen (m)


                                                      Possible states:
                                                      high, soft, hard
                                                         and low




                                PMEM – Total Physical memory
                           VMKMEM - Memory managed by VMKernel
                           COSMEM - Memory used by Service Console




33
Not able to power-on a new VM

    Memory reservation




                                     820 MB
4G memory                          reservation
reservation                         requested




                                   Overhead
                                    memory
                                  needs to be
                                   reserved




   34
Granted Memory




                 Granted Memory = Memory touched by the guest
     Windows and FreeBSD Guests touches (zeroes) all its memory during boot
                Linux Guests touches memory when it first uses it

35
Ballooning versus Swapping




                                            VM with     Swapped in
                                                        the past but     Swap target is
     Memory     MCTL: N - Balloon           Balloon
                                                        not actively    more for the VM
      Hog     driver not active, tools   driver swaps
                                                         swapping      without the balloon
      VMs     probably not installed          less
                                                            now              driver



36
Memory Compression Stats




COWH : Copy on Write Pages hints – amount of memory in MB that are
potentially shareable
CACHESZ: Compression Cache size
CACHEUSD: Compression Cache currently used
ZIP/s, UNZIP/s: Memory compression/decompression rate



37
Wide NUMA - CPU

                      2 NUMA
                     nodes with
                     ~6G each




                    NUMA home
                  node not assigned



                    4G, can fit into
                    a single node

 6-vcpu VM –
cannot fit into
a NUMA node
   size of 4
    CPUs



38
NUMA affinity not set


                                                    NUMA machine
                                                     with 2 nodes




                                       NHN: NUMA Home Node
           All the memory in
              remote node            NLMEM: Memory in local node
                                    NRMEM: Memory in remote node




              CPU affinity set to
              wrong NUMA node


39
Wide NUMA - Memory


                                           2 NUMA
                                          nodes with
                                          ~6G each




                     NUMA home
                      node not
                      assigned




                                 VM cannot be
                                 fit into a single
                                   NUMA node


40
Troubleshooting Network Problems




41
vSwitch active uplink




     TEAM-PNIC : The uplink that the virtual switch port is currently using




42
Dropped packets at vSwitch




         Packet drops usually happens when the traffic has
         no flow control (UDP/Multicast/Broadcast packets)




43
Multicast/Broadcast stats




 PKTTXMUL/s – Multicast packets transmitted per second
 PKTRXMUL/s – Multicast packets received per second


 PKTTXBRD/s – Broadcast packets transmitted per second
 PKTRXBRD/s – Broadcast packets received per second



44
NFS stats




     DAVG and KAVG is not available for network backed storage
     GAVG – gives the end to end latency




45
Troubleshooting Disk Problems




46
Disk I/O latency




      Host bus adapters (HBAs) -       Latency stats from the
     includes SCSI, iSCSI, RAID,       Device, Kernel and the
         and FC-HBA adapters                   Guest




     DAVG/cmd - Average latency (ms) from the Device (LUN)

         KAVG/cmd - Average latency (ms) in the VMKernel

           GAVG/cmd - Average latency (ms) in the Guest

47
Problem with the disk subsystem


                                     Good
                                  throughput

                                         Low device
                                          Latency




                                             Bad
                                         throughput




                                    Device Latency is
                                  high - cache disabled


 48
Insufficient Queue depth



                            Non-zero
                             KAVG




                           Queuing at
                            the HBA




 49
FC bottleneck



  ‘v’ – VM view


‘u’ – device view




 ‘d’ – adapter view




 50
vStorage API for Array Integration (VAAI) stats




CLONE_RD, CLONE_WR: Number of Clone read/write requests
CLONE_F: Number of Failed clone operations
MBC_RD/s, MBC_WR/s – Clone read/write MBs/sec
ATS – Number of ATS commands
ATSF – Number of failed ATS commands
ZERO – Number of Zero requests
ZEROF – Number of failed zero requests
MBZERO/s – Megabytes Zeroed per second



51
VAAI - virtual disk creation example

 vStorage API for Array Integration (VAAI)




52
SCSI reservation conflicts




53
Other diagnostic tools




54
Other diagnostic tools (1 of 2)

 sched-stats and schedtrace
 • vm-support -s/-S flag captures sched-stats
 • vm-support -c flag captures scheduler trace – takes lot of disk space


 memstats
 • Provides detailed memory usage stats with resource pool hierarchy


 ft-stats
 • FT Virtual Machine stats
 • Collected with vm-support –s/S flag




55
Other diagnostic tools (2 of 2)

 swatchStats
 • Stopwatch stats for VMFS, SCSI events


 vscsiStats
 • Virtual machine SCSI disk I/O stats
 • Provides histogram information for latency, IO size, inter-arrival time and
     outstanding I/Os




56
vscsiStats

# vscsiStats -l



                      World group     Virtual Machine
                       leader id           Name




                  Virtual scsi disk
                     handle ids -
                   unique across
                  virtual machines




57
vscsiStats – latency histogram

# vscsiStats -p latency -w 118739 -i 8205




                                             Latency in
      I/O                                   microseconds
 distribution
    count




58
vscsiStats – iolength histogram

 # vscsiStats -p iolength -w 118739 -i 8205




                                              I/O block size


Distribution
  Count




 59

Weitere ähnliche Inhalte

Was ist angesagt?

Hyper-V Best Practices & Tips and Tricks
Hyper-V Best Practices & Tips and TricksHyper-V Best Practices & Tips and Tricks
Hyper-V Best Practices & Tips and TricksAmit Gatenyo
 
Hyper V And Scvmm Best Practis
Hyper V And Scvmm Best PractisHyper V And Scvmm Best Practis
Hyper V And Scvmm Best PractisBlauge
 
How to Optimize Microsoft Hyper-V Failover Cluster and Double Performance
How to Optimize Microsoft Hyper-V Failover Cluster and Double PerformanceHow to Optimize Microsoft Hyper-V Failover Cluster and Double Performance
How to Optimize Microsoft Hyper-V Failover Cluster and Double PerformanceStarWind Software
 
Esxi troubleshooting
Esxi troubleshootingEsxi troubleshooting
Esxi troubleshootingOvi Chis
 
webinar vmware v-sphere performance management Challenges and Best Practices
webinar vmware v-sphere performance management Challenges and Best Practiceswebinar vmware v-sphere performance management Challenges and Best Practices
webinar vmware v-sphere performance management Challenges and Best PracticesMetron
 
Introduction - vSphere 5 High Availability (HA)
Introduction - vSphere 5 High Availability (HA)Introduction - vSphere 5 High Availability (HA)
Introduction - vSphere 5 High Availability (HA)Eric Sloof
 
VMware Advance Troubleshooting Workshop - Day 4
VMware Advance Troubleshooting Workshop - Day 4VMware Advance Troubleshooting Workshop - Day 4
VMware Advance Troubleshooting Workshop - Day 4Vepsun Technologies
 
VMware Advance Troubleshooting Workshop - Day 3
VMware Advance Troubleshooting Workshop - Day 3VMware Advance Troubleshooting Workshop - Day 3
VMware Advance Troubleshooting Workshop - Day 3Vepsun Technologies
 
VMware HA deep Dive
VMware HA deep DiveVMware HA deep Dive
VMware HA deep DiveEric Sloof
 
Секреты виртуализации - Windows Server 2012 Hyper-V
Секреты виртуализации - Windows Server 2012 Hyper-VСекреты виртуализации - Windows Server 2012 Hyper-V
Секреты виртуализации - Windows Server 2012 Hyper-VВиталий Стародубцев
 
Hypervisors and Virtualization - VMware, Hyper-V, XenServer, and KVM
Hypervisors and Virtualization - VMware, Hyper-V, XenServer, and KVMHypervisors and Virtualization - VMware, Hyper-V, XenServer, and KVM
Hypervisors and Virtualization - VMware, Hyper-V, XenServer, and KVMvwchu
 
VMware vSphere Networking deep dive
VMware vSphere Networking deep diveVMware vSphere Networking deep dive
VMware vSphere Networking deep diveSanjeev Kumar
 

Was ist angesagt? (20)

Hyper-V Best Practices & Tips and Tricks
Hyper-V Best Practices & Tips and TricksHyper-V Best Practices & Tips and Tricks
Hyper-V Best Practices & Tips and Tricks
 
Hyper V And Scvmm Best Practis
Hyper V And Scvmm Best PractisHyper V And Scvmm Best Practis
Hyper V And Scvmm Best Practis
 
How to Optimize Microsoft Hyper-V Failover Cluster and Double Performance
How to Optimize Microsoft Hyper-V Failover Cluster and Double PerformanceHow to Optimize Microsoft Hyper-V Failover Cluster and Double Performance
How to Optimize Microsoft Hyper-V Failover Cluster and Double Performance
 
Esxi troubleshooting
Esxi troubleshootingEsxi troubleshooting
Esxi troubleshooting
 
XS Boston 2008 Memory Overcommit
XS Boston 2008 Memory OvercommitXS Boston 2008 Memory Overcommit
XS Boston 2008 Memory Overcommit
 
webinar vmware v-sphere performance management Challenges and Best Practices
webinar vmware v-sphere performance management Challenges and Best Practiceswebinar vmware v-sphere performance management Challenges and Best Practices
webinar vmware v-sphere performance management Challenges and Best Practices
 
Introduction - vSphere 5 High Availability (HA)
Introduction - vSphere 5 High Availability (HA)Introduction - vSphere 5 High Availability (HA)
Introduction - vSphere 5 High Availability (HA)
 
XS Oracle 2009 Vm Snapshots
XS Oracle 2009 Vm SnapshotsXS Oracle 2009 Vm Snapshots
XS Oracle 2009 Vm Snapshots
 
XS Oracle 2009 Error Detection
XS Oracle 2009 Error DetectionXS Oracle 2009 Error Detection
XS Oracle 2009 Error Detection
 
VMware Advance Troubleshooting Workshop - Day 4
VMware Advance Troubleshooting Workshop - Day 4VMware Advance Troubleshooting Workshop - Day 4
VMware Advance Troubleshooting Workshop - Day 4
 
VMware Advance Troubleshooting Workshop - Day 3
VMware Advance Troubleshooting Workshop - Day 3VMware Advance Troubleshooting Workshop - Day 3
VMware Advance Troubleshooting Workshop - Day 3
 
VMware HA deep Dive
VMware HA deep DiveVMware HA deep Dive
VMware HA deep Dive
 
Секреты виртуализации - Windows Server 2012 Hyper-V
Секреты виртуализации - Windows Server 2012 Hyper-VСекреты виртуализации - Windows Server 2012 Hyper-V
Секреты виртуализации - Windows Server 2012 Hyper-V
 
XS Oracle 2009 Intro Slides
XS Oracle 2009 Intro SlidesXS Oracle 2009 Intro Slides
XS Oracle 2009 Intro Slides
 
Hypervisors and Virtualization - VMware, Hyper-V, XenServer, and KVM
Hypervisors and Virtualization - VMware, Hyper-V, XenServer, and KVMHypervisors and Virtualization - VMware, Hyper-V, XenServer, and KVM
Hypervisors and Virtualization - VMware, Hyper-V, XenServer, and KVM
 
VMware vSphere Networking deep dive
VMware vSphere Networking deep diveVMware vSphere Networking deep dive
VMware vSphere Networking deep dive
 
Ian Pratt Nsdi Keynote Apr2008
Ian Pratt Nsdi Keynote Apr2008Ian Pratt Nsdi Keynote Apr2008
Ian Pratt Nsdi Keynote Apr2008
 
Xen io
Xen ioXen io
Xen io
 
I/O Scalability in Xen
I/O Scalability in XenI/O Scalability in Xen
I/O Scalability in Xen
 
Windows Server 2012 Virtualization: Notes from the Field
Windows Server 2012 Virtualization: Notes from the FieldWindows Server 2012 Virtualization: Notes from the Field
Windows Server 2012 Virtualization: Notes from the Field
 

Andere mochten auch

Linux On V Mware ESXi
Linux On V Mware ESXiLinux On V Mware ESXi
Linux On V Mware ESXiMasafumi Ohta
 
VMworld 2017 vSAN Network Design
VMworld 2017 vSAN Network Design VMworld 2017 vSAN Network Design
VMworld 2017 vSAN Network Design Cormac Hogan
 
01 t1 s2_linux_lesson1
01 t1 s2_linux_lesson101 t1 s2_linux_lesson1
01 t1 s2_linux_lesson1Niit Care
 
Linux Administration
Linux AdministrationLinux Administration
Linux AdministrationHarish1983
 
VMworld 2016: vSphere 6.x Host Resource Deep Dive
VMworld 2016: vSphere 6.x Host Resource Deep DiveVMworld 2016: vSphere 6.x Host Resource Deep Dive
VMworld 2016: vSphere 6.x Host Resource Deep DiveVMworld
 
VMworld 2015: Virtualize Active Directory, the Right Way!
VMworld 2015: Virtualize Active Directory, the Right Way!VMworld 2015: Virtualize Active Directory, the Right Way!
VMworld 2015: Virtualize Active Directory, the Right Way!VMworld
 
VMworld 2017 - Top 10 things to know about vSAN
VMworld 2017 - Top 10 things to know about vSANVMworld 2017 - Top 10 things to know about vSAN
VMworld 2017 - Top 10 things to know about vSANDuncan Epping
 
VMworld 2017 Core Storage
VMworld 2017 Core StorageVMworld 2017 Core Storage
VMworld 2017 Core StorageCormac Hogan
 
Linux ppt
Linux pptLinux ppt
Linux pptlincy21
 

Andere mochten auch (12)

Top ESXi command line v2.0
Top ESXi command line v2.0Top ESXi command line v2.0
Top ESXi command line v2.0
 
Linux Administration
Linux AdministrationLinux Administration
Linux Administration
 
Linux On V Mware ESXi
Linux On V Mware ESXiLinux On V Mware ESXi
Linux On V Mware ESXi
 
VMworld 2017 vSAN Network Design
VMworld 2017 vSAN Network Design VMworld 2017 vSAN Network Design
VMworld 2017 vSAN Network Design
 
01 t1 s2_linux_lesson1
01 t1 s2_linux_lesson101 t1 s2_linux_lesson1
01 t1 s2_linux_lesson1
 
Linux Administration
Linux AdministrationLinux Administration
Linux Administration
 
VMworld 2016: vSphere 6.x Host Resource Deep Dive
VMworld 2016: vSphere 6.x Host Resource Deep DiveVMworld 2016: vSphere 6.x Host Resource Deep Dive
VMworld 2016: vSphere 6.x Host Resource Deep Dive
 
ESX performance problems 10 steps
ESX performance problems 10 stepsESX performance problems 10 steps
ESX performance problems 10 steps
 
VMworld 2015: Virtualize Active Directory, the Right Way!
VMworld 2015: Virtualize Active Directory, the Right Way!VMworld 2015: Virtualize Active Directory, the Right Way!
VMworld 2015: Virtualize Active Directory, the Right Way!
 
VMworld 2017 - Top 10 things to know about vSAN
VMworld 2017 - Top 10 things to know about vSANVMworld 2017 - Top 10 things to know about vSAN
VMworld 2017 - Top 10 things to know about vSAN
 
VMworld 2017 Core Storage
VMworld 2017 Core StorageVMworld 2017 Core Storage
VMworld 2017 Core Storage
 
Linux ppt
Linux pptLinux ppt
Linux ppt
 

Ähnlich wie Advancedperformancetroubleshootingusingesxtop 101110131727-phpapp02

VMworld 2015: Extreme Performance Series - vSphere Compute & Memory
VMworld 2015: Extreme Performance Series - vSphere Compute & MemoryVMworld 2015: Extreme Performance Series - vSphere Compute & Memory
VMworld 2015: Extreme Performance Series - vSphere Compute & MemoryVMworld
 
Realtime scheduling for virtual machines in SKT
Realtime scheduling for virtual machines in SKTRealtime scheduling for virtual machines in SKT
Realtime scheduling for virtual machines in SKTThe Linux Foundation
 
VMworld 2013: Extreme Performance Series: Monster Virtual Machines
VMworld 2013: Extreme Performance Series: Monster Virtual Machines VMworld 2013: Extreme Performance Series: Monster Virtual Machines
VMworld 2013: Extreme Performance Series: Monster Virtual Machines VMworld
 
vSphere APIs for performance monitoring
vSphere APIs for performance monitoringvSphere APIs for performance monitoring
vSphere APIs for performance monitoringAlan Renouf
 
Advanced virtualization techniques for FAUmachine
Advanced virtualization techniques for FAUmachineAdvanced virtualization techniques for FAUmachine
Advanced virtualization techniques for FAUmachinewebhostingguy
 
Deep Dive on Delivering Amazon EC2 Instance Performance
Deep Dive on Delivering Amazon EC2 Instance PerformanceDeep Dive on Delivering Amazon EC2 Instance Performance
Deep Dive on Delivering Amazon EC2 Instance PerformanceAmazon Web Services
 
Rmll Virtualization As Is Tool 20090707 V1.0
Rmll Virtualization As Is Tool 20090707 V1.0Rmll Virtualization As Is Tool 20090707 V1.0
Rmll Virtualization As Is Tool 20090707 V1.0guest72e8c1
 
Virtualization 101 - DeepDive
Virtualization 101 - DeepDiveVirtualization 101 - DeepDive
Virtualization 101 - DeepDiveAmit Agarwal
 
Session 7362 Handout 427 0
Session 7362 Handout 427 0Session 7362 Handout 427 0
Session 7362 Handout 427 0jln1028
 
(CMP402) Amazon EC2 Instances Deep Dive
(CMP402) Amazon EC2 Instances Deep Dive(CMP402) Amazon EC2 Instances Deep Dive
(CMP402) Amazon EC2 Instances Deep DiveAmazon Web Services
 
Dynamic Memory Management Hyperv 2008 R2 S
Dynamic Memory Management Hyperv 2008 R2 SDynamic Memory Management Hyperv 2008 R2 S
Dynamic Memory Management Hyperv 2008 R2 SEduardo Castro
 
Dynamic Memory Management HyperV R2 SP1
Dynamic Memory Management HyperV R2 SP1Dynamic Memory Management HyperV R2 SP1
Dynamic Memory Management HyperV R2 SP1Eduardo Castro
 
Linux power management: are you doing it right?
Linux power management: are you doing it right?Linux power management: are you doing it right?
Linux power management: are you doing it right?Chris Simmonds
 
20160503 Amazed by AWS | Tips about Performance on AWS
20160503 Amazed by AWS | Tips about Performance on AWS20160503 Amazed by AWS | Tips about Performance on AWS
20160503 Amazed by AWS | Tips about Performance on AWSAmazon Web Services Korea
 
Current and Future of Non-Volatile Memory on Linux
Current and Future of Non-Volatile Memory on LinuxCurrent and Future of Non-Volatile Memory on Linux
Current and Future of Non-Volatile Memory on Linuxmountpoint.io
 
Virtualization Technology Overview
Virtualization Technology OverviewVirtualization Technology Overview
Virtualization Technology OverviewOpenCity Community
 

Ähnlich wie Advancedperformancetroubleshootingusingesxtop 101110131727-phpapp02 (20)

VMworld 2015: Extreme Performance Series - vSphere Compute & Memory
VMworld 2015: Extreme Performance Series - vSphere Compute & MemoryVMworld 2015: Extreme Performance Series - vSphere Compute & Memory
VMworld 2015: Extreme Performance Series - vSphere Compute & Memory
 
Realtime scheduling for virtual machines in SKT
Realtime scheduling for virtual machines in SKTRealtime scheduling for virtual machines in SKT
Realtime scheduling for virtual machines in SKT
 
VMworld 2013: Extreme Performance Series: Monster Virtual Machines
VMworld 2013: Extreme Performance Series: Monster Virtual Machines VMworld 2013: Extreme Performance Series: Monster Virtual Machines
VMworld 2013: Extreme Performance Series: Monster Virtual Machines
 
vSphere APIs for performance monitoring
vSphere APIs for performance monitoringvSphere APIs for performance monitoring
vSphere APIs for performance monitoring
 
Advanced virtualization techniques for FAUmachine
Advanced virtualization techniques for FAUmachineAdvanced virtualization techniques for FAUmachine
Advanced virtualization techniques for FAUmachine
 
Deep Dive on Delivering Amazon EC2 Instance Performance
Deep Dive on Delivering Amazon EC2 Instance PerformanceDeep Dive on Delivering Amazon EC2 Instance Performance
Deep Dive on Delivering Amazon EC2 Instance Performance
 
Chen Haibo
Chen HaiboChen Haibo
Chen Haibo
 
17-virtualization.pptx
17-virtualization.pptx17-virtualization.pptx
17-virtualization.pptx
 
RMLL / LSM 2009
RMLL / LSM 2009RMLL / LSM 2009
RMLL / LSM 2009
 
Rmll Virtualization As Is Tool 20090707 V1.0
Rmll Virtualization As Is Tool 20090707 V1.0Rmll Virtualization As Is Tool 20090707 V1.0
Rmll Virtualization As Is Tool 20090707 V1.0
 
Virtualization 101 - DeepDive
Virtualization 101 - DeepDiveVirtualization 101 - DeepDive
Virtualization 101 - DeepDive
 
Session 7362 Handout 427 0
Session 7362 Handout 427 0Session 7362 Handout 427 0
Session 7362 Handout 427 0
 
(CMP402) Amazon EC2 Instances Deep Dive
(CMP402) Amazon EC2 Instances Deep Dive(CMP402) Amazon EC2 Instances Deep Dive
(CMP402) Amazon EC2 Instances Deep Dive
 
Dynamic Memory Management Hyperv 2008 R2 S
Dynamic Memory Management Hyperv 2008 R2 SDynamic Memory Management Hyperv 2008 R2 S
Dynamic Memory Management Hyperv 2008 R2 S
 
Dynamic Memory Management HyperV R2 SP1
Dynamic Memory Management HyperV R2 SP1Dynamic Memory Management HyperV R2 SP1
Dynamic Memory Management HyperV R2 SP1
 
Linux power management: are you doing it right?
Linux power management: are you doing it right?Linux power management: are you doing it right?
Linux power management: are you doing it right?
 
20160503 Amazed by AWS | Tips about Performance on AWS
20160503 Amazed by AWS | Tips about Performance on AWS20160503 Amazed by AWS | Tips about Performance on AWS
20160503 Amazed by AWS | Tips about Performance on AWS
 
Current and Future of Non-Volatile Memory on Linux
Current and Future of Non-Volatile Memory on LinuxCurrent and Future of Non-Volatile Memory on Linux
Current and Future of Non-Volatile Memory on Linux
 
Virtualization Technology Overview
Virtualization Technology OverviewVirtualization Technology Overview
Virtualization Technology Overview
 
virtual machine.ppt
virtual machine.pptvirtual machine.ppt
virtual machine.ppt
 

Mehr von Suresh Kumar

Vsphere 4-partner-training180
Vsphere 4-partner-training180Vsphere 4-partner-training180
Vsphere 4-partner-training180Suresh Kumar
 
Vsphere4 100325065654-phpapp01
Vsphere4 100325065654-phpapp01Vsphere4 100325065654-phpapp01
Vsphere4 100325065654-phpapp01Suresh Kumar
 
Vmwareserver tips-tricks-110218231744-phpapp01
Vmwareserver tips-tricks-110218231744-phpapp01Vmwareserver tips-tricks-110218231744-phpapp01
Vmwareserver tips-tricks-110218231744-phpapp01Suresh Kumar
 
Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)
Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)
Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)Suresh Kumar
 
Vmwareperformancetroubleshooting 100224104321-phpapp02
Vmwareperformancetroubleshooting 100224104321-phpapp02Vmwareperformancetroubleshooting 100224104321-phpapp02
Vmwareperformancetroubleshooting 100224104321-phpapp02Suresh Kumar
 
Managingvspherewiththevesi 091210144626-phpapp02
Managingvspherewiththevesi 091210144626-phpapp02Managingvspherewiththevesi 091210144626-phpapp02
Managingvspherewiththevesi 091210144626-phpapp02Suresh Kumar
 
Vstoragetamsupportday1 110311121032-phpapp02
Vstoragetamsupportday1 110311121032-phpapp02Vstoragetamsupportday1 110311121032-phpapp02
Vstoragetamsupportday1 110311121032-phpapp02Suresh Kumar
 

Mehr von Suresh Kumar (7)

Vsphere 4-partner-training180
Vsphere 4-partner-training180Vsphere 4-partner-training180
Vsphere 4-partner-training180
 
Vsphere4 100325065654-phpapp01
Vsphere4 100325065654-phpapp01Vsphere4 100325065654-phpapp01
Vsphere4 100325065654-phpapp01
 
Vmwareserver tips-tricks-110218231744-phpapp01
Vmwareserver tips-tricks-110218231744-phpapp01Vmwareserver tips-tricks-110218231744-phpapp01
Vmwareserver tips-tricks-110218231744-phpapp01
 
Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)
Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)
Vmwareperformancetroubleshooting 100224104321-phpapp02 (1)
 
Vmwareperformancetroubleshooting 100224104321-phpapp02
Vmwareperformancetroubleshooting 100224104321-phpapp02Vmwareperformancetroubleshooting 100224104321-phpapp02
Vmwareperformancetroubleshooting 100224104321-phpapp02
 
Managingvspherewiththevesi 091210144626-phpapp02
Managingvspherewiththevesi 091210144626-phpapp02Managingvspherewiththevesi 091210144626-phpapp02
Managingvspherewiththevesi 091210144626-phpapp02
 
Vstoragetamsupportday1 110311121032-phpapp02
Vstoragetamsupportday1 110311121032-phpapp02Vstoragetamsupportday1 110311121032-phpapp02
Vstoragetamsupportday1 110311121032-phpapp02
 

Kürzlich hochgeladen

Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 

Kürzlich hochgeladen (20)

Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 

Advancedperformancetroubleshootingusingesxtop 101110131727-phpapp02

  • 1. Advanced performance troubleshooting using esxtop/resxtop Krishna Raj Raja Staff Engineer, Performance Group © 2010 VMware Inc. All rights reserved
  • 2. Disclaimer This session may contain product features that are currently under development. This session/overview of the new technology represents no commitment from VMware to deliver these features in any generally available product. Features are subject to change, and must not be included in contracts, purchase orders, or sales agreements of any kind. Technical feasibility and market demand will affect final delivery. Pricing and packaging for any new technologies or features discussed or presented have not been determined. “THESE FEATURES ARE REPRESENTATIVE OF FEATURE AREAS UNDER DEVELOPMENT. FEATURE COMMITMENTS ARE SUBJECT TO CHANGE, AND MUST NOT BE INCLUDED IN CONTRACTS, PURCHASE ORDERS, OR SALES AGREEMENTS OF ANY KIND. TECHNICAL FEASIBILITY AND MARKET DEMAND WILL AFFECT FINAL.” 2
  • 3. esxtop resources esxtop manual: http://www.vmware.com/pdf/vsphere4/r41/vsp_41_resource_mgmt.pdf VMware Community documents: http://communities.vmware.com/docs/DOC-9279 - ESX 4.0 http://communities.vmware.com/docs/DOC-11812 - ESX 4.1 esxtop for advanced users: VMworld 2008 - http://vmworld.com/docs/DOC-2356 VMworld 2009 - http://vmworld.com/docs/DOC-3838 3
  • 4. Ten things that you need to know about esxtop 4
  • 5. esxtop counters 1. esxtop does not create performance metrics • esxtop derives performance metrics from raw counters exported in the VMkernel System Info nodes (VSI nodes) • esxtop can show new counters on older ESX system if the raw counters are present in VMKernel 5
  • 6. esxtop counters 2. Counter values • Many raw counters have static values that do no change with time – esxtop displays them as it is • Many counters increment monotonically, esxtop reports the delta for these for the given refresh interval – for instance CMDS/sec, packets transmitted/sec etc • %USED and %RUN - CPU occupancy delta between successive snapshots 6
  • 7. Refresh interval 3. Graphs will look different depending on the refresh interval • Many counters values are dependent on refresh interval • Larger refresh interval smoothens spikes and troughs 2 second refresh interval 10 second refresh interval 7
  • 8. esxtop counters 4. Counter normalization • By default counters are shown for the group • In group view counters values are cumulative • In expanded view, counters are normalized per entity Cumulative stats Pressing ‘e’ key expands a group vcpu world consumes CPU 8
  • 9. esxtop counters 5. %USED can exceed 100 • Turbo boost can increase the processor clock speed • Asynchronous work can be happening on a different core on behalf of the VM VM on a NFS datastore running I/O intensive workload 9
  • 10. esxtop batch mode 6. Batch mode (-b) • Produces windows perfmon compatible CSV file • CSV file compatibility requires fixed number of columns on every row - statistics of VMs/worlds instances that appear after starting the batch mode are not collected because of this reason • Only counters that are specified in the configuration file are collected, (-a) option collects all counters • Counters are named slightly differently 10
  • 11. esxtop batch mode – importing data into perfmon 11
  • 12. esxtop batch mode – viewing data in perfmon 12
  • 13. esxtop batch mode – trimming data Trimming data Saving data after trim 13
  • 15. I/O Latencies 7. IO latencies • IO latencies are measured per SCSI command so it is not affected by refresh interval • Reported latencies are average values for all the SCSI commands issued within the refresh interval window • Reported average latencies can be different on different screens (adapter, LUN, VM), since each screen accounts for different group of I/Os 15
  • 16. resxtop – remote esxtop 8. You can use resxtop to connect to different ESX hosts • Newer version of resxtop will connect to older ESX hosts 9. You don’t need root access to view esxtop counters • resxtop can authenticate using vCenter credentials 16
  • 17. esxtop CPU usage 10. esxtop can consume non-trivial amount of CPU • When you have very large inventory (VMs, LUNs, virtual disks, virtual NICs etc) CPU consumption on a host with 512 VMs CPU usage when using resxtop • You can limit the amount of data collected by limiting the fields (columns) and entities (rows), you can also reduce CPU consumption by locking entities, (-l) option CPU consumption with esxtop -l 17
  • 19. esxtop screens Screens • c: cpu (default) • m: memory VM VM VM VM • n: network • d: disk adapter • u: disk device (added in ESX 3.5) CPU Memory Virtual vSCSI • v: disk VM (added in ESX 3.5) Scheduler Scheduler Switch • i: Interrupts (new in ESX 4.0) c, i, p m n d, u, v • p: power management (new in ESX 4.1) VMkernel 19
  • 21. CPU Constrained SMP VM High CPU utilization Both the virtual CPUs CPU constrained 21
  • 22. CPU Contention 4 CPUs, VMs don’t 3 SMP get to run %ready all at VMs all the time accumulates 100% 22
  • 23. CPU Limit Max Limited CPU Limit AMAX = -1 : Unlimited 23
  • 24. Mis-configured SMP VM vCPU 1 not Incorrect (UP) Kernel/HAL inside the used by the guest or the application inside the VM guest is single threaded 24
  • 25. Power management – CPU frequency scaling C states: C0 – busy, C1 – halted, C2 – deep halt P states: P0 – Highest clock frequency, P11 – Lowest clock frequency 25
  • 26. VM Power Usage Experimental feature, not enabled by default. VMkernel advanced setting: Power.ChargeVMs 26
  • 27. CPU clock frequency scaling VM is running all the time but uses only 75% of the clock frequency %USED: CPU usage with reference to base clock frequency %UTIL: CPU utilization with reference to current clock frequency %RUN: CPU scheduled time 27
  • 28. Hyperthreading Two VMs running on different cores Two VMs sharing the same core %LAT_C counter shows the time de- scheduled due to core sharing 28
  • 29. Timer interrupt rate Linux Guests 29
  • 30. Timer interrupt rate Windows Guests – Multimedia timer 30
  • 31. New metrics in CPU screen %LAT_C : %time the VM was not scheduled due to CPU resource issue %LAT_M : %time the VM was not scheduled due to memory resource issue %DMD : Moving CPU utilization average in the last one minute EMIN : Minimum CPU resources in MHZ that the VM is guaranteed to get when there is CPU contention 31
  • 33. esxtop memory screen (m) Possible states: high, soft, hard and low PMEM – Total Physical memory VMKMEM - Memory managed by VMKernel COSMEM - Memory used by Service Console 33
  • 34. Not able to power-on a new VM Memory reservation 820 MB 4G memory reservation reservation requested Overhead memory needs to be reserved 34
  • 35. Granted Memory Granted Memory = Memory touched by the guest Windows and FreeBSD Guests touches (zeroes) all its memory during boot Linux Guests touches memory when it first uses it 35
  • 36. Ballooning versus Swapping VM with Swapped in the past but Swap target is Memory MCTL: N - Balloon Balloon not actively more for the VM Hog driver not active, tools driver swaps swapping without the balloon VMs probably not installed less now driver 36
  • 37. Memory Compression Stats COWH : Copy on Write Pages hints – amount of memory in MB that are potentially shareable CACHESZ: Compression Cache size CACHEUSD: Compression Cache currently used ZIP/s, UNZIP/s: Memory compression/decompression rate 37
  • 38. Wide NUMA - CPU 2 NUMA nodes with ~6G each NUMA home node not assigned 4G, can fit into a single node 6-vcpu VM – cannot fit into a NUMA node size of 4 CPUs 38
  • 39. NUMA affinity not set NUMA machine with 2 nodes NHN: NUMA Home Node All the memory in remote node NLMEM: Memory in local node NRMEM: Memory in remote node CPU affinity set to wrong NUMA node 39
  • 40. Wide NUMA - Memory 2 NUMA nodes with ~6G each NUMA home node not assigned VM cannot be fit into a single NUMA node 40
  • 42. vSwitch active uplink TEAM-PNIC : The uplink that the virtual switch port is currently using 42
  • 43. Dropped packets at vSwitch Packet drops usually happens when the traffic has no flow control (UDP/Multicast/Broadcast packets) 43
  • 44. Multicast/Broadcast stats PKTTXMUL/s – Multicast packets transmitted per second PKTRXMUL/s – Multicast packets received per second PKTTXBRD/s – Broadcast packets transmitted per second PKTRXBRD/s – Broadcast packets received per second 44
  • 45. NFS stats DAVG and KAVG is not available for network backed storage GAVG – gives the end to end latency 45
  • 47. Disk I/O latency Host bus adapters (HBAs) - Latency stats from the includes SCSI, iSCSI, RAID, Device, Kernel and the and FC-HBA adapters Guest DAVG/cmd - Average latency (ms) from the Device (LUN) KAVG/cmd - Average latency (ms) in the VMKernel GAVG/cmd - Average latency (ms) in the Guest 47
  • 48. Problem with the disk subsystem Good throughput Low device Latency Bad throughput Device Latency is high - cache disabled 48
  • 49. Insufficient Queue depth Non-zero KAVG Queuing at the HBA 49
  • 50. FC bottleneck ‘v’ – VM view ‘u’ – device view ‘d’ – adapter view 50
  • 51. vStorage API for Array Integration (VAAI) stats CLONE_RD, CLONE_WR: Number of Clone read/write requests CLONE_F: Number of Failed clone operations MBC_RD/s, MBC_WR/s – Clone read/write MBs/sec ATS – Number of ATS commands ATSF – Number of failed ATS commands ZERO – Number of Zero requests ZEROF – Number of failed zero requests MBZERO/s – Megabytes Zeroed per second 51
  • 52. VAAI - virtual disk creation example vStorage API for Array Integration (VAAI) 52
  • 55. Other diagnostic tools (1 of 2) sched-stats and schedtrace • vm-support -s/-S flag captures sched-stats • vm-support -c flag captures scheduler trace – takes lot of disk space memstats • Provides detailed memory usage stats with resource pool hierarchy ft-stats • FT Virtual Machine stats • Collected with vm-support –s/S flag 55
  • 56. Other diagnostic tools (2 of 2) swatchStats • Stopwatch stats for VMFS, SCSI events vscsiStats • Virtual machine SCSI disk I/O stats • Provides histogram information for latency, IO size, inter-arrival time and outstanding I/Os 56
  • 57. vscsiStats # vscsiStats -l World group Virtual Machine leader id Name Virtual scsi disk handle ids - unique across virtual machines 57
  • 58. vscsiStats – latency histogram # vscsiStats -p latency -w 118739 -i 8205 Latency in I/O microseconds distribution count 58
  • 59. vscsiStats – iolength histogram # vscsiStats -p iolength -w 118739 -i 8205 I/O block size Distribution Count 59