TECHNOLOGY

Ollama HDD loading: a concurrency report, not a universal threefold penalty

In this article
THE QUICK TAKE

The report links slow HDD initialization with concurrent reads, but compares different timing boundaries; reducing Go parallelism helped only partly and is not a general loading-speed guarantee.

Ollama issue 12048 documents a useful loading failure case: a large model on HDD-backed container storage took much longer to initialize than a sequential read of its main file. The report motivates examining I/O concurrency during startup. It does not establish that Ollama always has a threefold disk penalty or that every slow load can be fixed with one environment setting.

What the owner observed

The original issue records Linux, Docker and Ollama 0.11.6, using the approximately 13GB gpt-oss:20b artifact on an HDD. The author reports about 127 seconds for a raw file read and a runner-start log of 363.97 seconds. During initialization, the owner observed more than eight reading entries in iotop and attributed lower aggregate throughput to contention.

The logs also show GPU weight placement, KV-cache allocation and compute-graph preparation. Thus runner readiness and raw file reading have different endpoints. The observation is consistent with a storage-concurrency problem, but the ratio alone cannot assign every additional second to disk seeking or rule out other initialization work. This remains an attributed owner report rather than an independent controlled reproduction.

The workaround was partial and versioned

A collaborator suggested reducing Go execution parallelism through GOMAXPROCS. In a later comment, after upgrading to Ollama 0.12.3, the owner reported only one to three reading entries with the setting at one, compared with more than eight without it. The author explicitly said the change reduced contention but did not remove the slowdown completely.

The Go runtime reference defines the setting as limiting simultaneous execution of Go code. It is not a direct declaration of the number of file-read operations, goroutines or total operating-system threads. A change can influence the observed concurrency indirectly while also affecting other server work. The issue therefore does not justify advertising it as a universal HDD fix or a safe throughput optimum for unrelated workloads.

Cache preloading changes the experiment

The owner subsequently chose to preload main model files into the operating system’s read cache. That can change where later reads are served from, without increasing the physical drive’s throughput. The kernel documentation explains that clean page-cache objects are reclaimable, so warm residency also depends on memory pressure and other activity.

A preloaded restart is a different scenario from a newly provisioned machine reading an uncached artifact. Record both when they matter, following the model-loading cache guide. Treat the preload as preparation with its own duration and memory footprint rather than removing it from the accounting and calling the whole workflow faster by the warm-load factor.

What a defensible follow-up would compare

Use the same artifact, host, engine revision and readiness definition for matched trials. Preserve actual device reads, observed reader concurrency, elapsed initialization, memory pressure and competing traffic. A sequential file-read baseline is helpful context, but should remain separately labeled from full model startup.

Ollama’s usage reference distinguishes model load duration, prompt evaluation and generated-token duration. Those API metrics are useful endpoints for a new test, without assuming they reproduce the historical runner-log boundary exactly. The guide to the actual loading-device queue supplies related topology context. The case supports investigating how application read behavior interacts with rotating storage. It does not establish current-release behavior, SSD-versus-HDD acceleration or a change in steady-state model decode speed.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles