Check Available Memory On Linux

by admin on November 23, 2010

To check avilable memory in Linux type free -m command. free displays the total amount of free and used physical and swap memory in the system, as well as the buffers used by the kernel.

free -m
free -h
free -b


             total       used       free     shared    buffers     cached
Mem:          2025       1961         64          0        172       1035
-/  buffers/cache:        753       1272
Swap:         1906          0       1906
  1. The -b switch displays the amount of memory in bytes
  2. The -k switch (set by default) displays it in kilobytes
  3. The -m switch displays it in megabytes
  4. The -g switch displays it in gigabytes.


procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
 0  0      0  63316 176624 1062340    0    0    25    18   39  592  5  1 94  0
  1. swpd: the amount of virtual memory used.
  2. free: the amount of idle memory.
  3. buff: the amount of memory used as buffers.
  4. cache: the amount of memory used as cache.

Related Posts:

Previous post:

Next post: