LinuxQuestions.org
Review your favorite Linux distribution.
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 07-08-2004, 03:22 PM   #1
Malique
LQ Newbie
 
Registered: Mar 2004
Posts: 17

Rep: Reputation: 0
how do i find out how much ram my box has


Hello everyone,

I have a quick question for you all. On Windows, I can right click on my computer > properites and see how much ram a pc has.

How would i find out how much ram my pc has on linux? I am running Fedora Core 2.

Thank
 
Old 07-08-2004, 03:38 PM   #2
lyceum
Member
 
Registered: Aug 2003
Location: N.C.
Distribution: rh9, fc1, slack 9.1, 10
Posts: 229

Rep: Reputation: 30
try
Code:
free
hope this helps. look at the man pages for the format of output.
 
Old 07-08-2004, 03:41 PM   #3
lyceum
Member
 
Registered: Aug 2003
Location: N.C.
Distribution: rh9, fc1, slack 9.1, 10
Posts: 229

Rep: Reputation: 30
oh, should have specified. that is a command. issue it from a console.
 
Old 07-08-2004, 03:48 PM   #4
Malique
LQ Newbie
 
Registered: Mar 2004
Posts: 17

Original Poster
Rep: Reputation: 0
That is the output of free -m

Code:
             total       used       free     shared    buffers     cached
Mem:           187        183          3          0          9         70
-/+ buffers/cache:        103         84
Swap:          383          0        383
I have 2 pc ram sticks in the box one is a 256 and one is 128 the total would be 384 right .

as you can see on the Swap output is says 383 is that the total of ram in the pc

Thanks
 
Old 07-08-2004, 03:58 PM   #5
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Just a thought, but when you turn on your computer, doesn't it tell you how much RAM you have?
 
Old 07-08-2004, 10:04 PM   #6
novelkumar
LQ Newbie
 
Registered: Jul 2004
Posts: 1

Rep: Reputation: 0
Hi,

All your memory related details will be inside in the file /proc/meminfo. Please issue this command in the shell prompt.
#cat /proc/meminfo

Regards
Novel
 
Old 07-08-2004, 10:17 PM   #7
slackist
Member
 
Registered: Feb 2004
Location: Phuket
Distribution: Slackware 14.1 and Slackware Arm
Posts: 465

Rep: Reputation: 40
Quote:
Originally posted by Malique
That is the output of free -m

Code:
             total       used       free     shared    buffers     cached
Mem:           187        183          3          0          9         70
-/+ buffers/cache:        103         84
Swap:          383          0        383
I have 2 pc ram sticks in the box one is a 256 and one is 128 the total would be 384 right .

as you can see on the Swap output is says 383 is that the total of ram in the pc

Thanks
Actually Swap is the amount of disk space allocated for use when memory is getting low.
I think your free -m output shows 187mB of system RAM* so it looks like something is wrong somewhere if you are sure about the memory sticks you have installed.

mark

* I could be wrong about this so perhaps wait for a more experienced poster to comment before doing anything drastic
 
Old 07-09-2004, 01:38 AM   #8
Malique
LQ Newbie
 
Registered: Mar 2004
Posts: 17

Original Poster
Rep: Reputation: 0
this is the output of cat/proc/meminfo

[root@localhost root]# cat /proc/meminfo
MemTotal: 192084 kB
MemFree: 2344 kB
Buffers: 10256 kB
Cached: 72144 kB
SwapCached: 0 kB
Active: 133784 kB
Inactive: 28640 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 192084 kB
LowFree: 2344 kB
SwapTotal: 393112 kB
SwapFree: 393112 kB
Dirty: 100 kB
Writeback: 0 kB
Mapped: 119656 kB
Slab: 13712 kB
Committed_AS: 243000 kB
PageTables: 2276 kB
VmallocTotal: 3940344 kB
VmallocUsed: 4804 kB
VmallocChunk: 3935444 kB
HugePages_Total: 0
HugePages_Free: 0
Hugepagesize: 4096 kB
[root@localhost root]#

Can you tell me what line is my ram according to my calculations i should have 384 of ram
 
Old 07-09-2004, 01:51 AM   #9
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
The MemTotal line indicates how much RAM you have (in kilobytes). From what your system is telling you, either:[list=1][*]Something is wrong with your memory[*]You actually have a 128 MB stick and a 64 MB stick (128 + 64 = 192)[/list=1]

I would doubt #1 because if the memory was bad or failing, then your computer would crash and burn all the time. In addition to that, memory sticks are not sold as 192 MB in size. What I'm getting at by that is, if one of your sticks was bad (as in completely broken/dead),the computer would only see one memory stick and report its capacity. So, since 192 is not a standard memory size, the computer sees and recognizes more than one memory stick. So if you are positive you have two (and only two) memory sticks in the machine, then the computer is seeing and recognizing both.

I would bet lots of money that it's just a case of mistaken capacity and that you actually have a 128 MB and a 64 MB stick. If you're dual booting with Windows, and Windows reports something else, make sure that number doesn't include virtual memory or anything along those lines.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to find ram. bruse Linux - Newbie 2 04-26-2005 09:54 AM
upgrade RAM on the old linux box without reinstall lnthai2002 Linux - Hardware 6 01-16-2005 11:21 AM
How to add more GB's and Ram to a dual booted box adhara Linux - Hardware 1 05-17-2004 12:18 AM
how do i determin if my linux box needs ram nazzymac Linux - Hardware 2 10-29-2003 11:50 AM
has anyone put 3 GB ram in supermicro box? a1penguin Linux - Hardware 0 07-23-2003 01:35 PM


All times are GMT -5. The time now is 10:46 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration