LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how do i find out how much ram my box has (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-find-out-how-much-ram-my-box-has-202689/)

Malique 07-08-2004 02:22 PM

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

lyceum 07-08-2004 02:38 PM

try
Code:

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

lyceum 07-08-2004 02:41 PM

oh, should have specified. that is a command. issue it from a console.

Malique 07-08-2004 02:48 PM

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

Micro420 07-08-2004 02:58 PM

Just a thought, but when you turn on your computer, doesn't it tell you how much RAM you have?

novelkumar 07-08-2004 09:04 PM

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

slackist 07-08-2004 09:17 PM

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 :)

Malique 07-09-2004 12:38 AM

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

Dark_Helmet 07-09-2004 12:51 AM

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 01:03 AM.