LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-25-2013, 09:47 AM   #1
o-madsen
LQ Newbie
 
Registered: Apr 2013
Location: Denmark
Distribution: Ubuntu / Manjaro
Posts: 17

Rep: Reputation: Disabled
reparing memory


when I look in the system information my computer is only running on 2.8GB ram, but there are 4GB, how do I fix this?

Thanks

ps. I am a beginner at linux, and just started learning

Ole
 
Old 04-25-2013, 10:16 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Most likely you are running a 32 bit version of Linux, I would recommend to go for a 64 bit version.
Alternatively you can install a PAE kernel, but newer Mint versions should use such a kernel by default.
 
Old 04-25-2013, 10:22 AM   #3
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Quote:
Originally Posted by o-madsen View Post
when I look in the system information my computer is only running on 2.8GB ram, but there are 4GB, how do I fix this
How did you check the RAM? Can you post output of:
Code:
~$ cat /proc/meminfo

Last edited by shivaa; 04-25-2013 at 10:24 AM.
 
Old 04-25-2013, 10:24 AM   #4
o-madsen
LQ Newbie
 
Registered: Apr 2013
Location: Denmark
Distribution: Ubuntu / Manjaro
Posts: 17

Original Poster
Rep: Reputation: Disabled
I use Linux Mint 13 64 bit

I looked in system information under ram

Ole
 
Old 04-25-2013, 10:26 AM   #5
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Post output of:
Code:
~$ cat /proc/meminfo
~$ top
 
Old 04-25-2013, 10:31 AM   #6
o-madsen
LQ Newbie
 
Registered: Apr 2013
Location: Denmark
Distribution: Ubuntu / Manjaro
Posts: 17

Original Poster
Rep: Reputation: Disabled
MemTotal: 2824044 kB
MemFree: 1352644 kB
Buffers: 32132 kB
Cached: 738448 kB
SwapCached: 27940 kB
Active: 802112 kB
Inactive: 492888 kB
Active(anon): 458112 kB
Inactive(anon): 75944 kB
Active(file): 344000 kB
Inactive(file): 416944 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 7811068 kB
SwapFree: 7639524 kB
Dirty: 52 kB
Writeback: 0 kB
AnonPages: 501676 kB
Mapped: 102600 kB
Shmem: 9636 kB
Slab: 76132 kB
SReclaimable: 51468 kB
SUnreclaim: 24664 kB
KernelStack: 2640 kB
PageTables: 21384 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 9223088 kB
Committed_AS: 2053380 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 324176 kB
VmallocChunk: 34359411708 kB
HardwareCorrupted: 0 kB
AnonHugePages: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 197184 kB
DirectMap2M: 2684928 kB

the other I cant copy
 
Old 04-25-2013, 11:24 AM   #7
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
MemTotal is total "usable" RAM which is 2824044 KB i.e. around 2.7 GB.
MemFree is the amount of physical RAM, left unused by the system, which is 1352644 KB i.e. 1.29 GB.
Total: MemTotal + MemFree = 4176688 KB i.e. around 3.98 GB.

So in your case, the MemFree i.e. 1.29 GB is not in use, that is why you see only 2.7 or 2.8 GB of physical memory.

To find out how system calculates the free memory (see here).

Hope this helps.
 
Old 04-25-2013, 11:29 AM   #8
o-madsen
LQ Newbie
 
Registered: Apr 2013
Location: Denmark
Distribution: Ubuntu / Manjaro
Posts: 17

Original Poster
Rep: Reputation: Disabled
thanks for your help

Ole
 
Old 04-25-2013, 12:15 PM   #9
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Quote:
Originally Posted by shivaa View Post
MemTotal is total "usable" RAM which is 2824044 KB i.e. around 2.7 GB.
MemFree is the amount of physical RAM, left unused by the system, which is 1352644 KB i.e. 1.29 GB.
Total: MemTotal + MemFree = 4176688 KB i.e. around 3.98 GB.

So in your case, the MemFree i.e. 1.29 GB is not in use, that is why you see only 2.7 or 2.8 GB of physical memory.

To find out how system calculates the free memory (see here).

Hope this helps.
Not quite true. The amount that is subtracted from physical memory to give MemTotal is reserved by the kernel. I have 24 GB RAM in my system:

Code:
cat /proc/meminfo 
MemTotal:       24592672 kB
MemFree:        13128916 kB
 
Old 04-25-2013, 12:18 PM   #10
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Some computer can't actually support 4GB, even if they have a 64 bit CPU and often even though the manufacturer claims 4GB support.

Usually that means installing 4GB gives you 3 and fraction GB usable, but it can be as low as the 2.8GB usable reported in this thread.

But some systems have a BIOS option for memory "remap" (often called other things, so it may be hard to identify). With that BIOS option enabled you can use almost all of your 4GB, but with it disabled you have much less usable.

Try to find that BIOS option on your system.

Quote:
Originally Posted by shivaa View Post
MemTotal is total "usable" RAM which is 2824044 KB i.e. around 2.7 GB.
MemFree is the amount of physical RAM, left unused by the system, which is 1352644 KB i.e. 1.29 GB.
Total: MemTotal + MemFree = 4176688 KB i.e. around 3.98 GB.

So in your case, the MemFree i.e. 1.29 GB is not in use, that is why you see only 2.7 or 2.8 GB of physical memory.
That is mostly nonsense. MemFree is included in MemTotal. Adding it in again is just wrong.

The OP have either a hardware restriction or an incorrectly set BIOS option.

Last edited by johnsfine; 04-25-2013 at 12:21 PM.
 
1 members found this post helpful.
Old 04-25-2013, 12:26 PM   #11
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Quote:
Originally Posted by johnsfine View Post
The OP have either a hardware restriction or an incorrectly set BIOS option.
Saying this is not just enough, please explain!
 
Old 04-25-2013, 02:12 PM   #12
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by shivaa View Post
Saying this is not just enough, please explain!
Read any of the similar threads. This is a common issue that has been discussed in many previous threads.
 
Old 04-25-2013, 10:01 PM   #13
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
@johnsfine:
As per explaination of /proc/meminfo (on various websites):
Quote:
•MemTotal: Total usable RAM in kilobytes (i.e. physical memory minus a few reserved bytes and the kernel binary code)
•MemFree: The amount of physical RAM left unused by the system.
So I don't think that MemFree is already included in MemTotal. Please read those descriptions again. (Let's say here)
 
Old 04-25-2013, 10:39 PM   #14
guyonearth
Member
 
Registered: Jun 2012
Location: USA
Distribution: Ubuntu
Posts: 424

Rep: Reputation: 83
Wrong, Wrong, Wrong. Total memory available is exactly what it says, total memory available. Free memory is part of that total. He has ~2.8 gig available because he has a 32-bit system board that reserves memory above that boundary for hardware addresses. This is a well-known limitation of 32-bit architecture. The fact he has a 64-bit CPU is irrelevant, in the transitional period between 32-bit and 64-bit, there were many boards with 32-bit chipsets that supported 64-bit CPUs. Yes, it sounds stupid, but it's true. The amount reserved varies, but usable memory can vary from 2.8 to 3.5 depending on how the board is configured. A lot of these boards were designed when most people didn't have more than 256 or 512, so it was never an issue.

The other possibility of defective RAM is possible, but unlikely, since when that happens you usually have an even increment, like 1024, 2048, etc, that works, while the rest doesn't.

Last edited by guyonearth; 04-25-2013 at 10:45 PM.
 
Old 04-26-2013, 03:23 AM   #15
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by shivaa View Post
@johnsfine:
As per explaination of /proc/meminfo (on various websites):


So I don't think that MemFree is already included in MemTotal. Please read those descriptions again. (Let's say here)
This is what I get on a 64 bit system with 16GB of RAM:
Code:
MemTotal:       16375376 kB
MemFree:         9644720 kB
According to your explanation I would have about 25GB of RAM and that is definitely not the case.
MemTotal shows the total amount of memory available to the system.
 
  


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
Reparing filesystem vasthan Red Hat 2 05-05-2011 02:48 PM
Reparing Windows XP on a dual boot setup Fried Egg Linux - Software 20 01-20-2010 08:20 AM
Reparing MBR from linux for Windows XP n1nja56 Linux - Newbie 1 06-09-2008 02:10 PM
Difference between resident memory,shared memory and virtual memory in system monitor mathimca05 Linux - Newbie 1 11-11-2007 04:05 AM
Help!?! RH 8 Memory Mapping -High Memory-Virtural Memory issues.. Merlin53 Linux - Hardware 2 06-18-2003 04:48 PM

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

All times are GMT -5. The time now is 02:28 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
Open Source Consulting | Domain Registration