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.
38 questions
1 vote
1 answer
69 views
Obtain memory values in SAR the same way as in FREE
I'd like to know if I can get memory in sar the same way I get it from free. Currently free shows me a memory usage of 47.06% (16956/36027)*100 [used/total x 100]. Whereas sar is showing me a usage of ...
0 votes
2 answers
339 views
Why is Linux not using RAM but only Swap?
How can such an output of free -m be explained? total used free shared buff/cache available Mem: 32036 1012 225 3 8400 ...
0 votes
1 answer
60 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 ...
0 votes
2 answers
588 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 -...
0 votes
0 answers
5k 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 ...
0 votes
1 answer
4k 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 ...
0 votes
1 answer
1k 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 ...
0 votes
0 answers
257 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 ...