Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How to calculate used memory on Linux?
Hi, wanted to get more information on how to get the real used memory value on a droplet with CentOS 7 x64.
I was reviewing how DigitalOcean calculates used memory in the monitoring graphs and they do it “used memory is calculated by subtracting free memory and memory used for caching from the total memory amount” from the information exposed in
This is the correct way to calculate used memory on a Linux server?
I see other people calculating used memory as “dividing active memory by total memory amount” from the same information exposed in
Any ideas on this? What do you think? As you can see I have little knowledge on this issue.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×