LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-26-2006, 06:34 AM   #1
rammu_sivraj
LQ Newbie
 
Registered: May 2006
Posts: 15

Rep: Reputation: 0
Hi Newbie here plz help me... physical memory


Hi..,
I'm using Red hat 2.4.20 o.s..
Anyone plz give me the exact command to view the physical memory of the system as well as the virtual memory(swap). other than dmesg and free cmds
help me in viewing those information..
Thanks in advance
Rammu
 
Old 06-26-2006, 06:45 AM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
top will do it.
 
Old 06-26-2006, 06:45 AM   #3
SlackDaemon
Member
 
Registered: Mar 2006
Distribution: RedHat, Slackware, Experimenting with FreeBSD
Posts: 222

Rep: Reputation: 30
cat /proc/meminfo

this will give you the total physical memory and swap size

cheers!
 
Old 06-26-2006, 07:02 AM   #4
rammu_sivraj
LQ Newbie
 
Registered: May 2006
Posts: 15

Original Poster
Rep: Reputation: 0
thanks a lot

Quote:
Originally Posted by tangle
top will do it.
thanks a lot yaar
 
Old 06-26-2006, 07:05 AM   #5
rammu_sivraj
LQ Newbie
 
Registered: May 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by SlackDaemon
cat /proc/meminfo

this will give you the total physical memory and swap size

cheers!
thanks a lot yaar..
 
Old 06-26-2006, 10:40 AM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Incidentally, what you should expect to see is that nearly 100% of the physical memory is in-use for something, all the time. You might, for instance, see many megabytes being used for "buffers."

Like most OSes, Linux is lazy. Having brought something into memory once, it likes to keep it there until forced to get rid of it and bring something else in. Therefore, the amount of physical RAM that's being used at any particular time is not an indication of "goodness" or "badness!"

What you would look for, if you suspected a memory-related issue, is any sign of pressure being placed on the virtual memory system ... persistent swapping activity, actual memory-related waits being imposed on processes that otherwise would like to be running. If you don't actually see signs of pain, so to speak, then there isn't a memory-related problem.
 
Old 06-26-2006, 11:26 AM   #7
xpromisex
Member
 
Registered: Apr 2004
Location: Statesboro, GA
Distribution: Arch Linux 2007.05 "Duke" (Kernel 2.6.21)
Posts: 447

Rep: Reputation: 30
...just a question but why exactly are you using such a dated version of red hat?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
free physical memory saavik Solaris / OpenSolaris 7 08-26-2005 12:22 PM
Less physical memory? ariek Debian 5 07-21-2005 02:23 PM
How to access physical memory in C? cyu021 Programming 6 03-27-2005 04:16 AM
get Physical memory in C/C++ Dreampainter Programming 1 10-30-2004 08:54 PM
How Much Physical Memory ? tied2 Linux - Newbie 3 06-17-2002 01:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration