cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

CPU cores per socket setting not functional

Open DagSonsteboSB opened this issue 8 years ago • 28 comments

ISSUE TYPE
  • Bug Report
  • Enhancement Request
COMPONENT NAME
  • Cores per socket setting in user_vm_details / vm_template_details table when using XenServer hypervisor
CLOUDSTACK VERSION
  • CloudStack version 4.9.2
  • Not attempted reproduced in other versions but assumption is issue is still present in 4.11.x
CONFIGURATION, OS / ENVIRONMENT
  • CloudStack 4.9.2
  • XenServer 6.2 and 7.0 - fully licensed with Citrix licensing
  • Advanced zone
SUMMARY
  • Even with cpu.corespersocket (or cpuid.coresPerSocket as suggested in some mailing list threads) specified CloudStack will ignore this setting.
  • All ACS specifications for cores and sockets will translate to "sockets" in XenServer
  • Overall problem is some VMs when given a higher core count does not see all it's CPU cores/sockets.
STEPS TO REPRODUCE
  • Create a VM with cpu count 4 cores
  • Add entry for cpu.corespersocket=2 in user_vm_details
  • Start VM
  • Check allocation in XenCentre
EXPECTED RESULTS
  • VM with 2 sockets and 2 cores per socket
ACTUAL RESULTS
  • VM with 4 sockets

DagSonsteboSB avatar Apr 19 '18 12:04 DagSonsteboSB

You need to stop the instance, for the Settings tab to appear.

ToonGeneral avatar Mar 24 '19 23:03 ToonGeneral

@ToonGeneral thanks, never noticed the setting menu! image

as you can see, this is the "new" platform value which get's written back after shutdown (even if the instance was running with the correct settings, in my case 4 cores per socket). one difference I'm spotting is that we utilize custom service offerings.

@bdonnahue you're seeing the same behaviour. Are you utilizing custom service offerings as well?

However, I will forward this here to your professional support and will keep you updated about the solution.

mschaepers avatar Mar 25 '19 07:03 mschaepers

Hello, We have the same problem with version 4.13 and KVM hypervisors. How can we solve this problem because we are trying to create offering services with 45 cores and it affects only 2 cores

progiss avatar Dec 04 '19 09:12 progiss

there is a PR out for 4.14 that fixes this for KVM: #4497

DaanHoogland avatar Nov 25 '20 08:11 DaanHoogland

this is still happening with 4.15.0 and xcp-ng

AlexanderKgr avatar May 28 '21 07:05 AlexanderKgr

The PR i mentioned is merged in the 4.14 branch @AlexanderKgr . If you need to it in 4.15 please test a nightly build, Otherwise it should be fixed in any upcoming release.

DaanHoogland avatar May 28 '21 07:05 DaanHoogland

@AlexanderKgr can you please check if this is still an issue on a recent 4.15 or on main and close if appropriate?

DaanHoogland avatar Jul 20 '21 09:07 DaanHoogland

A PR claiming to fix this issue https://github.com/apache/cloudstack/pull/4497 has been merged. @AlexanderKgr @DagSonsteboSB please test 4.15.1/4.14.1 and re-open this if not satisfied, thanks.

yadvr avatar Aug 09 '21 09:08 yadvr