Implementing a new Resource Allocation Policy¶
The resource allocation policies are part of the BarbequeRTRM installation in
form of plugin libraries, deployed under <BOSP_PREFIX>/usr/lib/bbque/plugins/
.
The installed policies can be easiliy recognized by the prefix
libbbque_schedpol_
prefix in the name of the files.
During the BOSP configuration and installation, we can typically select the policy plugin to load and use for the resource management process.
In this section we show how to develop a new resource allocation policy, add it to the BarbequeRTRM codebase and select it for the execution of the resource manager.
Resource allocation flow¶
The execution of the resource allocation policy can be triggered by the occurrence of a specific event (e.g., a starting application) or the periodical expiration of a configurable timer.
In the following picture, we sketched the sequence of internal objects and related member function invocations, involved in the process of allocating resources to a starting application.