By rorocodeath
I try
root@wz:~# free -m
total used free shared buffers cached
Mem: 490 445 44 0 95 271
-/+ buffers/cache: 78 411
Swap: 0 0 0
why it’s only 44m free ram?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This comment has been deleted
The link @TheNumb provided explains what’s going on here. The Linux kernel will use any available memory for disk caching, unless it’s required by a running program. If needed by a program, the memory will be freed up. From the site Linux Ate My RAM:
Why does top and free say all my ram is used if it isn’t?
This is just a misunderstanding of terms. Both you and Linux agree that memory taken by applications is “used”, while memory that isn’t used for anything is “free”.
You would call that “free”, but Linux calls it “used”.
Memory that is You’d call it Linux calls it taken by applications Used Used available for applications, and used for something Free Used not used for anything Free Free This “something” is what top and free calls “buffers” and “cached”. Since your and Linux’s terminology differs, you think you are low on ram when you’re not.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.