Skip to content

Admission ignores the host's real memory pressure: a swapping worker still creates and warm-boots devices #1246

Closed

Description

@andthezhang

What happened

A worker kept admitting and warm-booting iOS simulators while its host was swapping hard. simlock status saw the pressure but capacity ignored it.

Mac mini, 32 GiB, 12 cores, macOS 27.0.1, Xcode 27.2, simlock 0.5.0, default resource strategy:

Load: CPU 100% busy (12 cores) · memory 10.9 GiB of 32.0 GiB available · swap 14.0 GiB used · pressure warn
Capacity ios: managed 2/6, running 2 + 0 reserved/6, warm 2
RAM budget: 3.00 GiB/28.00 GiB used
warm pool: enabled ... iPhone 17 / 27.0 / full  learned  wanted 2  ready 2

Load average was 550–610 and swap went from 18 GiB to 27 GiB over the morning. Most of the memory was other work on the machine (Xcode builds, local stacks, agents) that simlock does not own. The RAM budget is "total RAM minus 4 GiB" and counts only Simlock's own devices, so it said 3 of 28 GiB used, and 4 more iOS slots were open.

On a 16 GiB worker the same shape showed up as boot failures instead. While one xcodebuild and a few microVMs ran, every new full simulator hit BootTimeoutError (about 230 s), with 14 devices created and deleted in 20 minutes, and the queue kept retrying.

What I expected

A way to make admission respect the host's real state, for example:

Why it matters

Agents share these Macs with builds. A RAM budget that is blind to everything else lets the warm pool add load to a machine that is already swapping, so the whole host slows down, not only the simulators.

Workaround today

warmPool.enabled false and a huge ramBudget.iosBytesPerDevice turn iOS off on that worker (ios.maxDevices refuses 0, and drain needs a gateway). Nothing scales down with load.

Activity

  1. added
    request:new
    on Nov 5, 2026
  2. V3RON commented on Nov 6, 2026

    @V3RON
    Contributor

    Being specified in #1355. This issue stays open until that feature ships.

    Written by an agent.

  3. github-actions commented on Nov 6, 2026

    @github-actions
    Contributor

    Shipped as #1355.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    request:new

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions