From: Arjan van de Ven <arjan@infradead.org>
To: Fabio De Francesco <fabiomdf@alice.it>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [x86_32] With 4GB installed, in which cases low mem total is less than 896MB?
Date: Tue, 29 Apr 2008 10:18:52 -0700 [thread overview]
Message-ID: <20080429101852.6719eb59@infradead.org> (raw)
In-Reply-To: <200804301702.06019.fabiomdf@alice.it>
On Wed, 30 Apr 2008 17:02:02 +0200
Fabio De Francesco <fabiomdf@alice.it> wrote:
> Hi all,
>
> I've got a Linux box, Intel Core 2 T7700 with 4GB RAM installed, with
> vanilla kernel 2.6.24 + TuxOnIce patch-set compiled for x86_32bit
> (CONFIG_X86_32=y), whose /proc/meminfo shows "LowTotal 794MB".
I'm not an expert in this, but one thing is that the more memory the system has, the more overhead there is.
(roughly 64 bytes per 4Kb of memory).
>
> A further issue is about the "MemTotal" value that only shows more or
> less 3550MB with HIGHMEM4G selected, and it shows a more satisfying
> value of 4050MB with HIGHMEM64G + X86_PAE + RESOURCES_64BIT selected.
> In both cases LowTotal is always less than 800MB.
>
> Why is it needed to activate the PAE mechanism in order to see and
> use the whole 4GB memory? Is it what it is expected to be done?
yes this is expected.
Let me explain: even though you have 4Gb of memory, it's spread out like this:
0 - 3.5Gb Memory
3.5Gb - 4Gb Gap
4Gb - 4.5Gb Memory
This "gap" is needed for PCI. PCI devices have "memory" on them (technical term is "MMIO", memory mapped IO) and
this needs to be in the first 4Gb of memory (traditionally). So the system leaves a 0.5Gb gap on your system
for this purpose.
Some other systems have 0.25Gb or 1Gb gaps; some systems even have a BIOS option for the size of this gap.
But a gap.. all machines with >= 4Gb have that.
Just enable PAE and be done with it. (And you get the non-executable stack security feature as well then)
next prev parent reply other threads:[~2008-04-30 15:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-30 15:02 Fabio De Francesco
2008-04-29 17:18 ` Arjan van de Ven [this message]
2008-05-02 14:38 ` Fabio De Francesco
2008-05-02 15:47 ` Andi Kleen
2008-04-30 16:55 ` Alan Cox
2008-05-04 14:37 ` Rene Herman
2008-05-08 7:48 ` Fabio De Francesco
2008-05-08 12:35 ` Rene Herman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080429101852.6719eb59@infradead.org \
--to=arjan@infradead.org \
--cc=fabiomdf@alice.it \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome