<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dikapediav2.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Free</id>
	<title>Free - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dikapediav2.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Free"/>
	<link rel="alternate" type="text/html" href="https://dikapediav2.com/wiki/index.php?title=Free&amp;action=history"/>
	<updated>2026-04-17T23:13:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://dikapediav2.com/wiki/index.php?title=Free&amp;diff=80&amp;oldid=prev</id>
		<title>Ardika Sulistija: Created page with &quot;&lt;b&gt;free&lt;/b&gt; - Display amount of free and used memory in the system, as well as the buffer used by the kernel, and the used physical and swap memory.   It displays  the  total amount of free and used physical and swap memory in the system, as well as the buffers and caches used by the kernel. The information is gathered by parsing &lt;b&gt;/proc/meminfo&lt;/b&gt;.  * &lt;b&gt;total&lt;/b&gt; - Total installed memory (MemTotal and SwapTotal in /proc/meminfo)  * &lt;b&gt;used&lt;/b&gt; - Used memory (calculat...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dikapediav2.com/wiki/index.php?title=Free&amp;diff=80&amp;oldid=prev"/>
		<updated>2024-08-27T00:16:28Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;b&amp;gt;free&amp;lt;/b&amp;gt; - Display amount of free and used memory in the system, as well as the buffer used by the kernel, and the used physical and swap memory.   It displays  the  total amount of free and used physical and swap memory in the system, as well as the buffers and caches used by the kernel. The information is gathered by parsing &amp;lt;b&amp;gt;/proc/meminfo&amp;lt;/b&amp;gt;.  * &amp;lt;b&amp;gt;total&amp;lt;/b&amp;gt; - Total installed memory (MemTotal and SwapTotal in /proc/meminfo)  * &amp;lt;b&amp;gt;used&amp;lt;/b&amp;gt; - Used memory (calculat...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;b&amp;gt;free&amp;lt;/b&amp;gt; - Display amount of free and used memory in the system, as well as the buffer used by the kernel, and the used physical and swap memory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It displays  the  total amount of free and used physical and swap memory in the system, as well as the buffers and caches used by the kernel. The information is gathered by parsing &amp;lt;b&amp;gt;/proc/meminfo&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;b&amp;gt;total&amp;lt;/b&amp;gt; - Total installed memory (MemTotal and SwapTotal in /proc/meminfo)&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;b&amp;gt;used&amp;lt;/b&amp;gt; - Used memory (calculated as total - free - buffers - cache)&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;b&amp;gt;free&amp;lt;/b&amp;gt; - Unused memory (MemFree and SwapFree in /proc/meminfo)&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;b&amp;gt;shared&amp;lt;/b&amp;gt; - Memory used (mostly) by tmpfs (Shmem in /proc/meminfo, available on kernels 2.6.32, displayed as zero if not available)&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;b&amp;gt;buffers&amp;lt;/b&amp;gt; - Memory used by kernel buffers (Buffers in /proc/meminfo. &amp;quot;Buffers&amp;quot; represent how much portion of RAM is dedicated to cache disk blocks.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;b&amp;gt;cache&amp;lt;/b&amp;gt; - Memory used by the page cache and slabs (Cached and SReclaimable in /proc/meminfo). &amp;quot;Cached&amp;quot; is similar like &amp;quot;Buffers&amp;quot;, only this time it caches pages from file reading.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;b&amp;gt;buff/cache&amp;lt;/b&amp;gt; - Sum of buffers and cache&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;b&amp;gt;available&amp;lt;/b&amp;gt; - Estimation of how much memory is available for starting new applications, without swapping. &lt;br /&gt;
** Unlike the data provided by the cache or free fields, this field takes into account page cache  and also  that  not  all reclaimable memory slabs will be reclaimed due to items being in use (MemAvailable in /proc/meminfo, available on kernels 3.14, emulated on kernels 2.6.27+, otherwise the same as free)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====How to use free====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Some common ‘free’ command options:&amp;lt;/br&amp;gt;&lt;br /&gt;
-b,-k,-m,-g show output in bytes, KB, MB, or GB&amp;lt;/br&amp;gt;&lt;br /&gt;
-l show detailed low and high memory statistics&amp;lt;/br&amp;gt;&lt;br /&gt;
-t display total for RAM + swap&amp;lt;/br&amp;gt;&lt;br /&gt;
-s update every [delay] seconds&amp;lt;/br&amp;gt;&lt;br /&gt;
-c update [count] times&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
 $ free&lt;br /&gt;
               total        used        free      shared  buff/cache   available&lt;br /&gt;
 Mem:         984180      494120      240972         716      249088      349920&lt;br /&gt;
 Swap:             0           0           0 &lt;br /&gt;
 &lt;br /&gt;
 $ free -h&lt;br /&gt;
               total        used        free      shared  buff/cache   available&lt;br /&gt;
 Mem:           961M        482M        235M        716K        243M        341M&lt;br /&gt;
 Swap:            0B          0B          0B&lt;br /&gt;
 &lt;br /&gt;
 $ free -m&lt;br /&gt;
               total        used        free      shared  buff/cache   available&lt;br /&gt;
 Mem:            961         483         234           0         243         340&lt;br /&gt;
 Swap:             0           0           0 &lt;br /&gt;
 &lt;br /&gt;
 $ free -k&lt;br /&gt;
               total        used        free      shared  buff/cache   available&lt;br /&gt;
 Mem:         984180      493416      241592         716      249172      350624&lt;br /&gt;
 Swap:             0           0           0 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 # Display a line containing the total memory in MB&lt;br /&gt;
 $ free -t -h&lt;br /&gt;
               total        used        free      shared  buff/cache   available&lt;br /&gt;
 Mem:           961M        479M        237M        716K        243M        344M&lt;br /&gt;
 Swap:            0B          0B          0B&lt;br /&gt;
 Total:         961M        479M        237M&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====/proc/meminfo====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;/proc/meminfo&amp;lt;/b&amp;gt; stores statistics about memory usage on the Linux system. The same file is used by free and other utilities to report the amount of free and used memory (physical and swap) on the system, as well as the shared memory and buffers used by the kernel. &lt;br /&gt;
&lt;br /&gt;
 $ less /proc/meminfo&lt;br /&gt;
 $ more /proc/meminfo&lt;br /&gt;
 $ egrep --color &amp;#039;Mem|Cache|Swap&amp;#039; /proc/meminfo&lt;br /&gt;
&lt;br /&gt;
 $ cat /proc/meminfo&lt;br /&gt;
 MemTotal:         984180 kB&lt;br /&gt;
 MemFree:          248040 kB&lt;br /&gt;
 MemAvailable:     357272 kB&lt;br /&gt;
 Buffers:               0 kB&lt;br /&gt;
 Cached:           214256 kB&lt;br /&gt;
 SwapCached:            0 kB&lt;br /&gt;
 Active:           485564 kB&lt;br /&gt;
 Inactive:         128240 kB&lt;br /&gt;
 Active(anon):     394264 kB&lt;br /&gt;
 Inactive(anon):      376 kB&lt;br /&gt;
 Active(file):      91300 kB&lt;br /&gt;
 Inactive(file):   127864 kB&lt;br /&gt;
 Unevictable:           0 kB&lt;br /&gt;
 Mlocked:               0 kB&lt;br /&gt;
 SwapTotal:             0 kB&lt;br /&gt;
 SwapFree:              0 kB&lt;br /&gt;
 Dirty:                 0 kB&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
 [Long output]&lt;br /&gt;
&lt;br /&gt;
 $ egrep --color &amp;#039;Mem|Cache|Swap&amp;#039; /proc/meminfo&lt;br /&gt;
 MemTotal:         984180 kB&lt;br /&gt;
 MemFree:          248396 kB&lt;br /&gt;
 MemAvailable:     357836 kB&lt;br /&gt;
 Cached:           214464 kB&lt;br /&gt;
 SwapCached:            0 kB&lt;br /&gt;
 SwapTotal:             0 kB&lt;br /&gt;
 SwapFree:              0 kB&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
* https://web.archive.org/web/20110207101856/http://www.linuxforums.org/articles/using-top-more-efficiently_89.html&lt;/div&gt;</summary>
		<author><name>Ardika Sulistija</name></author>
	</entry>
</feed>