Pidoku

Racks, Power and Cost

Module 7 Lesson 7.l 50 min Difficulty 3/5

Prerequisites 4.g, 7.d


Before you start: words you need#

WordPlain meaning
kW per rackHow much electrical power one rack of servers draws. A home draws about 1–2 kW on average.
Direct liquid coolingCoolant piped to metal cold plates sitting on the chips, instead of blowing air over them.
PUEPower usage effectiveness: total facility power ÷ power reaching the computers. 1.2 means 20% extra for cooling and power conversion.
Capex / opexCapital expenditure (buying the hardware) and operating expenditure (power, space, staff).
DepreciationSpreading the purchase price over the years the hardware is useful.
UtilizationThe fraction of hours a GPU is doing useful work.
Scale-up / scale-outThe fast network inside a rack (NVLink) and the slower one between racks (InfiniBand or Ethernet) (9.c, 9.d).

1. What is it?#

At scale, the GPU chip is not the hard part. Electricity, cooling and networking are. A modern AI rack draws as much power as a hundred homes, must be liquid-cooled, and is worthless without the network that ties racks together. All of that ends up in one number you can reason about: the cost of a useful GPU-hour, and from it, the cost per million tokens.

Facts checked on 12 November 2026.

flowchart TB
  GRID["Power grid"] --> SUB["Substation and UPS"]
  SUB --> PDU["Rack power<br/><small>~130 kW Blackwell · ~200 kW Rubin · 600 kW+ Kyber</small>"]
  PDU --> RACK["Rack<br/><small>GPU trays, NVLink switch trays</small>"]
  RACK -->|"heat"| CDU["Coolant distribution unit<br/><small>cold plates on chips</small>"]
  CDU --> CHILL["Dry coolers or cooling towers"]
  RACK <--> LEAF["Leaf switches"] <--> SPINE["Spine switches"]
  SPINE <--> OTHER["Other racks"]
  class GRID,SUB,PDU warn
  class RACK compute
  class CDU,CHILL memory
  class LEAF,SPINE,OTHER io

2. Why does it matter?#

  • Power is the binding constraint. In 2026 the limit on new AI capacity is often the grid connection, not the chips: delivering hundreds of megawatts to a site takes years.
  • Old buildings do not fit new racks. A hall designed for 10 kW air-cooled racks cannot host a 130 kW liquid-cooled one without new power and plumbing.
  • Cost per token is the business. Every optimization in this material (batching, quantization, caching) ends up as a lower cost per million tokens. You need the formula to know which ones matter.

3. Simple analogy#

A GPU is like a delivery van. The sticker price is only part of the cost: you pay for fuel, insurance, a garage and a driver, and you pay them whether the van is on the road or parked. A van that drives four hours a day costs far more per delivery than one that drives twenty. The cheapest delivery comes from a busy van carrying full loads: high utilization and high throughput.


4. Tiny example#

A B200-class GPU that costs $45,000 all-in, used for 5 years:

hours in 5 years:            5 × 365 × 24 = 43,800
capital per hour:            $45,000 ÷ 43,800 ≈ $1.03   (plus interest → $1.28)
power per hour:              1.0 kW × 1.45 (server) × 1.25 (PUE) × $0.08/kWh ≈ $0.14
facility per hour:           $3,000/year ÷ 8,760 ≈ $0.34
total, if busy every hour:   ≈ $1.77

busy only 40% of the time:   $1.77 ÷ 0.40 ≈ $4.43 per useful hour

The electricity everyone talks about is the smallest term. Idle time is the biggest.


5. Technical explanation#

Power density#

Rack typePower per rack
Traditional CPU rack5–15 kW
Air-cooled GPU rack (H100 servers)30–45 kW
GB200 / GB300 NVL72 (72 GPUs, liquid-cooled)~120–140 kW
Vera Rubin NVL72 (2026)roughly 190–230 kW (reported; NVIDIA has not published one figure)
Kyber racks for Rubin Ultra (2027)~600 kW, with an 800 V DC power sidecar

Air stops being practical around 40 kW per rack: you cannot push enough of it through the chassis. Above that, direct liquid cooling carries the heat away in coolant. A coolant distribution unit (CDU) exchanges heat between the rack’s loop and the building’s water loop. This is now the baseline for flagship systems. Kyber goes further: fully liquid-cooled with no fans, and power delivered at 800 V DC because at 600 kW the copper needed for traditional 54 V distribution would be impractically heavy.

PUE measures the overhead. A modern liquid-cooled facility reaches 1.1–1.3; older air-cooled halls often run 1.5 or more. Liquid cooling lowers PUE because pumping water is cheaper than moving and chilling air.

The networks#

A GPU cluster has three networks (Module 9 covers them in depth):

  • Scale-up: NVLink inside a rack. The 72 GPUs act as one machine.
  • Scale-out (back end): InfiniBand or Ethernet with RDMA between racks, for multi-node serving and training. Built as a fat tree of leaf and spine switches so any node can reach any other at full speed.
  • Front end: ordinary Ethernet for user traffic, storage and management.

The network is commonly 10–20% of cluster cost, and its optics and switches draw significant power. Co-packaged optics (9.d) are arriving partly to cut that power.

What a GPU-hour costs#

Owning:

                     capital per hour + power + facility + operations
cost per useful  =  ──────────────────────────────────────────────────
GPU-hour                              utilization
  • Capital per hour = purchase price (plus interest on the money) ÷ useful-life hours. The useful life is a judgement call: clouds depreciate GPUs over 5–6 years, but a GPU’s rental value falls much faster as each new generation arrives. H100 rental prices fell from $8+ in 2023 to about $2–3 per GPU-hour in November 2026 (7.b).
  • Utilization is the part people forget. A GPU busy 40% of the time costs 2.5x more per useful hour. Idle GPUs are the most expensive thing in an AI company.

Renting moves the same costs into a price: on-demand (flexible, highest), reserved (commit for 1–3 years, substantially cheaper), spot (cheapest, can be taken away). In November 2026 a B200 commonly rents for roughly $6–10 per GPU-hour on demand at specialist clouds (7.c); reserved prices are well below that.

From GPU-hours to tokens#

cost per million tokens = cost per useful GPU-hour ÷ (tokens per second × 3,600) × 1,000,000

Tokens per second depends on everything in Modules 12 and 13: batch size, prefill or decode, precision, how full the KV cache is. So software efficiency turns directly into money: a 3x throughput gain is a 3x cut in cost per token on hardware you already own. Module 23 (23.c) builds the full cost model.


6. Under the hood#

A total-cost-of-ownership model for one GPU, then the cost per million tokens across utilization and throughput.

Go
// tco.go — what a GPU-hour and a million tokens really cost.
package main

import "fmt"

func main() {
	const (
		gpuCapex        = 45000.0 // per GPU, B200-class, incl. its share of server, network, storage
		lifeYears       = 5.0
		gpuWatts        = 1000.0
		serverOverhead  = 1.45 // CPUs, fans, NICs, switches per GPU
		pue             = 1.25
		dollarsPerKWh   = 0.08
		facilityPerYear = 3000.0 // space, cooling plant, staff, per GPU
		costOfCapital   = 0.10   // yearly interest on the money tied up in the hardware
	)
	hours := lifeYears * 365 * 24
	// Straight-line depreciation, plus interest on the average undepreciated balance.
	capexPerHour := gpuCapex * (1 + costOfCapital*lifeYears/2) / hours
	powerPerHour := gpuWatts * serverOverhead * pue / 1000 * dollarsPerKWh
	facilityPerHour := facilityPerYear / (365 * 24)
	raw := capexPerHour + powerPerHour + facilityPerHour

	fmt.Printf("capital $%.2f/h   power $%.2f/h   facility $%.2f/h   total $%.2f/h at 100%% use\n\n",
		capexPerHour, powerPerHour, facilityPerHour, raw)

	fmt.Println("utilization   $/useful GPU-hour   $/M tokens at 2,500 tok/s   at 7,500 tok/s")
	for _, u := range []float64{1.0, 0.7, 0.4, 0.2} {
		perHour := raw / u
		fmt.Printf("%10.0f%%   %17.2f   %24.3f   %14.3f\n",
			u*100, perHour, perHour/(2500*3600)*1e6, perHour/(7500*3600)*1e6)
	}
}

Output:

capital $1.28/h   power $0.14/h   facility $0.34/h   total $1.77/h at 100% use

utilization   $/useful GPU-hour   $/M tokens at 2,500 tok/s   at 7,500 tok/s
       100%                1.77                      0.197            0.066
        70%                2.53                      0.281            0.094
        40%                4.43                      0.492            0.164
        20%                8.86                      0.984            0.328

Two levers dominate: utilization (down the rows, a 5x spread) and throughput (across the columns, a 3x spread). Electricity is 8% of the total. The prices are placeholders; the shape of the table is what holds.


7. Performance implications#

  • Power caps performance. Many sites run GPUs below their maximum power to fit more of them into a fixed building budget. Decode is memory-bound, so a modest power cap often costs little speed (4.g).
  • Thermal throttling shows up as uneven speed across GPUs in a rack when cooling is marginal. Watch per-GPU clocks, not just utilization.
  • Network share. A slow or oversubscribed scale-out network shows up as low GPU utilization in multi-node serving, which the cost formula then multiplies.

8. Production implications#

  • Facility first. Before ordering NVL72-class racks, confirm power per rack, liquid cooling (CDUs, water loop), and floor loading (a rack weighs about 1.4 tonnes).
  • Rent, reserve or own. Owning wins only at high, steady utilization. Bursty or uncertain demand favours renting; a steady base load favours reserved or owned capacity, with on-demand on top.
  • Plan for the next generation. A GPU’s rental value falls as the next one ships. Price your capacity on a realistic useful life, not the accounting one.
  • Measure utilization honestly. “GPU utilization” in nvidia-smi means a kernel was running, not that the GPU did useful work (22.d). Use tokens per GPU-hour.

9. Common mistakes#

  1. Pricing a GPU-hour at 100% utilization. Real fleets run far lower.
  2. Overweighting electricity. It matters for the building, but it is a small part of cost per token.
  3. Ignoring the network in the budget or the design.
  4. Assuming any data center can host a liquid-cooled rack.
  5. Using the 6-year accounting life as the economic life.

10. Hands-on exercise#

  1. Run tco.go with a GPU price and an electricity rate you can find today.
  2. At what utilization does owning beat renting at $3.00 per GPU-hour? At $6.00?
  3. Set lifeYears to 3 to model a GPU whose rental value collapses when the next generation ships. How much does the cost per useful hour rise?
  4. A team doubles throughput through larger batches, but p99 latency rises 30%. Write the argument for and against shipping it.

11. Interview questions#

  1. Why does liquid cooling become necessary above about 40 kW per rack?
  2. What are the three networks in a GPU cluster, and what does each carry?
  3. Why does utilization appear in the denominator of cost per GPU-hour?
  4. Why does Kyber move to 800 V DC power?
  5. Which matters more for cost per token: electricity price or utilization? Show the numbers.

12. Further reading#

Checked on 12 November 2026.

↑↓ navigate↵ openesc close

100% drag to pan · scroll or pinch to zoom · double-click to zoom in