iOS Simulator RAM Calculator
xcloom detects unified memory via sysctl hw.memsize, applies dual-tier pre-boot disabled.plist pruning across 19 daemon categories (147 entries in Safe Default, up to 160 with App-Aware --for, keeping 24 critical daemons always protected), and caps active simulator slots using macOS ri_phys_footprint budgets so parallel coding agents do not trigger swap thrashing.
Mac unified memory
Your Mac: sysctl hw.memsize
Stock simulators in the pool
0
Slim simulators running
6
slim slots
stock equivalent
2 slim / 1 stock
Concurrent cold boots
48 GB (37–48 GB)
Slim tier
Pool footprint
saved against stock
- Per booted simulator · Stock
- 1.88 GiB
- Per booted simulator · Slim
- 1.50 GiB (-20.3%)
Per-simulator values measured 2026-11-22 (bench-sim-slim-vs-stock.sh, 2-round median) · ri_phys_footprint
Hardware-Adaptive Slot Reference
Slot accounting uses 1 stock simulator = 3 slim slot units. On <= 16 GB hosts (cap=2), the first stock simulator is admitted when the pool is empty.
Mac Unified Memory (sysctl hw.memsize) | XCLoom Slim Simulator Slots | Stock Simulator Equivalent | Built-in Pre-Boot Pruning |
|---|---|---|---|
<= 16 GB | 2 slim slots | 1 stock ( cap=2, first stock admitted when pool is empty) | 147 default / 160 app-aware ( --for) entries across 19 categories (24 always-protected daemons) |
24 GB (17–24 GB) | 3 slim slots | 1 stock | 147 default / 160 app-aware ( --for) entries across 19 categories (24 always-protected daemons) |
32–36 GB (25–36 GB) | 4 slim slots | 1 stock | 147 default / 160 app-aware ( --for) entries across 19 categories (24 always-protected daemons) |
48 GB (37–48 GB) | 6 slim slots | 2 stock | 147 default / 160 app-aware ( --for) entries across 19 categories (24 always-protected daemons) |
64 GB (49–64 GB) | 8 slim slots | 2 stock | 147 default / 160 app-aware ( --for) entries across 19 categories (24 always-protected daemons) |
96 GB (65–96 GB) | 10 slim slots | 3 stock | 147 default / 160 app-aware ( --for) entries across 19 categories (24 always-protected daemons) |
128 GB+ (>= 97 GB, incl. 192 GB / 512 GB) | 12 slim slots | 4 stock | 147 default / 160 app-aware ( --for) entries across 19 categories (24 always-protected daemons) |
Why 1 stock simulator = 3 slim slot units, why 512 GB caps at 12 slots, and why 8–16 GB share 2 slots: 1 stock = 3 slim is a pool scheduling weight for CPU/I/O boot contention (stock boots ~200 daemons vs 85 in App-Aware) plus App-Aware's ~2.4x RAM cut (1.70 -> 0.72 GiB), not a 3x RAM savings guarantee under Safe Default (-20.3%, 1.88 -> 1.50 GiB). Default concurrency caps at 12 slim slots even on 512 GB Macs because CoreSimulatorService IPC and disk/CPU contention saturate well before 512 GB of RAM fills up (override via CLI flags if needed). In code, <= 16 GB (including 8 GB Macs) uses the floor tier (cap=2 slim slots, or 1 stock when empty); if you run Xcode or an IDE alongside agents on 8 GB, pass --max-sims 1 to leave memory headroom.
Footprint Calibration Note
Standard ps RSS sums private memory together with shared dynamic library pages mapped into every launchd_sim child process, which double-counts the iOS runtime dyld shared cache and inflates reported RAM. XCLoom measures simulator memory strictly through macOS proc_pid_rusage (ri_phys_footprint), matching Activity Monitor's physical footprint metric.
In this interactive calculator, the per-simulator baseline fields bind directly to two separate alternating slim/stock A/B pairs measured on 2026-11-22 on Mac15,14 (iPhone Air, iOS 27.3, 12s settle; full methodology on /benchmarks/). Because iOS background daemon memory varies ~10% between boots, each tier compares strictly against its own paired stock baseline (1.88 GiB for Safe Default; 1.70 GiB for App-Aware), which is why switching tiers shifts the paired stock baseline readout:
- Safe Default (
xcloom sim boot, slim by default while--stockopts out; 147 disabled entries across 19 categories, keepswidgets/store/photosenabled): physical footprint 1.88 GiB -> 1.50 GiB (-20.3%, -0.38 GiB), livelaunchd_simprocesses 213 -> 140 (-34.3%), cold boot wall 2.37s stock -> 2.94s slim (+0.57s from pre-bootdisabled.plistbackup/merge andlaunchd_simstartup adjustment). - App-Aware Auto-Slim (
--for MinimalApp.app, auto-enabled inxcloom run --smoke,xcloom matrix, andxcloom testvia 2 ms warm.app/ 15 ms repo static analysis of entitlements,Info.plist,.appex, andLC_LOAD_DYLIB; disables unusedwidgets/store/photosup to 160 entries): physical footprint 1.70 GiB -> 0.72 GiB (-57.3%; unrounded1.695 -> 0.724 GiB, -0.97 GiB), livelaunchd_simprocesses 190 -> 85 (-55.3%), cold boot wall 2.49s stock -> 3.02s slim (+0.53s from pre-bootdisabled.plistbackup/merge andlaunchd_simadjustment). - 24 critical daemons always stay protected:
com.apple.assistantdprevents Spotlight memory leaks inside the simulator,com.apple.gamedprevents XCUITestDTServiceHublaunch stalls, andcom.apple.coredevice.dtuhiddpreserves CoreSimulator host bridging, HID control, andiPhone Duosupport. Passing--stockrestores the exact originaldisabled.plistbytes.
iPhone Air · iOS 27.3 · 2-round median
Physical memory footprint
Live simulator (launchd_sim) processes
Disabled daemon entries
19 daemon categories · 24 always-protected daemons
Cold boot wall time
Cost of slimming · +0.57s
Run xcloom sim status locally for a read-only readout of every currently booted simulator and its ri_phys_footprint on your own machine.
Frequently Asked Questions
RSS counts shared dyld and framework pages once per child process inside launchd_sim, exaggerating both stock consumption and claimed savings. Reading ri_phys_footprint via proc_pid_rusage reflects actual physical memory pressure and compressed pages owned by the simulator tree.
Simulator cold boot spikes CPU, disk I/O, and CoreSimulator IPC simultaneously. Capping concurrent cold boots at 2 concurrent slim boots (or 1 stock boot) with opt-in queuing via --wait-secs prevents boot storms when four or eight coding agents request simulators at the same second, keeping total time-to-ready lower than parallel contention.
No. Pool leases (xcloom sim lease, used automatically by run, matrix, and test) track every XCLoom-allocated simulator via owner-PID + TTL leases with automatic background reaping on process exit. Manual xcloom sim boot instances stay running until you call xcloom sim shutdown. Simulators launched by Xcode, Simulator.app, or another project remain untouched.

# Install via Homebrew (or: curl -fsSL https://xcloom.dev/install.sh | sh, installs to ~/.local/bin)
brew install xcloom/tap/xcloom
# Read-only environment and simulator check (zero changes to your project)
xcloom doctor
xcloom sim status
# Wire MCP and Agent Skills into your coding agents (repo-local by default; add --global for user-wide; zero Node)
xcloom mcp install --claude --codex --cursor
xcloom skill install --claude --codex --cursorOr paste one sentence into Claude Code, Codex, or Cursor so the agent installs the CLI, registers MCP and the agent skill, runs a first local build, and optionally installs git merge drivers or benchmarks your repo:
Read https://xcloom.dev/agent-setup.md and set up XCLoom for this repository: install the CLI, register the MCP server and agent skill, verify the environment with xcloom doctor, and run a first local build with xcloom build --local --json. Optionally install the git merge drivers and run xcloom bench --repo . --json (isolated cold xcodebuild comparison; can take several minutes on large repositories).Requires macOS with local Xcode SDKs and compilers. Runs directly on existing .xcodeproj, .xcworkspace, CocoaPods, and XcodeGen projects without format migration; standalone Package.swift apps and unsupported build rules fall back automatically to xcodebuild.