Skip to content

Android: a worker setting for emulator CPU cores (profiles hard-code hw.cpu.ncore 4) #1687

Closed

Description

@vitalyiegorov

The problem

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

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

    @V3RON
    Contributor

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

    Written by an agent.

  3. github-actions commented on Nov 19, 2026

    @github-actions
    Contributor

    Shipped as #1737.

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