Silicon and large builds
For chip and EDA teams: regressions, licence-bound vendor tools, huge artifacts and a busy mixed grid. NativeLink caches what has already run, executes the rest on the right machines, and runs in your own infrastructure.
Who this is for: chip, EDA and large-monorepo teams whose build or regression is measured in thousands of actions and tens of minutes, on hardware that isn't uniform. What you'll have at the end: a clear picture of the pains these builds hit, how NativeLink answers each one, and where to go next. Time: about ten minutes.
NativeLink is a content-addressed build cache and a remote execution service in one Rust binary, speaking the open Remote Execution API. You run it in your own cloud or on your own hardware, point your build tool at it, and stop paying for work that has already been done or that is running on the wrong machine.
The pains of a chip team's build
Verification is the bottleneck, not compile. The nightly regression is thousands of simulation seeds and tests, and the slowest of them decide what the team sees in the morning. Most of that work reruns against blocks nobody touched, and near the end of the run most of the grid sits idle while a long tail finishes.
EDA licences are the scarce resource. A seat costs more than the machine it runs on. Every rerun of a step whose inputs did not change spends licence-hours and produces nothing new.
Flows are scripts around vendor tools. Make, Tcl and Python glue the steps together, and the tools read the environment, find files by absolute path, and write timestamps and hostnames into their outputs. Two runs of the same step rarely produce identical bytes, which is why caching chip flows has been hard.
Artifacts are huge. Netlists, waveform dumps and layout databases are large, mostly the same from one run to the next, and expensive to move around.
The grid is mixed and already busy. On-prem LSF or Slurm, cloud bursting, GPU boxes for simulation and ML-driven placement. Whatever you add has to fit alongside what is there.
IP can't leave. RTL and layout are the crown jewels, and some of it is export-controlled. Sending it to someone else's service is not an option.
Tapeout pressure, and you need to trace the result. Every hour of regression or signoff turnaround is felt, and when a result changes the team needs to know which change produced it.
How NativeLink answers each one
| Pain | What NativeLink does |
|---|---|
| Verification is the bottleneck | Content-addressed caching skips sims and tests whose inputs did not change, and remote execution runs the rest in parallel across a worker pool. Per-action resource sizing starts the heavy jobs on suitable machines, which helps with the long tail. |
| EDA licences are scarce | NativeLink does not manage licences. A cache hit means the tool never runs, so unchanged work spends no licence-hours. Platform properties route actions only to workers that have the tool and its licence environment. |
| Flows are scripts around vendor tools | Vendor tools cache well once their inputs are declared and their outputs are deterministic. Bazel rules and hermetic toolchains (Local Remote Execution) do the declaring; NativeLink then caches and executes the result. This is the real work of adoption. |
| Huge artifacts | Composable storage: a fast local tier in front of an object store, compression, sharding across backends, and a dedup store that splits files into content-defined chunks so a mostly unchanged file stores and moves only what changed. |
| A mixed, busy grid | NativeLink workers run alongside or inside your existing fleet, on Kubernetes or bare metal, on-prem or in your cloud. One scheduler routes each action by OS, CPU, memory or GPU. NativeLink does not integrate with LSF or Slurm. |
| IP can't leave | You run it yourself, in your own cloud account or datacentre, on storage you configure. It does not phone home, and the source is public so you can audit what runs your builds. |
| Tapeout pressure and traceability | Fewer reruns and more parallelism shorten turnaround. Every action is keyed by the hash of its declared inputs, so identical inputs give identical results and a changed output traces back to a changed input. |
Your data stays in your infrastructure
You deploy NativeLink yourself, in your own cloud account or datacentre, on AWS,
GCP, Azure or your own hardware. Your source, build artifacts and cache stay on the
storage you configure. NativeLink does not phone home: it exports telemetry only to
an OpenTelemetry collector you point it at with NL_OTEL_ENDPOINT, and sends none
when that variable is unset.
How it works
Your build tool hashes an action's inputs and asks the action cache whether it has the result. On a hit the outputs download from the CAS. On a miss the action goes to the scheduler, which hands it to a worker that matches its requirements, and the result is stored so nobody runs it again. The CAS, action cache, scheduler and worker are the same binary started with different configuration.
Caching is the first thing to deploy, and it costs you a URL in a config file. Remote execution is the step that handles work nobody has done yet, and it is where large builds gain the most. Getting started covers the cache and Remote execution covers the rest.
Routing actions to the hardware that fits
The mechanism is platform properties: key-value pairs an action declares as requirements, matched against properties a worker declares about itself. The scheduler will not assign an action to a worker that does not satisfy them.
PropertyTypeThe scheduler declares which keys exist and how each is matched:
minimum compares numerically: the worker's value must be at least the
action's. It is also consumable: an action requesting cpu_count: 8 subtracts
eight from the worker's available count until it finishes. This is how a 64-core
worker takes eight 8-core actions and not sixty-four.
exact requires string equality. Use it for OS, ISA, container image or a GPU
model.
priority only requires that the key be present, and does not restrict by value.
ignore matches everything, so a client can send a property without it
affecting placement.
`priority` is not a constraint
A key configured as priority will match a worker regardless of the value on
either side. Use minimum for quantities and exact for identities.
An unknown property key is refused rather than silently matched: the action stays
queued and the scheduler logs Unknown platform property, so a typo stalls visibly.
GPU-aware scheduling
NativeLink routes GPU actions to GPU workers. The scheduler has no GPU driver or CUDA integration; GPUs are first-class in the sense that the scheduler matches, counts and sizes them through the same property mechanism as everything else. Three pieces exist.
1. Route by GPU model or count. Declare the keys once on the scheduler, and have GPU workers advertise what they have. The example configurations ship this pair:
supported_platform_properties: {
cpu_count: "minimum",
memory_kb: "minimum",
gpu_count: "minimum",
gpu_model: "exact",
}gpu_count as minimum is both a threshold and consumable, so a worker with four
GPUs holds four single-GPU actions. gpu_model as exact keeps an action that
needs one device off a different one. A worker states its own values in its
platform_properties, so a pool of GPU workers and a pool of CPU workers register
with the same scheduler.
2. Request it per target. The build asks for a GPU the way it asks for any
platform property, for example a Bazel exec_properties = {"gpu": "a100"} on the
target that needs it. Targets that request nothing still match every worker. If no
worker matches, the action waits and the scheduler logs which key had no candidate,
for example No candidate workers due to a lack of matching 'gpu' = Exact("a100").
The platform properties page has a worked
GPU pool example.
3. Scheduler hints for GPU sizing. 1.8.7+ The historical_resource scheduler applies
resource hints before handing the action to the nested scheduler. Its size classes
can name gpu_count and gpu_memory_kb, so a class stands for a whole device or a
slice of one. Class rules (class_by_mnemonic, class_by_timeout, default_class)
supply the GPU share for untagged actions. Device memory can also be learned: a
wrapper around the action reports peak_gpu_memory_kb in the worker's side channel
file, the scheduler keeps the observed peak, and it offers the action only to
workers advertising that much. A share of a device is always stated, never measured.
See scheduler internals.
What NativeLink does not do
A worker does not discover GPUs by itself. You declare gpu_count, gpu_model and
device memory in worker configuration (a query_cmd can compute a value at
startup), and whatever wraps your action reports device memory use. The scheduler
trusts what workers advertise.
One shipped example gets this wrong
kubernetes/nativelink/nativelink-config.json5 declares both gpu_count and
gpu_model as priority, which enforces nothing: an action asking for four GPUs
can land on a worker with none. If you started from that file, change both to
minimum and exact.
The same pattern covers everything else that varies. os and arch as exact give
cross-platform pools from one scheduler. A key such as vendor_tool as exact
keeps an action on workers that have that tool installed and can reach its licence
server. You define these keys; NativeLink only matches them.
Running a heterogeneous fleet
One scheduler serves every pool. Each worker announces what it is and the scheduler routes on that. Start with one pool and split it only when you can name the reason. Run multiple workers is the mechanics and tuning covers sizing.
Toolchains and provenance
The routing is the straightforward half. The half that takes the time is making actions hermetic enough to run somewhere else: a compiler at an absolute path, a tool the platform team installed years ago, a license daemon. Declaring those assumptions is the work, and it is also what gives you determinism and provenance, because an action whose inputs are all declared and hashed has the same digest every time.
Local Remote Execution builds the toolchain itself as a declared, reproducible artifact, so your local build and your remote workers use the same toolchain and share one cache. See Local Remote Execution and Toolchains and hermeticity.
Plan remote execution as a toolchain project, not a config change. That is how these migrations avoid stalling.
Proof points
- NativeLink is in production for customers including large corporations such as Samsung, handling over ten billion requests a month (nativelink.com).
- One published account, Reid Kleckner's, builds LLVM with
reccexecuting remotely against NativeLink and takes a build from roughly seventeen minutes to roughly four. It is one person's measurement on their own hardware, with caveats the post spells out, so treat it as the shape of the result, not a number to plan against. - Speedups on this class of build vary widely, because they depend on how wide the graph is, how long the critical path is, and how much was already cacheable. Measure your own.
Common questions
Next steps
Start with a shared cache, add remote workers when you have a toolchain that runs on them, and tell us about your build if you want help sizing a pool.
NextDeploy a shared cacheThe first step: one binary, one config file, and a URL for your build tool.
SidewaysPlatform propertiesThe reference for routing, including the worked GPU pool example.
SidewaysLocal Remote ExecutionThe toolchain half of the problem: making the environment a worker builds in reproducible rather than assumed.
Autonomous operation
What it takes for a build farm to grow and shrink with demand without anyone watching it: which properties NativeLink gives you, which pieces you assemble yourself, and where the seams are.
Getting started
The first section of the reading path: a cache running, connected to your build, proven to be hitting.