1
0
Fork 0

newer version of vfio-isolate correctly support cgroupsv2

This commit is contained in:
Massaki Archambault 2021-09-29 19:52:56 -04:00
parent 513ab94563
commit 4abd973336
2 changed files with 6 additions and 16 deletions

View File

@ -3,27 +3,15 @@
prepare() {
systemctl start win10-usb
# setup cgroupv2
systemctl set-property --runtime -- user.slice AllowedCPUs=0,4
systemctl set-property --runtime -- system.slice AllowedCPUs=0,4
systemctl set-property --runtime -- init.scope AllowedCPUs=0,4
vfio-isolate -u /tmp/win10.undo \
drop-caches \
compact-memory \
irq-affinity mask C1-3,5-7 \
cpuset-create --cpus C0,4 /host.slice \
cpuset-create --cpus C1-3,5-7 -nlb /win10.slice \
move-tasks / /host.slice \
cpu-governor performance C0-7
# vfio-isolate -u /tmp/win10.undo \
# drop-caches \
# compact-memory \
# irq-affinity mask C1-3,5-7 \
# cpuset-create --cpus C0,4 /host.slice \
# cpuset-create --cpus C1-3,5-7 -nlb /win10.slice \
# move-tasks / /host.slice \
# cpu-governor performance C0-7
for _ in $(seq 5); do
sleep 3
# assign hugepages

View File

@ -63,6 +63,8 @@
<topology sockets='1' cores='3' threads='2'/>
<cache mode='passthrough'/>
<feature policy='require' name='invtsc'/>
<!-- required for Genshin Impact, come with a performance hit -->
<feature policy="disable" name="hypervisor"/>
</cpu>
<clock offset='localtime'>
<timer name='rtc' present='no' tickpolicy='catchup'/>