Hi, thanks for the comment. Fortunately, I was able to create a broader test setup to verify whether RAM was affecting build performance.
I tested two hosts:
Host A: 32 CPU cores, 96 GB RAM
Host B: 24 CPU cores, 128 GB RAM
For both hosts, I ran multiple VM configurations with different CPU and RAM allocations (80% and 90% of host memory).
Result: The build times, and more important the CPU usage were almost identical across all test cases. It did not seem to matter whether the build ran on a machine with more RAM but fewer CPU cores. The overall behavior was very similar on both hosts. The dropping CPU usage during the build-phase was reproducible.
One interesting observation is that in the most aggressive configuration (all CPUs assigned and 90% RAM allocated to the VM), the 96 GB host showed some swap activity, while the 128 GB host did not. However, this had no noticeable impact on build performance (in both cases the CPU usage dropped).
Also, increasing the VM's RAM allocation did not increase actual memory usage during the build. The workload simply did not consume the additional memory, which suggests that RAM is probably not the limiting factor in this case.
Based on these results, I think we can largely rule out RAM as the cause of the slowdown. Thanks again for the suggestion.
Attached two screenshots showing the same build in the worst- and best setup.
Host A - VM specs: 32 vCPU / 86 GB RAM:
Host A - VM specs: 24 vCPU / 86 GB RAM: