diff options
author | Tino Reichardt <[email protected]> | 2024-10-12 09:54:50 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2024-10-13 19:25:58 -0700 |
commit | b5a3825244583d10730b08dc29070ff81e84eb27 (patch) | |
tree | 5cfc12b4bc1ae35c2e04b7295dd4eff83949e829 | |
parent | 77df762a1bd9180286645d4ebd195c16579225ea (diff) |
ZTS: Make use of optimal CPU pinning
With CPU pinning, we should get some speedup because of better
cpu cache re-use.
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Tino Reichardt <[email protected]>
Closes #16641
-rwxr-xr-x | .github/workflows/scripts/qemu-5-setup.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/scripts/qemu-5-setup.sh b/.github/workflows/scripts/qemu-5-setup.sh index 5034c1896..bc40e8894 100755 --- a/.github/workflows/scripts/qemu-5-setup.sh +++ b/.github/workflows/scripts/qemu-5-setup.sh @@ -18,10 +18,12 @@ sudo virsh undefine openzfs VMs=2 CPU=2 -# definitions of per operating system +# cpu pinning +CPUSET=("0,1" "2,3") + case "$OS" in - # FreeBSD can't be optimized via ksmtuned freebsd*) + # FreeBSD can't be optimized via ksmtuned RAM=6 ;; *) @@ -75,6 +77,7 @@ EOF --cpu host-passthrough \ --virt-type=kvm --hvm \ --vcpus=$CPU,sockets=1 \ + --cpuset=${CPUSET[$((i-1))]} \ --memory $((1024*RAM)) \ --memballoon model=virtio \ --graphics none \ |