tonyarnold,
@tonyarnold@mastodon.social avatar

Does anyone have any guidance on running multiple VMs for CI on a single Mac mini? If I run two side-by-side, it's so slow as to be unusable - I'm looking for advice on memory setup, core counts, etc.

finestructure,
@finestructure@mastodon.social avatar

@tonyarnold We’ve been running two Mac VMs via tart on a mini very reliably. Host has 16GB, both VMs each, too. They just fight it out 😅

tonyarnold,
@tonyarnold@mastodon.social avatar

@finestructure doesn’t that lead to contention? How does it affect your build times?

finestructure,
@finestructure@mastodon.social avatar

@tonyarnold Have not noticed contention, it’s been very reliable. Note that we run this to build packages of the Swift Package Index and they have a hard build timeout after 10mins. However we really hammer this machine: each VM runs two parallel builds.

We do this, because a lot of time is spent checking out the repo and prepping the build. I.e. without scheduling 2 builds in each VM we underutilise the host.

tonyarnold,
@tonyarnold@mastodon.social avatar

@finestructure what about the assigned cores?

finestructure,
@finestructure@mastodon.social avatar

@tonyarnold I believe I’ve split the cores but I’ll double check tomorrow.

tonyarnold,
@tonyarnold@mastodon.social avatar

@finestructure thanks!

finestructure,
@finestructure@mastodon.social avatar

@tonyarnold Looks like I overprovisioned on CPU on our sonoma images as well - to no ill effect:

➜ ~ tart get ventura-base-5.7  
CPU Memory Disk Display State  
4 16000 131 1024x768 running  
➜ ~ tart get ventura-base-5.8  
CPU Memory Disk Display State  
4 16000 140 1024x768 running  
➜ ~ tart get sonoma-5.9-a  
CPU Memory Disk Display State  
8 16000 326 1024x768 stopped  
➜ ~ tart get sonoma-5.9-b  
CPU Memory Disk Display State  
8 16000 278 1024x768 stopped  
finestructure,
@finestructure@mastodon.social avatar

@tonyarnold We rotate runners depending on demand, that's why the Sonoma runners are currently stopped. We ran them very hot when we ran the first two batches of Swift 6 preview testing (7.2k builds each) on them and they held up perfectly.

They handled most of the load with only one other non-VM Mac handling Swift 6 builds.

finestructure,
@finestructure@mastodon.social avatar

@tonyarnold Host is a M2 Mac mini @ MacStadium

M2/8C/10C/GPU/16G/1T/SSD/10G

metaning,
@metaning@mastodon.social avatar

@tonyarnold Could it potentially be done on a 2019 Mac Pro (does it have to be Apple Silicon)?

plasticine,
@plasticine@mastodon.social avatar

@tonyarnold Subscribe, been looking into this a bit for work recently. We’ve a tonne of racked m2 minis that I’d love a couple VMs on but not quite sure how they’ll cope.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • ngwrru68w68
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • tacticalgear
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • ethstaker
  • JUstTest
  • GTA5RPClips
  • modclub
  • tester
  • Leos
  • osvaldo12
  • cisconetworking
  • everett
  • cubers
  • normalnudes
  • anitta
  • megavids
  • provamag3
  • lostlight
  • All magazines