Giter Site home page Giter Site logo

researchproject's Introduction

An independent assessment of the accuracy of SmartWatts in the context of Docker-based microservices

Configure SmartWatts

Run the ./sw_autoconfig.sh script to configure SmartWatts

Start Watts Up Pro profiler

Run the start-wattsup_pro_glx.sh script to start the Watts Up Pro profiler. The script can be changed to listen to a specific port, output a named log file and to profiler for a specific amount of time.

Start SmartWatts benchmarking

Run the ./start-experiment.sh to start the benchmarking of the microservices using SmartWatts. All the configurable variables can be found in the /Containers/.env file. If the script is interrupted, you can clean everything up with by running ./emergency-cleanup.sh script.

Linux Cgroups

Run ls /sys/fs/cgroup command in the terminal to determine the architecture of the CGroup version the machine is running. If perf_event cgroup is not available at the previous path, run grep cgroup /proc/filesystems to determine the CGroup version. Mounting the perf_event cgroup may be necessary.

If the machine has CGroupV2 and CGroupV1, you need to configure Docker to run using the cgroupfs driver. To do so, perform the following actions:

  • Docker config
$ systemctl status docker
#Check following section 
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)

$ sudo mkdir -p /etc/systemd/system/docker.service.d
$ sudo nano /etc/systemd/system/docker.service.d/override.conf
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --exec-opt native.cgroupdriver=cgroupfs

#Restart the Docker service by running the following command:
$ systemctl daemon-reload
$ systemctl restart docker

# Verify the cgroups driver to systemd
$ docker info
  • Grub config
#Make sure systemd.unified_cgroup_hierarchy=0 is added in /etc/default/grub
$ cat /etc/default/grub
$ nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="systemd.unified_cgroup_hierarchy=0"

$ sudo grub-update

Determine if the linux kernel has access to perf events

Run the following commands:

  • sudo apt install -y linux-tools $(uname-r)
  • perf list | grep power/
  • modinfo rapl

researchproject's People

Contributors

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