Track lessons
  1. 1How a language model works: parameters and inferenceVideo 3 min
  2. 2How AI finds text by meaning: embeddings and hybrid searchVideo 3 min
  3. 3How AI answers from verified sources: RAGVideo 3 min
  4. 4In-house enterprise AI: VM, GPU node and proxyVideo 2 min
  5. 5Why one machine is rarely enough: memory and queuesVideo 2 min
  6. 6Where your data goes: external models vs in-house proxyVideo 3 min
AI Garage · try it
Lesson 5 of 6 · Video 2 min

Why one machine is rarely enough: memory and queues.

Fast answers for one user collapse cleanly once twenty colleagues ask simultaneously — or bulk indexing kicks in mid-morning. Sizing depends on memory headroom, bandwidth and 95th percentile tails, never headline peak specs.

Level: For learners · 15 min

Lesson 4 separated VMs from GPU nodes. Now let’s load that node with real concurrent users, memory contention and queues.

In one sentence

Shared GPU memory holds model weights plus every open dialogue’s KV cache: once full, queues expand wait times exponentially.

Technical rack gauge illustrating shared node memory filling with active conversation slices and incoming queue pressureTechnical rack gauge illustrating shared node memory filling with active conversation slices and incoming queue pressure
Illustrative diagram · memory & queueWhat to look for: click callouts 1–2: static weights sit locked first; remaining space gets split among concurrent conversations and background indexing.
  1. 1Fixed model slab: Weights stay loaded continuously, leaving only remaining GPU memory for active chats.
  2. 2Contention & queues: Concurrent chats plus mid-day indexing exceed free headroom — pushing requests into queues.
Read as · choose your angleLevel: For learners · 15 min

In 30 seconds · takeaway

One fast demo never guarantees 20 happy staff

  1. Vendor demos measure 1 user on a quiet node; offices see bursts at 09:00 and 14:30 when 15 staff click together.
  2. Adding a second compact box serves more people side by side, yet does not double single-answer speed.
  3. Always schedule heavy OCR/indexing jobs overnight and measure 95th percentile wait times under realistic load.

What this means for you: Size against peak concurrent usage and tail response times (p95) during pilot measurements — never marketing peak speeds.

Short clip before testing · 36 s

Digital avatar and synthetic voice of Lorenzo Dalci. All examples and companies are fictional.

The real bottleneck

Memory is one shared budget.

Illustrative simulation · declared assumptions Adjust simultaneous staff, split VM vs GPU architecture and toggle background indexing: watch queues and p95 latency jump once free memory disappears.

Memory budget, concurrent users and queue pressure

12
How the system is built
Indexing new documents
Node memory
  • Model
  • Conversations
  • Portal & archive
  • Indexing
0answering
0queued
0%memory used
Indicative median (p50)2.1 s
Indicative 95th percentile (p95)3.9 s

Stated assumptions: Illustrative simplified unit budget = 128 total (Model=40, Portal/services on single box=30, Active indexing=24 on single box or 12 on split GPU, KV per chat=4). Educational curve showing tail queuing onset, not a hardware benchmark.

What to look for set 22 users on «All on one machine» vs «VM + GPU node» with indexing enabled vs overnight: see p95 drop smoothly once decoupled.

Three hardware sizing classes on technical rack: S compact single node, M dual compact nodes, L high-bandwidth GPU workstationThree hardware sizing classes on technical rack: S compact single node, M dual compact nodes, L high-bandwidth GPU workstation
Indicative tiers S / M / LWhat to look for: click callouts 1–3 to compare how Memory, Bandwidth and Concurrent throughput scale across S, M and L tiers.
  1. 1S · one compact node: Pilot setup for 1 department and office files; single memory bandwidth stream.
  2. 2M · two compact nodes: Doubles memory and concurrent throughput without speeding one single isolated answer.
  3. 3L · high-bandwidth workstation: Dramatically faster GPU memory (~10x bandwidth tier) for cross-site volume and long annexes.
Indicative tier S

S · One compact node

Right for focused pilot validation across 1 department and modest document sizes.

  • Memory1× base
  • Bandwidth1× base
  • Compute1× base

Verify p95 headroom carefully before adding more teams.

Indicative tier M

M · Two compact nodes

Doubles available chat seats and index volume; per-user solo answer pace stays equal.

  • Memory2×
  • Bandwidth1× solo
  • Compute2×

Removes horizontal queue spikes cleanly without replacing existing rack power.

Indicative tier L

L · High-bandwidth workstation

Serves dense prompts, long technical attachments and larger models at crisp decode speed.

  • Memorylarge
  • Bandwidth~10×
  • Computehigh

Required when single-stream latency on heavy contexts bottlenecks team productivity.

Short clip · Decision maker · 39 s

Digital avatar and synthetic voice of Lorenzo Dalci. All examples and companies are fictional.

Decision makerBuying capacity around real office bursts · sizing rules, risks and 3 capacity questions for vendorsDeep dive collapsed · click to expand
Decision maker · sizing economics

Buying capacity around real office bursts

Three habits before buying metal

1

Schedule indexing off-peak

How to assess it

Heavy OCR and folder re-indexing belong overnight — never stealing memory bandwidth during customer call peaks.

2

Measure p95, not sunny-day averages

How to assess it

If averages read 2 s while 1 in 20 users waits 30 s, staff abandon the tool quietly within two weeks.

3

Match tier (S / M / L) to real headcount & docs

How to assess it

Small pilots work cleanly on one compact box (S); company-wide long docs justify multi-node (M) or high-bandwidth workstations (L).

What you gain

  • Avoids over-buying giant hardware for a 10-seat pilot — or choking rollout on Day 1.
  • Keeps single-answer feel snappy by reserving bandwidth headroom.
  • Predictable multi-phase expansion: pilot S -> department M -> high-bandwidth L.

What you manage

  • Mistaking headline «100 tokens/sec» brochures for 20-user sustained concurrency.
  • Sharing portal/VM RAM and GPU inference onto one un-isolated box where failures cascade.
  • Launching a 10,000-PDF OCR import at 10 AM and jamming sales workflows.

How office bursts behave in practice

Before
ERP sync at 09:15 pushes p95 past 29 s
After
Move the sync off-peak

Illustrative examples

Three supplier questions

  1. «What is your measured p95 end-to-end wait time at 20 concurrent queries with 8-page contexts?»
  2. «Where does OCR/document ingestion run so it never slows active interactive chat?»
  3. «If we double concurrent staff after pilot, do we scale horizontally with another compact node or need higher bandwidth?»
Timing, prerequisites and examples

Pilot sizing check: 1 short concurrency stress run simulating morning peak load.

  • Count true peak concurrent active desks (typically 15–30% of licensed headcount).
  • Provide 5–10 representative multi-page attachments matching typical workflow prompt lengths.
  • Agree target p95 SLA tolerance with teams beforehand.

After-sales support desk

Pilot with 4 seats answered in 2.2 s cleanly. At rollout across 28 desks, unscheduled ERP PDF sync triggered at 09:15 pushed p95 past 29 seconds until split off-peak.

Technical estimating office

Teams pasted huge BOM annexes needing large models. Upgrading memory bandwidth cut single-stream read wait dramatically where horizontal small boxes couldn’t help.

Short clip · Technical lead · 40 s

Digital avatar and synthetic voice of Lorenzo Dalci. All examples and companies are fictional.

Technical leadMemory bandwidth walls, KV cache footprints and tail queuing · decode bandwidth limit, KV scaling, prefill/decode split and M/M/c queue behaviourDeep dive collapsed · click to expand
Technical lead · memory physics

Memory bandwidth walls, KV cache footprints and tail queuing

Decode is memory-bandwidth bound

Generating each token streams weight matrices from VRAM/unified memory once; peak GB/s bandwidth caps single-user tok/s unless batching overlaps multiple streams.

KV cache scales with concurrency x length

Each concurrent dialogue allocates attention KV blocks across all layers; oversized context caps starve simultaneous slots quickly.

Horizontal nodes scale throughput, not solo latency

Adding a second replica doubles concurrent queues served without shrinking one isolated request’s per-token decode time.

Tail amplification (The Tail at Scale)

As utilisation nears ~80-90%, M/M/c queuing drives p95/p99 upward nonlinearly: users hit timeouts and click retry, magnifying load spikes.

Technical sources and verified references (3)
Short clip · Put it to the test · 32 s

Digital avatar and synthetic voice of Lorenzo Dalci. All examples and companies are fictional.

For learnersPush users past memory limits and track p95 vs medianHighlighted for your level
For learners · queue simulator

Push users past memory limits and track p95 vs median

Move the slider above 12 people, switch architecture modes and toggle mid-day indexing, then compare p50 vs p95 and test the cases below.

1 · Fix contention before buying extra hardware

To do

Illustrative exercise A company reports sluggish afternoon chat: at 14:30, portal, OCR indexing and 16 staff all hit a single unified host together.

2 · Look beyond smooth averages

To do

Illustrative exercise A report boasts: «Mean response wait = 2.4 s across Thursday!» — yet field engineers still stop opening the assistant mid-afternoon.

GlossaryKey terms in this lesson (6)Highlighted
Working memory (KV cache)
RAM allocated per active conversation alongside the model weights; it grows directly with prompt and conversation length.
Queue
Incoming requests forced to wait because the GPU node has no free memory or compute capacity to serve them immediately.
Memory bandwidth
How fast the GPU reads its own memory each second; this largely determines how quickly tokens arrive for a single answer.
95th percentile (p95)
The response time below which 95% of requests finish; it captures tail delays that averages hide.
Throughput
Total requests completed across all concurrent users in a given time window.
Rated specification
Peak hardware speed claimed in ideal lab conditions, rather than measured under your real workload.
Lesson recap

What you learnt.

  • ○Balanced KV cache memory, bandwidth limits and concurrent queue onset.
  • ○Diagnosed daytime indexing jams and interpreted S/M/L tiers alongside p95 metrics.
  • ○Completed all 5 sizing & latency checks cleanly.
Take into your meeting

Lesson 5 takeaway · Sizing & Concurrency

Loading summary…

Educational self-assessment sheet generated locally inside your browser. Zero data sent over the network; not a compliance audit.

Check · 5 questions drawn from 9

Did it click? Put it to the test.

1. Besides the model weights themselves, what consumes working memory while users chat?
2. Ten staff get fast 2-second replies, yet at 25 concurrent users everything stalls for 45 seconds. Why the sudden cliff?
3. Why track the 95th percentile (p95) instead of just average response latency?
4. Bulk overnight OCR indexing gets accidentally launched at 10:30 AM alongside live sales chat. What happens on a tight setup?
5. What usually sets the raw generation speed of a single answer on modern LLMs?
Go to next lesson →

Answers remain inside your browser: missing one brings in a fresh question.

Up next: Architecture and sizing are clear. One final piece decides board approval: data boundaries, pseudonymisation and proxy egress in Lesson 6.

Want to see this on your workflows?

Six lessons show what to check before introducing AI into daily work. In a 30-minute call we can walk through it on one of your real processes — or design tailored team training with Wise Academy.