This link provides a set of scripts that can be run to automate the installation of pcp and openstack components needed to use Host Memory Bandwidth Information for cloud placement decisions.
Following gives a brief description of each of the files:
-
utils.py: This file contains a set of utilities needed by the scripts below.
-
libpfm_pcp.py: This file is responsible for installing the libpfm and pcp components. This script assumes that the kernel components needed to expose Memory Bandwidth are already available on the system on which this would be run.
-
openstack_install_compute.py: This file is responsible for installing the openstack components needed to report the host memory bandwidth on the Compute node.
-
openstack_install_controller.py: This file should be executed on the OpenStack scheduler node.
Note: In addition to running this script, $python_path/nova/nova-12.0.0-py2.7.egg-info/entry_points.txt should be updated with the following entry on each of the compute nodes:
[nova.compute.monitors.membw]
virt_driver = nova.compute.monitors.membw.virt_driver:Monitor
The minimum libvirt version required on the PowerPC compute node is 1.2.19 The changes are based on OpenStack Liberty
Broadly, the scripts perform the following actions:
-
Pulls code from hardcoded git repositories which are pretty much WIP.
-
Does all the necessary installation steps required to make things work.
This is pretty much WIP (Work In Progress)