Modal logo

Performance-sensitive Sandboxes

Standard Sandboxes can be scheduled across many different underlying instance types, which can introduce variance in CPU performance between runs. Performance-sensitive Sandboxes are scheduled onto a consistent set of instance types with fast CPUs and low variance.

All performance sensitive hosts run on latest generation AMD Zen 5 EPYC hosts.

This is useful for workloads like benchmarking or CI, where consistency and low latency across runs matter.

Usage 

Enable performance-sensitive scheduling by setting the performance_sensitive experimental option to True:

import modal

app = modal.App.lookup("my-app", create_if_missing=True)

sb = modal.Sandbox.create(
    app=app,
    experimental_options={"performance_sensitive": True},
)

Limitations 

  • CPU only. Performance-sensitive scheduling is only available for CPU Sandboxes. GPU Sandboxes are not supported.
  • Limited capacity. The pool of performance-sensitive instances is smaller than the general pool. Avoid combining this feature with narrow region pinning (e.g. us-west) — this can cause scheduling delays due to limited supply. Broad regions like us work well.