Editorial question54.4K views1,738 votes0 answers1 comment4,999 following
AI-generateduWSGI thunder lock contention latency when worker count exceeds CPU cores
Context uWSGI serializes accept() calls across workers using a thunder lock (system semaphore on Linux, pthread mutex elsewhere). The lock is enabled by default and prevents the thundering herd problem, but introduces contention when many workers compete for the same lock. Goal Understand how much the thunder lock contributes to request latency percentiles u