← all posts
September 8, 2026·Ronald Adonyo· 8 min read

A 2014 workstation runs a 27B model at 39.32 tok/s on an RTX 3090 over a x2 link

Qwen3.8-27B at Q4_K_M runs at 39.32 tok/s on an RTX 3090 and 47.78 on a 4090 in an eleven-year-old HP Z840, while power-capped and on PCIe links negotiated at x2 and x4 of x16. The 3090 figure is 12% above a 35 tok/s figure for the same card and model class that the post compares against but cannot cite. Finding it meant fixing a CPU locked at base clock since installation and a GPU handed zero address space.

InfrastructureLLMBenchmarksGPUPCIe
A heavy black workstation case on a wooden bench beside an open notebook, with a brass lens held over it; a grey parrot on top holds a blank card in its beak while a crested crane at the right looks at the machine, with the lake and the city behind.

A 2014 HP Z840 workstation runs Qwen3.8-27B at Q4_K_M at 39.32 tok/s on its RTX 3090. That is 12% above a 35 tok/s figure for an RTX 3090 running a 27B dense model at the same quantisation; the source of that figure was not recorded, so it is an uncited comparison (see the note at the end). On the RTX 4090, it generated 47.78 tok/s. Both cards were power-capped, and both ran on PCIe links negotiated at a fraction of their rated width: x2 and x4 out of x16.

Two faults had to be fixed first. The CPU had been locked at its base clock since installation, and a GPU had been given zero memory-mapped address space, which left it visible but unusable.

Result

config                    pp512 (t/s)          tg128 (t/s)
RTX 3090             1218.62 +- 63.85      39.32 +- 0.21
RTX 4090             2524.54 +- 309.82     47.78 +- 0.27
both, layer split    1650.81 +- 89.98      45.19 +- 0.00

pp512 is prompt processing: the speed at which the model reads 512 tokens of input. tg128 is token generation: the speed at which it writes 128 tokens of output. Generation sets how fast a reply feels.

Splitting the model across both cards is slower than the 4090 alone: 45.19 against 47.78. The model is 15.92 GiB and fits inside one 24 GB card, so a layer split buys nothing and adds a cross-device hop on every token. The split-ratio sweep below shows the loss grows steadily with the share given to the slower card, so it is not a quirk of the even split.

Using both cards is slower than using one

llama.cpp offers two ways to spread a model over several GPUs. Layer split gives whole layers to each card and passes activations along. Row split cuts individual tensors across cards (tensor parallelism), so every layer needs a peer exchange. --tensor-split then sets the ratio of the model each card holds.

Row split does not run on this machine. It fails in 1.8 seconds, before any weight is read:

llama_model_load: error loading model: device CUDA0 does not support split buffers

A split buffer is a ggml allocation striped across devices, and the CUDA backend only advertises one when both devices can service it. The 3090 does not. The failure is a capability refusal at buffer-type negotiation. Bandwidth and peer-to-peer limits, the obvious suspects on a mixed pair, are not involved.

With layer split working, the ratio sweep is monotonic. Every share given to the 3090 costs throughput, because the model already fits in one card and the slower card gates each step.

tensor-split  3090/4090      pp512 (t/s)        tg128 (t/s)
1 / 1   even                1640.36 +- 81.07   44.59 +- 0.02
1 / 3                       2023.03 +- 46.52   45.63 +- 0.95
1 / 7                       2251.06 +- 35.03   47.07 +- 0.04
0 / 1   all on the 4090     2561.29 +- 248.87  47.34 +- 0.25

Prefill and generation respond differently. Moving from an even split to the 4090 alone gains +56% on prefill but only +6% on generation. Prefill is compute-bound, so the slower card holds back the whole batch. Generation is bandwidth-bound, and the two cards are close there.

A 1/7 split sits within 0.6% of the 4090 alone on generation while holding an eighth of the model on the 3090. If a larger model ever needed the second card's VRAM, a heavily weighted split would therefore cost almost nothing in generation, and the cost would fall on prefill.

Turbo disabled since installation

Both Xeon E5-2699 v3 sockets reported a maximum frequency of 2300 MHz, which is exactly the base clock. The part turbos to 3.6 GHz. The BIOS had disabled turbo by setting bit 38 of the IA32_MISC_ENABLE model-specific register, a CPU control register the firmware writes at boot.

Nothing reported a fault. The F10 setup menu has no Turbo toggle, and HP's own replicated-setup tool could not write the setting. The Linux intel_pstate/no_turbo control rejected writes while the bit was set. The operating system therefore looked healthy while reporting the base clock as the ceiling.

# read the register; bit 38 set means turbo is disabled in firmware
sudo rdmsr -p 0 0x1a0                     # 4000850089

# clear bit 38 on every core, then tell the kernel turbo exists
sudo wrmsr -a 0x1a0 0x850089
echo 0 | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo
cpuinfo_max_freq  2300000 -> 3600000 kHz

The bit is writable at runtime on Haswell-EP, so no firmware change was needed. Linux then reported turbo_pct=53, so over half of the processor's performance range had been unreachable since installation.

A GPU with no address space

After both cards were moved onto the same CPU, the second one stopped working. The driver refused it with BAR0 is 0M @ 0x0. A BAR — base address register — is the window through which the host reaches a device's memory. A zero-byte window means the firmware gave the card no address space.

The cause was address-space arithmetic. Each GPU needs a 304 MB window, and the firmware published a single 320 MB region below the 4 GB boundary for all of that CPU's devices. The first card took 304 MB and the second got what was left.

MMIO window before and after switching the firmware to 64-bit assignmentBefore: one 320 MB window below 4 GBGPU 1 takes 304 MB16 MB leftGPU 2: BAR0 is 0MAfter: MMIO Assignment Mode = 64 BitGPU 1GPU 2headroom2 GB window per root bus, mapped above the 4 GB boundary at 0x380000000000

One firmware setting fixed it. HP exposes MMIO Assignment Mode, which was set to Auto and resolving to 32-bit. Setting it to 64 Bit moved the windows above 4 GB, where address space is plentiful, and the second card came back.

Writing the setting needed a workaround. The kernel's hp_bioscfg interface reads all 236 firmware attributes but rejects every write on this 2016 firmware with error 0x4, Invalid command type. HP's own hp-repsetup tool, driving /dev/hpuefi, writes fine. Five of eight settings applied; the three power-management settings are not reachable that way.

The narrow PCIe links did not limit throughput

Both cards negotiate far below their rated PCIe width: the 3090 at x2 and the 4090 at x4, against x16 on both. That is 12% and 25% of their lanes. The initial assumption was that benchmarking over those links would give unusable numbers.

They did not. Link width was sampled during the benchmark as well as at idle, and held at x2 and x4 throughout, yet the 3090 still came in above the uncited 35 tok/s figure for the same card. Once the weights are in VRAM, inference touches the bus only for the small tensors that carry a token in and out, so the narrow link costs load time and not throughput.

               link   host->device   theoretical    efficiency
RTX 3090         x2      1.62 GB/s      1.97 GB/s          85%
RTX 4090         x4      3.11 GB/s      3.94 GB/s          82%
(at x16 both would have 15.76 GB/s available)

PCIe correctable errors on both root ports: 0

Host-to-device bandwidth reached 82–85% of theoretical for the negotiated width, with zero corrected errors, so the links are narrow but healthy. They run at full Gen3 signalling, and a degraded link would normally show retries or a lower speed.

Prefill scales with compute, generation with bandwidth

The 4090 is 2.07× the 3090 at reading a prompt but only 1.22× at writing tokens. Reading a prompt processes 512 tokens at once and saturates the arithmetic units. Writing a token requires streaming every weight in the model out of memory once, so it is bounded by memory bandwidth, where the two cards are close.

4090 advantage over 3090, by what limits each phaseprefill2.07xmatmul2.18xgenerate1.22xVRAM BW1.10xmeasured: 148.5 vs 67.5 TFLOPS bf16 | 918 vs 838 GB/s | both cards power-capped

Each phase follows its own limiter. A bandwidth-based roofline estimate made before the real run predicted 48 and 44 tok/s; the benchmark produced 47.78 and 39.32. The estimate for the faster card matches closely, while the slower card came in well below its estimate, and the reason has not been investigated.

Two mistakes

The first benchmark harness measured the wrong card. CUDA orders devices by speed by default, so cuda:0 was the 4090 while nvidia-smi -i 0 was the 3090. The two were inverted. The harness loaded one card and read health from the other. The error surfaced only because the wrong GPU showed 34% utilisation while the one under test sat idle. Every command since sets CUDA_DEVICE_ORDER=PCI_BUS_ID.

The second was spending hours downloading a 2.29 GB CUDA toolkit over a degraded satellite link to build llama.cpp, none of which was needed. Another machine on the LAN already had a compiled CUDA build, and its only unsatisfied library was libnccl.so.2, which PyTorch ships in its own package directory. Checking the local network before the internet would have avoided the detour.

Reproduction

Host
HP Z840 (2014), 2× Xeon E5-2699 v3, 188 GB RAM
GPUs
RTX 3090 24 GB (sm86, 280 W cap), RTX 4090 24 GB (sm89, 320 W cap)
Model
Qwen3.8-27B-Q4_K_M.gguf — 15.92 GiB, 27.32 B params
Tool
llama.cpp llama-bench, build c198af4, CUDA backend
Protocol
-ngl 99 -p 512 -n 128 -r 2; warm, mean ± stddev over repeats
Baseline
Uncited third-party figure, RTX 3090, 27B dense Q4_K_M: 35 tok/s generation
LIB=/path/to/llama.cpp/build-cuda/bin
NCCL=$HOME/.local/lib/python3.12/site-packages/nvidia/nccl/lib
export LD_LIBRARY_PATH="$LIB:$NCCL" CUDA_DEVICE_ORDER=PCI_BUS_ID

CUDA_VISIBLE_DEVICES=0 $LIB/llama-bench \
  -m Qwen3.8-27B-Q4_K_M.gguf -ngl 99 -p 512 -n 128 -r 2

The baseline is a third-party figure and not a same-harness run, so the 12% margin carries a caveat: the comparison holds model class, quantisation and tool constant, but not the host. The three internal comparisons (3090 against 4090, single card against split, and each phase against its limiter) all use the same harness on the same afternoon.

The model now serves on the 4090 behind an OpenAI-compatible endpoint, placed by Nomad from a checked-in job spec. The card choice in that spec cites this benchmark.

Source of the comparison figure. The 35 tok/s baseline is uncited. Neither this post nor the notes in its repository record who published it, on what host, or with which tool, so the 12% comparison cannot be checked. The measured numbers above stand on their own.

Corrected 2026-10-10: the title and summary said this machine beats the published numbers for a 27B model. The figure it was compared with has no recorded source, so the title now states the measured result and the comparison is marked as uncited.

A wide horizon at dusk: layered hills in muted plum and ochre above a lake that holds the last light, a family of crested cranes at the water's edge, an acacia in silhouette and a single bright star above the ridge.