Only 3.2G ram out of 4G seen in an i386 box
Quoted 14 lines · Thomas Stewart
I have a Dell Optiplex GX280, a Pentium 4 with an Intel chipset. It has 4G of ram. The problem is I can only see 3.2G, even tho the bios reports 4G.
While using debian 2.6.16-2-686:
thomas@coke:~$ uname -a Linux coke 2.6.16-2-686 #1 Sat Jul 15 21:59:21 UTC 2006 i686 GNU/Linux thomas@coke:~$ grep MemTotal /proc/meminfo MemTotal: 3375484 kBThis is expected as the standard debian kernels don't set
CONFIG_HIGHMEM64G. My understanding is that this needs to be set for the full 4G to work on i386.
Quoted 7 lines
So I downloaded 2.6.18-rc3-git3 and 2.6.18-rc2-mm1 to give them a try. I used the debian config as a starting point for oldconfig. Then from menuconfig, "Processor type and featues" -> "High Memory Support" and selected 64G. I then compiled both, rebooted and got these results:
2.6.18-rc2-mm1 reported MemTotal: 3376192 kB
2.6.18-rc3-git3 reported MemTotal: 3376236 kB
Most likely the BIOS is reserving large parts of the [0,4GB[ range for PCI devices and some for itself. Please post the E820 memory map the kernel prints near the start of the boot sequence on your machine.
Quoted 3 lines
Is there anything I can do to make use of the 800M or so of ram that's unused? Changing to amd64 or anything else that's sane or better does not count ;-)
You need a chipset+BIOS that can relocate RAM to above the 4GB boundary. I don't know how common those are in the 32-bit x86 world.
Quoted 3 lines · Mikael Pettersson
Most likely the BIOS is reserving large parts of the [0,4GB[ range for PCI devices and some for itself. Please post the E820 memory map the kernel prints near the start of the boot sequence on your machine.
Linux version 2.6.16-2-686 (Debian 2.6.16-17) ([email protected]) (gcc version 4.6BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 00000000cfe86c00 (usable)
BIOS-e820: 00000000cfe86c00 - 00000000cfe88c00 (ACPI NVS)
BIOS-e820: 00000000cfe88c00 - 00000000cfe8ac00 (ACPI data)
BIOS-e820: 00000000cfe8ac00 - 00000000d0000000 (reserved)
BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
BIOS-e820: 00000000fec00000 - 00000000fed00400 (reserved)
BIOS-e820: 00000000fed20000 - 00000000feda0000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fef00000 (reserved)
BIOS-e820: 00000000ffb00000 - 0000000100000000 (reserved)
2174MB HIGHMEM available.
1152MB LOWMEM available.
Linux version 2.6.18-rc3-git3-ts1 (root@coke) (gcc version 4.0.4 20060507 (prer6BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 00000000cfe86c00 (usable)
BIOS-e820: 00000000cfe86c00 - 00000000cfe88c00 (ACPI NVS)
BIOS-e820: 00000000cfe88c00 - 00000000cfe8ac00 (ACPI data)
BIOS-e820: 00000000cfe8ac00 - 00000000d0000000 (reserved)
BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
BIOS-e820: 00000000fec00000 - 00000000fed00400 (reserved)
BIOS-e820: 00000000fed20000 - 00000000feda0000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fef00000 (reserved)
BIOS-e820: 00000000ffb00000 - 0000000100000000 (reserved)
2430MB HIGHMEM available.
896MB LOWMEM available.
Linux version 2.6.18-rc2-mm1-ts1 (root@coke) (gcc version 4.0.4 20060507 (prere6BIOS-provided physical RAM map:
sanitize start
sanitize endcopy_e820_map() start: 0000000000000000 size: 00000000000a0000 end: 000000000001copy_e820_map() type is E820_RAMcopy_e820_map() start: 00000000000f0000 size: 0000000000010000 end: 000000000012copy_e820_map() start: 0000000000100000 size: 00000000cfd86c00 end: 00000000cfe1copy_e820_map() type is E820_RAMcopy_e820_map() start: 00000000cfe86c00 size: 0000000000002000 end: 00000000cfe4copy_e820_map() start: 00000000cfe88c00 size: 0000000000002000 end: 00000000cfe3copy_e820_map() start: 00000000cfe8ac00 size: 0000000000175400 end: 00000000d002copy_e820_map() start: 00000000e0000000 size: 0000000010000000 end: 00000000f002copy_e820_map() start: 00000000fec00000 size: 0000000000100400 end: 00000000fed2copy_e820_map() start: 00000000fed20000 size: 0000000000080000 end: 00000000fed2copy_e820_map() start: 00000000fee00000 size: 0000000000100000 end: 00000000fef2copy_e820_map() start: 00000000ffb00000 size: 0000000000500000 end: 000000010002 BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 00000000cfe86c00 (usable)
BIOS-e820: 00000000cfe86c00 - 00000000cfe88c00 (ACPI NVS)
BIOS-e820: 00000000cfe88c00 - 00000000cfe8ac00 (ACPI data)
BIOS-e820: 00000000cfe8ac00 - 00000000d0000000 (reserved)
BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
BIOS-e820: 00000000fec00000 - 00000000fed00400 (reserved)
BIOS-e820: 00000000fed20000 - 00000000feda0000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fef00000 (reserved)
BIOS-e820: 00000000ffb00000 - 0000000100000000 (reserved)
2430MB HIGHMEM available.
896MB LOWMEM available.
Regards
--
Tom