Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPU count is not good when CPU hotplug is enabled #10459

Open
tuxtof opened this issue Mar 3, 2025 · 1 comment
Open

CPU count is not good when CPU hotplug is enabled #10459

tuxtof opened this issue Mar 3, 2025 · 1 comment

Comments

@tuxtof
Copy link

tuxtof commented Mar 3, 2025

Bug Report

Description

on machine deployed on cpu hot-plug compatible hardware (or virtual hardware) the number of cpu shown in the interface is not correct

example with vsphere: 128
example with AHV: 240

Image

if we look dmidecode output in details there is the Status field who get more details

dmidecode -t processor | grep Status
	Status: Populated, Enabled
	Status: Populated, Enabled
	Status: Populated, Disabled By BIOS
	Status: Populated, Disabled By BIOS
	Status: Populated, Disabled By BIOS

we see the two cpu and the X empty hot-plug slot

second issue , if we hotadd cpu looks like dmidecode is not updated and the third cpu is always seen as disabled despite we can see in in /proc/cpuinfo

The reason we don't see hot-plugged CPUs in the dmidecode output is that dmidecode relies on SMBIOS (System Management BIOS) data, which is typically collected at boot time only

Environment

  • Talos version:1.9.2
  • Kubernetes version: not yet deployed
  • Platform: tested on AHV and vSphere
@smira
Copy link
Member

smira commented Mar 4, 2025

CPU hot-plug would be of quite limited usage with Kubernetes, I'm not quite sure how it would interact with scheduler in a meaningful way, or what would be an actual use-case for it, given that it's not a single VM, but a cluster of machines.

The labels in the screenshot are coming from Omni, and they are populated from SMBIOS data for CPU & memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants