Gentoo Archives: gentoo-user

From: Kai Krakow <hurikhan77@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Only 4 of 8 GB usable
Date: Sun, 08 Jun 2014 19:03:57
Message-Id: kene6b-0v.ln1@hurikhan77.spdns.de
In Reply to: [gentoo-user] Only 4 of 8 GB usable by Alex Schuster
1 Alex Schuster <wonko@×××××××××.org> schrieb:
2
3 > So I installed another 4 GiB RAM into a Gentoo amd64 system that had 4 GiB
4 > already. But it still sees only 4 GiB, not 8 GiB:
5 >
6 > leela ~ # uname -a
7 > Linux leela 3.6.11-gentoo #3 SMP Mon Feb 4 15:37:48 CET 2013 x86_64 AMD
8 > A6-3500 APU with Radeon(tm) HD Graphics AuthenticAMD GNU/Linux
9 >
10 > leela ~ #
11 > free -m total used free shared buffers cached
12 > Mem: 3688 3269 419 0 108 1050
13 > -/+ buffers/cache: 2110 1577
14 > Swap: 2047 54 1993
15 >
16 > Huh? Any idea why this is? The BIOS shows the full 8GiB, and lshw finds
17 > it. dmidecode shows that 8G should work:
18
19 Two ideas:
20
21 An addon card is blocking the usage of RAM above 4 GB. See if your BIOS is
22 enabled for 64 bit systems and if everything will map above 32 bit address
23 space. Usually there are BIOS configuration sections like "resource
24 allocation", "memory hole", "resource relocation", or similar - you get the
25 idea.
26
27 My second idea is: Look at dmesg if there are errors from MTRR which allow
28 the kernel to only make use of 4 GB of RAM. Usually, the kernel tries its
29 best to adjust MTRR to make as much use of RAM as possible with lower
30 priority to memory access performance. If you tuned MTRR manually before,
31 you are likely to be running into memory issues. Also, check if there is a
32 BIOS update available. Sometimes this is needed to correct MTRR settings so
33 memory becomes avaiable to the OS. Also look at your kernel options
34 regarding MTRR support / defaults.
35
36 These kernel options may help you: mtrr_gran_size, mtrr_chunk_size
37
38 E.g., I have 16 GB installed and adjusted MTRR settings to allow using write
39 combining (which cannot be enabled by the kernel with the default MTRR
40 settings from BIOS). But that came with the downside of loosing around 1 GB
41 of usable RAM.
42
43 --
44 Replies to list only preferred.