Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1082681 - RHEV-M displays and uses the same values for hypervisor cores regardless of cluster setting for "Count Threads as Cores"
RHEV-M displays and uses the same values for hypervisor cores regardless of c...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine (Show other bugs)
3.3.0
All Linux
high Severity high
: ---
: 3.5.1
Assigned To: Roy Golan
Artyom
sla
: Reopened, Triaged, ZStream
Depends On:
Blocks: 1169404
  Show dependency treegraph
 
Reported: 2014-03-31 11:29 EDT by Allan Voss
Modified: 2016-02-10 15:13 EST (History)
22 users (show)

See Also:
Fixed In Version: org.ovirt.engine-root-3.5.1-2
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1169404 (view as bug list)
Environment:
Last Closed: 2015-04-28 14:40:16 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: SLA
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
output of virsh capabilities for each host (7.97 KB, text/plain)
2014-04-03 09:57 EDT, Allan Voss
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 33485 master MERGED webadmin: make it more obvious that thread as cores is enabled Never
oVirt gerrit 35316 ovirt-engine-3.5 MERGED webadmin: make it more obvious that thread as cores is enabled Never
oVirt gerrit 36015 ovirt-engine-3.5 MERGED core: more accurate cores(threads) ui representation Never
Red Hat Product Errata RHSA-2015:0158 normal SHIPPED_LIVE Important: Red Hat Enterprise Virtualization Manager 3.5.0 2015-02-11 17:38:50 EST
Red Hat Product Errata RHSA-2015:0888 normal SHIPPED_LIVE Moderate: Red Hat Enterprise Virtualization Manager 3.5.1 update 2015-04-28 18:40:04 EDT

  None (edit)
Description Allan Voss 2014-03-31 11:29:57 EDT
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 03:12:13 EDT
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 Allan Voss 2014-04-03 09:57:29 EDT
Created attachment 882289 [details]
output of virsh capabilities for each host
Comment 4 Michal Skrivanek 2014-04-04 06:48:34 EDT
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 07:40:59 EDT
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 10:18:02 EDT
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 09:35:31 EDT
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 03:22:25 EDT
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 08:50:53 EDT
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 08:37:05 EST
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 07:52:10 EST
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 13:00:11 EST
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 07:12:31 EDT
Verified on rhevm-3.5.1-0.2.el6ev.noarch
Comment 34 errata-xmlrpc 2015-04-28 14:40:16 EDT
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.