Skip to content

Hardware Engagement

In this document, we will share our steps as how to engagement kepler with a specific hardware device. Considering there are many different hardware devices, we will just write down major steps here as current stage. You are able to take this out as a todo list and step by step to make kepler engage with your own hardware device.

Stage 0 Proof

In this Stage, we will focus on basic data can be collected by golang, and you can build your own kepler which running on your device well. The following steps can running in parallel.

Binary build and container build

Currently kepler container image is from a GPU image to support GPU case. Considering a general case for IOT device. You may need to build kepler from UBI image. We recommend you following steps below to setup a local build env and try to build.

  1. Find a linux OS.
  2. Install kepler dependencies as eBPF golang(BCC), linux header and build kepler(from main branch or latest release branch) binary.
  3. (Optional)Modify dockerfile to build the container image.

Power consumption API

Currently, we use power consumption API as RAPL or ACPI. For some of the devices, you may need to find your own way to get power consumption, and implement in golang for kepler usage. For further plan, please ref here

eBPF/cgroup data

Currently, we relays on eBPF and cgroup to characterization a process/pod. Hence, you can ref to our dependency as BCC or cgroup. To test those golang package works well on your device.

Stage 1 Integration with ratio

During this Stage, we are going to ref Kepler model. To integrate and implement your own logic specific to your device and deep dive into Power consumption API.

Scope

You should know the scope of the Power consumption API. How many API do you have? Is it categorized by CPU/memory/IO or not?

Interval

You should know the intervals of the Power consumption API. As kepler collect eBPF and cgroup data in each 3s by default, you should know the interval and make them in same time slot.

Verify

You can cross check and verify the data.

Stage 2 Model_training

TBD

Copyright Contributors to the Kepler's project.

The Linux Foundation® (TLF) has registered trademarks and uses trademarks. For a list of TLF trademarks, see Trademark Usage.