mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-24 18:39:34 +03:00
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:
parent
e7b64159f8
commit
e0bf43d64e
7
.github/workflows/scripts/qemu-5-setup.sh
vendored
7
.github/workflows/scripts/qemu-5-setup.sh
vendored
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user