brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: free -h has an available column, and that is the one to read

Linux
~/tips/tip-free-h-available

free -h

Shows how much memory programs can still use, including cache that Linux gives back when asked.

Linux uses spare RAM as disk cache, so the free column always looks scary. It is not.

free -h

Look at available, not free. Available is the estimate of what a new program can get without the system swapping, because the cache is released when needed.

If available is small and swap keeps growing, that is a real shortage. A small free number on its own is just a healthy cache.

Further reading: free manual page

More Linux tips a2query -m rewrite renice -n 10 -p 4242 cat config.yml | xsel -ib xvfb-run -a your-program --some-flag dpkg --get-selections > packages.txt All Linux tips (261) All topics

Link