Linux - NewbieThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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).
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:
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
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.
@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)
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.
@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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.