libvirt: support for perf event

Registered by Ren Qiaowei on 2016-05-21

The purpose of this blueprint is to add an ability to use perf event to gain statistic (like cache usage) for each instance.

On libvirt >=1.3.3, it supports using Linux perf to get specify perf event stats, we can add this support by adding new list configure option in libvirt section of nova.conf, such as perf_events_list=['cmt'] or monitor_events_list, just TBD (default=[]), then libvirt driver pick it when create a new xml.

This feature is required by Ceilometer to collect l3 cache data. https://blueprints.launchpad.net/ceilometer/+spec/l3-cache-meter

Blueprint information

Status:
Complete
Approver:
Matt Riedemann
Priority:
Low
Drafter:
Ren Qiaowei
Direction:
Approved
Assignee:
Eli Qiao
Definition:
Approved
Series goal:
Accepted for newton
Implementation:
Implemented
Milestone target:
milestone icon newton-2
Started by
Matt Riedemann on 2016-06-14
Completed by
Matt Riedemann on 2016-06-29

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/support-perf-event,n,z

Addressed by: https://review.openstack.org/319513
    Add libvirt perf event <- spec

Gerrit topic: https://review.openstack.org/#q,topic:bp/is,n,z

Addressed by: https://review.openstack.org/320897
    libvirt: add perf event support when create instance

Addressed by: https://review.openstack.org/329339
    libvirt: Add migration support for perf event support

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.