Clarify hypervisor CPU metrics

Bug #1656235 reported by Andreas Scheuring
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova-dpm
Triaged
Medium
Sreeram Vancheeswaran

Bug Description

DPM is using shared IFL processors. DPM was configured to use 2 processors:

nova hypervisor-show foo
+---------------------------+----------------+
| Property | Value |
+---------------------------+----------------+
| cpu_info_arch | s390x |
| cpu_info_features | [] |
| cpu_info_model | host |
| cpu_info_topology_cores | 2 |
| cpu_info_topology_sockets | 0 |
| cpu_info_topology_threads | 1 |
| cpu_info_vendor | IBM |
| vcpus | 2 |
| vcpus_used | 0 |
+---------------------------+----------------+

Now if you start an instance with 2 processors the output looks like this:
nova hypervisor-show foo
+---------------------------+----------------+
| Property | Value |
+---------------------------+----------------+
| cpu_info_arch | s390x |
| cpu_info_features | [] |
| cpu_info_model | host |
| cpu_info_topology_cores | 2 |
| cpu_info_topology_sockets | 0 |
| cpu_info_topology_threads | 1 |
| cpu_info_vendor | IBM |
| vcpus | 2 |
| vcpus_used | 2 |
+---------------------------+----------------+

If you start another instance with 2 processors the output still looks like this:
nova hypervisor-show foo
+---------------------------+----------------+
| Property | Value |
+---------------------------+----------------+
| cpu_info_arch | s390x |
| cpu_info_features | [] |
| cpu_info_model | host |
| cpu_info_topology_cores | 2 |
| cpu_info_topology_sockets | 0 |
| cpu_info_topology_threads | 1 |
| cpu_info_vendor | IBM |
| vcpus | 2 |
| vcpus_used | 2 |
+---------------------------+----------------+

--> That's confusing! Should we reconsider the the way of how vcpus are calculated?
The issues probably is, that we have shared CPUs, but each partition can only have be attached to a single shared CPU once. In other words, if you have 3 shared cpus, a partition can have a maximum number of 3 vCPUs.

In addition the other CPU attributes should be clarified as well! (cores, sockets, threads,...)

description: updated
Changed in nova-dpm:
assignee: nobody → Sreeram Vancheeswaran (sreeram-vancheeswaran)
importance: Undecided → Medium
status: New → Triaged
summary: - Number available and used vcpus is confusing
+ Clarify hypervisor CPU metrics
description: updated
Revision history for this message
Marco Pavone (pavone) wrote :

I agree it is confusing, but this seems like a general OpenStack issue: https://blueprints.launchpad.net/nova/+spec/vcpus-in-api

The most interesting question is, if that is "only" a UI/API deficiency, or if the scheduler is relying on wrong data, i.e. if the pCPU * Overcommit-Ratio is not the same as total vCPUs - so the impact would be that not all avail. resources could be used.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.