From Fedora Project Wiki

 
(3 intermediate revisions by 2 users not shown)
Line 14: Line 14:


; http://www.linux-kvm.org/page/Documents: KVM documentation page.
; http://www.linux-kvm.org/page/Documents: KVM documentation page.
; [[http://www.youtube.com/watch?v=t0XDEAECObA|O'Reilly Webcast: When Times Get Tough, The Tough Get Tuning]]: Dee-Ann LeBlanc of Splunk shows how you can get better performance from your hardware without throwing dollars at it.
; [http://www.youtube.com/watch?v=t0XDEAECObA O'Reilly Webcast: When Times Get Tough, The Tough Get Tuning]: Dee-Ann LeBlanc of Splunk shows how you can get better performance from your hardware without throwing dollars at it.


=== Open issues ===
=== Open issues ===
Line 21: Line 21:
; yum install sysstat: This contains 'sar' and 'iostat'
; yum install sysstat: This contains 'sar' and 'iostat'


== Operating Environment ==
== Tools ==
 
=== Operating Environment ===


; perf: Performance analysis tools for Linux.  
; perf: Performance analysis tools for Linux.  
* e.g. '''perf top'''
* e.g. '''perf top'''


== Storage ==
=== Storage ===


== Network ==
=== Network ===


== Virtualiser ==
=== Virtualiser ===


* http://www.xen.org/files/xensummit_intel09/xen-debugging.pdf
* http://www.xen.org/files/xensummit_intel09/xen-debugging.pdf
Line 36: Line 38:
* http://wiki.xensource.com/xenwiki/XendInternalsDebugging
* http://wiki.xensource.com/xenwiki/XendInternalsDebugging


; xentrace: See also: [[http://kibab.homeip.net/hw/vienna_hw6/tut_xentrace.html| xentrace example]]
; xentrace: See also: [http://kibab.homeip.net/hw/vienna_hw6/tut_xentrace.html xentrace example]
; xentrace_format:
; xentrace_format:
; kmv_stat: in qemu-kvm-tools package.
; kmv_stat: in qemu-kvm-tools package.


=== Configuring the xentrace ===
==== Configuring the xentrace ====
# get the ''xentrace_formats'' file
# get the ''xentrace_formats'' file
#* extract the ''tools/xentrace/formats'' file from the source code.
#* extract the ''tools/xentrace/formats'' file from the source code.
#* Get the source code at: http://www.xen.org/products/xen_archives.html
#* Get the source code at: http://www.xen.org/products/xen_archives.html
# set the masks
# set the masks
#* See also: [[http://support.citrix.com/article/CTX121583|Event Classes (Masks)]]
#* See also: [http://support.citrix.com/article/CTX121583 Event Classes (Masks)]
#* ./xen/include/public/trace.h
#* ./xen/include/public/trace.h
#* ./xen/include/asm-x86/hvm/trace.h
#* ./xen/include/asm-x86/hvm/trace.h
#** find . | xargs grep HVMTRACE_2D
#** find . | xargs grep HVMTRACE_2D


== Administration ==
=== Administration ===


== Scratch pad ==
=== Scratch pad ===
INSTALLATION
INSTALLATION
   yum install sysstat
   yum install sysstat
Line 107: Line 109:




=== Performmance measurements on various virtualization soulutions ===
=== Performance measurements on various virtualization soulutions ===
* [[http://www.ilsistemista.net/index.php/virtualization/1-virtual-machines-performance-comparison.html?start=6|Virtual machines performance comparison: vmware vs virtualbox vs kvm vs xen - I/O benchmarks: Windows 2008 installation time]]
* [http://www.ilsistemista.net/index.php/virtualization/1-virtual-machines-performance-comparison.html?start=6 Virtual machines performance comparison: vmware vs virtualbox vs kvm vs xen - I/O benchmarks: Windows 2008 installation time]
* [[http://www.usenix.org/event/usenix06/tech/menon/menon_html/paper.html|Optimizing Network Virtualization in Xen]
* [http://www.usenix.org/event/usenix06/tech/menon/menon_html/paper.html Optimizing Network Virtualization in Xen]
 
== Key kernel statistics ==
 
=== CPU ===


==== Softirqs ====
Backen interrupt handlers.
== Trouble shooting ==
== Trouble shooting ==

Latest revision as of 06:22, 10 October 2011

Performance observation short cuts for noobs

Introduction

Purpose

Scope

Acronyms, descriptions

References

http://www.linux-kvm.org/page/Documents
KVM documentation page.
O'Reilly Webcast: When Times Get Tough, The Tough Get Tuning
Dee-Ann LeBlanc of Splunk shows how you can get better performance from your hardware without throwing dollars at it.

Open issues

Installing the packages needed

yum install sysstat
This contains 'sar' and 'iostat'

Tools

Operating Environment

perf
Performance analysis tools for Linux.
  • e.g. perf top

Storage

Network

Virtualiser

xentrace
See also: xentrace example
xentrace_format
kmv_stat
in qemu-kvm-tools package.

Configuring the xentrace

  1. get the xentrace_formats file
  2. set the masks
    • See also: Event Classes (Masks)
    • ./xen/include/public/trace.h
    • ./xen/include/asm-x86/hvm/trace.h
      • find . | xargs grep HVMTRACE_2D

Administration

Scratch pad

INSTALLATION

 yum install sysstat
   sar and iostat

XOSview GKRellM gnuplot


vmstat mpstat -P ALL top sar iostat ps


RAM vmstat -s free


cpu sar -P ALL -u ALL 10 10



NETWORK netstat

-i
-a
-s
-f

iostat ttcp


IO Performance iostat

-x 

vmstat sar nfsstat bonnie++


TUNING MME sysctl and sysctl.conf


Performance measurements on various virtualization soulutions

Key kernel statistics

CPU

Softirqs

Backen interrupt handlers.

Trouble shooting