Repository navigation
low CPU utilization during Xcode builds #1299
Unanswered
DominikMoreira
asked this question in
Q&A
Replies: 1 comment
|
In case someone experienced a similar issue: After some investigation this is what I found:
We also compared raw and ASIF disk images but did not observe any meaningful performance difference for our workload. Performance is still behind native builds, but the gap is much smaller now. Hopefully these findings help others running Xcode/Swift builds in Tart VMs. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
In our CI (Jenkins) setup, we use Tart VMs to build a large Xcode/Swift project. We noticed that CPU utilization during compilation is significantly lower inside the VM compared to running the exact same build on bare metal.
As a result, build times are noticeably slower despite the VM having ample CPU, memory, and storage resources assigned.
I'm wondering whether others have experienced similar behavior or if there are recommended VM tuning options for this scenario.
Environment
Host Machine
Tart VM
Expected Behavior
During compilation, CPU utilization should be comparable to a native build.
Actual Behavior
The build initially ramps up CPU usage, but utilization later drops significantly and stays around 40-60%, even though sufficient resources are available.
This leads to noticeably longer build times compared to running the same build directly on the host machine.
Comparison
Native Build (Bare Metal)
The native build shows two distinct high-utilization phases:
CPU usage is able to approach full utilization during these phases.
Tart VM Build
The same build running inside a Tart VM shows substantially lower CPU utilization overall. During large portions of the compilation phase, CPU usage remains roughly between 40% and 60%, with significant idle capacity visible on the host.
Additional Notes
Questions
All reactions