LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   reparing memory (https://www.linuxquestions.org/questions/linux-newbie-8/reparing-memory-4175459568/)

o-madsen 04-25-2013 09:47 AM

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

TobiSGD 04-25-2013 10:16 AM

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.

shivaa 04-25-2013 10:22 AM

Quote:

Originally Posted by o-madsen (Post 4938684)
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

o-madsen 04-25-2013 10:24 AM

I use Linux Mint 13 64 bit

I looked in system information under ram

Ole

shivaa 04-25-2013 10:26 AM

Post output of:
Code:

~$ cat /proc/meminfo
~$ top


o-madsen 04-25-2013 10:31 AM

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

shivaa 04-25-2013 11:24 AM

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.

o-madsen 04-25-2013 11:29 AM

thanks for your help

Ole

smallpond 04-25-2013 12:15 PM

Quote:

Originally Posted by shivaa (Post 4938752)
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


johnsfine 04-25-2013 12:18 PM

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 (Post 4938752)
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.

shivaa 04-25-2013 12:26 PM

Quote:

Originally Posted by johnsfine (Post 4938769)
The OP have either a hardware restriction or an incorrectly set BIOS option.

Saying this is not just enough, please explain!

johnsfine 04-25-2013 02:12 PM

Quote:

Originally Posted by shivaa (Post 4938776)
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.

shivaa 04-25-2013 10:01 PM

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

guyonearth 04-25-2013 10:39 PM

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.

TobiSGD 04-26-2013 03:23 AM

Quote:

Originally Posted by shivaa (Post 4939006)
@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.


All times are GMT -5. The time now is 11:49 AM.