Giter Site home page Giter Site logo

avx512-grafana's Introduction

Demonstrating AVX512 vs AVX2 on Red Hat OpenShift

Authors: Rhys Oxenham

This repository aims to demonstrate AVX512 vs AVX2 performance in the Monte Carlo simulation (which should result in ~50% perf increase), and how to set it up visually in Red Hat OpenShift.

NOTE: You will need to ensure that you have nodes that support AVX512/AVX2 in your OpenShift cluster, or the workloads will fail to schedule!

The deployment script does the following-

  • Create a new dedicated OpenShift project "monte-carlo"
  • Enable user-workload monitoring in built-in OpenShift monitoring
  • Deploy an AVX512 and AVX2 based Monte Carlo simulation pod (with Prometheus Push Gateway)
  • Enable ServiceMonitors for the two workload pods to scrape gateways
  • Deploy the Grafana Community Operator (v4.7.0) and create an instance
  • Create a Grafana service account to have access to Prometheus/Thanos data (built-in)
  • Add Grafana Datasource for Prometheus/Thanos data (built-in)
  • Deploy a Custom Grafana Dashboard to show "time_elapsed" between AVX2 and AVX512
  • Show the Grafana Dashboard Route to the user

NOTE: Make sure that you've deployed the NodeFeatureDiscovery operator, and an equivalent instance, as we tag the workload pods to nodes that support required features:

spec:
  restartPolicy: Never
  nodeSelector:
    feature.node.kubernetes.io/cpu-cpuid.AVX512BW: "true" # requires NFD

Deployment

To deploy the environment, simply run the following, assuming you have already configured your OpenShift client and have system:admin access:

# oc whoami
system:admin

# ./deploy.sh
(...)

Clean Up

To clean up all of the resources, simply run the following-

# ./cleanup.sh
(...)

avx512-grafana's People

Contributors

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