Gentoo Archives: gentoo-user

From: Alexander Kapshuk <alexander.kapshuk@×××××.com>
To: gentoo-user <gentoo-user@l.g.o>
Subject: [gentoo-user] Re: 4G RAM on 32-bit OS
Date: Fri, 03 Jul 2015 18:45:39
Message-Id: CAJ1xhMW5Hgnx-iapfOc-KLaurSNYs-E5qL3z5vvKu1K-A+r2GQ@mail.gmail.com
In Reply to: [gentoo-user] 4G RAM on 32-bit OS by Alexander Kapshuk
1 On Fri, Jul 3, 2015 at 8:47 PM, Alexander Kapshuk <
2 alexander.kapshuk@×××××.com> wrote:
3
4 > I've put in two 2G memory modules running 32-bit kernel with 'free'
5 > showing:
6 >
7 > free -h
8 > total used free shared buffers cached
9 > Mem: 3.5G 885M 2.6G 9.1M 67M 345M
10 > -/+ buffers/cache: 471M 3.0G
11 > Swap: 511M 0B 511M
12 >
13 > CPUINFO
14 > sed '/model name/!d;/model name/q' /proc/cpuinfo
15 > model name : Intel(R) Core(TM)2 Duo CPU E4600 @ 2.40GHz
16 >
17 > With HIGHMEM kernel config on:
18 >
19 > grep '^[^#].*HIGH.*MEM' /usr/src/linux/.config
20 > CONFIG_HIGHMEM4G=y
21 > CONFIG_HIGHMEM=y
22 >
23 > grep '^[^#].*3G' /usr/src/linux/.config
24 > CONFIG_VMSPLIT_3G=y
25 >
26 > Does this claim still hold true today?
27 > http://osdir.com/ml/kernel.ck/2005-02/msg00081.html
28 >
29 > Or perhaps it is I who did not fit the memory modules properly?
30 >
31 > Thanks.
32 >
33 >
34 Did some more googling on this.
35
36 Stumbled upon this thread,
37 http://www.gossamer-threads.com/lists/linux/kernel/778495.
38
39 Enabled PAE support in the kernel:
40 CONFIG_HIGHMEM64G=y
41
42 Recompiled the kernel. And voila!
43
44 grep MemTotal /proc/meminfo
45 MemTotal: 4144484 kB
46
47 free -h
48 total used free shared buffers cached
49 Mem: 4.0G 828M 3.1G 9.0M 64M 307M
50 -/+ buffers/cache: 455M 3.5G
51 Swap: 511M 0B 511M