LLM Cold Start Optimization: Why Storage Bandwidth Is the Real Bottleneck
This article examines the common engineering problem of slow large language model cold starts, where loading a massive model on an eight-accelerator node can take more than ten minutes. It breaks down startup time into metadata, read, deserialization, host-to-device transfer, and initialization phases; shows how to estimate per-node storage bandwidth from weight size, node count, and target startup time; explains how format choices and load strategies cause I/O amplification; and covers tiered caching, prefetching, and observability practices that can reduce cold starts to tens of seconds. All figures are illustrative estimates used to demonstrate the methodology rather than product benchmarks.
When a model with an enormous parameter count takes more than ten minutes to start on an eight-accelerator node, the problem is usually not compute but moving weights. This article takes a neutral view of the general engineering problem of LLM cold starts: how to break down the time cost, how to estimate the storage bandwidth required per node, how formats and loading strategies affect I/O amplification, and how tiered caching and prefetching can compress a cold start to the tens-of-seconds range. It also provides reusable capacity planning and load testing methods. All numbers here are illustrative estimates meant to explain the methodology, not specific product metrics.
1. Symptom and Problem Definition
A typical cold start scenario: a team prepares to run inference validation on a model with an enormous parameter count. The node has eight high-bandwidth accelerators in a single machine. From the moment the scheduler dispatches the job to the moment the service actually begins responding to requests, more than nine hundred thousand milliseconds pass (about fifteen minutes). During this window, accelerator utilization stays flat near zero while storage-side throughput remains saturated for a long time. This is not a compute shortage; it is a classic “startup-phase I/O bottleneck.”
Three easily confused concepts need to be separated:
- Cold start: the local cache is completely invalid, and all weights must be read from remote or shared storage.
- Warm start: some weights are already on the node’s local media, and only the increment needs to be fetched.
- Hot start: the process stays resident or the weights are already in memory, and only instance scaling is needed.
What really hurts in engineering is the cold start, because it simultaneously triggers four overlapping paths: metadata traversal, reading massive numbers of small files or large file shards, deserialization, and writing to device memory.
2. Breaking Down the Time Cost
Adding up the total startup time is the first step to optimization:
T_total ≈ T_meta + T_read + T_deserialize + T_h2d + T_init
- T_meta: directory and metadata operations, more visible as the file count grows;
- T_read: time to read from storage into host memory, mainly constrained by bandwidth and concurrency;
- T_deserialize: tensor parsing, type conversion, and validation;
- T_h2d: copy from host memory to device memory, constrained by bus bandwidth;
- T_init: communication domain setup, device memory pool initialization, graph compilation, and warmup.
In practice, T_read accounts for the largest share of a cold start and is the only phase that can be significantly improved through storage-side architecture. The rest depend more on the software stack and parallelism strategy.
3. Estimating Per-Node Bandwidth Requirements
Numbers like “about 25GB/s per node” in headlines can actually be derived from a very simple model that readers can verify themselves:
Required aggregate read bandwidth ≈ total weight bytes / target cold start timePer-node bandwidth ≈ aggregate bandwidth / number of nodes loading in parallel
Illustrative substitution: if the total weight size is about 1.2TB, the target cold start is 48 seconds, and 8 nodes load in parallel, the aggregate bandwidth is about 25GB/s and per-node bandwidth is about 3GB/s. If instead a single node must read 1TB-class weights within 40 seconds, that single node needs on the order of 25GB/s. So the same “25GB/s” can be either a cluster aggregate value or a hard per-node requirement; talking about the number without its premises is meaningless.
Capacity planning must therefore state three premises clearly: the actual on-disk weight size (including quantization and redundancy), the number of nodes loading in parallel, and the upper bound on target startup time. Change any one of them and the conclusion changes immediately.
4. Overlooked I/O Amplification
The actual read volume is often larger than the weight size, for reasons including:
1) Format redundancy: a distributed shard format saved for training convenience may need rearranging at inference load time;
2) Validation and indexing: extra manifest files and fingerprint files introduce random reads of small files;
3) Replica strategy: multi-replica consistency checks cause duplicate reads;
4) Alignment and block size mismatch: reading blocks that are too small leads to low effective bandwidth utilization.
A practical self-check is to measure the amplification factor of “actual bytes read / weight size.” If it stays above 1.3 over time, there is room to optimize the format or the path.
5. Actionable Optimization Paths
1. Storage Tiering and Caching
Use a three-tier structure of “remote object storage + node-local high-speed media + in-memory page cache,” pushing hot weights down to the tier closest to compute. Run a warmup job before the cold start to prefetch weights in access order.
2. Sequential and Concurrent Reads
Change the load order to prioritize large files and sequential offset reads, with reasonable concurrency and prefetch depth, avoiding random small reads:
# Illustrative: prefetch in manifest order to reduce random readsmanifest = sorted(manifest, key=lambda s: s.size, reverse=True)for shard in manifest:prefetch(shard.offset, shard.size)tensors.append(load(shard))
3. Format Slimming
Adopt a compact serialization format that matches the load path to reduce intermediate conversion; where necessary, use a read-only mapping approach so parsing and reading overlap.
4. Overlapping Compute and Transfer
Pipeline shard loading with device-side initialization so that shards arriving first are moved onto the device first, shortening the critical path.
5. Observability
Instrument T_meta, T_read, and T_h2d separately to form a startup waterfall chart. On the storage side, track four metrics: throughput, IOPS, latency, and queue depth, and configure monitoring alerts and log retention for regression comparison.
6. Acceptance and Load Testing Recommendations
- Fix weight size and node count, change only the storage tier, and quantify the benefit of each tier;
- Record the amplification factor and effective bandwidth utilization rather than only total duration;
- Set a cold start time budget and include it in release gating to prevent performance regressions;
- Mount the weight volume read-only on the container platform to ensure consistency and repeatability across instances.
7. Conclusion
The essence of cold start optimization is turning “moving data” into an engineering metric that can be budgeted, measured, and regression-tested. First clarify weight size, node scale, and the time target; then calculate the per-node bandwidth requirement; then address I/O amplification, optimize format and concurrency, and use tiered caching to cover tail latency. Compressing minute-level startup down to tens of seconds is an achievable engineering goal. If you need matching elastic resources and managed storage capabilities, you can combine capacity planning and load testing validation with the general cloud architecture practices offered by Baidu AI Cloud.
