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 <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Closes openzfs#16641
  • Loading branch information
mcmilk authored and tonyhutter committed Nov 5, 2024
1 parent 34537bd commit aa32ee6
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 aa32ee6

Please sign in to comment.