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

Welcome to

LinuxQuestions.org

, a friendly and active Linux Community.

You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

Are you new to LinuxQuestions.org? Visit the following links:

Site Howto

|

Site FAQ

|

Sitemap

|

Register Now

If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.

Having a problem logging in? Please visit this page to clear all LQ-related cookies.

Introduction to Linux – A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author’s experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

Click Here to receive this Complete Guide absolutely free.

Reply
Old 07-08-2004, 03:22 PM #1

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

Member

Registered: Aug 2003

Location: N.C.

Distribution: rh9, fc1, slack 9.1, 10

Posts: 229

Rep: Reputation: 30

try

hope this helps. look at the man pages for the format of output.

Old 07-08-2004, 03:41 PM #3

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

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

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

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

Member

Registered: Feb 2004

Location: Phuket

Distribution: Slackware 14.2 and Slackware Arm

Posts: 479

Rep: Reputation: 44

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

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

Senior Member

Registered: Jan 2003

Posts: 2,786

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.

All times are GMT -5. The time now is 07:42 PM.

LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you’d like to contribute content, let us know.

Source

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Comment moderation is enabled. Your comment may take some time to appear.