Cost-Effective Serving Llama 3 with vLLM on K8s

Serving Llama 3 with vLLM on Kubernetes: Benchmarking Tensor Parallelism and Quantization for Cost-Effective Inference Serving Llama 3 with vLLM on Kubernetes: Benchmarking Tensor Parallelism and Quantization for Cost-Effective Inference My P99 latency metric spiked to 4120 milliseconds. Four whole seconds. The SLA was 800. I stared at the Grafana dashboard in absolute disgust while … Read more

eBPF-Based Distributed Tracing: Mitigating Overhead & Leaks

The 3 AM `perf top` Flatline Samples: 1.2M of event ‘cpu-clock’, 4000 Hz, Event count (approx): 1024389102, Overhead Shared Object Symbol ———————————————————————- 41.22% [kernel.kallsyms] [k] __bpf_prog_run 22.14% [kernel.kallsyms] [k] bpf_trampoline_64_func 14.89% api.prod-us-east-1.mycompany.io [.] 0x00000000004f12a0 4.01% [kernel.kallsyms] [k] native_write_msr 2.11% [kernel.kallsyms] [k] smp_call_sidep 0.85% [kernel.kallsyms] [k] try_bpf_map_lookup_update My coffee was lukewarm. Cold brew tastes better when … Read more

eBPF-Based Distributed Tracing Overhead: Kernel Insight

The eBPF Performance Tax Latency spike. P99 through the roof. Pages screaming at 3 AM. Again. We deployed aggressive ebpfbased distributed tracing across our core API cluster, convinced we were finally going to stare down those ephemeral tail latencies. We bought into the hype: unparalleled visibility, minimal overhead, kernel-native insights. Instead, our carefully tuned kernel … Read more

Java Virtual Threads: Spring Boot 3 & JDBC Connection Pools

It was 3:14 AM on a bitterly cold Sunday in November. PagerDuty was screaming, the Slack war room was silent except for the frantic clatter of keyboards, and our primary order-processing service was quietly, methodically setting itself on fire. We were running a classic Spring Boot 2.7 monolith backed by a multi-tenant PostgreSQL cluster. The … Read more

Java Virtual Threads: Scheduling Anomalies & Tuning

03:14:00 UTC. PagerDuty is screaming again. The latency on `com.acme.financial.riskEngine.processor` has flatlined the dashboard, dragging the 99th percentile tail latency from a respectable twelve milliseconds to a terrifying four thousand two hundred. We migrated the entire ingress tier to java virtual threads last week, confident we were escaping the tyranny of platform thread starvation. We … Read more

Quantization & LoRA Tuning: Efficient LLM Serving on NVIDIA L4

Beyond the Hype: Quantization, LoRA, and the True Cost of LLM Greed on NVIDIA L4s [ 18492.103492] oom-killer: gfp_mask=0x242cca(GFP_HIGHUSER_MOVABLE|__GFP_ZERO), order=0, oom_score_adj=0 [ 18492.103501] CPU: 47 PID: 28491 Comm: python3 Kdump: None: tainted 5.15.0-88-generic #98-Ubuntu [ 18492.103504] Hardware name: Google Cloud G2-standard-24/G2-standard-24, BIOS GCBV-2.0.14 06/07/2023 [ 18492.103507] Call trace: [ 18492.103513] dump_backstack+0x1a/0x26 [ 18492.103522] dump_header+0x4a/0x1e0 [ … Read more

Linux Kernel 6.8: io_uring NVMe Performance & Cache Tuning

03:14:02 UTC – #incident-response: P1 – Financial Analytics Service Tail Latency Explosion Thread: @incident-commander: “Who authorized a rollout at 2 AM? P99.99 just blew past 45 milliseconds on the real-time settlement pipeline. Revenue impact is roughly twelve thousand dollars every thirty seconds. Stop the bleeding, rollback, or patch it right now!” Me, staring at a … Read more

Optimize Edge LLMs: Finetuning Llama.cpp Quantization

The Edge is Not Your Cloud Cluster [ 4.291032] oom-killer: gfp_mask=0x270cc(GFP_HIGHUSER|__GFP_NOWARN|__GFP_NOREMAP), order=0, oom_score_adj=0 [ 4.293112] CPU: 6 PID: 1421 Comm: llama-server Tainted: P O 5.15.0-1040-tegra #1 [ 4.293121] Hardware name: NVIDIA Jetson Orin Nano Developer Kit [ 4.301984] Node 0: the_net_mem: 3042456KB total, 12KB free, 3042444KB anon, 0KB file, 0KB shmem [ 4.303212] Out of … Read more

Debugging eBPF-based Network Policies with Cilium & Hubble

The 3:00 AM Black Hole: When “It Works on My Minikube” Meets Production At 03:14 local time, PagerDuty decided my sleep was offensive. The alarm wasn’t just ringing; it was screaming that the core billing service, payment-processor-v4-86c8d7b7f-9xq2m, had lost its ability to talk to the fraud-detection engine running in an adjacent namespace. Naturally, the dashboard … Read more

Go 1.22 Range Loop: Understand New Semantics & Races

The PagerDuty siren didn’t just ring; it tore a hole straight through my three hours of broken sleep at 3:14 AM. My terminal was already open before my second cup of stale cold brew hit the desk, glowering at me with a stack trace from git.acme-fintech.com/internal/trade-engine/v2/pricing/settlement.go:412 that made my stomach drop. Accounts were drifting. Not … Read more