newer version of vfio-isolate correctly support cgroupsv2
This commit is contained in:
parent
513ab94563
commit
4abd973336
|
@ -2,27 +2,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
|
||||
|
|
|
@ -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'/>
|
||||
|
|
Loading…
Reference in New Issue