free and df shows different available disk memory
by huberemanuel from LinuxQuestions.org on (#5R1TY)
I am using a server that has a 3 Tb disk, and I can verify it with `df` command, the output is:
Code:Filesystem Size Used Avail Use% Mounted on
udev 63G 0 63G 0% /dev
tmpfs 13G 2.1M 13G 1% /run
/dev/sda2 58G 37G 18G 68% /
tmpfs 63G 4.0K 63G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 63G 0 63G 0% /sys/fs/cgroup
/dev/sda3 3.6T 224G 3.2T 7% /home
/dev/loop2 100M 100M 0 100% /snap/core/11798
/dev/loop1 100M 100M 0 100% /snap/core/11993
tmpfs 13G 0 13G 0% /run/user/1003Nonetheless, when I run the `free` utility I got the following output:
Code: total used free shared buff/cache available
Mem: 125G 31G 36G 17M 57G 93G
Swap: 8.0G 25M 8.0GWhy free is outputting a smaller value than what I have in my disk?
Code:Filesystem Size Used Avail Use% Mounted on
udev 63G 0 63G 0% /dev
tmpfs 13G 2.1M 13G 1% /run
/dev/sda2 58G 37G 18G 68% /
tmpfs 63G 4.0K 63G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 63G 0 63G 0% /sys/fs/cgroup
/dev/sda3 3.6T 224G 3.2T 7% /home
/dev/loop2 100M 100M 0 100% /snap/core/11798
/dev/loop1 100M 100M 0 100% /snap/core/11993
tmpfs 13G 0 13G 0% /run/user/1003Nonetheless, when I run the `free` utility I got the following output:
Code: total used free shared buff/cache available
Mem: 125G 31G 36G 17M 57G 93G
Swap: 8.0G 25M 8.0GWhy free is outputting a smaller value than what I have in my disk?