From 4cbe134987be880b026882c843e8377555a740fd Mon Sep 17 00:00:00 2001 From: Massaki Archambault Date: Tue, 30 Aug 2022 00:40:49 -0400 Subject: [PATCH] use transparent hugepage --- playbook.yml | 3 +++ roles/win10/tasks/main.yml | 1 + roles/win10/templates/hooks/qemu | 15 +++++++-------- roles/win10/templates/win10.xml | 21 ++++++++++++++++----- 4 files changed, 27 insertions(+), 13 deletions(-) diff --git a/playbook.yml b/playbook.yml index e29c00e..80a3ff9 100644 --- a/playbook.yml +++ b/playbook.yml @@ -1,6 +1,9 @@ - hosts: all, localhost become: yes vars: + audio: + source: EasyEffects Source + sink: EasyEffects Sink vfio_pci_ids: - '8086:15b8' # Intel Corporation Ethernet Connection (2) I219-V - '1002:731f' # Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5700 / 5700 XT] diff --git a/roles/win10/tasks/main.yml b/roles/win10/tasks/main.yml index 7f540aa..025cf0d 100644 --- a/roles/win10/tasks/main.yml +++ b/roles/win10/tasks/main.yml @@ -2,6 +2,7 @@ pacman: name: - qemu + # - qemu-audio-jack - libvirt - bridge-utils - ovmf diff --git a/roles/win10/templates/hooks/qemu b/roles/win10/templates/hooks/qemu index 98aa6d7..f96b257 100755 --- a/roles/win10/templates/hooks/qemu +++ b/roles/win10/templates/hooks/qemu @@ -14,21 +14,20 @@ prepare() { irq-affinity mask C1-3,5-7 \ cpuset-modify --cpus C0,4 /system.slice \ cpuset-modify --cpus C0,4 /user.slice \ - move-tasks / /host.slice \ cpu-governor performance C0-7 - for _ in $(seq 5); do - sleep 3 - # assign hugepages - sysctl -w vm.nr_hugepages=8192 && break - done - sleep 10 + # for _ in $(seq 5); do + # sleep 3 + # # assign hugepages + # sysctl -w vm.nr_overcommit_hugepages=8192 && break + # done + # sleep 10 } release() { systemctl stop win10-usb vfio-isolate restore /tmp/win10.undo - sysctl -w vm.nr_hugepages=0 + # sysctl -w vm.nr_overcommit_hugepages=0 } if [ "$1" == "win10" ]; then diff --git a/roles/win10/templates/win10.xml b/roles/win10/templates/win10.xml index d3a6ed6..915f311 100644 --- a/roles/win10/templates/win10.xml +++ b/roles/win10/templates/win10.xml @@ -9,7 +9,7 @@ 16777216 16777216 - + 6 @@ -206,16 +206,25 @@
+