Skip to content

XNU as a loadable kernel module inside Linux (macOS personality for arm64 Linux)

C

install-krun-agent.sh: ProcessType Interactive (a background agent's vCPUs stall on a busy Mac)

Heyang Zhou466c3f253975
diff --git a/scripts/install-krun-agent.sh b/scripts/install-krun-agent.sh
index f1ced9e..ac314ec 100755
--- a/scripts/install-krun-agent.sh
+++ b/scripts/install-krun-agent.sh
@@ -36,6 +36,9 @@ $(env_xml)
<key>RunAtLoad</key><true/>
<key>KeepAlive</key><true/>
<key>ThrottleInterval</key><integer>10</integer>
+ <!-- launchd runs an agent as a background process by default: its vCPU threads get the low QoS, and on a busy Mac the
+ guest stalls (timers, its network) -->
+ <key>ProcessType</key><string>Interactive</string>
<key>StandardOutPath</key><string>$S/agent.log</string>
<key>StandardErrorPath</key><string>$S/agent.log</string>
</dict>