Gentoo Archives: gentoo-user

From: Ricardo Saffi Marques <saffi@××××××××××××××.br>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] RAM upgrade, kernel and swap
Date: Thu, 24 Jan 2008 09:55:30
Message-Id: 3b5772b30801240155x33cc36bdg2145b10e56f92020@mail.gmail.com
In Reply to: Re: [gentoo-user] RAM upgrade, kernel and swap by Hal Martin
1 There is an option in the kernel that will make it "see" all the 4GB. Set
2 the option for up o 64GB in the kernel and you may use your 4GB.
3
4 On 1/24/08, Hal Martin <hal.martin@×××××.com> wrote:
5 >
6 > Ahh, but it won't last...
7 >
8 > $ free
9 > total used free shared
10 > buffers cached
11 > Mem: 2059824 2044512 15312 0 37636 50868
12 > -/+ buffers/cache: 1956008 103816
13 > Swap: 4289308 1229024 3060284
14 >
15 > Now this I can live with...
16 >
17 > $ free
18 > total used free shared
19 > buffers cached
20 > Mem: 3629832 3499156 130676 0 56644 3070796
21 > -/+ buffers/cache: 371716 3258116
22 > Swap: 0 0 0
23 >
24 > Unfortunately that machine is 32bit and thus only supports ~3.6GB of the
25 > 4GB of RAM. :-(
26 >
27 > -Hal
28 >
29 > Michael Higgins wrote:
30 > > On Tue, 22 Jan 2008 00:44:53 +0100
31 > > "Hemmann, Volker Armin" <volker.armin.hemmann@××××××××××××.de> wrote:
32 > >
33 > >
34 > >> On Montag, 21. Januar 2008, Michael Higgins wrote:
35 > >>
36 > >>> So, I just got 2 GB of RAM in the mail. Whoo hoo.
37 > >>>
38 > >>> Before I pop these in, soliciting any thoughts about the following:
39 > >>>
40 > >>> zcat /proc/config.gz |grep MEM
41 > >>> CONFIG_SHMEM=y
42 > >>> # CONFIG_TINY_SHMEM is not set
43 > >>> # CONFIG_NOHIGHMEM is not set
44 > >>> CONFIG_HIGHMEM4G=y
45 > >>> # CONFIG_HIGHMEM64G is not set
46 > >>> CONFIG_HIGHMEM=y
47 > >>> CONFIG_SELECT_MEMORY_MODEL=y
48 > >>> CONFIG_FLATMEM_MANUAL=y
49 > >>> # CONFIG_DISCONTIGMEM_MANUAL is not set
50 > >>> # CONFIG_SPARSEMEM_MANUAL is not set
51 > >>> CONFIG_FLATMEM=y
52 > >>> CONFIG_FLAT_NODE_MEM_MAP=y
53 > >>> # CONFIG_SPARSEMEM_STATIC is not set
54 > >>> CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
55 > >>> # CONFIG_BLK_DEV_UMEM is not set
56 > >>> # CONFIG_INPUT_FF_MEMLESS is not set
57 > >>> # CONFIG_DEBUG_HIGHMEM is not set
58 > >>> CONFIG_HAS_IOMEM=y
59 > >>>
60 > >>>
61 > >>> Name Flags Part Type FS Type [Label]
62 > >>> Size (MB)
63 > >>>
64 > ---------------------------------------------------------------------------
65 > >>> --- hda1 Boot Primary Linux ext2
66 > >>> 256.50 hda2 Primary Linux swap /
67 > >>> Solaris 1024.46 hda3 Primary Linux
68 > >>> ext3 21480.44 hda5 Logical
69 > >>> Linux ReiserFS 28771.84 hda6
70 > >>> Logical Linux ReiserFS 28493.15
71 > >>>
72 > >>> IOW, do I need to/should I recompile my kernel or change partition
73 > >>> sizes?
74 > >>>
75 > >> if you don't plan to try suspend-to-disk.
76 > >> No
77 > >>
78 > >> even if you plan to try suspend-to-disk it might work with a
79 > >> swapfile. So still no.
80 > >>
81 > >
82 > > Thanks for the feedback. I figured I'd be covered with the setup as it
83 > > is, but you never know... unless you know. This thing never sleeps...
84 > > so no worries there.
85 > >
86 > > Anyway, I just popped 'em in:
87 > >
88 > > $ free
89 > > total used free shared buffers
90 > cached
91 > > Mem: 2074548 166048 1908500 0
92 > 6812 77284
93 > > -/+ buffers/cache: 81952 1992596
94 > > Swap: 1000432 0 1000432
95 > >
96 > > [ Nice. I like that last line a lot. ]
97 > >
98 > > Cheers,
99 > >
100 > >
101 >
102 > --
103 > gentoo-user@l.g.o mailing list
104 >
105 >
106
107
108 --
109 Ricardo Saffi Marques
110 Laboratório de Administração e Segurança de Sistemas (LAS/IC)
111 Universidade Estadual de Campinas (UNICAMP)
112 Cell: +55 (19) 8128-0435
113 Skype: ricardo_saffi_marques
114 Website: http://www.rsaffi.com

Replies