Skip to content

Commit

Permalink
ZTS: Make use of optimal CPU pinning
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mcmilk authored and behlendorf committed Oct 14, 2024
1 parent 77df762 commit b5a3825
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/scripts/qemu-5-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;
*)
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit b5a3825

Please sign in to comment.