Bug 1782077

Summary: [RFE] More Flexible RHV CPU Allocation Policy with HyperThreading
Product: Red Hat Enterprise Virtualization Manager Reporter: Kumar Mashalkar <kmashalk>
Component: ovirt-engineAssignee: Liran Rotenberg <lrotenbe>
Status: CLOSED ERRATA QA Contact: Polina <pagranat>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3.6CC: ahadas, aperotti, apinnick, fdeutsch, gveitmic, lrotenbe, lsurette, michal.skrivanek, mkalinin, mtessun, nobody, shipatil, srevivo, swachira, ycui
Target Milestone: ovirt-4.5.1Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.5.1 Doc Type: Enhancement
Doc Text:
An "isolated threads" CPU pinning policy has been added. This policy pins a physical core exclusively to a virtual CPU, enabling a complete physical core to be used as the virtual core of a single virtual machine.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-14 12:54:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1729464    

Description Kumar Mashalkar 2019-12-11 06:14:41 UTC
Description of problem:
Need the flexibility of using threading as vCPU as well as complete pCPU as vCPU in the same cluster.

The CPU intense VMs should use the complete pCPU and less CPU-Intense VMS will use pCPU threads as vCPU.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Looking for more options CPU allocation options as Openstack

Valid CPU-POLICY values are:

    shared: (default) The guest vCPUs will be allowed to freely float across host pCPUs, albeit potentially constrained by NUMA policy.
    dedicated: The guest vCPUs will be strictly pinned to a set of host pCPUs. In the absence of an explicit vCPU topology request, the drivers typically expose all vCPUs as sockets with one core and one thread. When strict CPU pinning is in effect the guest CPU topology will be setup to match the topology of the CPUs to which it is pinned. This option implies an overcommit ratio of 1.0. For example, if a two vCPU guest is pinned to a single host core with two threads, then the guest will get a topology of one socket, one core, two threads.

Valid CPU-THREAD-POLICY values are:

    prefer: (default) The host may or may not have an SMT architecture. Where an SMT architecture is present, thread siblings are preferred.
    isolate: The host must not have an SMT architecture or must emulate a non-SMT architecture. If the host does not have an SMT architecture, each vCPU is placed on a different core as expected. If the host does have an SMT architecture - that is, one or more cores have thread siblings - then each vCPU is placed on a different physical core. No vCPUs from other guests are placed on the same core. All but one thread sibling on each utilized core is therefore guaranteed to be unusable.
    require: The host must have an SMT architecture. Each vCPU is allocated on thread siblings. If the host does not have an SMT architecture, then it is not used. If the host has an SMT architecture, but not enough cores with free thread siblings are available, then scheduling fails.
~~~

Comment 2 Ryan Barry 2019-12-12 00:31:01 UTC
This is a large feature request, and we are nearing the end of RFE fulfillment for 4.4. Targeting to 4.5

It's possible to approximate this with CPU pinning and reasonable templates

Comment 19 Arik 2022-03-27 16:21:10 UTC
*** Bug 1957551 has been marked as a duplicate of this bug. ***

Comment 20 Sandro Bonazzola 2022-03-29 16:16:40 UTC
We are past 4.5.0 feature freeze, please re-target.

Comment 21 Sandro Bonazzola 2022-04-01 16:06:54 UTC
Arik I see you marked this as fixed in ovirt-engine-4.5.0.1 but bug is still in POST state. Can you please check?

Comment 22 Arik 2022-04-03 11:13:30 UTC
Yeah, that's because it lacked Doc Text

Comment 27 Arik 2022-04-12 16:21:54 UTC
The isolate policy that was requested here is not yet in
Should be fairly easy to get it based on the changes in 4.5.0

Comment 31 Polina 2022-06-21 16:37:11 UTC
Verified on ovirt-engine-4.5.1.2-0.11.el8ev.noarch according to the attached Polarion Plan

Comment 35 errata-xmlrpc 2022-07-14 12:54:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: RHV Manager (ovirt-engine) [ovirt-4.5.1] security, bug fix and update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:5555