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

eBPF-Based Distributed Tracing: Kernel 6.8+ Overhead Deep Dive

[ALERT] 2024-10-24T04:12:09.102Z – api-gateway-prod-7d4b9c – HighTailLatency: p99 latency on target endpoint /checkout jumped from 520µs to 2.1ms across 40 nodes. Error budget burning at 14x normal rate. My coffee was still warm, but the adrenaline had already burned a hole through my stomach. There was no deployment of application code. No sudden traffic surge from … Read more

eBPF-Based Distributed Tracing Overhead: High-Throughput Kernels

The Unseen Tax: eBPF-Based Distributed Tracing Overhead in High-Throughput Linux Kernels Three AM is not a time for philosophy. It is a time for stale coffee, glaring terminal windows, and the dull panic of a production bleedout. Last Tuesday, our p99 latency for `api.prod-us-east-2.mycompany.io/v2/payments` spiked from a predictable 45 milliseconds to a vertical wall of … Read more

Optimize AWS Lambda Cold Starts with SnapStart & Containers

[ERROR] 2024-10-27T03:14:22.819Z requestId: f8c3e8a1-b2c4-4e5f-9a1b-7c8d9e0f1a2b Task timed out after 10.00 seconds INIT_START Runtime Version: java17:v1.2.3 Runtime Version ARN: arn:aws:lambda:us-east-2::runtime:a1b2c3… [WARN] com.amazonaws.services.lambda.runtime.diagnostics.Initializer – Initialization phase took 8412ms. Total billed duration: 10000ms. You paid for ten seconds of compute just to discover your container-based serverless function choked on its own dependency injection framework before processing a single incoming … Read more