1FREE(1)                          User Commands                         FREE(1)
2
3
4

NAME

6       free - Display amount of free and used memory in the system
7

SYNOPSIS

9       free [options]
10

DESCRIPTION

12       free  displays the total amount of free and used physical and swap mem‐
13       ory in the system, as well as the buffers and caches used by  the  ker‐
14       nel.  The  information  is  gathered by parsing /proc/meminfo. The dis‐
15       played columns are:
16
17       total  Total usable memory (MemTotal and SwapTotal  in  /proc/meminfo).
18              This  includes the physical and swap memory minus a few reserved
19              bits and kernel binary code.
20
21       used   Used or unavailable memory (calculated as total - available)
22
23       free   Unused memory (MemFree and SwapFree in /proc/meminfo)
24
25       shared Memory used (mostly) by tmpfs (Shmem in /proc/meminfo)
26
27       buffers
28              Memory used by kernel buffers (Buffers in /proc/meminfo)
29
30       cache  Memory used by the page cache and slabs (Cached and SReclaimable
31              in /proc/meminfo)
32
33       buff/cache
34              Sum of buffers and cache
35
36       available
37              Estimation  of how much memory is available for starting new ap‐
38              plications, without swapping. Unlike the data  provided  by  the
39              cache  or  free fields, this field takes into account page cache
40              and also that not all reclaimable memory slabs will be reclaimed
41              due to items being in use (MemAvailable in /proc/meminfo, avail‐
42              able on kernels 3.14, emulated on kernels 2.6.27+, otherwise the
43              same as free)
44

OPTIONS

46       -b, --bytes
47              Display the amount of memory in bytes.
48
49       -k, --kibi
50              Display the amount of memory in kibibytes.  This is the default.
51
52       -m, --mebi
53              Display the amount of memory in mebibytes.
54
55       -g, --gibi
56              Display the amount of memory in gibibytes.
57
58       --tebi Display the amount of memory in tebibytes.
59
60       --pebi Display the amount of memory in pebibytes.
61
62       --kilo Display the amount of memory in kilobytes. Implies --si.
63
64       --mega Display the amount of memory in megabytes. Implies --si.
65
66       --giga Display the amount of memory in gigabytes. Implies --si.
67
68       --tera Display the amount of memory in terabytes. Implies --si.
69
70       --peta Display the amount of memory in petabytes. Implies --si.
71
72       -h, --human
73              Show  all  output  fields automatically scaled to shortest three
74              digit unit and display the units of print out.  Following  units
75              are used.
76
77                B = bytes
78                Ki = kibibyte
79                Mi = mebibyte
80                Gi = gibibyte
81                Ti = tebibyte
82                Pi = pebibyte
83
84              If  unit  is  missing, and you have exbibyte of RAM or swap, the
85              number is in tebibytes and columns might  not  be  aligned  with
86              header.
87
88       -w, --wide
89              Switch  to  the  wide  mode. The wide mode produces lines longer
90              than 80 characters. In this mode buffers and cache are  reported
91              in two separate columns.
92
93       -c, --count count
94              Display the result count times.  Requires the -s option.
95
96       -l, --lohi
97              Show detailed low and high memory statistics.
98
99       -s, --seconds delay
100              Continuously  display  the result delay  seconds apart.  You may
101              actually specify any floating point number for delay  using  ei‐
102              ther  . or , for decimal point.  usleep(3) is used for microsec‐
103              ond resolution delay times.
104
105       --si   Use kilo, mega, giga etc (power of 1000) instead of kibi,  mebi,
106              gibi (power of 1024).
107
108       -t, --total
109              Display a line showing the column totals.
110
111       -v, --committed
112              Display  a  line  showing  the memory commit limit and amount of
113              committed/uncommitted memory. The total column on this line will
114              display the memory commit limit.   This line is relevant if mem‐
115              ory overcommit is disabled.
116
117       --help Print help.
118
119       -V, --version
120              Display version information.
121

FILES

123       /proc/meminfo
124              memory information
125

BUGS

127       The value for the shared column is not available  from  kernels  before
128       2.6.32 and is displayed as zero.
129
130       Please send bug reports to
131              ⟨procps@freelists.org⟩
132

SEE ALSO

134       ps(1), slabtop(1), top(1), vmstat(8).
135
136
137
138procps-ng                         2023-01-16                           FREE(1)
Impressum