CPU frequency scheduling of real-time applications on embedded devices with temporal encoding-based deep reinforcement learning

Ti Zhou, Man Lin
9/7/2023
cs.LGcs.AIcs.AR

Official code: coladog/tinyagent (23 stars, MIT, last commit 2024-06-30).

Abstract

Small devices are frequently used in IoT and smart-city applications to perform periodic dedicated tasks with soft deadlines. This work focuses on developing methods to derive efficient power-management methods for periodic tasks on small devices. We first study the limitations of the existing Linux built-in methods used in small devices. We illustrate three typical workload/system patterns that are challenging to manage with Linux's built-in solutions. We develop a reinforcement-learning-based technique with temporal encoding to derive an effective DVFS governor even with the presence of the three system patterns. The derived governor uses only one performance counter, the same as the built-in Linux mechanism, and does not require an explicit task model for the workload. We implemented a prototype system on the Nvidia Jetson Nano Board and experimented with it with six applications, including two self-designed and four benchmark applications. Under different deadline constraints, our approach can quickly derive a DVFS governor that can adapt to performance requirements and outperform the built-in Linux approach in energy saving. On Mibench workloads, with performance slack ranging from 0.04 s to 0.4 s, the proposed method can save 3% - 11% more energy compared to Ondemand. AudioReg and FaceReg applications tested have 5%- 14% energy-saving improvement. We have open-sourced the implementation of our in-kernel quantized neural network engine. The codebase can be found at: https://github.com/coladog/tinyagent.

View on arXivView PDF

Code Implementations(1)

coladog/tinyagentOfficial100%
MIT

generates C-based neural networks for inference in Linux kernel-similar environments

233CMar 28, 20232 years agoMIT

Similar Papers

Cite this paper

@article{zhou2023frequency,
  title  = {CPU frequency scheduling of real-time applications on embedded devices with temporal encoding-based deep reinforcement learning},
  author = {Ti Zhou and Man Lin},
  year   = {2023},
  eprint = {2309.03779},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.03779v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.03779.svg)](https://codeofpaper.com/paper/2309.03779)

Discussion