103

The output of the free command that I fired on my linux host is as belows:

free
              total        used        free      shared  buff/cache   available
Mem:      263846320    47746620     3290072     1140808   212809628   214382420
Swap:             0           0           0

I am not able to figure out what this available part is specifying. The free memory is very less shown i.e around 1.24% even though the total memory is way high and used memory is around 18.09% only.

free -h
              total        used        free      shared  buff/cache   available
Mem:           251G         45G        3.1G        1.1G        202G        204G
Swap:            0B          0B          0B

Does it mean I wont be able to start more applications as free memory is very less. The used memory is 18% only. So shouldn't free memory be 72% and not 1.24% as the command is showing above.

I am confused. Can anyone help?

1

1 Answer 1

110

In the output of free,

  • Free memory is the amount of memory which is currently not used for anything. This number should be small, because memory which is not used is simply wasted.

  • Available memory is the amount of memory which is available for allocation to a new process or to existing processes.

The example given in the question shows a healthy system.

7
  • 6
    How the available and buff/cache columns are different from each other. Commented Jan 2, 2019 at 13:15
  • 1
    @srinivas, available does include free column + a part of buff/cache which can be reused for current needs immediately Commented Nov 8, 2019 at 10:36
  • 18
    this answer convoluted things for me even more Commented Aug 13, 2020 at 8:48
  • 4
    Yeah I also don't get it... How is the free memory different from available? Apparently free is a subset of available, but.... what? How? Why? More questions than answers. Commented Aug 21, 2020 at 22:15
  • 23
    Ok, I just read linuxatemyram.com which explains a lot. Commented Aug 21, 2020 at 22:24

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.