Linux only detects 2gb of ram

From Initq

Jump to: navigation, search

If you installed Debian Lenny and it is not picking up the full physical ram then install the bigmem kernel.

apptricity:/etc/init.d# uname -a
Linux apptricity 2.6.26-2-686 #1 SMP Wed Feb 10 08:59:21 UTC 2010 i686 GNU/Linux
apptricity:/etc/init.d# apt-get install linux-image-2.6.26-2-686-bigmem
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  linux-doc-2.6.26
The following NEW packages will be installed:
  linux-image-2.6.26-2-686-bigmem
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 20.3MB of archives.
After this operation, 61.6MB of additional disk space will be used.
Get:1 http://security.debian.org lenny/updates/main linux-image-2.6.26-2-686-bigmem 2.6.26-21lenny3 [20.3MB]
Fetched 20.3MB in 1min35s (213kB/s)
Preconfiguring packages ...
Selecting previously deselected package linux-image-2.6.26-2-686-bigmem.
(Reading database ... 26150 files and directories currently installed.)
Unpacking linux-image-2.6.26-2-686-bigmem (from .../linux-image-2.6.26-2-686-bigmem_2.6.26-21lenny3_i386.deb) ...
Done.
Setting up linux-image-2.6.26-2-686-bigmem (2.6.26-21lenny3) ...
Running depmod.
Running mkinitramfs-kpkg.
Running postinst hook script update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.26-2-686-bigmem
Found kernel: /boot/vmlinuz-2.6.26-2-686
Updating /boot/grub/menu.lst ... done
 
apptricity:/etc/init.d# uname -a
Linux apptricity 2.6.26-2-686 #1 SMP Wed Feb 10 08:59:21 UTC 2010 i686 GNU/Linux
apptricity:/etc/init.d# cd /boot
apptricity:/boot# ls
config-2.6.26-2-686         initrd.img-2.6.26-2-686         System.map-2.6.26-2-686-bigmem
config-2.6.26-2-686-bigmem  initrd.img-2.6.26-2-686-bigmem  vmlinuz-2.6.26-2-686
grub                        System.map-2.6.26-2-686         vmlinuz-2.6.26-2-686-bigmem
apptricity:/boot# ls -la
total 17372
drwxr-xr-x  3 root root    4096 2010-02-16 13:43 .
drwxr-xr-x 21 root root    4096 2010-02-16 13:43 ..
-rw-r--r--  1 root root   91715 2010-02-10 06:27 config-2.6.26-2-686
-rw-r--r--  1 root root   91744 2010-02-10 06:28 config-2.6.26-2-686-bigmem
drwxr-xr-x  2 root root    4096 2010-02-16 13:43 grub
-rw-r--r--  1 root root 6278082 2010-02-16 09:57 initrd.img-2.6.26-2-686
-rw-r--r--  1 root root 6316927 2010-02-16 13:43 initrd.img-2.6.26-2-686-bigmem
-rw-r--r--  1 root root  928515 2010-02-10 06:27 System.map-2.6.26-2-686
-rw-r--r--  1 root root  950136 2010-02-10 06:28 System.map-2.6.26-2-686-bigmem
-rw-r--r--  1 root root 1507024 2010-02-10 06:26 vmlinuz-2.6.26-2-686
-rw-r--r--  1 root root 1548304 2010-02-10 06:28 vmlinuz-2.6.26-2-686-bigmem

Before Reboot

apptricity:/boot# dmesg | grep -i memory
[    0.000000] PM: Registered nosave memory: 00000000000a0000 - 0000000000100000
[    0.004000] Memory: 3358372k/4194304k available (1771k kernel code, 43336k reserved, 750k data, 244k init, 2485568k highmem)
[    0.004000] virtual kernel memory layout:
[    0.860245] Freeing initrd memory: 6130k freed
[    0.860245] Total HugeTLB memory allocated, 0
[    1.272205] Freeing unused kernel memory: 244k freed
apptricity:/boot# free
             total       used       free     shared    buffers     cached
Mem:       3365724     218004    3147720          0        760     174032
-/+ buffers/cache:      43212    3322512
Swap:      2650684          0    2650684

After Reboot

apptricity:~# uname -a
Linux apptricity 2.6.26-2-686-bigmem #1 SMP Wed Feb 10 09:24:17 UTC 2010 i686 GNU/Linux
apptricity:~# free
             total       used       free     shared    buffers     cached
Mem:       4145824      93164    4052660          0       5476      51872
-/+ buffers/cache:      35816    4110008
Swap:      2650684          0    2650684
apptricity:~# dmesg | grep -i memory
[    0.000000] PM: Registered nosave memory: 00000000000a0000 - 0000000000100000
[    0.004000] Memory: 4138592k/4980736k available (1836k kernel code, 49720k reserved, 790k data, 256k init, 3272000k highmem)
[    0.004000] virtual kernel memory layout:
[    0.865995] Freeing initrd memory: 6168k freed
[    0.894064] Total HugeTLB memory allocated, 0
[    1.278149] Freeing unused kernel memory: 256k freed
Personal tools