VFIO Success
This commit is contained in:
16
scripts/hooks/win10/release/end/revert.sh
Normal file
16
scripts/hooks/win10/release/end/revert.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
# Enable CPU governor schedutil mode
|
||||
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
|
||||
for file in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do echo "schedutil" > $file; done
|
||||
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
|
||||
|
||||
# Deisolate host
|
||||
systemctl set-property --runtime -- user.slice AllowedCPUs=0-15
|
||||
systemctl set-property --runtime -- system.slice AllowedCPUs=0-15
|
||||
systemctl set-property --runtime -- init.scope AllowedCPUs=0-15
|
||||
|
||||
# Dealloc hugepages
|
||||
echo 0 > /proc/sys/vm/nr_hugepages
|
Reference in New Issue
Block a user