View Single Post

  #1 (permalink)  
Old 05-14-2008, 02:55 AM
sweta's Avatar
sweta sweta is offline
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
My distro: Suse, RHEL, Vista
Posts: 154
Rep Power: 4
sweta will become famous soon enough
Default Check Available Memory Linux

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.
Code:
free -m
free -h
free -b
Output:
Code:
             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.
Code:
vmstat
Output:
Code:
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.
__________________
Friends - v-nessa - missyAdmin - LinuxChix
Reply With Quote