Linux: High kswapd0 CPU / System Freeze Under Memory Pressure

Active working set exceeded physical RAM causing continuous swap thrashing.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.0.0
Identifier: Linux: High kswapd0 CPU / System Freeze Under Memory Pressure Platform: Linux

Interactive Diagnostic Checklist

Safe Diagnostic Command:
free -h && vmstat 1 5

Technical Explanation

Active working set exceeded physical RAM causing continuous swap thrashing. Verified technical resolution: Bound container/DB memory limits (e.g. MongoDB WiredTiger cache) well below available VM RAM.

Worked Examples

  • Diagnostic check: free -h && vmstat 1 5

Limitations & Assumptions

  • Confirm exact software version and execution layer before applying configuration changes in production.

Source References & Verification

Resource ID: err-linux-swap-oom-thrashing · Independently verified: 2026-11-25

Related Resources