|
|
|
|
|
by dfox
665 days ago
|
|
My two cents: monitoring RAM usage is completely useless, as whatever number you consider an “used/free RAM” is meaningless (and the ideal state is that all of the RAM is somehow “used” anyway). You should monitor for page faults and cache misses in block device reads. |
|
On my servers I want some available RAM which means "used - buffers", because this means I configured my servers correctly and nothing is running away, or nothing is using more than it should.
On the other hand, you want "free" almost zero on a warmed up server (except some cases which hints that heaps of memory has been recently freed) since the rest is always utilized as disk cache.
Similarly having some data on swap state doesn't harm as long as it's spilled there because some process has ran away and used more memory than it should be.
So, RAM usage metrics carry a ton of nuance and can mean totally different things depending on how you use that particular server.