explain

CPU high due to locking

When multiple threads compete for the same lock, CPU gets spent on synchronization overhead instead of productive work.

Evidence to look for

perf shows mutex or spinlock functions in hot stacks
Adding more threads makes latency worse
CPU-per-transaction rises with concurrency

What it usually means

The system is spending CPU cycles waiting for locks instead of doing useful work. More concurrency makes it worse, not better.

What to do next

  1. 1Narrow critical sections
  2. 2Reduce shared-state access patterns
  3. 3Consider lock-free data structures for hot paths

See what's causing your CPU

cpum.ai turns CPU, process, disk, and memory signals into plain-English explanations with evidence.

Open cpum.ai

Related

CPU high due to lock contention | cpum.ai