Bug 42760

Summary: Raise number of supported CPUs
Product: Sisyphus Reporter: Vitaly Chikunov <vt>
Component: qemuAssignee: Alexey Shabalin <shaba>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: glebfm, iv, shaba, vt
Version: unstable   
Hardware: x86   
OS: Linux   
See Also: https://bugzilla.altlinux.org/show_bug.cgi?id=42694

Description Vitaly Chikunov 2022-05-13 22:58:22 MSK
+ qemu-system-x86_64 -smp cores=1111 ...
qemu-system-x86_64: Invalid SMP CPUs 1111. The max CPUs supported by machine 'pc-i440fx-6.2' is 255

+ qemu-system-x86_64 -M q35 -smp cores=1111 ...
qemu-system-x86_64: Invalid SMP CPUs 1111. The max CPUs supported by machine 'pc-q35-6.2' is 288
Comment 1 Vitaly Chikunov 2022-05-13 23:07:06 MSK
Возможно, больше 1024 поднимать не имеет смысла так как, на x86-64 есть ещё не изменяемый лимит

  #define KVM_MAX_VCPUS 1024
Comment 2 Vitaly Chikunov 2022-05-13 23:21:01 MSK
https://access.redhat.com/articles/rhel-kvm-limits
Intel 64 and AMD64: Red Hat Enterprise Linux 8 Server with KVM
Maximum number of virtual CPUs in virtualized guest 384

https://access.redhat.com/articles/906543
Virtual Machine Maximums:
710 for RHV 4.4 (710 for Q35 machines, 240 for PC machines)

Host Maximums:
Logical CPU cores or threads: 768
Comment 3 Alexey Shabalin 2024-07-20 17:10:26 MSK
$qemu-system-x86_64 --version
QEMU emulator version 8.2.4 (qemu-8.2.4-alt1)

$qemu-system-x86_64 -M q35 -smp cores=1111
qemu-system-x86_64: Invalid SMP CPUs 1111. The max CPUs supported by machine 'pc-q35-8.2' is 1024

Оставляем как есть? ничего не делаем?
Comment 4 Alexey Shabalin 2024-07-20 17:24:38 MSK
$qemu-system-x86_64 --version
QEMU emulator version 9.0.2 (qemu-9.0.2-alt1)

$qemu-system-x86_64 -M q35 -smp cores=5555
qemu-system-x86_64: Invalid SMP CPUs 5555. The max CPUs supported by machine 'pc-q35-9.0' is 4096
Comment 5 Vitaly Chikunov 2024-07-20 17:45:38 MSK
Думаю достаточно, даже слишком много. 255 было меньше чем на реальных машинах с 256 cores.