Skip to content
This repository was archived by the owner on Jul 11, 2025. It is now read-only.

Use CPU info instead of hypervisor list data#153

Open
rodrigogansobarbieri wants to merge 1 commit into
canonical:mainfrom
rodrigogansobarbieri:cpu_info_vcpus
Open

Use CPU info instead of hypervisor list data#153
rodrigogansobarbieri wants to merge 1 commit into
canonical:mainfrom
rodrigogansobarbieri:cpu_info_vcpus

Conversation

@rodrigogansobarbieri
Copy link
Copy Markdown

The total amount of VCPUs should be obtained from
cpu_info instead of VCPUs column of hypervisor list, which does not account for pinned CPUs specified by cpu_dedicated_set nova config option.

The cpu_info data may be empty in some circumstances (such as old openstack client or certain virt drivers), so fallback to old method in that case.

Reserved CPUs are accounted in the "VCPUs Used" column of hypervisor list output.

Closes: #152

@rodrigogansobarbieri
Copy link
Copy Markdown
Author

needs more testing

The total amount of VCPUs should be obtained from
cpu_info instead of VCPUs column of hypervisor list,
which does not account for pinned CPUs specified by
cpu_dedicated_set nova config option.

The cpu_info data may be empty in some circumstances
(such as old openstack client or certain virt drivers),
so fallback to old method in that case.

Reserved CPUs are accounted in the "VCPUs Used" column of
hypervisor list output.

Closes: canonical#152

Signed-off-by: Rodrigo Barbieri <rodrigo.barbieri@canonical.com>
@rodrigogansobarbieri
Copy link
Copy Markdown
Author

added "signed-off-by" tag

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vcpu usage reported incorrectly when cpu pinning is used

2 participants