Interview Prep/Linux/Performance & the USE Method

How do you determine if a server needs more RAM?

IntermediateProductionPerformance & the USE Method
Answer

Not by low "free" memory. Signals of real memory shortage:

  • MemAvailable consistently small relative to working set
  • sustained si/so in vmstat, rising major faults (sar -B majflt/s)
  • memory PSI (/proc/pressure/memory) some avg60 rising
  • OOM kills in dmesg
  • page cache too small for the hot data (database read latency climbing)
All Linux questions Roadmap: Linux

More on Performance & the USE Method