You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Android: a worker setting for emulator CPU cores (profiles hard-code hw.cpu.ncore 4) #1687
A worker can't choose how many CPU cores its Android emulators get. The built-in device profiles set hw.cpu.ncore = 4 (for example drivers/android/profiles/medium-phone.js, small-phone.js, pixel-9-pro-xl.js), the seeds' config.ini carry it, and the boot snapshot is taken with it. android.emulator only has headless, gpu, audio and bootAnimation.
On a shared Mac this makes Android the largest CPU consumer per device. Our worker (Mac Studio, 14 cores, 36 GiB, simlock 0.8.0) runs 4 emulators beside 9 iOS simulators:
4 emulators × 4 cores = 16 vCPUs on a 14-core host, before any simulator
host CPU 25–60% idle under normal load, load average bursting to 72
memory is not the limit: about 23 GiB available, swap 0
The suites we run (React Native e2e through agent-device) don't need 4 cores per phone. 2 would leave room for more devices.
What we'd like
An android.emulator.cores setting (and, while you're there, android.emulator.ramMb) that overrides the profile's hw.cpu.ncore / hw.ramSize for every device the worker creates.
Changing it re-seeds, so the snapshot matches the new hardware instead of failing to load and falling back to a cold boot.
Optionally, doctor reports total emulator vCPUs against host cores.
Workaround today
Editing the seeds' config.ini by hand, which an upgrade or re-seed undoes and which risks snapshot mismatches.
Activity
V3RON commentedon Nov 18, 2026
Being specified in #1737. This issue stays open until that feature ships.
Written by an agent.
github-actions commentedon Nov 19, 2026
Shipped as #1737.