e2e: enforce virtual machine cache topology levels#716
Draft
askervin wants to merge 2 commits into
Draft
Conversation
Collaborator
Author
|
This does not seem to be enough, problem persists (and gets even worse, see L3...) at least on one host system: --> keeping the PR as Draft. |
klihub
reviewed
Jul 27, 2026
|
|
||
| def qemuopts(numalist): | ||
| machineparam = "-machine q35,kernel-irqchip=split" | ||
| cpuparam = "-cpu host,x2apic=on" |
Collaborator
There was a problem hiding this comment.
I think this quite recent blog post suggests that in some cases we'd need the -machine q35,accel=kvm,kernel-irqchip=split -cpu host,+topoext with the +topoext cpu option explicitly given if -cpu host is also used.
Collaborator
There was a problem hiding this comment.
With that extra option in place I get
[root@n4c16-fedora-43-containerd ~]# grep . /sys/devices/system/cpu/cpu0/cache/index*/*_list
/sys/devices/system/cpu/cpu0/cache/index0/shared_cpu_list:0-1
/sys/devices/system/cpu/cpu0/cache/index1/shared_cpu_list:0-1
/sys/devices/system/cpu/cpu0/cache/index2/shared_cpu_list:0-1
/sys/devices/system/cpu/cpu0/cache/index3/shared_cpu_list:0-7
[root@n4c16-fedora-43-containerd ~]# grep . /sys/devices/system/cpu/cpu0/topology/{thread_siblings_list,package_cpus_list}
/sys/devices/system/cpu/cpu0/topology/thread_siblings_list:0-1
/sys/devices/system/cpu/cpu0/topology/package_cpus_list:0-7
Collaborator
There was a problem hiding this comment.
@askervin: Can you test the updated PR on the host where you saw the failure earlier ?
klihub
force-pushed
the
5i4-e2e-force-cache-topology
branch
2 times, most recently
from
July 27, 2026 12:01
9c2ee5e to
b405bd8
Compare
On some host platforms, Qemu reports every virtual machine CPU hyperthread having its own L1d, L1i and L2 caches. Force virtual CPU cache topology where these caches are shared between thread siblings. Signed-off-by: Antti Kervinen <antti.kervinen@intel.com>
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
klihub
force-pushed
the
5i4-e2e-force-cache-topology
branch
from
July 27, 2026 12:03
b405bd8 to
718dd06
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On some host platforms, Qemu reports every virtual machine CPU hyperthread having its own L1d, L1i and L2 caches. Force virtual CPU cache topology where these caches are shared between thread siblings.