nixCraft Linux Forum

nixCraft

Linux / UNIX 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

Linux answers from nixCraft.


Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 14-05-2008, 01:55 AM
sweta's Avatar
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
OS: Suse, RHEL, Vista
Posts: 199
Thanks: 12
Thanked 9 Times in 9 Posts
Rep Power: 7
sweta has a spectacular aura about sweta has a spectacular aura about
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.
__________________
Reply With Quote
  #2 (permalink)  
Old 20-05-2008, 07:52 PM
Junior Member
User
 
Join Date: Apr 2008
OS: Fedora
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
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 03-07-2008, 11:12 AM
Junior Member
User
 
Join Date: Jul 2008
OS: Debian
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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

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 Off


Similar Threads

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


All times are GMT +5.5. The time now is 08:07 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

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 37 38