Bug 1222325
Summary: | Guests machine are not SMT capable | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] RHEV for Power | Reporter: | Facundo Garat <facundo.garat> | ||||
Component: | qemu-kvm-rhev | Assignee: | Virtualization Maintenance <virt-maint> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 3.4 | CC: | dgibson, facundo.garat, hannsj_uhl, james, knoel, michal.skrivanek, michen, sherold, virt-maint | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | ppc64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-05-11 05:30:21 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1308609, 1359843 | ||||||
Attachments: |
|
Description
Facundo Garat
2015-05-17 16:28:04 UTC
Here is a reference of the configuration needed on the VM for this to work: https://www.ibm.com/developerworks/community/forums/html/topic?id=27d8364f-c952-49fe-a989-fc328c1f7110 that's the correct question/suggestion. for the entry above, the vcpu should be set to 16. I just checked on a RH 7.1 vm and the following in the domain works (ppc64_cpu --smt give SMT=8): <vcpu placement='static'>16</vcpu> and <cpu mode='host-passthrough'> <topology sockets='1' cores='2' threads='8'/> </cpu> Facundo, so can we close this bug as not a bug above your comment#1 now? I think is still a bug or a new feature for RHEV-M because i can't configure this on RHEV AFAIK. Is there any update on this bug please? One of the major selling points of the Power8 platform is that it supports 8 threads per core (as opposed to Intel's 2 threads per core under HT). Without the ability for SMT to work as detailed here, we cannot make best use of the CPU capabilities of the platform. If I switch to IBM's PowerKVM then I can use virsh as detailed previously in this bug to reconfigure the VM manually. However it is not possible to use virsh under RHEV and I cannot immediately see how to edit the VM's vCPU specifications under vdsClient. I am happy to back up Facundo's comment - this is a bug. On an Intel platform you can use the "count threads as cores" option for this purpose - however this option does not work on the Power8 platform. Michal, Is it possible that we may be able to use a custom hook to enable this functionality pending proper implementation into RHEV? Yes, we can use the hook. 3.6.2(beta3) x86 RHEV has a proper fix RHEV for POWER 3.6 as of now doesn't, but the hook was verified working. RHEV for POWER on PowerKVM system - the hook likely works as well, was not tested I'll attach it here Created attachment 1119226 [details]
rhev hook to enable SMT in guest
on management node: enable custom properties using engine-config, check that it's there engine-config -g UserDefinedVMProperties |egrep thre UserDefinedVMProperties: threads_per_core=^[0-9]+$ version: 3.4 UserDefinedVMProperties: threads_per_core=^[0-9]+$ version: 3.5 and restart ovirt-engine service. Then you can use VM's custom properties subtab to configure new property "threads_per_core" (there is no reasonable validation, obviously you should only use what's supported 2,4,8 I believe) on host: place the attached file to /usr/libexec/vdsm/hooks/before_vm_start/49_threads_per_core use 755 permissions service vdsmd restart HTH Closing as fixed in rhev 3.6 ga, number of threads can be configured per vm |