Check Available Memory Linux

Linux Add comments

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 -b
free -k

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.

vmstat

Output

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.




Leave a Reply

Wordpress Themes by Natty WP. Web Hosting
Images by our golf tips desEXign.