Skip to content

Instantly share code, notes, and snippets.

@davidfuzju
Last active September 17, 2017 02:26
Show Gist options
  • Save davidfuzju/ab30cf3b66f15103901b97dd849cea1f to your computer and use it in GitHub Desktop.
Save davidfuzju/ab30cf3b66f15103901b97dd849cea1f to your computer and use it in GitHub Desktop.
set affinity for process memu
ping -n 30 127.0.0.1>nul
start "" "D:\Program Files\Microvirt\MEmu\MEmuConsole.exe" "MEmu_1"
ping -n 20 127.0.0.1>nul
start "" "D:\Program Files\Microvirt\MEmu\MEmuConsole.exe" "MEmu_2"
ping -n 20 127.0.0.1>nul
start "" "D:\Program Files\Microvirt\MEmu\MEmuConsole.exe" "MEmu_3"
ping -n 20 127.0.0.1>nul
start "" "D:\Program Files\Microvirt\MEmu\MEmuConsole.exe" "MEmu_4"
powershell.exe -Command "$cpu=16; Get-Process MEmu | ForEach-Object { $cpu = $cpu / 2; $_.ProcessorAffinity = $cpu }"
powershell.exe -Command "$cpu=16; Get-Process MEmuHeadless | ForEach-Object { $cpu = $cpu / 2; $_.ProcessorAffinity = $cpu }"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment