Bug 1082681 - RHEV-M displays and uses the same values for hypervisor cores regardless of cluster setting for "Count Threads as Cores"
Summary: RHEV-M displays and uses the same values for hypervisor cores regardless of c...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.3.0
Hardware: All
OS: Linux
high
high
Target Milestone: ---
: 3.5.1
Assignee: Roy Golan
QA Contact: Artyom
URL:
Whiteboard: sla
Depends On:
Blocks: 1169404
TreeView+ depends on / blocked
 
Reported: 2014-03-31 15:29 UTC by Allie DeVolder
Modified: 2022-07-09 07:23 UTC (History)
21 users (show)

Fixed In Version: org.ovirt.engine-root-3.5.1-2
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1169404 (view as bug list)
Environment:
Last Closed: 2015-04-28 18:40:16 UTC
oVirt Team: SLA
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
output of virsh capabilities for each host (7.97 KB, text/plain)
2014-04-03 13:57 UTC, Allie DeVolder
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-47308 0 None None None 2022-07-09 07:23:45 UTC
Red Hat Product Errata RHSA-2015:0158 0 normal SHIPPED_LIVE Important: Red Hat Enterprise Virtualization Manager 3.5.0 2015-02-11 22:38:50 UTC
Red Hat Product Errata RHSA-2015:0888 0 normal SHIPPED_LIVE Moderate: Red Hat Enterprise Virtualization Manager 3.5.1 update 2015-04-28 22:40:04 UTC
oVirt gerrit 33485 0 master MERGED webadmin: make it more obvious that thread as cores is enabled Never
oVirt gerrit 35316 0 ovirt-engine-3.5 MERGED webadmin: make it more obvious that thread as cores is enabled Never
oVirt gerrit 36015 0 ovirt-engine-3.5 MERGED core: more accurate cores(threads) ui representation Never

Description Allie DeVolder 2014-03-31 15:29:57 UTC
Description of problem:
RHEV-M displays and uses the same values for hypervisor cores regardless of cluster setting for "Count Threads as Cores"

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


How reproducible:
Very

Steps to Reproduce:
1. Create cluster of hypervisors with threads
2. Change cluster setting for count threads as cores
3. Regardless of setting, same value shown for cores

Actual results:
The same values are shown for cores regardless of cluster preferences

Expected results:
Values for cores updated as per cluster preferences

Additional info:

Comment 2 Michal Skrivanek 2014-04-01 07:12:13 UTC
the same values are shown as the host view reflects the actual hw configuration (HT is enabled in BIOS), but the checkbox in Cluster should have the effect of letting you run the VM, as far as I can tell. Then it probably is a scheduling issue.
It may help if you can attach the output of "virsh capabilities" from the host

Comment 3 Allie DeVolder 2014-04-03 13:57:29 UTC
Created attachment 882289 [details]
output of virsh capabilities for each host

Comment 4 Michal Skrivanek 2014-04-04 10:48:34 UTC
seems it's correctly reporting 2 sockets, 4 cores, 2 threads/core, the "vdsClient getVdsCaps" should return cpuSockets 2, cpuCores 4, cpuThreads 16. Right?

If that's the case then scheduling should take into account the setting. Doron?

Comment 5 Doron Fediuck 2014-04-06 11:40:59 UTC
Do you still have "report_host_threads_as_cores=true" set in vdsm.conf?
We have logic in place to support older configurations, and in such a case
we revert to SMT off.

Also, can you please provide the vdsm output for getVdsCaps?

Comment 13 Michal Skrivanek 2014-04-25 14:18:02 UTC
thanks. So yes, it is correctly reported:

	cpuCores = '8'
	cpuFlags = 'fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,dts,acpi,mmx,fxsr,sse,sse2,ss,ht,tm,pbe,syscall,nx,rdtscp,lm,constant_tsc,arch_perfmon,pebs,bts,rep_good,xtopology,nonstop_tsc,aperfmperf,pni,dtes64,monitor,ds_cpl,vmx,est,tm2,ssse3,cx16,xtpr,pdcm,dca,sse4_1,sse4_2,popcnt,lahf_lm,ida,dts,tpr_shadow,vnmi,flexpriority,ept,vpid,model_Nehalem,model_Conroe,model_coreduo,model_core2duo,model_Penryn,model_n270'
	cpuModel = 'Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz'
	cpuSockets = '2'
	cpuSpeed = '2933.395'
	cpuThreads = '16'

which corresponds to 2 sockets, 4 cores/socket, HT enabled as shown in the UI
I'd suspect the scheduling side of things...

Comment 17 Jiri Moskovcak 2014-09-02 13:35:31 UTC
Can we get ovirt engine logs from the engine which refuses to start the vm despite the count threads as cores is activated?

Comment 18 Jiri Moskovcak 2014-09-03 07:22:25 UTC
I also noticed that it's reported against rhevm 3.3 would it be possible to test it with 3.4? Because I'm not able to reproduce it in 3.4 and 3.5. Also setting report_host_threads_as_cores config = true in vdsm.conf might work as a workaround for this issue in 3.3 (it forces vdsm to report cpu cores count the same as the thread count, which should bypass the policy which prevents running the vm)

Comment 21 akotov 2014-09-24 12:50:53 UTC
Considering that we have minimum 2 open cases about this cosmetic issue, customers expecting this value to reflect the checkbox. I like the idea of 4 (8), where (8) is displayed only when checkbox is on.

Comment 22 Eyal Edri 2014-11-13 13:37:05 UTC
this bug is propose to clone to 3.4.z, but missed the 3.4.4 builds.
moving to 3.4.5 - please clone once ready.

Comment 24 Artyom 2014-12-08 12:52:10 UTC
I have host with 8 logical cpu, it say that:
2 sockets, 2 cores per socket and two threads per socket
With enabled "count threads as cores" I see:
CPU Cores per Socket: 2 (8) under UI, that not correct, because 8 that total number of threads and not per socket, so just change in code:
fieldValue = ConstantsManager.getInstance().getMessages()	.threadsAsCoresPerSocket(coresPerSocket, vds.getCpuThreads());	
            }

to 

fieldValue = ConstantsManager.getInstance().getMessages()	.threadsAsCoresPerSocket(coresPerSocket, vds.getCpuThreads() / vds.getCpuSockets());	
            }
Checked on rhevm-3.5.0-0.23.beta.el6ev.noarch

Comment 26 errata-xmlrpc 2015-02-11 18:00:11 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, 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://rhn.redhat.com/errata/RHSA-2015-0158.html

Comment 32 Artyom 2015-03-31 11:12:31 UTC
Verified on rhevm-3.5.1-0.2.el6ev.noarch

Comment 34 errata-xmlrpc 2015-04-28 18:40:16 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, 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://rhn.redhat.com/errata/RHSA-2015-0888.html


Note You need to log in before you can comment on or make changes to this bug.