Posts

Showing posts from October, 2011

Benchmarking Redis vs Memcached for Session Storage (2011 Systems Notes)

Notes from our server logs during the 2011 infrastructure upgrade cycle regarding persistence guarantees, eviction policies, and memory fragmentation. When you maintain production environments over years of kernel releases, documenting these low-level interactions saves countless hours during emergency maintenance windows. Always verify your sysctl buffers and process memory limits against actual workload metrics rather than copying outdated configuration snippets from old forum threads.

Tuning Apache Prefork vs Worker MPM on Low-RAM VPS Boxes

We spent the better part of this weekend untangling an old 512MB Xen instance that kept dropping SSH connections every time a moderate spike hit port 80. The culprit was standard: default Apache Prefork settings spawning 50 concurrent children. On small servers running PHP, prefork child processes easily balloon to 30MB each. Do the math: fifty children chewing 30MB equals 1.5GB of RAM demand on a 512MB box. Your kernel panics, swap thrashes, and the OOM killer murders random processes. If you're stuck on low-memory iron, either drop MaxClients down to something sane like 12 or move your static assets behind a lightweight reverse proxy. Never trust distribution defaults for production concurrency.