The idea: a fixed number of users going round a loop
A computer serves N users at terminals. Each user thinks for a while, sends one request, waits for the answer, and thinks again. Inside the computer the request visits a CPU and two disks, queueing wherever another request is already being served. The number of requests in the whole loop never changes: it is a closed queueing network. Unlike an open queue, the arrival rate is not given. It is an answer: the faster the computer, the sooner users send again.
The page uses the classic central-server model. A request starts on the CPU. After each CPU burst it does an I/O on Disk 1 or Disk 2 and comes back, or it is done. Per interaction it makes V = 6 visits to Disk 1, 4 to Disk 2, and 1 + 6 + 4 = 11 CPU bursts. A disk I/O takes S = 30 ms and a CPU burst 9.09 ms. The service demand D = V · S is the total work per interaction: 0.10 s on the CPU, 0.18 s on Disk 1, 0.12 s on Disk 2, D = 0.40 s in all. Think time is Z = 2 s (Demo: follow one interaction).
Operational laws: what you can say from counts alone
Watch the system for a time T and count. No assumption about random distributions is needed; these relations hold for any measured window. With N = 5 users for T = 100 s the monitor saw C = 200 finished interactions, and at each station a number of completions Ck and a busy time Bk (Demo: operational laws from a 100 s measurement).
| Law | Formula | In the measurement |
|---|---|---|
| Throughput | X = C / T | 200 / 100 = 2 per second |
| Forced flow | Xk = Vk · X | V = 2200/200, 1200/200, 800/200 = 11, 6, 4; Xk = 22, 12, 8 per second |
| Utilisation | Uk = Bk / T = X · Dk | 0.20, 0.36, 0.24 |
| Service demand | Dk = Uk / X | 0.10, 0.18, 0.12 s |
| Response time | R = N / X − Z | 5 / 2 − 2 = 0.5 s |
The response time law is Little's law applied to the whole loop: N = X · (R + Z). Here 4 users are thinking on average (X · Z) and 1 request is inside (X · R).
The bottleneck and the asymptotic bounds
Uk = X · Dk can never pass 1, so the station with the largest demand Dmax caps the throughput: X ≤ 1 / Dmax = 1 / 0.18 = 5.56 per second. That station is the bottleneck. With few users there is almost no queueing, and each user finishes one interaction every D + Z seconds, so X ≤ N / (D + Z). For the response time, R ≥ D, and once the bottleneck is saturated R = N / X − Z ≥ N · Dmax − Z (Demo: bottleneck and asymptotic bounds).
X(N) ≤ min( N / (D + Z), 1 / Dmax )
R(N) ≥ max( D, N · Dmax − Z )
N* = (D + Z) / Dmax = 2.4 / 0.18 = 13.33 where the two lines meet
Below N* the users spend most of their time thinking; above it, new users mostly add to the queue at Disk 1. The bounds need only three numbers, D, Dmax and Z.
Mean Value Analysis, one population at a time
The bounds say where the curves can be, not where they are. Mean Value Analysis (MVA, Reiser and Lavenberg, 1980) gives the exact mean values for this kind of network (exponential service at FIFO stations, or processor sharing). It rests on the arrival theorem: a request arriving at a station sees, on average, the queue the same network would have with one user fewer. So the row for N needs only the queue lengths of the row for N − 1:
Qk(0) = 0
for N = 1, 2, 3, …
Rk(N) = Dk · (1 + Qk(N−1)) my work plus the work of those I find there
R(N) = Σ Rk(N)
X(N) = N / (R(N) + Z) Little's law on the loop
Qk(N) = X(N) · Rk(N) Little's law at each station
At N = 1 nobody waits: R = D = 0.400 s and X = 1 / 2.4 = 0.417 per second. At N = 2 a request finds Q1(1) = 0.075 at Disk 1, so R1 = 0.18 × 1.075 = 0.1935 s, R = 0.4237 s and X = 0.825. Each row checks itself: the queues plus the thinking users add up to N (Demo: exact MVA, N = 1 … 3 step by step). The work is 3 stations × 16 rows of plain arithmetic.
| N | X per second | R (s) | Q at Disk 1 | Disk 1 busy |
|---|---|---|---|---|
| 1 | 0.417 | 0.400 | 0.075 | 7.5 % |
| 5 | 1.991 | 0.511 | 0.489 | 35.8 % |
| 10 | 3.654 | 0.737 | 1.446 | 65.8 % |
| 13 | 4.413 | 0.946 | 2.427 | 79.4 % |
| 16 | 4.952 | 1.231 | 3.854 | 89.1 % |
The prediction at N = 5, X = 1.991 and R = 0.511 s, is close to the 2.0 and 0.5 s measured above. That is how MVA is used: measure demands at today's load, then ask what happens with more users (Demo: MVA to N = 16).
What-if: speed up the right station
A CPU twice as fast cuts DCPU from 0.10 to 0.05 s. Disk 1 is still the bottleneck, so the ceiling stays at 5.56 and X(16) rises only from 4.952 to 5.054 per second, 2 % (Demo: twice-as-fast CPU barely helps). A Disk 1 twice as fast cuts its demand to 0.09 s. Now Disk 2, with 0.12 s, is the bottleneck, the ceiling rises to 8.33 and N* to 19.25. X(16) becomes 5.910, 19 % more, and R(16) falls from 1.231 to 0.707 s (Demo: twice-as-fast Disk 1 moves the bottleneck). Fixing a bottleneck always reveals the next one.
Where this fits
A single open queue with Poisson arrivals and its closed formulas is on the M/M/1 queue page; several servers sharing one line are on the M/M/c pooled queues page. When the assumptions of MVA do not hold (priorities, blocking, odd service times), you simulate instead: Discrete-Event Simulation shows the event-list engine. The same bottleneck thinking sizes a database pool in Connection Pool Sizing.
See also 2^k Factorial Design, which finds the factors that explain most of a system's performance with few runs.
See also Simulation Output Analysis, for the error bars you need when a queueing model is simulated instead of solved.
What the page leaves out
The page has one class of users and three stations. Real models often have several classes (MVA extends to them), delay stations other than the terminals, load-dependent servers such as a multi-core CPU, and approximate MVA (Schweitzer's) for large N where the exact recursion gets slow with many classes. It does not prove the arrival theorem or the product form behind it, and it shows mean values only, not percentiles. Open networks (Jackson networks) with a given arrival rate are solved differently, station by station.