nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Check Available Memory Linux

This is a discussion on Check Available Memory Linux within the Getting started tutorials forums, part of the Linux Getting Started category; To check avilable memory in Linux type free -m command. free displays the total amount of free and used physical ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 05-14-2008, 02:55 AM
sweta's Avatar
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
Sponsored Links
  #2 (permalink)  
Old 05-20-2008, 08:52 PM
Junior Member
User
 
Join Date: Apr 2008
My distro: Fedora
Posts: 20
Rep Power: 0
RamPD is on a distinguished road
Default free -h

Hi sweta,
When i put command
free -h (as you have describerd here)
Give no results the output is invalid option.
Is there any errore.
Reply With Quote
  #3 (permalink)  
Old 07-03-2008, 12:12 PM
Junior Member
User
 
Join Date: Jul 2008
My distro: Debian
Posts: 3
Rep Power: 0
R@hul is on a distinguished road
Default to check availability of memory try this

df -h

it will show available memory space
Reply With Quote
Reply

Bookmarks

Tags
free , linux , memory , vmstat.hardware


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
How to check CPU Numbers in Linux raj Linux hardware 1 06-17-2008 03:29 PM
Unix command to check memory usage sweta HP-UX 2 12-07-2007 11:07 AM
Linux check disk error raj Linux hardware 3 12-07-2007 11:00 AM
XEN Linux VPS reclaim or recover memory when a guest domain 0 is shutdown rockdalinux XEN 0 06-15-2007 10:50 PM
Use memory command to find details under Fedora Linux chiku Getting started tutorials 0 04-29-2007 09:35 PM


All times are GMT +5.5. The time now is 03:27 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36