Questions tagged [free-command]
18 questions
64
votes
3 answers
Linux free shows high memory usage but top does not
On RedHat Linux 6.2 I'm running free -m and it shows nearly all 8GB used
total used free shared buffers cached
Mem: 7989 7734 254 0 28 7128
-/+ buffers/cache: …

DarVar
- 16,882
- 29
- 97
- 146
42
votes
1 answer
What is available and free memory in response of free command on Linux?
The output of the free command that I fired on my Linux host is as below:
free
total used free shared buff/cache available
Mem: 263846320 47746620 3290072 1140808 212809628 214382420
Swap: …

Nishant Lakhara
- 2,295
- 4
- 23
- 46
37
votes
6 answers
What is equivalent of Linux's 'free' command on FreeBSD v8.1
What is equivalent of Linux's 'free' command on FreeBSD v8.1?
I am calling 'free' from my application and reporting the results in my application's log file. What would be the replacement when porting to FreeBSD v8.1?
Here is a sample run of 'free'…

WilliamKF
- 41,123
- 68
- 193
- 295
28
votes
5 answers
Understanding "Buffers" and "Cached" from free command
This has been asked earlier but don't want to update the same thread again as it was a old thread .
Want to clarify myself on the "buffers" and "cache" column from the output of free command.
This is what my understanding...
Buffer is something…

Zama Ques
- 1,497
- 5
- 26
- 45
22
votes
2 answers
Linux "free -m": Total, used and free memory values don't add up
On a linux system, while using "free", following are the values:
total used free shared buff/cache available
Mem: 26755612 873224 389320 286944 25493068 25311948
Swap: 0 0 0
The total,…

Michael Massey
- 469
- 1
- 7
- 16
5
votes
1 answer
How do I reconcile 'top' and 'free -m''s memory usage reporting in linux?
From free -m i can see that there is 377MB of memory used and 1649MB free on the machine(Of which 1567 is cached by ubuntu). See below for the actual output:
caz@riskvm:~$ free -m
total used free shared buffers …

Caz
- 444
- 6
- 7
4
votes
1 answer
Linux amount of swap displayed by "free" is different from "smem"
I am trying to analyze from where the amount of swap is from, and looking at smem display I get a completely different amount of swap usage.
Free shows the following :
[root@server1 ~/smem-1.3]# free -k
total used free …

user2360915
- 1,100
- 11
- 30
1
vote
1 answer
How to calculate memory utilization percentage in linux machine?
I'm writing a script to calculate Memory Utilization Percentage in a Linux system. My script will be deployed in production which has many flavours of Linux CentOS.
So far, I have used free command, but there seems to be a problem with one OS…

Siva Thilak
- 23
- 1
- 6
1
vote
1 answer
My server's total memory doesn't match with USED + FREE memory. I'm using linux free command
I'm not really sure what's happening with my memory. I have 31G total of memory, used is 1G, and free is 9G.
My question is, why is it, I only have 9G and 1G = 10G. It's far from the total memory which is 31G.
I'm hoping to look around 1G used and…

paolooo
- 4,133
- 2
- 18
- 33
1
vote
1 answer
Is there something like the Linux free command on Android?
I'm porting an Linux C++ application to Android NDK and my app invokes free to the shell to see how much memory is available on the machine for logging purposes. On my android port this fails with the error:
sh: free: not found
On a Centos v4…

WilliamKF
- 41,123
- 68
- 193
- 295
1
vote
2 answers
Why Linux Free command is not showing less free memory when I run a process which keeps on allocating memory
I have written a C program, in which I continuously allocate memory(of 1 MB size) using malloc. I do not free this memory. While this program is running, I call the linux free command and expect that, the Memory used should increase gradually and…

user3404785
- 11
- 2
1
vote
1 answer
Free Memory in Linux?
When I run free command on my computer, I see the following output:
$ free -m
total used free shared buffers cached
Mem: 1877 1802 74 0 125 1541
-/+ buffers/cache: …

user3063877
- 275
- 1
- 2
- 8
1
vote
2 answers
how to extract the remaining memory from free using awk?
I need to extract the available memory from the output free and I thought I would use awk and came up with something like free | awk '{print $4}'.
Which gives me an output like:
$ free | awk '{print $4}'
shared
365296
1273812
3931364
mind, the…

stdcerr
- 13,725
- 25
- 71
- 128
0
votes
1 answer
Two commands in one line
Why is it that:
free | cut -c67- && free | cut -c55-61
gives me buffer and cache size, but
free -s4 | cut -c67- && free -s4 | cut -c55-61
gives me only the cache size.

user3798565
- 87
- 6
0
votes
1 answer
Using sar command results in wrong memory statistics on Fedora 22
I'm trying to monitor a few servers by gathering various information with sar. All the systems which should be monitored are currently running Fedora 22. Unfortunately, I'm not able to get correct memory readings.
> free:
total …

Pascal Mathis
- 11
- 5