Giter Club home page Giter Club logo

qpoints's Introduction

QPoints

QPoints is a tool to generate a gem5 compatible checkpoints using QEMU. This tool currently works for only ARM system. This tool was created to reduce time spent in reaching a state state of long running applcations.

Requirements:

  1. QEMU
  2. Docker
  3. Python3
    • Jinja2 python module
  4. gdb-multiarch
  5. A disk image
  6. (Optional) ARM Powered Apple Mac system. Needed this only to accelerate emulation.

Setup:

  1. Install docker, git, qemu-system packages on your host machine

    sudo apt-get install git docker qemu-system
    
  2. Run setup script which sets up directoris and builds a docker image

    bash setup.sh
    
  3. Download a disk image from Google Drive. Download script works in docker environment. Follow below steps do get the image.

    bash run_docker.sh
    bash imgs/download_image.sh
    exit
    

    After running above set of commands imgs folder contains ubuntu-arm.img disk image.

    Ubuntu image login user is bgodala and password is 1234.

Steps to create a checkpoint:

  1. Launch QEMU emulation using the run_ubuntu_linux.sh file
    bash run_ubuntu.sh
    
  2. After reaching a steady state invoke the following command to create a checkpoint. gen_snapshot.sh command works in the docker environment. Start the docker and then invoke checkpoint generation command.
    bash run_docker.sh
    bash gen_snapshot.sh
    exit
    

Test Checkpoint:

  1. To test checkpoint gem5 needs to be built. Use the following command to build gem5.

    Start docker environment.

    bash run_gem5_docker.sh
    

    Build gem5.

    cd gem5
    scons -j8 build/ARM/gem5.opt
    exit
    
  2. Run checkpoint in the docker environment.

    bash run_gem5_docker.sh
    bash run_gem5.sh
    exit
    

qpoints's People

Contributors

bgodala 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.