Skip to content

Host fseventsd grows to tens of GB under device churn and drives swap; surface it in load/doctor #1618

Closed

Description

@vitalyiegorov

What happened

On a long-running worker host (Mac Studio M-series, 36 GiB, macOS 15.7.4, simlock 0.6.0 → 0.7.0, about 7–10 iOS simulators and 3–4 Android emulators under constant lease churn), swap grew from ~1 GiB to 9.9 of 11 GiB over about a week. The farm lowered capacity and a monitor rolled back a capacity trial, but simlock's own processes weren't the cause:

Process Memory (top) Compressed
fseventsd (macOS) 28 GB 20 GB
launchservicesd (macOS) 3.4 GB 3.4 GB
3 × Android emulator ~2.5 GB each mostly
simlock worker normal

fseventsd had been up since the boot 34 days earlier, with 51 h of CPU time. A restart brought it to 3.5 MB and swap to 0. Nothing else changed.

Suspected trigger (not proven)

Every lease creates or erases simulator data, installs an app, and writes emulator overlays. That is a constant stream of file-system events, which fseventsd seems to keep in memory and never release. The leak itself is a macOS bug; this issue is about making it visible and avoidable on simlock hosts.

Suggestions

  1. Show host-level memory hogs in worker load readings and doctor: the RSS of fseventsd and launchservicesd, plus swap. Today the gateway shows swap but not what is behind it, so it looks like the farm itself is too heavy.
  2. Document the remedy: drain, restart the host (or sudo killall fseventsd), undrain.
  3. Possibly: keep device sets and emulator data on a dedicated APFS volume with .fseventsd/no_log, so the churn never reaches fseventsd. This is untested.

Activity

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

    @V3RON
    Contributor

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

    Written by an agent.

  3. github-actions commented on Nov 18, 2026

    @github-actions
    Contributor

    Shipped as #1733.

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