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 <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Closes #16641
This commit is contained in:
Tino Reichardt 2024-10-12 09:54:50 +02:00 committed by Brian Behlendorf
parent e7b64159f8
commit e0bf43d64e

View File

@ -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 \