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:
MemAvailableconsistently small relative to working set- sustained
si/soinvmstat, rising major faults (sar -Bmajflt/s) - memory PSI (
/proc/pressure/memory)some avg60rising - OOM kills in
dmesg - page cache too small for the hot data (database read latency climbing)
More on Performance & the USE Method
What is the USE method?BeginnerMap the USE method to concrete Linux commands.IntermediateWhat is your "first 60 seconds" checklist on a slow server?IntermediateHow do you read vmstat output?IntermediateHow do you read `iostat -xz 1`?IntermediateWhat is sar and why install sysstat on every server?Beginner