Giter Site home page Giter Site logo

htejun / resctl-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from facebookexperimental/resctl-demo

3.0 0.0 0.0 3.03 MB

Demonstrate various features of Linux resource control in a self-contained package.

Home Page: https://facebookmicrosites.github.io/resctl-demo-website/

License: Apache License 2.0

Shell 0.12% Python 5.83% Rust 82.82% R 11.23%

resctl-demo's Introduction

resctl-demo logo

Resource control aims to control compute resource distribution to improve reliability and utilization of a system. The facebook kernel and container teams have been intensively researching and implementing mechanisms and methods to advance resource control. resctl-demo demonstrates and documents various aspects of resource control using self-contained workloads in guided scenarios.

resctl-demo in action

Getting Started

Comprehensive resource control has many requirements, some of which can be difficult to configure on an existing system. resctl-demo provides premade images to help getting started. Visit the following page for details:

https://facebookmicrosites.github.io/resctl-demo-website

Discussions

For discussions around resctl-demo and resource control in general:

https://groups.google.com/g/resctl-demo

Requirements

The basic building blocks are provided by the Linux kernel's cgroup2 and other resource related features. On top, usage and configuration methods combined with user-space helpers such as oomd and sideloader implement resource isolation to achieve workload protection and stacking.

  • Linux kernel >= v5.10

  • cgroup2

  • btrfs on non-composite storage device (sda or nvme0n1, not md or dm)

  • Swap file on btrfs at least as large as 1/3 of physical memory

  • systemd

  • oomd

  • python3, findmnt, dd, fio, stdbuf, gcc, ld, make, bison, flex, pkg-config, stress, libssl, libelf

Building

$ cargo build --release

Installing resctl-demo

$ sudo ./install.sh /usr/local/bin

Running resctl-demo

$ sudo systemd-run --scope --slice hostcritical.slice --unit resctl-demo /usr/local/bin/resctl-demo

License

resctl-demo is apache-2.0 licensed, as found in the LICENSE file.

resctl-demo's People

Contributors

htejun avatar plv avatar saravan2 avatar

Stargazers

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