← Writing · page 2 of 3

Performance

40 posts tagged performance.

Oct 31, 2026

Prompt Caching Explained (2026): 0.05x Reads, 5-Minute TTLs, Real Math

How prompt caching works in 2026: KV-cache prefix matching, Anthropic vs OpenAI vs Gemini rules, TTLs from 5 minutes to 24 hours, write premiums of 1.25x to 2.5x, reads at 0.025x to 0.1x, batch stacking, and a worked bill that falls from $6,700 to $1,002.

12 min
Oct 31, 2026

LLM Inference Engines 2026: vLLM vs SGLang vs TensorRT-LLM vs Dynamo

vLLM 0.32, SGLang 0.5.22, TensorRT-LLM 1.2.1 stable (1.4 in RC), Dynamo 1.6 and llama.cpp compared as of October 2026, with TGI now archived. How batching, PagedAttention and speculative decoding differ, what published benchmarks show, and which engine to pick.

11 min
Oct 31, 2026

Context Engineering Explained (2026): Why 1M Tokens Still Isn't Enough

Context engineering in 2026, explained by an infrastructure engineer: why it replaced prompt engineering, what context rot research shows, and how retrieval, tool definitions, memory, compaction and sub-agents keep an agent's window small and useful.

11 min
Oct 31, 2026

How to Build a Voice AI Agent with LiveKit Agents or Pipecat (2026)

Step-by-step: build a cascaded voice AI agent on LiveKit Agents 1.8.10 (or Pipecat 1.15.0) with STT, LLM and TTS, turn detection, tool calling, per-turn latency metrics, LiveKit Cloud deployment and a SIP phone number, plus fixes for common errors.

16 min
Oct 31, 2026

How to Build Multi-Arch Docker Images with Buildx (amd64 + arm64, 2026)

Build one Docker image for linux/amd64 and linux/arm64 with docker buildx: platform-aware Dockerfiles, QEMU vs native GitHub arm64 runners, manifest lists, gha and registry caching, a full GitHub Actions workflow, and fixes for exec format error.

12 min
Oct 31, 2026

How to Benchmark LLM Inference: TTFT, Throughput and Goodput (2026)

Benchmark an LLM inference server properly with vllm bench serve (vLLM 0.32) and GuideLLM 0.8: define TTFT, ITL, TPOT and goodput, run a concurrency sweep, use real prompts instead of random ones, read the knee in the results, and fix the mistakes that make benchmarks lie.

13 min
Oct 31, 2026

ARM64 Migration in 2026: Graviton5 Costs 9% More and Still Undercuts x86

ARM in the cloud in 2026: AWS Graviton5 (M9g), Google Axion N4A and Azure Cobalt 200 compared on list price and vendor claims, what actually breaks when you migrate to arm64, and how to run mixed-arch Kubernetes clusters safely.

13 min
Oct 20, 2026

Vector Databases in 2026: Do You Need One, or Is pgvector Enough?

An engineer's guide to vector databases in 2026: pgvector 0.8.7, Pinecone, Qdrant, Milvus 3.0, Weaviate, turbopuffer, Amazon S3 Vectors and Elasticsearch compared on price and architecture, why the benchmarks mislead, and when Postgres is enough.

13 min
Oct 20, 2026

Serverless in 2026: Lambda vs Cloud Run vs Workers, and When It Costs More

Serverless in 2026 explained: AWS Lambda Managed Instances, durable functions, SnapStart and the new Web Functions, Cloud Run GPUs and worker pools, Azure Container Apps, Cloudflare Containers and Vercel Fluid compute, with a list-price comparison and the workloads where serverless costs more.

14 min
Oct 20, 2026

How to Reduce Docker Image Size: Multi-Stage Builds Guide (2026)

Shrink Docker images with multi-stage builds, distroless or slim bases, .dockerignore, layer ordering and BuildKit cache mounts. Measured Go, Node, Python and Java examples: 343 MB to 3.4 MB, 423 MB to 56 MB, plus a troubleshooting table.

12 min
Oct 20, 2026

How to Fix Prometheus High Cardinality: Find and Drop Series (2026)

Step-by-step guide to finding and fixing high cardinality in Prometheus 3.x: the TSDB status page and API, topk count by __name__, promtool tsdb analyze, metric_relabel_configs drop rules, native histograms, recording rules, sample_limit guardrails and Prometheus OOM fixes.

13 min
Oct 20, 2026

How to Tune pgvector Performance: HNSW, ef_search and Quantization (2026)

A step-by-step pgvector tuning guide for 0.8.x: HNSW vs IVFFlat, m, ef_construction and ef_search, maintenance_work_mem for fast builds, iterative scans for filtered queries, halfvec and binary quantization, EXPLAIN, and a troubleshooting table, with real timings.

14 min
Oct 20, 2026

Running LLMs Locally in 2026: Ollama vs llama.cpp vs LM Studio vs MLX

A practical 2026 guide to running LLMs locally: Ollama 0.40, llama.cpp 0.7, LM Studio 0.4, MLX and vLLM compared, which models fit in 8, 16, 32 and 64GB, how Q4_K_M quantization works, the bandwidth maths behind tokens per second, licences and privacy.

12 min
Oct 20, 2026

How to Troubleshoot Linux Performance in 60 Seconds (2026 Checklist)

A step-by-step Linux performance troubleshooting guide for 2026: Brendan Gregg's 60-second checklist (uptime, dmesg, vmstat, mpstat, pidstat, iostat, free, sar, top), how to read each output, PSI, the USE method, then bpftrace 0.27 and BCC one-liners.

13 min
Oct 20, 2026

Kubernetes Requests and Limits Explained: 8% CPU Used, Resize GA in 1.35

Kubernetes requests and limits in 2026: how QoS classes and oom_score_adj decide who dies, why CPU limits cause CFS throttling, what cgroup v2 changed for OOM kills, in-place resize GA in 1.35, VPA InPlaceOrRecreate, and why clusters still use 8% of their CPU.

13 min