I am collecting the results of free -m
command on an ubuntu server every 5 seconds, and preparing a time series graph based on the values of free
and used
columns.
free -m
total used free shared buff/cache available
Mem: 992 43 709 5 238 791
Swap: 979
Sometimes the server that I am monitoring has a pattern like below: graph
I do not understand how the free memory can go down and used memory stay constant. Can it be some swap happening or something else ?
Free memory means unused memory. Since this is a waste of resources the Linux kernel uses it to cache/buffer files: access to memory is much faster than access to disks.
In the output of
free
the total memory is divided into:The available memory is what the system can use without killing applications or swapping.