Questions tagged [free]

For questions about free, the command-line tool that displays the amount of free and use memory in a system. This tag shouldn’t be used for questions where free happens to be used; it’s appropriate for questions about free’s behaviour, options, sources of information, or the meaning of the information displayed by free.

Filter by
Sorted by
Tagged with
0 votes
1 answer
30 views

Logging sum of Mem and Swap from free command output

In relation to this: https://unix.stackexchange.com/a/754252/582781 Solution 1: free -g -s2 | sed -u -n 's/^Mem:\s\+[0-9]\+\s\+\([0-9]\+\)\s.\+/\1/p' >> memory.log Is there a way to add Swap to ...
Aleksander's user avatar
0 votes
1 answer
32 views

Low memory vs total memory in "free" command

I am trying to understand the output of the free command on an AWS Linux server. For example, free -h gives: total used free shared buff/cache available Mem: ...
EugeneO's user avatar
  • 103
0 votes
2 answers
60 views

Getting only used memory from free command every few seconds

It was explained e.g. here: Get separate used memory info from free -m command how to cut the output of free command. But I want to do this every few seconds and log it to a file. So I tried: free -g -...
Aleksander's user avatar
1 vote
0 answers
46 views

DELL R730XD 256GB memory but just showed 251GB on linux with command `free -h` and `htop` , why?

A DELL R730XD server with 32GiB * 8, totaling 256GB of memory, is correctly recognized as 256GB in the BIOS. When checking the memory information using "dmidecode -t memory" in Linux, the ...
SomeNetDrugs' SuperStunRod's user avatar
0 votes
0 answers
993 views

linux drop_cache using "echo 3 > /proc/sys/vm/drop_caches" not working as expected

In our production environment we are running drop cache command echo 3 > /proc/sys/vm/drop_caches to free the RAM. But also what I found is dropping caches is not a good practice and also it won't ...
Swastik's user avatar
0 votes
0 answers
152 views

Why the numbers of "free" don't add up?

This is a side question when I try to figure out why my Ubuntu18.04 server keeps using up memory and mysql gets killed from time to time. total used free shared buff/cache ...
shenkwen's user avatar
  • 143
-1 votes
1 answer
1k views

what is the different between Buffer Cache that displayed from free command VS the available memory [closed]

we have 463 RHEL 7.6 machines in the cluster most of then are HDFS machines ( datanode ) from free -g command we can that usually buff/cache is around 30-50 when total memory is 256G as I know - a ...
yael's user avatar
  • 12.8k
1 vote
2 answers
1k views

Zero free swap but 56GiB free memory?

I have a CentOS7.9 system showing 56GiB free RAM (free -m) but only 1MiB free swap, and it's been in this state for three days. The original problem report was that a large (EE simulation) app keeps ...
David C.'s user avatar
0 votes
1 answer
484 views

need RAM & SWAP Memory monitoring Threshold

I wish to setup monitoring alerts upon used memory percentage. I had setup 0-80% used RAM as Green (good) 81-90% as yellow(acceptable) 91-95% as orange(warning) 96+ as Red(critical) However, i see ...
Ashar's user avatar
  • 489
0 votes
2 answers
81 views

When to upgrade RAM based on free output [closed]

I have a java application that runs on a Linux server with physical memory(RAM) allocated as 12GB where I would see the normal utilization over a period of time as below. sys> free -h ...
ragul rangarajan's user avatar
0 votes
0 answers
150 views

htop command displays 996GB instead of 1024GB for RAM

I have a little issue that I can't understand. I have 8x128GB sticks of RAM, which makes 1024GB of RAM. But the command htop displays 996G and not 1024G as expected. You can see the following ...
youpilat13's user avatar
2 votes
1 answer
2k views

Why the difference in neofetch and free (RAM) output?

wadewayne@Cheetah:~$ neofetch MMMMMMMMMMMMMMMMMMMMMMMMMmds+. wadewayne@Cheetah MMm----::-://////////////oymNMd+` ----------------- MMd /++ -sNMd: OS: Linux Mint 19....
Wade Wayne's user avatar
0 votes
1 answer
149 views

The reason why buffers in "free -h" command output is increased

I did two experiments. The first experiment (Ubuntu 20.04, ext4 filesystem): Run command free -h -w: $ free -h -w total used free shared buffers cache ...
OSintegrator's user avatar
1 vote
1 answer
1k views

What's the difference between memory shown with the free command and the top command? [duplicate]

I am new to running a linux server and wanted to know the difference between the total memory shown with the top command (which appears to be 78GB) and the free command which shows that I have 743GB ...
CyberStems's user avatar
-1 votes
1 answer
2k views

How to check memory utilization in solaris 11 machine?

May I know how to calculate total memory utilization and percent of a Solaris 11.3 machine? Am I wrong in below calculation? or any other way? memfree=$(vmstat 1 2 | awk '{print $5}' | tail -1) ...
Dastageer Umar's user avatar
0 votes
1 answer
1k views

Why is the output of free -h different from free --giga?

I am facing a very weird problem. On my Fedora PC I have 12 GB swap file. But when I issue free -h I get : total used free shared buff/cache available Mem: ...
ng.newbie's user avatar
  • 1,155
-1 votes
1 answer
154 views

why free command say different from the real consuming memory

from our linux VM rhel 7.5 server with 126G memory we have strange memory behavior that consume all available memory as the following free -g total used free shared ...
yael's user avatar
  • 12.8k
-1 votes
1 answer
74 views

rhel + why swap memory isn't exploited

we have rhel servers with version 7.6 we configured the swap and we can see the swap size from the following free -g total used free shared buff/cache available ...
yael's user avatar
  • 12.8k
-1 votes
1 answer
887 views

memory free space is decreasing but available is increasing

I am checking memory continuously by free command. From three month ago. free space is decreasing continuously. From 70% to 30%, but used is not changed so much, available is getting increasing ...
whitebear's user avatar
  • 165
0 votes
1 answer
750 views

how to check memory usage, in detail

There are commands such as top, ps, pmap (and others) that show how much memory is used by a process, but they only show the total memory. Using the free -g command output we see total, used, shared, ...
BlackCrystal's user avatar
1 vote
1 answer
341 views

Xen Server: Free memory != dmidecode -t17 output

Overview I'm running a Xen server on Debian buster. Latest kernel, latest BIOS version, legacy boot. Booting into Xen server only shows 8 GB of RAM free while recognizing 16 GB of RAM connected. ...
HBSKan's user avatar
  • 113
0 votes
1 answer
939 views

How to install Linux free command on Mac terminal?

As the title says, I need to use the 'free' Linux command on macOS. I installed Homebrew but I cannot figure out what package I need.
Dave's user avatar
  • 1
2 votes
2 answers
4k views

What is "effective used" memory on Linux? "used" or ("total"-"available")?

I need to display in GUI for operator used memory vs available on Linux Server So what would be logically correct value to display as usage? [root@host ~]# free total used ...
ALZ's user avatar
  • 921
-1 votes
1 answer
181 views

Which hardware is used by buffer

I know that the cache is used to store data so that future requests for that data can be served faster. Normally we have three level cache: L1, L2 and L3 in the current computer architecture. We can ...
Yves's user avatar
  • 3,221
1 vote
2 answers
292 views

free command - different outputs after conversion

I'm monitoring my RAM on a CentOS 6 server and when I free -h I see 15G available which is OK but when I free -b I see 1641154969 bytes which equals 1,641154969G. free -h total ...
Thomas Rodriguez's user avatar
0 votes
1 answer
730 views

plink command to print free|grep "Mem:"

I like to print only one "Mem:" line in the output using plink command. plink -batch [email protected] -P 22 -pw test@123 (free;) --> working total used free ...
Anavarathan's user avatar
0 votes
0 answers
2k views

Difference between available, free and cached in free command [duplicate]

What is the difference between available memory and free memory. Is available memory and cached memory are same. If not, what's the difference. I have referred some answers and they says available ...
user343457's user avatar
0 votes
1 answer
254 views

Why are there no values for 'shared', 'buff/cache' and 'available' in the swap line of free?

Why are the last columns empty in the swap line? $ free total used free shared buff/cache available Mem: 3912864 2255460 315388 249068 1342016 ...
beres_drop's user avatar
0 votes
1 answer
1k views

MemAvailable higher than expected

$ free -h total used free shared buff/cache available Mem: 7.7Gi 4.5Gi 692Mi 305Mi 2.5Gi 2.6Gi Swap: 2.0Gi ...
sourcejedi's user avatar
  • 49.3k
0 votes
1 answer
1k views

cached memory and free command

I have a 2 cpu server running SLES 11.4 x86-64 and it has 1.5 tb of RAM. >free -g total used free shared buffers cached Mem: 1514 284 ...
ron's user avatar
  • 6,142
4 votes
2 answers
5k views

Why does swappiness not work?

We have a RHEL 7 machine, with only 2G of available RAM: free -g total used free shared buff/cache available Mem: 31 28 0 ...
yael's user avatar
  • 12.8k
2 votes
1 answer
4k views

Devuan - how to install non-free contrib? [duplicate]

I'm on transition from Mac OS-X to Devuan. Trying to make the learning curve not as steep, I need to install some non-free software. Reading through forums, I understand there is a command that will ...
Guillermo's user avatar
-3 votes
1 answer
670 views

How can I print the memory usage in KB by free?

I need to print the RAM memory used at this time in kilobytes(KB) with command free, how can I do that with one line command input: free ... output: 567595 output should be contain only kilobytes ...
AdrianMaru67's user avatar
0 votes
1 answer
417 views

Memory immediately available in Linux memory management system

This is the output of free -h command on my Ubuntu 18.04 laptop: $ free -hg total used free shared buff/cache available Mem: 11G 4,2G 3,4G ...
pkaramol's user avatar
  • 2,689