Power Usage Estimation of a RISC-V Platform using RTOS Events
- Typ der Arbeit: Bachelorarbeit
- Status der Arbeit: in Planung
- Projekte: AHA
- Betreuer: Tim-Marek Thomas, Daniel Lohmann
Context
Within the AHA project, we focus on optimizing embedded systems by specialization of the OS itself. The aim is to improve non-functional system properties like delay or memory footprint, which can reduce hardware costs and energy consumption.
For online optimization, e.g. via different scheduling approaches, and profiling we need to estimate the power usage. In the past, this was primarily done using a modelling approach via performance monitoring counters(PMCs)1 or via special hardware components.
Problem
In a previous bachelor thesis(see below) an evaluation setup was already created, which collects PMCs and power measurements during representative workloads. For this we provided the SoC3 and a measurement device (a Rohde & Schwarz™ HMO3004 digital oscilloscope). Based on those measurements several models were trained, which allowed an estimation of the power consumption.
However, a lot of microcontrollers feature only a limited set of PMCs (e.g. the provided SoC has only 2 PMC registers available), thus the accuracy of the estimation is limited. One way to solve this problem is to employ multiplexing of the PMC register 2. Another approach is to utilize software defined "PMC"s to broaden the simultaneousily recordable data.
Goal
In this thesis, the setup shall be extended to use hooks provided by an operating system, in our case the tracing subsystem of Zephyr4. OS events shall then be used instead of hardware PMCs (or in conjunction), like the amount of context switches, access to resources like queues, etc. as model inputs. A short suggestion of suitable events is already proposed in the previous thesis.
In particular, the following steps need to be taken:
- Literature research regarding prior usage of (RT)OS events (or similar, software defined events) for power modeling
- Recreate the setup of the previous bachelor thesis
- Adjust the existing setup for collection of chosen OS events and current readings 5
- Evaluate the correlation of the collected events with the power consumption/current
- Implement and evaluate several models, which are based on a mixture of events and PMC event counters (or even only RTOS events)
- Optional: Extend the setup to a whole system approach, based on trickle-down effects6
Topics: C/C++, Python, RISC-V, Zephyr
References
On the Power Estimation of a RISC-V Platform using Performance Monitoring Counters and RTOS Events
- Typ
- Bachelorarbeit
- Status
- abgeschlossen
- Supervisors
- Tim-Marek Thomas
Daniel Lohmann - Project
- AHA
- Bearbeiter
- Johannes Arnold (abgegeben: 14. Oct 2024)
-
A Study on the Use of Performance Counters to Estimate Power in Microprocessors ↩
-
Portable, Scalable, per-Core Power Estimation for Intelligent Resource Management ↩
-
https://docs.zephyrproject.org/latest/services/tracing/index.html ↩
-
It might be difficult to find real applications for the evaluation. Zephyr includes small test applications, another possible benchmark suite is currently in use/ is ported in another thesis ↩
-
Complete system power estimation: A trickle-down approach based on performance events ↩