mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 01:51:00 +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
|
VMs=2
|
||||||
CPU=2
|
CPU=2
|
||||||
|
|
||||||
# definitions of per operating system
|
# cpu pinning
|
||||||
|
CPUSET=("0,1" "2,3")
|
||||||
|
|
||||||
case "$OS" in
|
case "$OS" in
|
||||||
# FreeBSD can't be optimized via ksmtuned
|
|
||||||
freebsd*)
|
freebsd*)
|
||||||
|
# FreeBSD can't be optimized via ksmtuned
|
||||||
RAM=6
|
RAM=6
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@ -75,6 +77,7 @@ EOF
|
|||||||
--cpu host-passthrough \
|
--cpu host-passthrough \
|
||||||
--virt-type=kvm --hvm \
|
--virt-type=kvm --hvm \
|
||||||
--vcpus=$CPU,sockets=1 \
|
--vcpus=$CPU,sockets=1 \
|
||||||
|
--cpuset=${CPUSET[$((i-1))]} \
|
||||||
--memory $((1024*RAM)) \
|
--memory $((1024*RAM)) \
|
||||||
--memballoon model=virtio \
|
--memballoon model=virtio \
|
||||||
--graphics none \
|
--graphics none \
|
||||||
|
Loading…
Reference in New Issue
Block a user