Code Monkey home page Code Monkey logo

kvmperf's Introduction

Introduction

This is a hacked together test suite of a number benchmarks I use to run workloads on KVM/ARM and x86 platforms to evaluate the relative performance.

How to use

This is what you need:

  • An ARM board that can run VMs (like an A15 of some sort)
  • The ARM board must be running a KVM-enabled kernel
  • The ARM board must be accessible by ssh using public key authentication to root@<board-ip> without providing a password
  • The ARM board must have a script in root's home folder named run-ubuntu.sh, which runs a VM using either QEMU or kvmtool. Sample script for run-guest.sh is provided here - run-ubuntu.sh is just a wrapper that sets the name to ubuntu. The script will assume a file named ubuntu.img containing a file system image.
  • The guest must use bridged networking and must also accept ssh connections using public key authentication just like the board itself: ssh root@<guest-ip>

TODO: Describe required support for x86 TODO: Describe how to use the power test

Then, to run a test, you simply do: ./run-all.sh --help ...and follow the instructions

Experiments Logbook

To carry out the full test suite, we need:

  • SMP numbers host/guest
  • UP number host/guest
  • ARM no vgic/timers guest SMP/UP
  • LMBENCH ARM/x86
  • Power Numbers

Laptop Notes

  1. Boot host with "maxcpus=2 mem=1536M" on the kernel command line
  2. Get non-graphics tty (ctrl+alt+f6)
  3. shutdown not-needed services
    1. service lightdm stop
    2. service network-manager stop
    3. service avahi-daemon stop
  4. for i in seq 0 1; do cpufreq-set -c $i -g performance; done;'
  5. ./run-all.sh --host-only
  6. TODO: LMBENCH
  7. Boot host with "maxcpus=2 mem=2048M" on the kernel command line
  8. Get non-graphics tty (ctrl+alt+f6)
  9. shutdown not-needed services
    1. service lightdm stop
    2. service network-manager stop
    3. service avahi-daemon stop
  10. sudo bash -c 'for i in seq 0 1; do cpufreq-set -c $i -g performance; done;'
  11. ./run-all.sh --guest-only

3.10 Measurement Notes

Arndale host source: git://github.com/columbia/linux-kvm-arm.git v3.10-arndale-measue 5cf2e8efe14e8aba05432e02edce59c252e3500c

git://github.com/columbia/linux-kvm-arm.git v3.10-vexpress-measure 94af25f43d7864caa3cda269ea63885c984395a6

kvmperf's People

Contributors

chazy avatar gkoloventzos avatar zhemao avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.