Memory usage on a server shows 95% used but the app is fine. A manager is worried. How do you explain and verify?
BeginnerScenarioMigrations, performance and fleet operations
Answer
Situation read → Linux uses free memory for page cache.
What I'd do →
free -h # look at "available", not "free"
grep -E 'MemAvailable|Cached|Dirty' /proc/meminfo
vmstat 1 5 # si/so near 0 = no swapping pressure
Show that "available" is large and swap activity is zero.
Why → Cache is given back instantly when apps need it; unused RAM is wasted RAM.
Interview tip → Mention PSI (cat /proc/pressure/memory) as the real signal of memory pressure.
More on Migrations, performance and fleet operations
You must migrate 2 TB of application data from an old server to a new one with less than 5 minutes of downtime. How?IntermediateThe new server has different UIDs for the same users than the old one. What breaks during migration and how do you handle it?IntermediateA server is "slow" according to users. What is your first 60 seconds of investigation?BeginnerYour team must capacity-plan for a server whose disk grows 4% per week. How do you predict when it fills?IntermediateYou need to replace a physical server with a VM without changing its IP or hostname. Plan the cutover.IntermediateYou need to set up central logging for 200 Linux servers. Design it.Intermediate