Giter Site home page Giter Site logo

cloudxtreme / memguard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hooklift/memguard

0.0 1.0 0.0 121 KB

Memory Bandwidth Reservation System for Efficient Performance Isolation in Multi-core Processors

Home Page: https://github.com/heechul/memguard/wiki/MemGuard

Makefile 0.46% Python 4.03% C 69.78% Shell 18.03% C++ 7.71%

memguard's Introduction

MemGuard: Memory Bandwidth Reservation System

Heechul Yun ([email protected])

Preparation

Recommended kernel settings are as follows:

CONFIG_ACPI_PROCESSOR=n
CONFIG_CPU_IDLE=n

Install

# make
# insmod memguard.ko	
    <-- Load the module by doing

Usages

Once the module is loaded, it provides several configuration interfaces as follows:

- per-core bandwidth assignment.

assign 900,100,100,100 MB/s for Core 0,1,2,3
# echo mb 900 100 100 100 > /sys/kernel/debug/memguard/limit

assign 70%,10%,10%,10% of guaranteed bandwidth(r_min) for Core 0,1,2,3
# echo 70 10 10 10 > /sys/kernel/debug/memguard/limit

assign weights(1:2:4:8) for Core 0,1,2,3
# echo 1 2 4 8 > /sys/kernel/debug/memguard/share


- per-task mode (use task priority as core's memory weight)

enable per-task mode
# echo taskprio 1 > /sys/kernel/debug/memguard/control

disble per-task mode (=per-core mode)
# echo taskprio 0 > /sys/kernel/debug/memguard/control


- set maxbw (r_min in the paper)

# echo maxbw 1200 > /sys/kernel/debug/memesched/control


- reclaim control

enable
# echo reclaim 1 > /sys/kernel/debug/memesched/control

disable
# echo reclaim 0 > /sys/kernel/debug/memesched/control


- exclusive mode control

proportional share mode (see TC submission)  
# echo exclusive 5 > /sys/kernel/debug/memguard/control

spare b/w sharing mode (see RTAS13)
# echo exclusive 2 > /sys/kernel/debug/memguard/control

last exclusive. last core exclusively use the rest b/w (not in the paper)
# echo exclusive 1 > /sys/kernel/debug/memguard/control

memguard's People

Contributors

heechul avatar

Watchers

 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.